Browsing this Thread:   1 Anonymous Users






ffmpeg vp9 dash av1 dash
#1
Just can't stay away
Just can't stay away


See User information
ffmpeg -i in.video -vn -acodec libvorbis -ab 128k -dash 1 my_audio.webm

ffmpeg -i in.video -c:v libvpx-vp9 -keyint_min 150 -row-mt 1 \
-g 150 -tile-columns 4 -frame-parallel 1 -f webm -dash 1 \
-an -vf scale=320:180 -b:v 180k -dash 1 180.webm \
-an -vf scale=640:360 -b:v 300k -dash 1 360.webm \
-an -vf scale=1280:720 -b:v 500k -dash 1 720.webm \
-an -vf scale=1920:1080 -b:v 800k -dash 1 1080.webm


VP9_DASH_PARAMS=" -row-mt 1 -tile-columns 4 -frame-parallel 1"

ffmpeg -i input_video.y4m -c:v libvpx-vp9 -s 320x180 -b:v 180k -keyint_min 150 -g 150 ${VP9_DASH_PARAMS} -an -f webm -dash 1 video_320x180_180k.webm
ffmpeg -i input_video.y4m -c:v libvpx-vp9 -s 640x360 -b:v 300k -keyint_min 150 -g 150 ${VP9_DASH_PARAMS} -an -f webm -dash 1 video_640x360_300k.webm
ffmpeg -i input_video.y4m -c:v libvpx-vp9 -s 1280x720 -b:v 720k -keyint_min 150 -g 150 ${VP9_DASH_PARAMS} -an -f webm -dash 1 video_1280x720_720k.webm
ffmpeg -i input_video.y4m -c:v libvpx-vp9 -s 1920x1080 -b:v 900k -keyint_min 150 -g 150 ${VP9_DASH_PARAMS} -an -f webm -dash 1 video_1920x1080_1080k.webm


ffmpeg -i input_audio.wav -c:a libvorbis -b:a 128k -vn -f webm -dash 1 audio_128k.webm

ffmpeg \
-f webm_dash_manifest -i video_320x180_180k.webm \
-f webm_dash_manifest -i video_640x360_300k.webm \
-f webm_dash_manifest -i video_1280x720_720k.webm \
-f webm_dash_manifest -i video_1920x1080_1080k.webm \
-f webm_dash_manifest -i audio_128k.webm \
-c copy -map 0 -map 1 -map 2 -map 3 -map 4 \
-f webm_dash_manifest \
-adaptation_sets "id=0,streams=0,1,2,3 id=1,streams=4" \
manifest.mpd

dash av1

ffmpeg -i ../xiaona.mp4 -c:v libaom-av1 -keyint_min 150 -g 150 -tile-columns 2 -cpu-used 8 -frame-parallel 1 -f webm -dash 1 \
-an -vf scale=320:180 -b:v 180k -dash 1 180.webm \
-an -vf scale=640:360 -b:v 300k -dash 1 360.webm \
-an -vf scale=1280:720 -b:v 500k -dash 1 720.webm \
-an -vf scale=1920:1080 -b:v 800k -dash 1 1080.webm

av1 dash

docker run -v /host_media_path/:/media -it --net=host --rm google/shaka-packager

packager \
in=a.webm,stream=audio,output=ap.webm \
in=180.webm,stream=video,output=180p.webm \
in=360.webm,stream=video,output=360p.webm \
in=720.webm,stream=video,output=720p.webm \
in=1080.webm,stream=video,output=1080p.webm \
--mpd_output manifest.mpd


Posted on: 2023/4/1 21:50
Top


Re: ffmpeg vp9 dash av1 dash
#2
Just can't stay away
Just can't stay away


See User information

packager \
in=myvideo_1920x1080.mp4,stream=audio,init_segment='myvideo/audio_init.mp4',segment_template='myvideo/audio_$Number%03d$.m4s' \
in=myvideo_1920x1080.mp4,stream=video,init_segment='myvideo/1920x1080_init.mp4',segment_template='myvideo/1920x1080_$Number%03d$.m4s' \
in=myvideo_1280x720.mp4,stream=video,init_segment='myvideo/1280x720_init.mp4',segment_template='myvideo/1280x720_$Number%03d$.m4s' \
in=myvideo_640x360.mp4,stream=video,init_segment='myvideo/640x360_init.mp4',segment_template='myvideo/640x360_$Number%03d$.m4s' \
in=myvideo_320x180.mp4,stream=video,init_segment='myvideo/320x180_init.mp4',segment_template='myvideo/320x180_$Number%03d$.m4s' \
--segment_duration 20 \
--generate_static_live_mpd \
--mpd_output myvideo/myvideo.mpd


Posted on: 2023/6/15 22:10
Top


Re: ffmpeg vp9 dash av1 dash
#3
Just can't stay away
Just can't stay away


See User information


