Opened 7 years ago
Closed 7 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 |
Description
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/fp.mov -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)
Change History (3)
by , 7 years ago
| Attachment: | filtergraph added |
|---|
comment:1 by , 7 years ago
comment:2 by , 7 years ago
| Keywords: | overlay added |
|---|---|
| Resolution: | → invalid |
| Status: | new → closed |
The format option of the overlay filter including its default is documented.
Note:
See TracTickets
for help on using tickets.



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.