[FFmpeg-devel] [PATCH] libavformat/mpegtsenc.c -- correctly re-emit extradata ahead of IDR pictures
John Coiner
jpcoiner at gmail.com
Mon Jan 30 17:13:48 EET 2023
Hi Marton,
Thanks for pointing out
https://patchwork.ffmpeg.org/project/ffmpeg/patch/tencent_EE0E40DE9A569FE5AB454E6E700A2DA79A08@qq.com/
Adding prints to h264_mp4toannexb_bsf.c shows that it's not reached in
the sequence that reproduces bug 10148 so it seems to be unrelated.
I found a simpler process to reproduce bug 10148 with probably any input file:
ffmpeg -i <any_input_media> -vf scale=320:-1 -c:v libx264 -x264-params
aud=1 -c:a aac -f hls -method PUT
'https://upload.youtube.com/http_upload_hls?cid=<your-stream-key>©=0&nightly=1&file=out.m3u8'
... where 'youtube.com' can be any HTTP server that accepts PUT,
there's nothing specific to youtube here.
Without the fix, that produces an unjoinable and noncompliant upload
where all HLS media segments after the first are not independently
decodable. With the fix, all are independently decodable.
thanks!
John
More information about the ffmpeg-devel
mailing list