packager \
in=../num.mp4,stream=audio,init_segment='myvideo/a_init.mp4',segment_template='myvideo/a_$Number%03d$.m4s' \
in=1080.mp4,stream=video,init_segment='myvideo/1080_init.mp4',segment_template='myvideo/1080_$Number%03d$.m4s' \
in=720.mp4,stream=video,init_segment='myvideo/720_init.mp4',segment_template='myvideo/720_$Number%03d$.m4s' \
in=360.mp4,stream=video,init_segment='myvideo/360_init.mp4',segment_template='myvideo/360_$Number%03d$.m4s' \
in=180.mp4,stream=video,init_segment='myvideo/180_init.mp4',segment_template='myvideo/180_$Number%03d$.m4s' \
--segment_duration 10 \
--generate_static_live_mpd \
--mpd_output myvideo/manifest.mpd

Posted on: 2023/6/16 1:39
Top


Re: ffmpeg vp9 dash av1 dash
#4
Just can't stay away
Just can't stay away


See User information


ffmpeg -i ../num.mp4 -c:v libaom-av1 -keyint_min 150 -g 150 -tile-columns 2 -cpu-used 8 -frame-parallel 1 -f mp4 \
-an -vf scale=320:180 -b:v 180k -dash 1 180.mp4

ffmpeg -i ../num.mp4 -c:v libaom-av1 -keyint_min 150 -g 150 -tile-columns 2 -cpu-used 8 -frame-parallel 1 -f mp4 \
-an -vf scale=640:360 -b:v 300k -dash 1 360.mp4

ffmpeg -i ../num.mp4 -c:v libaom-av1 -keyint_min 150 -g 150 -tile-columns 2 -cpu-used 8 -frame-parallel 1 -f mp4 \
-an -vf scale=1280:720 -b:v 500k -dash 1 720.mp4

ffmpeg -i ../num.mp4 -c:v libaom-av1 -keyint_min 150 -g 150 -tile-columns 2 -cpu-used 8 -frame-parallel 1 -f mp4 \
-an -vf scale=1920:1080 -b:v 800k -dash 1 1080.mp4



Posted on: 2023/8/24 12:11
Top


Re: ffmpeg vp9 dash av1 dash
#5
Just can't stay away
Just can't stay away


See User information
#!/bin/bash

filepath=$1




ffmpeg -i "$filepath" -vn -acodec copy a.m4a

ffmpeg -i "$filepath" -c:v libaom-av1 -keyint_min 150 -g 150 -tile-columns 2 -cpu-used 8 -frame-parallel 1 -f mp4 \
-an -vf scale=320:180 -b:v 180k -dash 1 180.mp4

ffmpeg -i "$filepath" -c:v libaom-av1 -keyint_min 150 -g 150 -tile-columns 2 -cpu-used 8 -frame-parallel 1 -f mp4 \
-an -vf scale=640:360 -b:v 300k -dash 1 360.mp4

ffmpeg -i "$filepath" -c:v libaom-av1 -keyint_min 150 -g 150 -tile-columns 2 -cpu-used 8 -frame-parallel 1 -f mp4 \
-an -vf scale=1280:720 -b:v 500k -dash 1 720.mp4

ffmpeg -i "$filepath" -c:v libaom-av1 -keyint_min 150 -g 150 -tile-columns 2 -cpu-used 8 -frame-parallel 1 -f mp4 \
-an -vf scale=1920:1080 -b:v 800k -dash 1 1080.mp4

ffmpeg -i "$filepath" -c:v libaom-av1 -keyint_min 150 -g 150 -tile-columns 2 -cpu-used 8 -frame-parallel 1 -f mp4 \
-an -vf scale=3840:2160 -b:v 1200k -dash 1 2160.mp4

##################################################


docker run -v `pwd`:/media -it --net=host --rm google/shaka-packager

packager \
in=a.m4a,stream=audio,init_segment='myvideo/a/init.mp4',segment_template='myvideo/a/$Number%03d$.m4s' \
in=2160.mp4,stream=video,init_segment='myvideo/2160/init.mp4',segment_template='myvideo/2160/$Number%03d$.m4s' \
in=1080.mp4,stream=video,init_segment='myvideo/1080/init.mp4',segment_template='myvideo/1080/$Number%03d$.m4s' \
in=720.mp4,stream=video,init_segment='myvideo/720/init.mp4',segment_template='myvideo/720/$Number%03d$.m4s' \
in=360.mp4,stream=video,init_segment='myvideo/360/init.mp4',segment_template='myvideo/360/$Number%03d$.m4s' \
in=180.mp4,stream=video,init_segment='myvideo/180/init.mp4',segment_template='myvideo/180/$Number%03d$.m4s' \
--segment_duration 10 \
--generate_static_live_mpd \
--mpd_output myvideo/manifest.mpd

Posted on: 2023/11/7 20:57
Top








friend links
Themes

(2 themes)
Login
Username:

Password:


Lost Password?
Register now!
Categories
Xoops (11)
--Modules (2)
--Themes (0)
Article (8)