Trying to display a jpeg image and add an mp3.
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 4 of 4
			
		- 
	Cheers from downunder.
- 
	Previously posted...https://forum.videohelp.com/threads/355301-Merging-an-image-in-audio-file/page2 
 YOU can find previous versions of FFMpeg at http://ffmpeg.zeranoe.com/builds
 
 If ypou have FFMpeg version 04262012 install you can use:
 CONVERT SINGLE IMAGE WITH AUDIO STREAM
 Simple 1X1 method:
 ffmpeg -loop 1 -r 1 -shortest -qscale 1 -i "pix2.jpg" -i "1.mp4" -acodec copy -vcodec mpeg4 "output.mp4"
 ffmpeg -loop 1 -r 1 -shortest -qscale 1 -i "C:\path to\image.jpg" -i "C:\path to\audio.mp3" -acodec copy -vcodec libx264 "output.flv"
 
 With more current versions you can use below But I do not recommend it since it takes longer and the -shortest doesn't end when the audio stops.:
 ffmpeg -loop 1 -i "C:\path to\image.jpg" -i "C:\path to\audio.mp3" -loop 1 -r 1 -qscale 1 -shortest -acodec copy -vcodec libx264 "output.flv"
 
 Batch: (04262012 again)
 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.
 
 UPDATE: Later versions work ok if you put filters AFTER the inputs and drop -r1 (more frames larger file. Lower the Q?)as:
 ffmpeg -loop 1 -i "C:\path to\image.jpg" -i "C:\path to\audio.mp3" -shortest -loop 1 -qscale 1 -shortest -acodec copy -vcodec libx264 "output.flv"Last edited by Budman1; 6th Feb 2014 at 18:13. Reason: Update 
Similar Threads
- 
  Image display help on LCD TVBy David Montanaro in forum Newbie / General discussionsReplies: 5Last Post: 21st Jun 2011, 12:16
- 
  connect pc to tv and display image on both screensBy gordes04 in forum ComputerReplies: 11Last Post: 23rd Sep 2010, 08:02
- 
  Playing Video on display 2 and display 1 goes blackBy sidewaysdriver in forum Software PlayingReplies: 2Last Post: 3rd Aug 2010, 01:36
- 
  exporting a captured image as a JPEG fileBy altagracia in forum Newbie / General discussionsReplies: 3Last Post: 8th Nov 2009, 22:59
- 
  how to retrive jpeg image from unfinalized DVD-rBy newtonraj in forum Newbie / General discussionsReplies: 3Last Post: 29th May 2009, 05:42


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			 
			

 Quote
 Quote Visit Homepage
				Visit Homepage
			 
			