Opened 8 months ago

Closed 7 months ago

#10886 closed defect (fixed)

Transcoding video to x264/x265 results in 1 second of frozen frames

Reported by: Yuri Gorokhov Owned by:
Priority: important Component: avfilter
Version: git-master Keywords:
Cc: Blocked By:
Blocking: 7.0 Reproduced by developer: yes
Analyzed by developer: no

Description (last modified by Yuri Gorokhov)

Summary of the bug:

Transcoding to x264 on git-master introduces frozen frames.
Exact same steps on 6.0.1 produces correct video (no frozen frames)

Repro-steps:
Download input video: https://github.com/yurigorokhov/ffmpeg_bug/raw/main/input-1fps.mov

The input video is at 1fps (that is expected)

Run ffmpeg encoding command:

ffmpeg -y -ignore_editlist true \
   -i input-1fps.mov -r 30 \
   -vcodec libx264 \
   -x264opts keyint=30:scenecut=0 \
   -crf 34 \
   -vf "setpts=(N/(30*TB)),format=pix_fmts=yuv420p" \
   output.mov

with x265:

ffmpeg -y -ignore_editlist true \
   -i input-1fps.mov -r 30 \
   -c:v libx265 -crf 28 -b:v 2.8M -tag:v hvc1 \
   -vf "setpts=(N/(30*TB)),format=pix_fmts=yuv420p" \
   output.mov

Please note the frozen frames in the output video.

Further details, repro step and sample videos are located here: https://github.com/yurigorokhov/ffmpeg_bug

ffmpeg version 6.1.1
built on alpine linux

Change History (12)

comment:1 by Gyan, 8 months ago

Blocking: 7.0
Component: undeterminedffmpeg
Status: newopen
Version: 6.1git-master

When filing a bug report, include the description of the problem, the steps and the complete command lines in the body of the ticket. Samples should ideally be attached to the ticket, but if they're too large, add direct links.

That said, I'm able to reproduce this with current git master, which is the only acceptable version for bug reports. You can ignore the original source, and simply use waves-6-1-1-tmp.mov as the source with both 6.0 and current git in order to demonstrate the regression.

I suggest you edit the ticket with these changes.

comment:2 by Yuri Gorokhov, 8 months ago

Description: modified (diff)

comment:3 by Yuri Gorokhov, 8 months ago

Thanks Gyan, I have updated the ticket with simpler repro steps

comment:4 by Yuri Gorokhov, 8 months ago

Description: modified (diff)

comment:5 by Yuri Gorokhov, 8 months ago

Description: modified (diff)

comment:6 by Yuri Gorokhov, 8 months ago

Description: modified (diff)
Summary: Transcoding video to x264 results in 1 second of frozen framesTranscoding video to x264/x265 results in 1 second of frozen frames

comment:7 by Yuri Gorokhov, 8 months ago

Description: modified (diff)

comment:8 by Yuri Gorokhov, 8 months ago

Description: modified (diff)

comment:10 by James, 8 months ago

Reproduced by developer: set

comment:12 by James, 7 months ago

Component: ffmpegavfilter
Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.