Opened 6 years ago

Closed 6 years ago

#5946 closed defect (invalid)

Lavfi & filter_complex ignore codec and pixel format

Reported by: LordHDL Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: overlay
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Summary: When using filtergraphs, the output video will default to yuva420p instead of being based on the codec chosen. If pixel format is manually specified, it will be reflected in the stream details but not in the actual output video.
How to reproduce: Use the -c:v and -pix_fmt commands after using -lavfi or -filter_complex.

ffmpeg -loop 1 -i ~/Desktop/FP2.tiff -i ~/Desktop/ -lavfi \
"[1:v]fps=60[video]; \
 [0:v][video]overlay=50:200:shortest=1[final]" \
-map "[final]" -map 1:a -c:v ffv1 -level 3 -c:a copy ~/Desktop/filtergraph.nut

Attachments (1)

filtergraph (8.6 KB ) - added by LordHDL 6 years ago.

Download all attachments as: .zip

Change History (3)

by LordHDL, 6 years ago

Attachment: filtergraph added

comment:1 by Elon Musk, 6 years ago

This is because how overlay filter works and picks output pixel format by default.
There is an option to specify output pixel format for overlay filter.

comment:2 by Carl Eugen Hoyos, 6 years ago

Keywords: overlay added
Resolution: invalid
Status: newclosed

The format option of the overlay filter including its default is documented.

Note: See TracTickets for help on using tickets.