[FFmpeg-trac] #9402(avformat:new): FFmpeg 4.4 - Incorrect processing of media with timecode

FFmpeg trac at avcodec.org
Thu Sep 2 22:31:41 EEST 2021


#9402: FFmpeg 4.4 - Incorrect processing of media with timecode
-------------------------------------+------------------------------------
             Reporter:  Andrew       |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avformat
              Version:  unspecified  |               Resolution:
             Keywords:  timecode     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------
Description changed by Andrew:

Old description:

> '''Summary of the bug:''' Media with timecode metadata is processed
> incorrectly. For the sample media, which is ~6.5 seconds with basic
> timecode metadata output incorrectly has a duration of 10x/fps of 1/10th
> the original. This results in a file that plays "normally" for the
> expected duration and then persists the final frame for about 6 minutes.
>
> I have replicated this on multiple original files with timecode
> information. It does not happen on original files without timecode
> information. Unclear on the impact of other non A/V metadata/tracks.
>
> '''How to reproduce:''' Use of "-map" is required to recreate this issue.
> Example command:
> ffmpeg -i Earth_6s_59-94.mp4 -loglevel error -preset medium -map 0:v:0
> -c:v libx264 -profile:v main -x264opts qpmin=0 -bf 0 -pix_fmt yuv420p -g
> 50 -vsync 0 -tune film -map 0:a:0? -c:a libfdk_aac -b:a 128k -ac 2
> -movflags +faststart EarthOut.mp4

New description:

 '''Summary of the bug:''' Media with timecode metadata is processed
 incorrectly. For the sample media, which is ~6.5 seconds with basic
 timecode metadata output incorrectly has a duration of 10x/fps of 1/10th
 the original. This results in a file that plays "normally" for the
 expected duration and then persists the final frame for about 6 minutes.

 I have replicated this on multiple original files with timecode
 information. It does not happen on original files without timecode
 information. Unclear on the impact of other non A/V metadata/tracks.

 '''How to reproduce:''' Use of "-map" is required to recreate this issue.
 Example command:
 ffmpeg -i Earth_6s_59-94.mp4 -loglevel error -preset medium -map 0:v:0
 -c:v libx264 -profile:v main -x264opts qpmin=0 -bf 0 -pix_fmt yuv420p -g
 50 -vsync 0 -tune film -map 0:a:0? -c:a libfdk_aac -b:a 128k -ac 2
 -movflags +faststart EarthOut.mp4


 '''Example Source File:''' Unable to upload this to the form, so here's a
 link to a file that includes a timecode. Works great in 4.3.1, but 4.4 has
 bad output -
 https://drive.google.com/file/d/19uPF6_XaCaeKYAcDqSCKcDjuHImC7zQC/view?usp=sharing

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9402#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list