VideoHelp Forum
+ Reply to Thread
Results 1 to 11 of 11
Thread
  1. Hi,
    I have a 1080x1080 photo and a 42 seconds MP3 audio file, I wanna merge these 2 and make a video file (MP4 H264 or H265) with 1x1 aspect ratio (for Instagram) with the constant picture playing my audio file.
    What's the free software with UI doing this to get?
    I don't know any software doing so with 1x1 AR, please introduce
    Cheers.
    Quote Quote  
  2. ffmpeg. This, in a batch file, will produce an mp4 file called output.mp4 from image.jpg and audio.mp3. The video will have the running time of the audio source.

    Code:
    "C:\Program Files\ffmpeg\bin\ffmpeg.exe" -y -loop 1 -i "Image.jpg" -r 30.0 -i audio.mp3^
     -c:a copy -c:v libx264 -preset ultrafast -tune stillimage -g 250^
     -shortest output.mp4
    Quote Quote  
  3. Thanks, it made a video but Windows Media Player will play its audio only! Latest version of K-Lite Mega installed...
    As well as PowerDVD...
    Quote Quote  
  4. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    Try adding -pix_fmt yuv420p after libx264
    Quote Quote  
  5. Thanks, it worked but not fully, now I see the picture, but the whole audio is 00:42 seconds, and from second 4 to 10 the video becomes gray!!!
    Tried a second make and the same result!!!
    Quote Quote  
  6. The command as I posted it worked perfectly. MediaInfo report:

    Code:
    General
    Complete name                            : G:\Program Files\ffmpeg examples\Image and MP3 to Video\output.mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom (isom/iso2/avc1/mp41)
    File size                                : 14.0 MiB
    Duration                                 : 3 min 34 s
    Overall bit rate                         : 547 kb/s
    Writing application                      : Lavf57.71.100
    
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : Baseline@L3.2
    Format settings, CABAC                   : No
    Format settings, ReFrames                : 1 frame
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 3 min 34 s
    Bit rate                                 : 414 kb/s
    Width                                    : 1 080 pixels
    Height                                   : 1 080 pixels
    Display aspect ratio                     : 1.000
    Frame rate mode                          : Constant
    Frame rate                               : 25.000 FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.014
    Stream size                              : 10.6 MiB (76%)
    Writing library                          : x264 core 152 r2851 ba24899
    Encoding settings                        : cabac=0 / ref=1 / deblock=0:-3:-3 / analyse=0:0 / me=dia / subme=0 / psy=1 / psy_rd=2.00:0.70 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=0 / intra_refresh=0 / rc=crf / mbtree=0 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=0
    Color range                              : Full
    
    Audio
    ID                                       : 2
    Format                                   : MPEG Audio
    Format version                           : Version 1
    Format profile                           : Layer 3
    Mode                                     : Joint stereo
    Codec ID                                 : 6B
    Duration                                 : 3 min 34 s
    Bit rate mode                            : Constant
    Bit rate                                 : 128 kb/s
    Channel(s)                               : 2 channels
    Sampling rate                            : 44.1 kHz
    Compression mode                         : Lossy
    Stream size                              : 3.27 MiB (23%)
    Default                                  : Yes
    Alternate group                          : 1
    Quote Quote  
  7. I think it can be done in Sony Vegas. Not sure about the free version though.
    Last edited by divo2000; 8th Aug 2018 at 02:01. Reason: too much weird reaction somehow
    Quote Quote  
  8. Member valvehead's Avatar
    Join Date
    Mar 2006
    Location
    United States
    Search Comp PM
    Originally Posted by divo2000 View Post
    I think it can be done in Sony Vegas. Not sure about the free version - I have mine cracked, so I don't have any issues with that
    That's not something you should be smiling about.
    valvehead//
    Quote Quote  
  9. Originally Posted by divo2000 View Post
    I think it can be done in Sony Vegas. Not sure about the free version - I have mine cracked, so I don't have any issues with that
    As someone who made his living in the software industry, what I have to say to you cannot be printed in this forum.

    Do you also boast publicly about all the merchandise you shoplift? No difference at all between stealing software and stealing things from a store.

    When you look in the mirror, the face looking back to you is the face of a criminal.
    Last edited by johnmeyer; 7th Aug 2018 at 18:10.
    Quote Quote  
  10. In principle the statement of jagabo is fine and it works with VLC Player. To improve compatibility, here's my suggestion:

    Code:
    ffmpeg -r 1/42 -i image.jpg -i audio.mp3 -pix_fmt yuv420p -c:v libx264 -preset fast -vf fps=fps=25 -c:a copy -y out.mp4
    That works with Windows Media Player. I've just tested it.

    Please note: The number "42" at the beginning must be the exact duration of the audio in milliseconds. So, if the audio part has a length of e.g. 42505 ms, then replace the 42 by 42.505 please.
    Last edited by fornit; 7th Aug 2018 at 19:22. Reason: Set output framerate via vf instead of "-r" option
    Quote Quote  
  11. Maybe the simple command line worked for me because I was using a CBR mp3 file to test (with several different players). VBR mp3 might need more command line parameters.
    Quote Quote  



Similar Threads

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