VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. I'm searching for a way to combine an audio & an image file into video. I have various software - SolveigMM Video Splitter, Handbrake and MKVtoolnix. Can any of the mentioned programs accomplish this? If not, what can?
    Quote Quote  
  2. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    Assuming your audio is MP4-compliant:

    ffmpeg -loop 1 -i myimage.jpg -i myaudio.m4a -c:v libx264 -c:a copy -shortest myoutput.mp4
    Quote Quote  
  3. Thanks, JVRaines,

    I've tried a very similar command, a few times, and at the end of the process I receive the following line of request:
    Code:
    Enter command: <target>|all <time>|-1 <command>[ <argument>]
    to which I don't know what to reply and as the resulting video is not yet produced in the ffmpeg folder, the random keys which I press usually lead to a flawed result. Do you happen to know WHAT one should type, in response to that request?
    Quote Quote  
  4. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    Try adding "< /dev/null" or "< NUL" (Windows) to the end of the command.
    Quote Quote  
  5. dvd slideshow gui

    or VirtualDub:

    1) open image file with File -> Open Video File.

    2) Video -> Frame Rate. Set source rate to 1/seconds, where seconds is the desired length of your video. Ie, if your song is 2 minutes long enter 1/120. Set Frame Rate Conversion to a typical video frame rate. Say, 30 fps.

    3) Video -> Compression. Select a compression codec and configure it.

    4) Audio -> Audio From Another File, add your audio.

    5) File -> Save as AVI.
    Last edited by jagabo; 16th Jul 2016 at 18:41.
    Quote Quote  
  6. Member racer-x's Avatar
    Join Date
    Mar 2003
    Location
    3rd Rock from the Sun
    Search Comp PM
    Aviutl.

    Or ffmpeg with a script like this:
    Code:
    SET PATH="C:\FFMpeg\64-bit"
    for %%a in ("*.mp3") do ffmpeg -r 10 -loop 1 -i img.jpg -i "%%a" -c:v libx264 -pix_fmt yuv420p -crf 22 -c:a copy -shortest -f mp4 "%%~na.mp4"
    pause
    Got my retirement plans all set. Looks like I only have to work another 5 years after I die........
    Quote Quote  
  7. JVRaines, jagabo, racer-x, thanks very much for your replies.

    I've settled for now with FFMpeg, creating video out of an image, and next merging it with audio in MKVToolnix. I'm using the following line:
    Code:
    ffmpeg -loop 1 -i "myimage.jpg" -c:v libx264 -t 60 -pix_fmt yuv420p -vf scale=1280:720 out2.mp4 < NUL
    .. and I get a 25 fps still video - can I specify the command, that the video is 30 fps? Thank you.
    Quote Quote  
  8. Add "-r 30" after "-t 60".
    Quote Quote  
  9. Alternatively ",fps=fps=30" can be added to -vf, side to this i would add "-tune stillimage" and i would try to reduce video bitrate by involving pulldown on x264.
    Quote Quote  
  10. Originally Posted by jagabo View Post
    Add "-r 30" after "-t 60".
    Thank you

    Originally Posted by pandy View Post
    Alternatively ",fps=fps=30" can be added to -vf, side to this i would add "-tune stillimage" and i would try to reduce video bitrate by involving pulldown on x264.
    Should "-tune stillimage" improve this sort of video (still image) ?
    In regard of "pulldown on x264", could you, please, give me an example? thank you
    Quote Quote  
  11. Originally Posted by Aquinax View Post
    Should "-tune stillimage" improve this sort of video (still image) ?
    Short answer: Yes

    Originally Posted by Aquinax View Post
    In regard of "pulldown on x264", could you, please, give me an example? thank you
    Seem that pulldown works only in x264 not libx264 (ffmpeg use libx264) as such you may consider to use pipe from ffmpeg to x264 to fully use H.264 syntax capabilities...

    Code:
    @ffmpeg -y -stream_loop -1 -t 60 -framerate 10 -i "%1" -vf fps=fps=10 -strict -1 -pix_fmt yuv420p -f yuv4mpegpipe - | x264.exe --demuxer y4m --profile high --preset fast --tune stillimage --crf 18 --level 4.0 --overscan show --pic-struct --pulldown triple --bluray-compat --fake-interlaced --muxer mkv -o "%~n1.mkv" -
    Quote Quote  



Similar Threads

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