[FFmpeg-user] m3u8 generated with bad bandwith

technik+ffmpeg at vistream.online technik+ffmpeg at vistream.online
Sun Jan 23 20:16:31 EET 2022


Hi,

We have the problem that the m3u8 always outputs the wrong bandwidth for the main stream, which we would like to loop through unprocessed.

Our command is:
ffmpeg -hide_banner -analyzeduration 10M \
     -y -threads 0 -init_hw_device vaapi=intel:/dev/dri/renderD128 -hwaccel vaapi -hwaccel_device intel \
     -i rtmp://127.0.0.1:1935/live/test \
     -level 41 -qp 23 -color_range tv -af aresample=async=1:min_hard_comp=0.100000:first_pts=0 -vsync -1 -r 30 -g 60 -keyint_min 60 -sc_threshold 0 -bf 3 -b_strategy 2 \
     -muxdelay 0 -muxpreload 0 \
     -max_muxing_queue_size 1024 \
     -filter_complex "format=nv12,hwupload,scale_vaapi=w=1280:h=720,split=2[720p][480];[480]scale_vaapi=w=854:h=480,split=2[480p][240];[240]scale_vaapi=w=426:h=240[240p]" \
     -map [720p] -c:v:0 h264_vaapi \
     -map [480p] -c:v:1 h264_vaapi -b:v:1 700k -maxrate:v:1 900k \
     -map [240p] -c:v:2 h264_vaapi -b:v:2 250k -maxrate:v:2 267k \
     -map 0:a \
     -map 0:a \
     -map 0:a \
     -c:a aac \
     -var_stream_map "v:1,a:1 v:0,a:0 v:2,a:2" \
     -output_ts_offset 0 \
     -f hls -hls_flags second_level_segment_index+second_level_segment_duration+append_list+split_by_time+program_date_time+discont_start+omit_endlist -hls_start_number_source epoch -hls_time 2 -hls_list_size 3 \
     -master_pl_name play.m3u8 -strftime 1 -hls_segment_filename /tmp/live/test/vs%v/%s_%%d_%%t.ts /tmp/live/test/vs%v/play.m3u8

And this is the result. The bandwidth of 140800 is wrong.
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=910800,RESOLUTION=854x480,CODECS="avc1.640829,mp4a.40.2"
vs0/play.m3u8

#EXT-X-STREAM-INF:BANDWIDTH=140800,RESOLUTION=1280x720,CODECS="avc1.640829,mp4a.40.2"
vs1/play.m3u8

#EXT-X-STREAM-INF:BANDWIDTH=415800,RESOLUTION=426x240,CODECS="avc1.640829,mp4a.40.2"
vs2/play.m3u8

kind regards
Paul Eppner
-- 
Philipp Roggan

ViStream GmbH

E-Mail: philipp.roggan at vistream.online
Web: https://www.vistream.online/

Hagenstraße 50
10365 Berlin
________________________________
Geschäftsführer: Paul Eppner
Handelsregister: Amtsgericht Charlottenburg HRB 221474 B

Diese E-Mail ist nur für den in der Anrede bezeichneten Empfänger bestimmt und kann vertrauliche Informationen enthalten. Falls Sie diese E-Mail irrtümlich erhalten haben, informieren Sie bitte den Absender und löschen Sie sie vollständig. Vielen Dank!
This email is confidential and may be legally privileged. If you are not the intended recipient, please notify the sender and delete the email from your system. Thank you!

-- 
Philipp Roggan

ViStream GmbH

E-Mail: philipp.roggan at vistream.online
Web: https://www.vistream.online/

Hagenstraße 50
10365 Berlin
________________________________
Geschäftsführer: Paul Eppner
Handelsregister: Amtsgericht Charlottenburg HRB 221474 B

Diese E-Mail ist nur für den in der Anrede bezeichneten Empfänger bestimmt und kann vertrauliche Informationen enthalten. Falls Sie diese E-Mail irrtümlich erhalten haben, informieren Sie bitte den Absender und löschen Sie sie vollständig. Vielen Dank!
This email is confidential and may be legally privileged. If you are not the intended recipient, please notify the sender and delete the email from your system. Thank you!


More information about the ffmpeg-user mailing list