[FFmpeg-user] ffmpeg producing garbled output / problems
Roger Pack
rogerdpack2 at gmail.com
Fri Dec 21 16:45:37 CET 2012
On 12/20/12, Ray Larsen <rayfreeagent at yahoo.com> wrote:
> 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.
full uncut command line and console output please? (so we can see what
version of ffmpeg you're using...)
More information about the ffmpeg-user
mailing list