VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Hello

    It's been over an hour, and ffmpeg ("version N-58043-g0062869 Nov 12 2013") is still not through creating an MP4 video from a 70mn MP3 file and a single PNG file:


    Code:
    ffmpeg.exe -loop 1 -i picture.png -i input.mp3 -c:v libx264 -c:a copy output.mp4
    I expected this to be pretty fast, so am wondering if I did something wrong.


    Thank you.
    Quote Quote  
  2. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by yetanotherlogin View Post
    ... if I did something wrong.
    Hi
    I think you need to include "-shortest"
    Maybe this command is better:-
    Code:
    ffmpeg.exe -loop 1 -i picture.png -i input.mp3 -shortest -c:v libx264 -tune stillimage -c:a copy output.mp4
    Quote Quote  
  3. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Posted from previous request for a 1 image + 1 audio = 1 Video w/audio was listed as below. There was a problem with recent FFMpegs failing but I know the 04/26/2012 works up thru sometime in June 2012.

    Simple 1X1 method: (04/26/2012 FFMPEG)
    ffmpeg -loop 1 -r 1 -shortest -qscale 1 -i "pix2.jpg" -i "1.mp4" -acodec copy -vcodec mpeg4 "output.mp4"

    Batch:
    type the following, replacing the word Herringbone with the name of your image <for avi output>
    for %a in (*.mp3) do "ffmpeg" -loop 1 -r 1 -shortest -i "Herringbone.jpg" -i "%a" -acodec copy "%~na.avi"

    In the example below, replace the word Herringbone with the name of your image <for mp4 output>
    for %a in (*.mp3) do "ffmpeg" -loop 1 -r 1 -shortest -i "Herringbone.jpg" -vcodec mpeg4 -i %a -acodec copy %a".mp4"

    Or type the following, replacing the word Herringbone with the name of your image <for flv output>
    for %a in (*.mp3) do "ffmpeg" -loop 1 -r 1 -shortest -i "Herringbone.jpg" -vcodec flv -i %a -acodec copy %a".flv"

    -loop 1 will loop your input image, -r 1 will give the video a fps of 1, for a smaller file size. If this causes problem for some odd reason, you can take it out. -shortest will limit the output file to the length of the input audio file.

    After thought... 70 Minutes x 60 seconds = 4200 seconds x 25 fps = 105000 frames. Could be why its taking a while.
    Last edited by Budman1; 7th Dec 2013 at 23:25. Reason: P.S. Thought
    Quote Quote  
  4. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Thanks for the infos. It ran for about 6h total. I'll try again with "-shortest -tune stillimage" to see if that makes a difference.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!