[FFmpeg-trac] #11231(avfilter:new): "-filter_complex" instrumented error: unexpected video delay
FFmpeg
trac at avcodec.org
Sat Oct 19 16:51:11 EEST 2024
#11231: "-filter_complex" instrumented error: unexpected video delay
-------------------------------------+-------------------------------------
Reporter: degradox | Owner: (none)
Type: task | Status: new
Priority: normal | Component: avfilter
Version: git-master | Resolution:
Keywords: | Blocked By:
filter_complex |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by degradox):
Using both `asetpts` and `-avoid_negative_ts 2`, logs is `dup=115
drop=837`, video ends 5 seconds before audio:
{{{
% ffmpeg -y \
-i input_good.mp4 \
-filter_complex "\
[0:v]scale=1920:1080:force_original_aspect_ratio=decrease,setpts=PTS-
STARTPTS [scaled_main]; \
color=c=black at 0:s=1280x720:d=10000 [blank_overlay]; \
[blank_overlay]format=gray [mask_trim]; \
[blank_overlay][mask_trim]alphamerge [overlay_stream]; \
[scaled_main][overlay_stream]overlay=x=main_w-overlay_w-0:y=main_h-
overlay_h-0:eof_action=pass:shortest=0 [outv]; \
[0:a]asetpts=PTS-STARTPTS [outa]" \
-map "[outv]" -map "[outa]" \
-c:v libx264 -profile:v high -level:v 4.2 -pix_fmt yuv420p -r 60 -b:v
600k -preset fast \
-c:a aac -b:a 80k -ar 48000 -ac 2 -fps_mode cfr \
-avoid_negative_ts 2 \
-nostdin output_desynced.mp4
}}}
Same exact results using `-avoid_negative_ts 1` instead of
`-avoid_negative_ts 2`.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11231#comment:12>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list