[FFmpeg-user] HLS live stream video delay
Osztrovszky Zsolt
osztrovszkyzs at ahrt.hu
Fri Jan 22 13:04:41 CET 2016
Hello Guys,
I'd like to create a HLS live stream with multiple outputs.
I've created one with this command:
ffmpeg -f decklink -i 'DeckLink Mini Recorder at 10' \
-filter:v yadif \
-pix_fmt yuv420p \
-vcodec libx264 \
-acodec libfdk_aac \
-r 25 \
-b:v 3000 \
-bufsize 3000 \
-vf scale=1280:720 \
-force_key_frames 50 \
-g 240 \
-map 0 \
-flags \
-global_header \
-f ssegment \
-segment_list index_3000.m3u8 \
-segment_time 10 \
-segment_format mpeg_ts \
-segment_list_type m3u8 \
-segment_list_flags +live \
-segment_list_size 10 \
-segment_wrap 10 segment_3000_%01d.ts \
\
-filter:v yadif \
-pix_fmt yuv420p \
-vcodec libx264 \
-acodec libfdk_aac \
-r 25 \
-b:v 1500 \
-bufsize 1500 \
-vf scale=854:480 \
-force_key_frames 50 \
-g 240 \
-map 0 \
-flags \
-global_header \
-f ssegment \
-segment_list index_1500.m3u8 \
-segment_time 10 \
-segment_format mpeg_ts \
-segment_list_type m3u8 \
-segment_list_flags +live \
-segment_list_size 10 \
-segment_wrap 10 segment_1500_%01d.ts
It is 2 profile, but I have done it with 5 profiles, just copied the last part 3 more times.
My problem is, if I leave it running for 3 days, the picture starts having a delay.
In other words, after one day the picture is roughly 1 sec late for the audio, after two days it is 1.5 sec delay and it's getting bigger by time.
What can be the problem?
Is there a way to make it with a simplified command? Maybe just saying segment output with a list of bitrates, scale sizes?
Thanks.
Cheers,
Zsolt
________________________________
FIGYELMEZTET?S:
"Ez az e-mail bizalmas inform?ci?kat tartalmaz kiz?r?lag a c?mzett(ek) sz?m?ra. Amennyiben ?n nem c?mzettje ennek az e-mail-nek, felh?vjuk figyelm?t arra, hogy az e-mail tartalm?nak k?zz?t?tele, m?sol?sa, illet?ktelenek sz?m?ra val? tov?bb?t?sa, meg?rz?se vagy b?rmilyen hasonl? tev?kenys?g tilos ?s t?rv?nybe ?tk?z?."
More information about the ffmpeg-user
mailing list