[FFmpeg-user] Create a video out of a single png and a mp3 file for youtube
lou at lrcd.com
Wed Jun 27 07:52:38 CEST 2012
On Wed, Jun 27, 2012, at 02:38 AM, Marco Baumgärtner wrote:
> Hello all!
> I have the challenge of creating a youtube compatible video.
> I want to create the video out of a single png image and an audio
> file. The image should be repeated as long as the audio lasts.
> According to youtube formats can be WebM, MPEG4, 3GPP, MOV, AVI,
> WMV or FLV.
> After upload I always get the message that the video file failed,
> it couldn't be converted.
> Please share the command line and if important the version that
> makes it work.
> Thanks in advance
This syntax will work for current ffmpeg:
ffmpeg -loop 1 -i input.png -i input.mp3 -c:v libx264 -preset medium \
-tune stillimage -crf 18 -c:a copy -shortest output.mkv
Change "medium" to "veryslow" if you're patient.
More information about the ffmpeg-user