I'm trying to convert an .mp4 file into an .flv file and am having some success using mencoder. The .flv file I create opens just fine in VLC, but my ultimate goal is to embed it into a .swf player embedded into a webpage.
I've tried using some of the .swf .flv players and they don't play my converted files. I'm not sure why...anyone else have any luck??
mencoder legoshay.mpeg -ffourcc FLV1 -oac lavc -ovc lavc -lavcopts vcodec=flv:acodec=mp3 -o sample.flv
+ Reply to Thread
Results 1 to 11 of 11
-
-
I've tried using flash_flv, flvplayer, and a friend of mine tried importing it into Adobe Flash and it said that it was an invalid file.
The flv players I tried are attached with a sample of how to use them in a webpage.
players.rar -
Originally Posted by 45tripp
Any other suggestions? -
I need somethng that is free and command-line based. Plus, this one is very similar to one of the players that I posted.
tried it then...
Similar to what you've tested and were happy to use but not good enough?
You've not created an flv file but an avi.
try:
mencoder legoshay.mpeg -o sample.flv -ffourcc FLV1 -of lavf -oac lavc -ovc lavc -lavcopts vcodec=flv:acodec=mp3 -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es
it's also better to use mp3lame for audio encoding rather than lavc
gl -
Originally Posted by fireserphant
Example syntax for MEncoder:
mencoder.exe -ofps 25 input_file.avi -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es:format=flv -ovc lavc -lavcopts vcodec=flv:autoaspect:vbitrate=500:vqmin=2:vqmax=3 1:vme=5:mbd=1ubq=5:keyint=250 -af resample=22050:0:0,channels=2 -oac mp3lame -lameopts vbr=2:q=6:aq=2:highpassfreq=-1:lowpassfreq=-1 -o output_file.flv
ffmpeg.exe -i input_file.avi -vcodec flv -me full -me_range 16 -mbd 1 -qmin 2 -qmax 31 -b 500000 -r 25 -s 320x240 -refs 5 -acodec mp3 -ar 22050 -ac 2 -ab 128 ouput_file.flv
ffmpeg.exe -i input_file.avi output_file.flv -
Originally Posted by 45tripp
Similar Threads
-
Mencoder cannot encode MP4/MOV/FLV with global headers!?
By dom_b in forum Video ConversionReplies: 0Last Post: 2nd Jul 2010, 06:07 -
Mencoder // ffmpeg flv file Audio-video sync problem
By krishnareddy in forum ffmpegX general discussionReplies: 5Last Post: 26th Apr 2009, 09:13 -
Having trouble with a conversion (mp4 / avi / mov / flv)
By loxley in forum Video ConversionReplies: 4Last Post: 23rd Feb 2009, 11:17 -
Mux a FLV AVI + MP3 -> FLV with ffmpeg or mencoder?
By Colmino in forum Video ConversionReplies: 9Last Post: 29th Mar 2008, 22:11 -
QT movie with 2 video tracks to FLV with mencoder or ffmpeg
By bluehz in forum Video ConversionReplies: 0Last Post: 26th Mar 2008, 15:39