[FFmpeg-user] ffmpeg producing garbled output / problems
Ray Larsen
rayfreeagent at yahoo.com
Fri Dec 21 02:08:08 CET 2012
I am a newbie to ffmpeg and I am not getting the results I need, no matter what I try.
I have three inputs, all are 1920 x 1080:
psa.tif - A TIFF file with a static graphic
watermark.png - A transparent PNG with a logo in the lower right corner
main.mov - A movie clip, ProRes encoded
I want to:
Create a 15 second movie clip from psa.tif which fades in at the beginning and out at the end
Apply watermark.png (with a fade in at the beginning and a fade out at the end) to main.mov
Combine psa and watermarked main and encode with H.264 and AAC.
Here's what I have so far:
Create a 15 second clip from psa.tif
ffmpeg -ar 48000 -f s16le -ac 2 -i /dev/zero -loop 1 -i psa.tif -t 15 -r 29.97 -q:v 1 -c:v mpeg2video -c:a mp2 -vf "fade=in:0:30, fade=out:420:30" psa.mpg
Create a watermark
ffmpeg -loop 1 -i watermark.png -frames:v 1798 -vf "fade=in:0:30, fade=out:1768:30" -c:v png -pix_fmt rgba watermark.mov
Apply the watermark to main.mov
ffmpeg -i main.mov -qscale:v 1 -c:v mpeg2video -vf "movie=watermark.mov [watermark]; [in][watermark] overlay=0:0 [out]" movie.mpg
Concatenate
cat psa.mpg movie.mpg > out.mpg
Encode
ffmpeg -i out.mpg -c:v libx264 -preset slow -b:v 10800k -c:a libfaac -b:a 48k -pix_fmt yuv420p out.mp4
The fades don't work at all and the final encoded MP4 plays garbled in VLC player and Quicktime Player and it won't play at all in Windows Media Player.
I was hoping that someone with more expertise could see if I have problems with my command lines before I start debugging ffmpeg installation, etc.
I have tried two different computers, both Macs... one installed with MacPorts (version 1.0) and the other compiled from the latest git (1.0.1).
Thanks!
More information about the ffmpeg-user
mailing list