Re: Create a video from jpeg and mp3

james shipton wrote:

> Hi
>
> I am trying to create a video file for upload to YouTube
>
> I would like to use a single jpeg image for the video and an mp3 file
> for the audio.
>
> I have tried a few things but they do not appear to work
>
> e.g.
> ffmpeg -f image2 -i image1.jpg video.mpg
> ffmpeg -i video.mpg -i audio.mp3 -acodec copy -vcodec copy newvideo.avi
>
> ffmpeg -i image.jpg -i audio.mp3 -acodec copy -vcodec mpeg4 newvideo.mp4
>
>
> If the audio is 5minutes long, how do i set the video to also be 5 minutes long?