[FFmpeg-user] Create a video out of a single png and a mp3 file for youtube

Marco Baumgärtner kalleernst at googlemail.com
Wed Jun 27 13:34:27 CEST 2012


Am 27.06.2012 07:52, schrieb Lou Logan:
> 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.
>
Finally it works! Thank you Lou and have a nice day!



More information about the ffmpeg-user mailing list