Hi,
I'm trying to create a Youtube movie from mp3 and picture file (which of course a still image is during playing the movie).
The creating process must be done by a commandline (automatisch process), so I try ffmpeg but without success. Avi will be successfully, but Youtube play not the full video because Youtube don't accept avi files greater than 1 Gb.
So I try it with mp4.
First, I create a simple avi:
ffmpeg -i sound.mp3 -i image.jpg -s 1280x720 -f avi out.avi
A avi is present and plays well (image is showing).
Then I like to convert this to MP4, but no success:
ffmpeg -i out.avi -acodec aac -ab 96k -vcodec libx264 -fpre
"libx264-default.ffpreset" -s 1280x720 -strict experimental out.mp4
(OS is Windows so i use -fpre instead of vpre).
A mp4 is present but during playing is no image displaying. Also Youtube failed this file after uploading.
Can someone explain why this happen? Thanks!
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 1 to 6 of 6
-
-
Hi
This is the command that I use:-
Code:ffmpeg -loop_input -i image.jpg -i sound.mp3 -shortest -b 1000k -acodec copy out.mp4
Complete name : out.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 5.68 MiB
Duration : 1mn 18s
Overall bit rate : 605 Kbps
Writing application : Lavf52.78.0
Video
ID : 1
Format : MPEG-4 Visual
Format profile : Simple@L1
Format settings, BVOP : No
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Codec ID : 20
Duration : 1mn 18s
Bit rate mode : Variable
Bit rate : 473 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Resolution : 8 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.021
Stream size : 4.44 MiB (78%)
Writing library : Lavc52.84.2
Audio
ID : 2
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format_Settings_Mode : Joint stereo
Format_Settings_ModeExtension : MS Stereo
Codec ID : 6B
Duration : 1mn 18s
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Stream size : 1.20 MiB (21%)
We can also use x264 codec instead, like this (Linux):-
Code:ffmpeg -loop_input -i image.jpg -i sound.mp3 -shortest -vcodec libx264 -vpre default -acodec copy out.mp4
General
Complete name : out.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 1.33 MiB
Duration : 1mn 20s
Overall bit rate : 139 Kbps
Writing application : Lavf52.78.0
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1mn 20s
Bit rate mode : Variable
Bit rate : 8 443 bps
Nominal bit rate : 200 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Resolution : 8 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.000
Stream size : 82.9 KiB (6%)
Writing library : x264 core 104 r1688 0b36c6d
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=200 / ratetol=20.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.41 / aq=1:1.00
Audio
ID : 2
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format_Settings_Mode : Joint stereo
Format_Settings_ModeExtension : MS Stereo
Codec ID : 6B
Duration : 1mn 18s
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Stream size : 1.20 MiB (90%)Last edited by bat999; 6th Aug 2010 at 09:05. Reason: Added x264 detail.
-
Long ago, I came across a free but nice utility accepting .jpg + mp3 (wav) --> AVI/mp4/flv, jpg2avi or something like that.
which gave me good results with nice quality. -
-
Similar Threads
-
youtube to mp3
By angryassdrummer in forum Video Streaming DownloadingReplies: 12Last Post: 25th Aug 2011, 05:02 -
Creating MP3 audio files from MP4 videos
By Kiwi999 in forum Newbie / General discussionsReplies: 1Last Post: 2nd Aug 2011, 04:16 -
MP3 to Youtube
By didikai in forum Newbie / General discussionsReplies: 3Last Post: 18th Apr 2011, 13:01 -
MP4 to YouTube
By raffie in forum Video Streaming DownloadingReplies: 2Last Post: 18th Jun 2008, 11:10 -
looking for program that create flv video for youtube from mp3,image,..
By method in forum Newbie / General discussionsReplies: 3Last Post: 9th May 2007, 03:56