I have an input HLS stream stream.m3u8
using my macbook camera by running:
ffmpeg -f avfoundation ^
-framerate 30 -i 0 ^
-c:v libx264 -c:a aac -b:a 128k ^
-ac 2 -crf 5 -preset veryfast -hls_time 1 ^
-g 30 -sc_threshold 0 -f hls -hls_init_time 1 ^
-hls_list_size 180 -hls_delete_threshold 180 ^
-hls_flags delete_segments -hls_start_number_source datetime stream.m3u8
I want to use FFMPEG to create another HLS stream stream-60.m3u8
in which the video is delayed by an arbitrary amount of seconds, e.g. 30s.
I tried:
ffmpeg -itsoffset 30 -i ./stream.m3u8 -c copy stream-60.m3u8
But the video delay is around 5s.