Opened 11 months ago

#10398 new defect

-filter_complex stats only on last file when mutiple mappings exist.

Reported by: Justin Owned by:
Priority: normal Component: ffmpeg
Version: unspecified Keywords: filter_complex
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

ffmpeg -hwaccel cuda -c:v hevc -i "inputhevcfile.mp4" -filter_complex "[0:v]trim=start=30:duration=30,setpts=PTS-STARTPTS[v0];[0:a]atrim=start=30:duration=30,asetpts=PTS-STARTPTS[a0];[0:v]trim=start=90:duration=40,setpts=PTS-STARTPTS[v1];[0:a]atrim=start=90:duration=40,asetpts=PTS-STARTPTS[a1];[0:v]trim=start=140:duration=30,setpts=PTS-STARTPTS[v2];[0:a]atrim=start=140:duration=30,asetpts=PTS-STARTPTS[a2];[0:v]trim=start=200:duration=40,setpts=PTS-STARTPTS[v3];[0:a]atrim=start=200:duration=40,asetpts=PTS-STARTPTS[a3]" -map "[v0]" -map "[a0]" -c:v hevc_nvenc -threads 1 -b:v 15862K -maxrate 27025K -bufsize 28200K output1.mp4 -map "[v1]" -map "[a1]" -c:v hevc_nvenc -threads 1 -b:v 15862K -maxrate 27025K -bufsize 28200K output2.mp4 -map "[v2]" -map "[a2]" -c:v hevc_nvenc -threads 1 -b:v 15862K -maxrate 27025K -bufsize 28200K output3.mp4 -map "[v3]" -map "[a3]" -c:v hevc_nvenc -threads 1 -b:v 15862K -maxrate 27025K -bufsize 28200K output4.mp4

ONLY when processing the 4th output i get below stats -

frame= 1785 fps= 19 q=44.0 q=34.0 q=45.0 q=40.0 size= 62720kB time=00:00:39.93 bitrate=12865.6kbits/s speed=0.433x

first 3 files dont show any stats info (would be good to see current frame when encoding before first file if cutpoint < 0 seconds and current frame between end of a cut point and start of the next point).

The Source file is from a go pro 9 filmed @ 4K.

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (0)

Note: See TracTickets for help on using tickets.