FFmpeg-trac
Threads by month
- ----- 2026 -----
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
June 2023
- 1 participants
- 463 discussions
24 Feb '25
#9555: Unknown content coding: br on https request
--------------------------------------+----------------------------------
Reporter: Mario101_HC | Type: defect
Status: new | Priority: normal
Component: undetermined | Version: 4.4.1
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+----------------------------------
Summary of the bug:
How to reproduce:
{{{
ffmpeg \
-report \
-user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36"
\
-headers "Accept: */*"$'\r\n'"Origin: https://hqq.tv"$'\r\n' \
-i
"https://3gd64u.cfeucdn.com/silverlight/secip/38769/3XZ9nnAHLsRKRR7ic579Zg/N…
/hls-vod-s006/flv/api/files/videos/2021/03/18/16160595861ypo5.mp4.m3u8" \
-c copy [Any file path]
ffmpeg version
built on ffmpeg version 4.4.1 - built with Apple clang version 12.0.0
(clang-1200.0.32.29)
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9555>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
1
11
24 Feb '25
#7158: Send "Accept-Encoding: gzip" on .m3u8 HTTP requests
----------------------------------+---------------------------------------
Reporter: DeHackEd | Type: enhancement
Status: new | Priority: normal
Component: avformat | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+---------------------------------------
Some live streaming servres (such as Youtube live feeds) can generate
multi-megabyte .m3u8 files when uncompressed and on long feeds. Accepting
gzip'd playlist files can both save bandwidth and dramatically improve
playback performance.
I've tested this by just using "Accept-Encoding: gzip" but I don't think
that would be an acceptable solution.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7158>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
1
5
#3705: FFPlay cannot seek H264 file
-------------------------------------+-------------------------------------
Reporter: | Type: defect
Aleksoid1978 | Priority: normal
Status: new | Version:
Component: ffplay | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
Sample: http://aleksoid.voserver.net/Sample/H264/no_recovery_ffmpeg.m2ts
Ticket #3652 fixed(decoding is good), but seek is not working
How to reproduce:
{{{
% ffplay.exe no_recovery_ffmpeg.m2ts
ffplay version N-63843-g6d40849 Copyright (c) 2003-2014 the FFmpeg
developers
built on Jun 8 2014 22:02:04 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-li
bass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-
libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-
libmp3lame --enable-libopencore-amrnb --
enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-
librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame -
-enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-
libx264 --enable-libx265 --enable-
libxavs --enable-libxvid --enable-decklink --enable-zlib
libavutil 52. 89.100 / 52. 89.100
libavcodec 55. 66.100 / 55. 66.100
libavformat 55. 42.101 / 55. 42.101
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 6.100 / 4. 6.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mpegts, from 'no_recovery_ffmpeg.m2ts': sq= 0B f=0/0
Duration: 00:01:58.20, start: 4328.545078, bitrate: 13543 kb/s
Program 1
Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448),
yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr,
90k tbn, 47.95 tbc
[h264 @ 0464ce20] mmco: unref short failure 49KB sq= 0B f=0/0
Last message repeated 1 times
[h264 @ 0464c600] mmco: unref short failure 0KB sq= 0B f=0/0
[h264 @ 0464c600] number of reference frames (0+4) exceeds max (3;
probably corrupt input), discarding one
[h264 @ 0464dc60] reference picture missing during reorder
[h264 @ 0464dc60] Missing reference picture, default is 65512
[h264 @ 045677c0] mmco: unref short failure
[h264 @ 045677c0] number of reference frames (0+4) exceeds max (3;
probably corrupt input), discarding one
[h264 @ 0464dc60] reference picture missing during reorder
[h264 @ 0464dc60] Missing reference picture, default is 65512
[h264 @ 0464dc60] reference picture missing during reorderB f=0/0
[h264 @ 0464dc60] Missing reference picture, default is 65512
[h264 @ 0464dc60] reference picture missing during reorder
[h264 @ 0464dc60] Missing reference picture, default is 65512
[h264 @ 0464ce20] mmco: unref short failure 433KB sq= 0B f=0/0
[h264 @ 0464ce20] number of reference frames (0+4) exceeds max (3;
probably corrupt input), discarding one
[h264 @ 04566700] mmco: unref short failure
[h264 @ 04566700] number of reference frames (0+4) exceeds max (3;
probably corrupt input), discarding one
[h264 @ 05540a80] Missing reference picture, default is 00B f=0/0
[h264 @ 0464c600] reference picture missing during reorder
Last message repeated 1 times
[h264 @ 0464c600] Missing reference picture, default is 0
Last message repeated 1 times
[h264 @ 05540a80] Missing reference picture, default is 0
[h264 @ 0464dc60] mmco: unref short failure
[h264 @ 0464c600] reference picture missing during reorder
Last message repeated 1 times
[h264 @ 0464c600] Missing reference picture, default is 0
Last message repeated 1 times
[h264 @ 04566d00] reference picture missing during reorder
[h264 @ 04566d00] Missing reference picture, default is 65540
[h264 @ 05540a80] Missing reference picture, default is 0
[h264 @ 0464c600] reference picture missing during reorderB f=0/0
Last message repeated 1 times
[h264 @ 0464c600] Missing reference picture, default is 0
Last message repeated 1 times
[h264 @ 04566d00] reference picture missing during reorder
[h264 @ 04566d00] Missing reference picture, default is 65540
[h264 @ 05540a80] Missing reference picture, default is 00B f=0/0
[h264 @ 0464c600] reference picture missing during reorder
Last message repeated 1 times
[h264 @ 0464c600] Missing reference picture, default is 0
Last message repeated 1 times
[h264 @ 04566d00] reference picture missing during reorder
[h264 @ 04566d00] Missing reference picture, default is 65540
[h264 @ 04566d00] reference picture missing during reorder
[h264 @ 04566d00] Missing reference picture, default is 65540
[h264 @ 0464c600] mmco: unref short failure 0KB sq= 0B f=0/0
[h264 @ 0464c600] number of reference frames (0+4) exceeds max (3;
probably corrupt input), discarding one
[h264 @ 0464dc60] mmco: unref short failure
[h264 @ 0464dc60] number of reference frames (0+4) exceeds max (3;
probably corrupt input), discarding one
[h264 @ 0464c600] mmco: unref short failure 424KB sq= 0B f=0/0
[h264 @ 0464ce20] mmco: unref short failure 29KB sq= 0B f=0/0
[h264 @ 045677c0] reference picture missing during reorder
[h264 @ 045677c0] Missing reference picture, default is 65542
[h264 @ 04567fe0] mmco: unref short failure
[h264 @ 045677c0] reference picture missing during reorder
[h264 @ 045677c0] Missing reference picture, default is 65542
[h264 @ 045677c0] reference picture missing during reorder
[h264 @ 045677c0] Missing reference picture, default is 65542
[h264 @ 045677c0] reference picture missing during reorderB f=0/0
[h264 @ 045677c0] Missing reference picture, default is 65542
}}}
After pressing RIGHT/LEFT key - picture freezes.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3705>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
1
17
#4888: 62bd8deef causes a regression in HEVC decoding
----------------------------------+--------------------------------------
Reporter: staalebk | Type: defect
Status: new | Priority: normal
Component: avcodec | Version: git-master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+--------------------------------------
Summary of the bug:
I'm trying to extract a thumb from the middle of a live TS, containing one
HEVC-stream.
Before this patch
I would always get a good looking thumb, but with this patch I would for
the most part get a mostly gray frame.
If I generates a few more thumbnails i see that it eventually spits out
the
same frame that ffmpeg before this patch produced as the first thumb, and
it looks OK.
However it is much more blocky than what the previous ffmpeg produced.
How to reproduce (b7baebb75 is the commit just before the patch):
{{{
% ./ffmpeg.b7baebb75 -an -i hevc_fail.ts -vframes 1 before_patch%d.jpg
ffmpeg version N-74781-gb7baebb Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.7 (Debian 4.7.2-5)
configuration:
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
[NULL @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
Input #0, mpegts, from 'hevc_fail.ts':
Duration: 00:00:02.50, start: 2237.360033, bitrate: 7740 kb/s
Stream #0:0[0x1e1]: Video: hevc (Main 10), yuv420p10le(tv), 1920x1080
[SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
[swscaler @ 0x1f9a140] deprecated pixel format used, make sure you did set
range correctly
Output #0, image2, to 'before_patch%d.jpg':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: mjpeg, yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9],
q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc
Metadata:
encoder : Lavc56.60.100 mjpeg
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[NULL @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x2052600] PPS id out of range: 0
[hevc @ 0x2052600] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x20609a0] PPS id out of range: 0
[hevc @ 0x20609a0] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x2072400] PPS id out of range: 0
[hevc @ 0x2072400] Error parsing NAL unit #2.
[hevc @ 0x2083e60] PPS id out of range: 0
[hevc @ 0x2083e60] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x20958c0] PPS id out of range: 0
[hevc @ 0x20958c0] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x20a7320] PPS id out of range: 0
[hevc @ 0x20a7320] Error parsing NAL unit #2.
[hevc @ 0x20b8d80] PPS id out of range: 0
[hevc @ 0x20b8d80] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x20ca7e0] PPS id out of range: 0
[hevc @ 0x20ca7e0] Error parsing NAL unit #2.
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20dc240] PPS id out of range: 0
[hevc @ 0x20dc240] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x2052600] PPS id out of range: 0
[hevc @ 0x2052600] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20609a0] PPS id out of range: 0
[hevc @ 0x20609a0] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x2072400] PPS id out of range: 0
[hevc @ 0x2072400] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x2083e60] PPS id out of range: 0
[hevc @ 0x2083e60] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20958c0] PPS id out of range: 0
[hevc @ 0x20958c0] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20a7320] PPS id out of range: 0
[hevc @ 0x20a7320] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20b8d80] PPS id out of range: 0
[hevc @ 0x20b8d80] Error parsing NAL unit #2.
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 7 times
frame= 1 fps=0.0 q=7.5 Lsize=N/A time=00:00:00.75 bitrate=N/A
video:108kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Conversion failed!
}}}
This gives me one image, before_patch1.jpg that looks completly fine.
http://kolbu.ws/~chiller/ffmpeg_bug/before_patch1.jpg
Now I do the same with the patch:
{{{
ffmpeg version N-74782-g62bd8de Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.7 (Debian 4.7.2-5)
configuration:
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
[NULL @ 0x1dc2780] PPS id out of range: 0
[hevc @ 0x1dc2780] PPS id out of range: 0
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
Input #0, mpegts, from 'hevc_fail.ts':
Duration: 00:00:02.50, start: 2237.360033, bitrate: 7740 kb/s
Stream #0:0[0x1e1]: Video: hevc (Main 10), yuv420p10le(tv), 1920x1080
[SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
[swscaler @ 0x1dec4e0] deprecated pixel format used, make sure you did set
range correctly
Output #0, image2, to 'with_patch%d.jpg':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: mjpeg, yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9],
q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc
Metadata:
encoder : Lavc56.60.100 mjpeg
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[hevc @ 0x1ea0760] Could not find ref with POC 12
[hevc @ 0x1ea0760] Could not find ref with POC 15
frame= 1 fps=0.0 q=5.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
video:69kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
}}}
This gives me one file with_patch1.jpg that looks garbaged.
http://kolbu.ws/~chiller/ffmpeg_bug/with_patch1.jpg
If I re-run the last command with -vframes 100 it generates 60 images,
where image 18 is almost identical to the before_patch1.jpg, except a bit
more blocky.
http://kolbu.ws/~chiller/ffmpeg_bug/with_patch18.jpg
Here is the link to the .ts-file:
http://kolbu.ws/~chiller/ffmpeg_bug/hevc_fail.ts
and all files involved can be viewed here:
http://kolbu.ws/~chiller/ffmpeg_bug/
(The most important ones are attached)
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4888>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
1
10
#9412: HEVC fails to seek on keyframe
-----------------------------------+--------------------------------------
Reporter: SuRGeoNix | Type: defect
Status: new | Priority: important
Component: avformat | Version: git-master
Keywords: hevc seek | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-----------------------------------+--------------------------------------
I'm using av_seek_frame and even if it returns 0 pb will not be at an
actual keyframe. The issues seems to happen with any HEVC/mpeg-ts format
container.
[Format ] MPEG-TS (MPEG-2 Transport Stream)/mpegts
[Video #0] hevc yuv420p10le 3840x2160 @ 59,94
[Audio #1-eng] aac fltp@0 48KHz stereo
I've tested also with ffplay which fails as well with the following output
{{{
C:\Users\Owner\Downloads\ffmpegmb\bin>ffplay.exe -ss 00:01:00
-analyzeduration 100000000000 -probesize 100000000000
"c:\root\down\samples\hd\LG Chess 4K Demo.ts"
ffplay version N-103543-gc655a734b1-20210907 Copyright (c) 2003-2021 the
FFmpeg developers
built with gcc 10-win32 (GCC) 20210408
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static
--pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64
--target-os=mingw32 --enable-gpl --enable-version3 --disable-debug
--disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2
--enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp
--enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl
--enable-libvmaf --enable-vulkan --disable-libxcb --disable-xlib --enable-
amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2
--disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r
--enable-libglslang --enable-libgme --enable-libass --enable-libbluray
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx
--enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e
--enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr
--enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d
--disable-libdrm --disable-vaapi --enable-libvidstab --enable-libx264
--enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg
--enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags=
--extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-
version=20210907
libavutil 57. 4.101 / 57. 4.101
libavcodec 59. 7.102 / 59. 7.102
libavformat 59. 5.100 / 59. 5.100
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 7.101 / 8. 7.101
libswscale 6. 1.100 / 6. 1.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
[mpegts @ 00000282a0400480] stream 0 : no PTS found at end of file,
duration not set
Input #0, mpegts, from 'c:\root\down\samples\hd\LG Chess 4K Demo.ts':
Duration: 00:01:52.92, start: 1.066722, bitrate: 62572 kb/s
Program 1
Stream #0:0[0x101]: Video: hevc (Main 10) ([36][0][0][0] / 0x0024),
yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9],
59.94 fps, 59.94 tbr, 90k tbn
Stream #0:1[0x102](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000
Hz, stereo, fltp, 383 kb/s
[aac @ 00000282a5beb040] channel element 0.0 is not allocated
[hevc @ 00000282a8b2d040] Could not find ref with POC 15 0B f=0/0
[hevc @ 00000282a8b2d040] Could not find ref with POC 13
[hevc @ 00000282a8b2d040] Could not find ref with POC 17
[hevc @ 00000282a8b2d040] Could not find ref with POC 21
[hevc @ 00000282a8b2d040] Could not find ref with POC 28 0B f=0/0
62.26 A-V: -0.025 fd= 3 aq= 47KB vq=11446KB sq= 0B f=0/0
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9412>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
1
21
#9346(undetermined:new): failed with error info "partial file" when input a mp4 file via unix socket
by FFmpeg 07 Feb '25
by FFmpeg 07 Feb '25
07 Feb '25
#9346: failed with error info "partial file" when input a mp4 file via unix socket
-------------------------------------+-------------------------------------
Reporter: ku7iex2E | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: unix-socket | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
failed when via unix socket, but nothing wrong when you input it just as a
normal file.
log of unix socket one:
{{{
% cat 1.mp4 | socat - unix-listen:/tmp/abcd &
% ffmpeg -report -i unix:///tmp/abcd -c copy out.mkv
}}}
{{{
ffmpeg started on 2021-07-24 at 23:10:04
Report written to "ffmpeg-20210724-231004.log"
Log level: 48
Command line:
ffmpeg -report -i unix:///tmp/abcd -c copy out.mkv
ffmpeg version n4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11.1.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-
stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto
--enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-
ladspa --enable-libaom --enable-libass --enable-libbluray --enable-
libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi
--enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx
--enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb
--enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-
libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-
libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-
libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-
libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg
--enable-nvdec --enable-nvenc --enable-shared --enable-version3
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a
report) with argument '1'.
Reading option '-i' ... matched as input url with argument
'unix:///tmp/abcd'.
Reading option '-c' ... matched as option 'c' (codec name) with argument
'copy'.
Reading option 'out.mkv' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url unix:///tmp/abcd.
Successfully parsed a group of options.
Opening an input file: unix:///tmp/abcd.
[NULL @ 0x55b6bf062440] Opening 'unix:///tmp/abcd' for reading
[unix @ 0x55b6bf0630c0] No default whitelist set
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] Format mov,mp4,m4a,3gp,3g2,mj2
probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] ISO: File Type Major Brand:
dash
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] Unknown dref type 0x206c7275
size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180002970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180004500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180006030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180007470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180009000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180010530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180011970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180013500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180015030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180016470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180018000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180019530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180020970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180022500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180024030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180025470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180027000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180028530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180029970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180031500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180033030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180034470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180036000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180037530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180038970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180040500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180042030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180043470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180045000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180046530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180047970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180049500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180051030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180052470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180054000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180055530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180056970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180058500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180060030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180061470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180063000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180064530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180065970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180067500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180069030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180070470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180072000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180073530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180074970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180076500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180078030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180079470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180081000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180082530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180083970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180085500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180087030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180088470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180090000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] found tfdt time 180091530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] Before
avformat_find_stream_info() pos: 543003 bytes read:543003 seeks:0
nb_streams:1
[h264 @ 0x55b6bf064480] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x55b6bf064480] nal_unit_type: 8(PPS), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] stream 0, offset 0x885: partial
file
[h264 @ 0x55b6bf064480] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x55b6bf064480] nal_unit_type: 8(PPS), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] Could not find codec parameters
for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1920x1080, 2 kb/s):
unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and
'probesize' (5000000) options
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] After
avformat_find_stream_info() pos: 543003 bytes read:543003 seeks:0 frames:0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'unix:///tmp/abcd':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
creation_time : 2021-07-23T10:29:14.000000Z
Duration: 00:33:21.03, bitrate: N/A
Stream #0:0(und), 0, 1/90000: Video: h264 (avc1 / 0x31637661), none,
1920x1080, 2 kb/s, 60 fps, 90k tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2021-07-23T10:29:14.000000Z
handler_name : ISO Media file produced by Google Inc. Created on:
07/23/2021.
vendor_id : [0][0][0][0]
Successfully opened the file.
Parsing a group of options: output url out.mkv.
Applying option c (codec name) with argument copy.
Successfully parsed a group of options.
Opening an output file: out.mkv.
[file @ 0x55b6bf06a380] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
[matroska @ 0x55b6bf08fec0] get_metadata_duration returned: 0
Output #0, matroska, to 'out.mkv':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
encoder : Lavf58.76.100
Stream #0:0(und), 0, 1/1000: Video: h264 (avc1 / 0x31637661), none,
1920x1080, q=2-31, 2 kb/s, 60 fps, 90k tbr, 1k tbn, 90k tbc (default)
Metadata:
creation_time : 2021-07-23T10:29:14.000000Z
handler_name : ISO Media file produced by Google Inc. Created on:
07/23/2021.
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless
if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b6bf062440] stream 0, offset 0x3aa3c:
partial file
unix:///tmp/abcd: Invalid data found when processing input
frame= 0 fps=0.0 q=-1.0 size= 1kB time=00:00:00.00 bitrate=N/A
speed=N/A
No more output streams to write to, finishing.
[matroska @ 0x55b6bf08fec0] end duration = 0
[matroska @ 0x55b6bf08fec0] stream 0 end duration = 0
frame= 0 fps=0.0 q=-1.0 Lsize= 1kB time=00:00:00.00 bitrate=N/A
speed= 0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Input file #0 (unix:///tmp/abcd):
Input stream #0:0 (video): 0 packets read (0 bytes);
Total: 0 packets (0 bytes) demuxed
Output file #0 (out.mkv):
Output stream #0:0 (video): 0 packets muxed (0 bytes);
Total: 0 packets (0 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x55b6bf06a5c0] Statistics: 0 seeks, 1 writeouts
[AVIOContext @ 0x55b6bf06b4c0] Statistics: 543003 bytes read, 0 seeks
}}}
as normal file:
{{{
% ffmpeg -report -i 1.mp4 -c copy out.mkv
}}}
{{{
ffmpeg started on 2021-07-24 at 23:18:12
Report written to "ffmpeg-20210724-231812.log"
Log level: 48
Command line:
ffmpeg -report -i 1.mp4 -c copy out.mkv
ffmpeg version n4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11.1.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-
stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto
--enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-
ladspa --enable-libaom --enable-libass --enable-libbluray --enable-
libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi
--enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx
--enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb
--enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-
libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-
libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-
libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-
libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg
--enable-nvdec --enable-nvenc --enable-shared --enable-version3
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a
report) with argument '1'.
Reading option '-i' ... matched as input url with argument '1.mp4'.
Reading option '-c' ... matched as option 'c' (codec name) with argument
'copy'.
Reading option 'out.mkv' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url 1.mp4.
Successfully parsed a group of options.
Opening an input file: 1.mp4.
[NULL @ 0x562e0207f440] Opening '1.mp4' for reading
[file @ 0x562e020800c0] Setting default whitelist 'file,crypto,data'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] Format mov,mp4,m4a,3gp,3g2,mj2
probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] ISO: File Type Major Brand:
dash
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] Unknown dref type 0x206c7275
size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180002970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180004500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180006030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180007470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180009000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180010530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180011970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180013500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180015030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180016470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180018000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180019530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180020970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180022500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180024030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180025470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180027000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180028530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180029970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180031500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180033030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180034470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180036000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180037530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180038970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180040500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180042030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180043470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180045000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180046530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180047970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180049500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180051030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180052470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180054000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180055530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180056970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180058500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180060030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180061470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180063000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180064530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180065970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180067500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180069030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180070470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180072000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180073530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180074970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180076500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180078030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180079470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180081000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180082530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180083970,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180085500,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180087030,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180088470,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180090000,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] found tfdt time 180091530,
using it for dts
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] Before
avformat_find_stream_info() pos: 538788 bytes read:335691 seeks:1
nb_streams:1
[h264 @ 0x562e02081440] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x562e02081440] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x562e02081440] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x562e02081440] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x562e02081440] nal_unit_type: 5(IDR), nal_ref_idc: 1
[h264 @ 0x562e02081440] Format yuv420p chosen by get_format().
[h264 @ 0x562e02081440] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 0x562e02081440] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 1
[h264 @ 0x562e02081440] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 1
[h264 @ 0x562e02081440] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 1
[h264 @ 0x562e02081440] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 1
[h264 @ 0x562e02081440] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 1
[h264 @ 0x562e02081440] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] rfps: 59.000000 0.009372
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] rfps: 59.000000 0.009372
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] rfps: 60.000000 0.000259
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] rfps: 120.000000 0.001036
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] rfps: 240.000000 0.004144
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] rfps: 59.940060 0.000285
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] rfps: 59.940060 0.000285
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e0207f440] After
avformat_find_stream_info() pos: 325855 bytes read:671894 seeks:2
frames:21
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
creation_time : 2021-07-23T10:29:14.000000Z
Duration: 00:33:21.03, start: 2000.033000, bitrate: 2 kb/s
Stream #0:0(und), 21, 1/90000: Video: h264 (Main) (avc1 / 0x31637661),
yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 2 kb/s, 60
fps, 60 tbr, 90k tbn, 120 tbc (default)
Metadata:
creation_time : 2021-07-23T10:29:14.000000Z
handler_name : ISO Media file produced by Google Inc. Created on:
07/23/2021.
vendor_id : [0][0][0][0]
Successfully opened the file.
Parsing a group of options: output url out.mkv.
Applying option c (codec name) with argument copy.
Successfully parsed a group of options.
Opening an output file: out.mkv.
[file @ 0x562e021a7b40] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
[matroska @ 0x562e020a9140] get_metadata_duration returned: 0
Output #0, matroska, to 'out.mkv':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
encoder : Lavf58.76.100
Stream #0:0(und), 0, 1/1000: Video: h264 (Main) (avc1 / 0x31637661),
yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 2
kb/s, 60 fps, 60 tbr, 1k tbn, 90k tbc (default)
Metadata:
creation_time : 2021-07-23T10:29:14.000000Z
handler_name : ISO Media file produced by Google Inc. Created on:
07/23/2021.
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless
if it occurs once at the start per stream)
[matroska @ 0x562e020a9140] Starting new cluster with timestamp 0 at
offset 813 bytes
[matroska @ 0x562e020a9140] Writing block of size 237899 with pts 0, dts
0, duration 17 at relative offset 9 in cluster at offset 813. TrackNumber
1, keyframe 1
frame= 1 fps=0.0 q=-1.0 size= 1kB time=00:00:00.00
bitrate=6504.0kbits/s speed=N/A
[matroska @ 0x562e020a9140] Writing block of size 3299 with pts 17, dts
17, duration 17 at relative offset 237916 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 3590 with pts 34, dts
34, duration 17 at relative offset 241222 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5085 with pts 50, dts
50, duration 17 at relative offset 244819 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5473 with pts 67, dts
67, duration 17 at relative offset 249911 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 450 with pts 84, dts 84,
duration 17 at relative offset 255391 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5351 with pts 100, dts
100, duration 17 at relative offset 255848 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 2725 with pts 117, dts
117, duration 17 at relative offset 261206 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5392 with pts 134, dts
134, duration 17 at relative offset 263938 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 4868 with pts 150, dts
150, duration 17 at relative offset 269337 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 6532 with pts 167, dts
167, duration 17 at relative offset 274212 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5220 with pts 184, dts
184, duration 17 at relative offset 280751 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 4625 with pts 200, dts
200, duration 17 at relative offset 285978 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 6163 with pts 217, dts
217, duration 17 at relative offset 290610 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 4404 with pts 234, dts
234, duration 17 at relative offset 296780 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 2283 with pts 250, dts
250, duration 17 at relative offset 301191 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5051 with pts 267, dts
267, duration 17 at relative offset 303481 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 2612 with pts 284, dts
284, duration 17 at relative offset 308539 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 4273 with pts 300, dts
300, duration 17 at relative offset 311158 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5313 with pts 317, dts
317, duration 17 at relative offset 315438 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 906 with pts 334, dts
334, duration 17 at relative offset 320758 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5078 with pts 350, dts
350, duration 17 at relative offset 321671 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 6375 with pts 367, dts
367, duration 17 at relative offset 326756 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 4300 with pts 384, dts
384, duration 17 at relative offset 333138 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5380 with pts 400, dts
400, duration 17 at relative offset 337445 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5098 with pts 417, dts
417, duration 17 at relative offset 342832 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 6783 with pts 434, dts
434, duration 17 at relative offset 347937 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 10311 with pts 450, dts
450, duration 17 at relative offset 354727 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 8328 with pts 467, dts
467, duration 17 at relative offset 365045 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 6470 with pts 484, dts
484, duration 17 at relative offset 373380 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5430 with pts 500, dts
500, duration 17 at relative offset 379857 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5271 with pts 517, dts
517, duration 17 at relative offset 385294 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 4991 with pts 534, dts
534, duration 17 at relative offset 390572 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 6380 with pts 550, dts
550, duration 17 at relative offset 395570 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5495 with pts 567, dts
567, duration 17 at relative offset 401957 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 4340 with pts 584, dts
584, duration 17 at relative offset 407459 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5432 with pts 600, dts
600, duration 17 at relative offset 411806 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5549 with pts 617, dts
617, duration 17 at relative offset 417245 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 4001 with pts 634, dts
634, duration 17 at relative offset 422801 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 3842 with pts 650, dts
650, duration 17 at relative offset 426809 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 3661 with pts 667, dts
667, duration 17 at relative offset 430658 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5283 with pts 684, dts
684, duration 17 at relative offset 434326 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5755 with pts 700, dts
700, duration 17 at relative offset 439616 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5392 with pts 717, dts
717, duration 17 at relative offset 445378 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 3386 with pts 734, dts
734, duration 17 at relative offset 450777 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 6487 with pts 750, dts
750, duration 17 at relative offset 454170 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 6699 with pts 767, dts
767, duration 17 at relative offset 460664 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5304 with pts 784, dts
784, duration 17 at relative offset 467370 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 6309 with pts 800, dts
800, duration 17 at relative offset 472681 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 6159 with pts 817, dts
817, duration 17 at relative offset 478997 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 4314 with pts 834, dts
834, duration 17 at relative offset 485163 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 4979 with pts 850, dts
850, duration 17 at relative offset 489484 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5891 with pts 867, dts
867, duration 17 at relative offset 494470 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 4320 with pts 884, dts
884, duration 17 at relative offset 500368 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 6222 with pts 900, dts
900, duration 17 at relative offset 504695 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 3915 with pts 917, dts
917, duration 17 at relative offset 510924 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5739 with pts 934, dts
934, duration 17 at relative offset 514846 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 5626 with pts 950, dts
950, duration 17 at relative offset 520592 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 4426 with pts 967, dts
967, duration 17 at relative offset 526225 in cluster at offset 813.
TrackNumber 1, keyframe 0
[matroska @ 0x562e020a9140] Writing block of size 4215 with pts 984, dts
984, duration 17 at relative offset 530658 in cluster at offset 813.
TrackNumber 1, keyframe 0
No more output streams to write to, finishing.
[matroska @ 0x562e020a9140] end duration = 1001
[matroska @ 0x562e020a9140] stream 0 end duration = 1001
frame= 60 fps=0.0 q=-1.0 Lsize= 523kB time=00:00:00.98
bitrate=4351.1kbits/s speed= 437x
video:522kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.239124%
Input file #0 (1.mp4):
Input stream #0:0 (video): 60 packets read (534450 bytes);
Total: 60 packets (534450 bytes) demuxed
Output file #0 (out.mkv):
Output stream #0:0 (video): 60 packets muxed (534450 bytes);
Total: 60 packets (534450 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x562e021aba40] Statistics: 2 seeks, 4 writeouts
[AVIOContext @ 0x562e02088480] Statistics: 876513 bytes read, 2 seeks
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9346>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
1
13
06 Feb '25
#10161: MXF/FFV1 stream copy transmux discards content
-------------------------------------+-------------------------------------
Reporter: Jérôme | Type: defect
Martinez |
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Using a MXF/FFV1 file e.g. from
https://www.digitizationguidelines.gov/guidelines/MXF_app_sampleFiles.html#…
, a conversion to any format (also again FFV1) is fine (frames are
demuxed, decoded, encoded, muxed) but a pure demux with stream copy
silently discards all frames, the output has the FFV1 header but 0 frame.
Tested with Git 2023-01-29:
{{{
PS > .\ffmpeg.exe -i
RDD48_LakeJulianP1060231_50i_1920_MKV_FFV1_422_8_ag_20220517.mxf
RDD48_LakeJulianP1060231_50i_1920_MKV_FFV1_422_8_ag_20220517.avi
ffmpeg version N-109716-g757218564d-20230129 Copyright (c) 2000-2023 the
FFmpeg developers
built with gcc 12.2.0 (crosstool-NG 1.25.0.90_cf9beb1)
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static
--pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64
--target-os=mingw32 --enable-gpl --enable-version3 --disable-debug
--disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2
--enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp
--enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl
--disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib
--enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth
--enable-chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-
aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme
--enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl
--enable-libmp3lame --enable-libopus --enable-librist --enable-libssh
--enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2
--disable-libmfx --enable-libvpl --enable-openal --enable-libopencore-
amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
--enable-libopenmpt --enable-librav1e --enable-librubberband --enable-
schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1
--enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi
--enable-libvidstab --enable-vulkan --enable-libshaderc --enable-
libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-
libxvid --enable-libzimg --enable-libzvbi --extra-
cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread
--extra-ldexeflags= --extra-libs=-lgomp --extra-version=20230129
libavutil 57. 44.100 / 57. 44.100
libavcodec 59. 59.100 / 59. 59.100
libavformat 59. 36.100 / 59. 36.100
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 55.100 / 8. 55.100
libswscale 6. 8.112 / 6. 8.112
libswresample 4. 9.100 / 4. 9.100
libpostproc 56. 7.100 / 56. 7.100
[mxf @ 00000249c1caea00] could not resolve file descriptor strong ref
Last message repeated 17 times
Guessed Channel Layout for Input Stream #0.5 : mono
Input #0, mxf, from
'RDD48_LakeJulianP1060231_50i_1920_MKV_FFV1_422_8_ag_20220517.mxf':
Metadata:
operational_pattern_ul: 060e2b34.04010101.0d010201.01010900
uid : 0c0fd1ba-b4fa-49f2-a488-6a844a00df0d
product_uid : b658a3f9-280d-463c-9c12-fd6dac6e1213
company_name : Metaglue Corporation
product_name : MXFixer File Wrapper
product_version : V5.2.4(22516)
product_version_num: 5.2.4.22516.1
toolkit_version_num: 2.65.4.22516.1
application_platform: MXFplus(Windows 10 ( build 19044 ) (64-bit))
(with Metaglue Extensions)(BUF) built May 16 2022 11:47:21
modification_date: 2022-05-17T19:43:45.204000Z
generation_uid : b1297cac-eab2-4c76-a0ed-7efd583a3a6a
material_package_umid:
0x060A2B340101010501010D2013000000256C81631F7E4229A6E5AE305A0EB56C
material_package_name: MXFWrap Clip
timecode : 01:00:00:00
Duration: 00:00:19.96, start: 0.000000, bitrate: 312497 kb/s
Stream #0:0: Video: ffv1, yuv422p(bottom first), 1920x1080, SAR 1:1 DAR
16:9, 25 tbr, 25 tbn
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : V1
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
Stream #0:1: Data: none
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : D1
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
data_type : vbi_vanc_smpte_436M
Stream #0:2(eng): Audio: pcm_s24le, 48000 Hz, stereo, s32 (24 bit), 2304
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : A1
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
Stream #0:3(spa): Audio: pcm_s24le, 48000 Hz, stereo, s32 (24 bit), 2304
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : A2
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
Stream #0:4: Audio: pcm_s24le, 48000 Hz, stereo, s32 (24 bit), 2304 kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : A3
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
Stream #0:5: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : A4
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
Stream mapping:
Stream #0:0 -> #0:0 (ffv1 (native) -> mpeg4 (native))
Stream #0:2 -> #0:1 (pcm_s24le (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, avi, to
'RDD48_LakeJulianP1060231_50i_1920_MKV_FFV1_422_8_ag_20220517.avi':
Metadata:
operational_pattern_ul: 060e2b34.04010101.0d010201.01010900
uid : 0c0fd1ba-b4fa-49f2-a488-6a844a00df0d
product_uid : b658a3f9-280d-463c-9c12-fd6dac6e1213
ISMP : 01:00:00:00
material_package_name: MXFWrap Clip
material_package_umid:
0x060A2B340101010501010D2013000000256C81631F7E4229A6E5AE305A0EB56C
product_version_num: 5.2.4.22516.1
toolkit_version_num: 2.65.4.22516.1
application_platform: MXFplus(Windows 10 ( build 19044 ) (64-bit))
(with Metaglue Extensions)(BUF) built May 16 2022 11:47:21
modification_date: 2022-05-17T19:43:45.204000Z
generation_uid : b1297cac-eab2-4c76-a0ed-7efd583a3a6a
ISFT : Lavf59.36.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p(tv, progressive),
1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : V1
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
encoder : Lavc59.59.100 mpeg4
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
Stream #0:1(eng): Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo,
s32p
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : A1
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
encoder : Lavc59.59.100 libmp3lame
frame= 499 fps= 59 q=31.0 Lsize= 5431kB time=00:00:19.94
bitrate=2230.5kbits/s speed=2.37x
video:5077kB audio:312kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.765648%
PS > .\ffmpeg.exe -i
RDD48_LakeJulianP1060231_50i_1920_MKV_FFV1_422_8_ag_20220517.mxf -c copy
RDD48_LakeJulianP1060231_50i_1920_MKV_FFV1_422_8_ag_20220517_c_copy.avi
ffmpeg version N-109716-g757218564d-20230129 Copyright (c) 2000-2023 the
FFmpeg developers
built with gcc 12.2.0 (crosstool-NG 1.25.0.90_cf9beb1)
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static
--pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64
--target-os=mingw32 --enable-gpl --enable-version3 --disable-debug
--disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2
--enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp
--enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl
--disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib
--enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth
--enable-chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-
aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme
--enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl
--enable-libmp3lame --enable-libopus --enable-librist --enable-libssh
--enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2
--disable-libmfx --enable-libvpl --enable-openal --enable-libopencore-
amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
--enable-libopenmpt --enable-librav1e --enable-librubberband --enable-
schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1
--enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi
--enable-libvidstab --enable-vulkan --enable-libshaderc --enable-
libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-
libxvid --enable-libzimg --enable-libzvbi --extra-
cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread
--extra-ldexeflags= --extra-libs=-lgomp --extra-version=20230129
libavutil 57. 44.100 / 57. 44.100
libavcodec 59. 59.100 / 59. 59.100
libavformat 59. 36.100 / 59. 36.100
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 55.100 / 8. 55.100
libswscale 6. 8.112 / 6. 8.112
libswresample 4. 9.100 / 4. 9.100
libpostproc 56. 7.100 / 56. 7.100
[mxf @ 0000028800a7eb00] could not resolve file descriptor strong ref
Last message repeated 17 times
Guessed Channel Layout for Input Stream #0.5 : mono
Input #0, mxf, from
'RDD48_LakeJulianP1060231_50i_1920_MKV_FFV1_422_8_ag_20220517.mxf':
Metadata:
operational_pattern_ul: 060e2b34.04010101.0d010201.01010900
uid : 0c0fd1ba-b4fa-49f2-a488-6a844a00df0d
product_uid : b658a3f9-280d-463c-9c12-fd6dac6e1213
company_name : Metaglue Corporation
product_name : MXFixer File Wrapper
product_version : V5.2.4(22516)
product_version_num: 5.2.4.22516.1
toolkit_version_num: 2.65.4.22516.1
application_platform: MXFplus(Windows 10 ( build 19044 ) (64-bit))
(with Metaglue Extensions)(BUF) built May 16 2022 11:47:21
modification_date: 2022-05-17T19:43:45.204000Z
generation_uid : b1297cac-eab2-4c76-a0ed-7efd583a3a6a
material_package_umid:
0x060A2B340101010501010D2013000000256C81631F7E4229A6E5AE305A0EB56C
material_package_name: MXFWrap Clip
timecode : 01:00:00:00
Duration: 00:00:19.96, start: 0.000000, bitrate: 312497 kb/s
Stream #0:0: Video: ffv1, yuv422p(bottom first), 1920x1080, SAR 1:1 DAR
16:9, 25 tbr, 25 tbn
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : V1
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
Stream #0:1: Data: none
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : D1
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
data_type : vbi_vanc_smpte_436M
Stream #0:2(eng): Audio: pcm_s24le, 48000 Hz, stereo, s32 (24 bit), 2304
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : A1
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
Stream #0:3(spa): Audio: pcm_s24le, 48000 Hz, stereo, s32 (24 bit), 2304
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : A2
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
Stream #0:4: Audio: pcm_s24le, 48000 Hz, stereo, s32 (24 bit), 2304 kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : A3
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
Stream #0:5: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : A4
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
Output #0, avi, to
'RDD48_LakeJulianP1060231_50i_1920_MKV_FFV1_422_8_ag_20220517_c_copy.avi':
Metadata:
operational_pattern_ul: 060e2b34.04010101.0d010201.01010900
uid : 0c0fd1ba-b4fa-49f2-a488-6a844a00df0d
product_uid : b658a3f9-280d-463c-9c12-fd6dac6e1213
ISMP : 01:00:00:00
material_package_name: MXFWrap Clip
material_package_umid:
0x060A2B340101010501010D2013000000256C81631F7E4229A6E5AE305A0EB56C
product_version_num: 5.2.4.22516.1
toolkit_version_num: 2.65.4.22516.1
application_platform: MXFplus(Windows 10 ( build 19044 ) (64-bit))
(with Metaglue Extensions)(BUF) built May 16 2022 11:47:21
modification_date: 2022-05-17T19:43:45.204000Z
generation_uid : b1297cac-eab2-4c76-a0ed-7efd583a3a6a
ISFT : Lavf59.36.100
Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p(bottom first),
1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 tbr, 25 tbn
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : V1
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
Stream #0:1(eng): Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, s32 (24 bit), 2304 kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D20130000002E0B39D1937148F884B4BAD10C1E1663
file_package_name: File Package: SMPTE RPxxx frame wrapping of FFV1
video essence
track_name : A1
reel_umid :
0x060A2B340101010501010D2013000000A7C8CFC27C64497D8FFA2CB623DF3D6F
timecode : 01:00:00:00
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 0 fps=0.0 q=-1.0 Lsize= 5635kB time=00:00:19.92
bitrate=2317.6kbits/s speed=48.7x
video:0kB audio:5614kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.386781%
PS > dir RDD48_LakeJulianP1060231_50i_1920_MKV_FFV1_422_8_ag_20220517*
Répertoire : C:\Users\jerom\Downloads\RDD48_FFV1_MXF
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 30/01/2023 10:16 5560844
RDD48_LakeJulianP1060231_50i_1920_MKV_FFV1_422_8_ag_20220517.avi
-a---- 17/05/2022 22:25 779681924
RDD48_LakeJulianP1060231_50i_1920_MKV_FFV1_422_8_ag_20220517.mxf
-a---- 30/01/2023 10:17 350112
RDD48_LakeJulianP1060231_50i_1920_MKV_FFV1_422_8_ag_20220517_c_copy.avi
}}}
The last file should have a size of 780 MB (copy of the FFV1 frames).
behavior is a bit weird:
- using ` -c:a copy` is fine (video frames are are transcoded; audio
frames are transmuxed)
- using ` -c:v copy` discards video frames and transcode audio (audio
transcode is expected)
- using ` -c copy` discards video frames and transcode audio (audio
transcode is **not** expected)
So audio transmux behavior is also impacted, this is not the case with
e.g. https://samples.ffmpeg.org/MXF/Quantel%20widescreen%20test.mxf (using
` -c copy` does transmux for both video and audio)
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10161>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
1
2
29 Jan '25
#4954: joint stereo indicator missing from mp3 headers
-------------------------------------+-------------------------------------
Reporter: pico4743 | Type: defect
Status: new | Priority: normal
Component: avformat | Version: git-
Keywords: mp3 | master
joint_stereo header | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
mp3 header files created by ffmpeg do not specify a channel mode of
joint_stereo when joint_stereo is performed by libmp3lame.
Details:
libmp3lame provides a switch (-joint_stereo) to select either joint_stereo
or plain stereo. The interface to lame works correctly so that the audio
frames are fine, but ffmpeg doesn't use the lame library to write the mp3
header.
Instead libavformat/mp3enc.c sets the channel mode to either MONO or
STEREO based on how many channels there are.
{{{
switch (codec->channels) {
case 1: channels = MPA_MONO;
break;
case 2: channels = MPA_STEREO;
break;
default: av_log(s, AV_LOG_WARNING, "Unsupported number of channels, "
"not writing Xing header.\n");
return -1;
}
...
header |= channels << 6;
}}}
MPA_JSTEREO should be used when appropriate. The repair doesn't seem
simple, but I'd be willing to help if someone wants to discuss approaches.
How to reproduce:
{{{
use a version with libmp3lame enabled
% ffmpeg -i input.mp3 -joint_stereo 1 output.mp3
The relevant bits of the output.mp3 header will be 0 == MPA_STEREO
ffmpeg version -- git master fb4d350
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4954>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
1
19
#9814(undetermined:new): time_scale / num_units_in_tick is not infinite precision
by FFmpeg 28 Jan '25
by FFmpeg 28 Jan '25
28 Jan '25
#9814: time_scale / num_units_in_tick is not infinite precision
-------------------------------------+-------------------------------------
Reporter: Balling | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug: as you can read here https://www.ffmpeg.org/ffmpeg-
bitstream-filters.html#h264_005fmetadata H.264 has time_scale /
num_units_in_tick in the VUI parameters. That is how one writes frame rate
(besides timing SEI that is) in Annex B files. The problem is that (not
touching very broken mkv here with only ms precision and only PTS in the
form of duration, no DTS) when you go to mp4 you are supposed to make it
CFR and use the nice tbn. But even if you will use vfrdet on annex b file
it will not be CFR. This sample in fact has even fixed_frame_rate_flag
set! So this is a bug, ffplay also cannot even seek in this annex b file!
Sample is here: https://github.com/wang-bin/QtAV/files/1132086/example.zip
How to reproduce:
{{{
ffmpeg -i example.h264 -vf vfrdet -f null NUL
ffmpeg version N-107098-g4d45f5acbd-20220613 Copyright (c) 2000-2022 the
FFmpeg developers
built with gcc 11.2.0 (crosstool-NG 1.24.0.533_681aaef)
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static
--pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64
--target-os=mingw32 --enable-gpl --enable-version3 --disable-debug
--enable-shared --disable-static --disable-w32threads --enable-pthreads
--enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype
--enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig
--enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf
--disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-
libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2
--disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r
--enable-libgme --enable-libass --enable-libbluray --enable-libjxl
--enable-libmp3lame --enable-libopus --enable-librist --enable-libtheora
--enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
--enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-
librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-
libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d
--disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan
--enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265
--enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi
--extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-
ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-
version=20220613
libavutil 57. 26.100 / 57. 26.100
libavcodec 59. 33.100 / 59. 33.100
libavformat 59. 24.100 / 59. 24.100
libavdevice 59. 6.100 / 59. 6.100
libavfilter 8. 40.100 / 8. 40.100
libswscale 6. 6.100 / 6. 6.100
libswresample 4. 6.100 / 4. 6.100
libpostproc 56. 5.100 / 56. 5.100
Input #0, h264, from 'example.h264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive),
1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1200k tbn
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Output #0, null, to 'NUL':
Metadata:
encoder : Lavf59.24.100
Stream #0:0: Video: wrapped_avframe, yuv420p(tv, bt709, progressive),
1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn
Metadata:
encoder : Lavc59.33.100 wrapped_avframe
frame= 1082 fps=912 q=-0.0 Lsize=N/A time=00:00:36.10 bitrate=N/A
speed=30.4x
video:499kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
[Parsed_vfrdet_0 @ 000001a582b7f900] VFR:0.799260 (864/217) min: 40040
max: 40041 avg: 40040
}}}
What it should be as if -r 29.97002997 was before input.
In fact Mediainfo can see all of it (both the timetamps of mp4 and
time_scale / num_units_in_tick) in -c copy to mp4 with -r 29.97002997 and
without.
There were quite a lot of simliar bugs in that regard, but Annex B to mp4
is a clear case and is a clear bug.
Patches should be submitted to the ffmpeg-devel mailing list and not this
bug tracker.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9814>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
1
32
26 Jan '25
#8515: vc1_parser erroneously flagged every packet as keyframe
-------------------------------------+-------------------------------------
Reporter: HolyWu | Type: defect
Status: new | Priority: normal
Component: avcodec | Version: git-
| master
Keywords: vc-1 parser | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Since the commit of
https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/701e8b42e12ad625c64ceae2252…,
vc-1 parser erroneously flagged every packet as keyframe. If you recompile
the tool with that commit reverted, you will get the expected result.
The first shows the result with that commit. The second shows the result
without that commit.
{{{
$ ffprobe -pretty -show_packets vc1_sample.mkv
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=959
dts_time=0:00:00.959000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=9.016602 Kibyte
pos=5494
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1001
dts_time=0:00:01.001000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=14734
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1043
dts_time=0:00:01.043000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=16302
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1084
dts_time=0:00:01.084000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=17869
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1126
dts_time=0:00:01.126000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=17881
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1168
dts_time=0:00:01.168000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=19449
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1210
dts_time=0:00:01.210000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=21016
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1251
dts_time=0:00:01.251000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=21028
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1293
dts_time=0:00:01.293000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=22596
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1335
dts_time=0:00:01.335000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=24163
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1376
dts_time=0:00:01.376000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=24175
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1418
dts_time=0:00:01.418000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=25743
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1460
dts_time=0:00:01.460000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=27310
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1502
dts_time=0:00:01.502000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=27322
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1543
dts_time=0:00:01.543000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=28890
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1585
dts_time=0:00:01.585000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=30457
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1627
dts_time=0:00:01.627000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=30469
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1668
dts_time=0:00:01.668000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=32037
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1710
dts_time=0:00:01.710000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=33604
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1752
dts_time=0:00:01.752000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=33616
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1793
dts_time=0:00:01.793000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=35184
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1835
dts_time=0:00:01.835000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=36751
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1877
dts_time=0:00:01.877000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=36763
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1919
dts_time=0:00:01.919000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=38331
flags=K_
[/PACKET]
ffprobe version 4.2.git Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 9.2.0 (Rev2, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --disable-doc --disable-
debug
libavutil 56. 39.100 / 56. 39.100
libavcodec 58. 68.100 / 58. 68.100
libavformat 58. 38.100 / 58. 38.100
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 75.100 / 7. 75.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, matroska,webm, from 'vc1_sample.mkv':
Metadata:
encoder : libebml v1.3.10 + libmatroska v1.5.2
creation_time : 2020-02-09T07:04:30.000000Z
Duration: 00:00:01.00, bitrate: 321 kb/s
Stream #0:0: Video: vc1 (Advanced) (WVC1 / 0x31435657),
yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr,
1k tbn, 47.95 tbc (default)
Metadata:
BPS-eng : 273405
DURATION-eng : 00:00:01.002000000
NUMBER_OF_FRAMES-eng: 24
NUMBER_OF_BYTES-eng: 34244
_STATISTICS_WRITING_APP-eng: mkvmerge v43.0.0 ('The Quartermaster')
64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-02-09 07:04:30
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
}}}
{{{
$ ffprobe -pretty -show_packets vc1_sample.mkv
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=959
dts_time=0:00:00.959000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=9.016602 Kibyte
pos=5494
flags=K_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1001
pts_time=0:00:01.001000
dts=1001
dts_time=0:00:01.001000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=14734
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1043
pts_time=0:00:01.043000
dts=1043
dts_time=0:00:01.043000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=16302
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1084
dts_time=0:00:01.084000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=17869
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1126
pts_time=0:00:01.126000
dts=1126
dts_time=0:00:01.126000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=17881
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1168
pts_time=0:00:01.168000
dts=1168
dts_time=0:00:01.168000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=19449
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1210
dts_time=0:00:01.210000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=21016
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1251
pts_time=0:00:01.251000
dts=1251
dts_time=0:00:01.251000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=21028
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1293
pts_time=0:00:01.293000
dts=1293
dts_time=0:00:01.293000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=22596
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1335
dts_time=0:00:01.335000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=24163
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1376
pts_time=0:00:01.376000
dts=1376
dts_time=0:00:01.376000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=24175
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1418
pts_time=0:00:01.418000
dts=1418
dts_time=0:00:01.418000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=25743
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1460
dts_time=0:00:01.460000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=27310
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1502
pts_time=0:00:01.502000
dts=1502
dts_time=0:00:01.502000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=27322
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1543
pts_time=0:00:01.543000
dts=1543
dts_time=0:00:01.543000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=28890
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1585
dts_time=0:00:01.585000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=30457
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1627
pts_time=0:00:01.627000
dts=1627
dts_time=0:00:01.627000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=30469
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1668
pts_time=0:00:01.668000
dts=1668
dts_time=0:00:01.668000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=32037
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1710
dts_time=0:00:01.710000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=33604
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1752
pts_time=0:00:01.752000
dts=1752
dts_time=0:00:01.752000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=33616
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1793
pts_time=0:00:01.793000
dts=1793
dts_time=0:00:01.793000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=35184
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=1835
dts_time=0:00:01.835000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=5 byte
pos=36751
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1877
pts_time=0:00:01.877000
dts=1877
dts_time=0:00:01.877000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=36763
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=1919
pts_time=0:00:01.919000
dts=1919
dts_time=0:00:01.919000
duration=41
duration_time=0:00:00.041000
convergence_duration=N/A
convergence_duration_time=N/A
size=1.524414 Kibyte
pos=38331
flags=__
[/PACKET]
ffprobe version 4.2.git Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 9.2.0 (Rev2, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --disable-doc --disable-
debug
libavutil 56. 39.100 / 56. 39.100
libavcodec 58. 68.100 / 58. 68.100
libavformat 58. 38.100 / 58. 38.100
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 75.100 / 7. 75.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, matroska,webm, from 'vc1_sample.mkv':
Metadata:
encoder : libebml v1.3.10 + libmatroska v1.5.2
creation_time : 2020-02-09T07:04:30.000000Z
Duration: 00:00:01.00, bitrate: 321 kb/s
Stream #0:0: Video: vc1 (Advanced) (WVC1 / 0x31435657),
yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr,
1k tbn, 47.95 tbc (default)
Metadata:
BPS-eng : 273405
DURATION-eng : 00:00:01.002000000
NUMBER_OF_FRAMES-eng: 24
NUMBER_OF_BYTES-eng: 34244
_STATISTICS_WRITING_APP-eng: mkvmerge v43.0.0 ('The Quartermaster')
64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-02-09 07:04:30
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8515>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
1
8