Hi all,
I'm converting flv files captured from rtmp streams to mp4 using ffmpeg.
Here are the command line parameters i'm using:
ffmpeg -i "%%a" -c:v libx264 -preset superfast -c:a libvo_aacenc -b:a 128k "mp4s\%%~na.mp4"
This works great when the captured files are encoded with AVC/Speex, but unfortunately some of them are encoded with Sorenson Spark/Nellymoser. The conversion still works, sort of. But it takes forever and the resulting mp4 files are huge (4 or 5 times the size of the flv file) and jerky in playback.
Any help for fine-tuning the ffmpeg parameters to work better with the Sorenson encoded files would be much appreciated.
Thanks for your time!
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 6 of 6
			
		- 
	
- 
	Can you post the full details of one those flv? Use mediainfo(view->text) or mediainfoxp. 
 
 And set crf value to lower the file size/quality. Like -crf 25 (increase for smaller size).
- 
	Sure thing. Here are the details: 
 
 General
 Complete name : G:\convert\convertToMP4\unconvertable\stream.flv
 Format : Flash Video
 File size : 28.1 MiB
 Duration : 9mn 33s
 Overall bit rate : 411 Kbps
 
 Video
 Format : Sorenson Spark
 Codec ID : 2
 Duration : 9mn 33s
 Width : 320 pixels
 Height : 240 pixels
 Display aspect ratio : 4:3
 Frame rate mode : Variable
 Bit depth : 8 bits
 
 Audio
 Format : Nellymoser
 Codec ID : 6
 Duration : 9mn 33s
 Channel(s) : 1 channel
 Sampling rate : 11.025 KHz
 Bit depth : 16 bits
- 
	It's probably the variable framerate that causes problem. You could try set a framerate with -r 30... But you will get sybc issues. 
- 
	That made a huge difference, thank you! And the sync issues don't seem too bad (so far at least). 
- 
	as a side note: one could extract the time codes using flvextract and add them later to the mp4 using mp4fpsmod. (this is the way I do it in Hybrid) users currently on my ignore list: deadrats, Stears555, marcorocchini
Similar Threads
- 
  ffmpeg: Concatenating MP4 files adding chapters for each oneBy Keyser in forum Video ConversionReplies: 6Last Post: 12th May 2022, 18:19
- 
  How to mux .264 and .wav files to .m2ts or .mp4 using FFmpeg????By rallymax in forum EditingReplies: 1Last Post: 31st Oct 2011, 18:04
- 
  Converting everything to mp4 using ffmpegBy euphonic in forum Video ConversionReplies: 1Last Post: 13th May 2011, 08:53
- 
  Can someone make me a ffmpeg file for normalizing mp4 files? I am Clueless.By xrayengineer in forum DVD RippingReplies: 2Last Post: 3rd Feb 2011, 20:46
- 
  .enc or ffmpeg/Handbrakes switches -> .mp4 files playable by PS3 and Xbox 360?By cwerdna in forum Video ConversionReplies: 3Last Post: 5th Jan 2011, 03:45


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			
 Quote
 Quote Visit Homepage
				Visit Homepage
			 
			