convert flv into avi file and mp3 sound

mencoder input.flv -ovc lavc -oac mp3lame -o output.avi
Detect video size automatically , usually the flv video from youtube , dailymotion are in the /tmp directory . Just launch a video player or an ls -lh on it to find the one you want to convert.
Sample Output
gnu@robby:/tmp$ ls

FlashRvagFf     plugtmp             
FlashXzXntM     pulse-0TTrCRtslQIP  
keyring-kuxf9m  pulse-kBvjtHC3bUl5
orbit-gnu       ssh-MlVNQs3733

gnu@robby:/tmp$ mencoder FlashRvagFf  -ovc lavc -oac mp3lame -o output.avi

MEncoder 2:1.0~rc2-0ubuntu19 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) D CPU 2.80GHz (Family: 15, Model: 4, Stepping: 7)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0x12a88ad
ISO: File Type Major Brand: ISO/IEC 14496-1 (MPEG-4 system) v2
Quicktime/MOV file format detected.
Warning! pts=14075904  length=14076810
[mov] Audio stream found, -aid 0
Warning! pts=28728000  length=28727924
[mov] Video stream found, -vid 1
VIDEO:  [avc1]  512x384  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7  fourcc:0x31637661  size:512x384  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 88.3 kbit/6.25% (ratio: 11032->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
MP3 audio selected.
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (512x384 fourcc=34504d46 [FMP4])
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:   0.9s     22f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.082 [0:225]
Skipping frame!
Pos: 252.1s   6304f ( 0%) 36.51fps Trem:   0min   0mb  A-V:0.080 [527:293]
Skipping frame!
Pos: 300.4s   7512f ( 0%) 36.41fps Trem:   0min   0mb  A-V:0.080 [540:291]
Skipping frame!
Pos: 300.8s   7522f ( 0%) 36.41fps Trem:   0min   0mb  A-V:0.080 [540:291]
Skipping frame!
Pos: 301.2s   7533f ( 0%) 36.41fps Trem:   0min   0mb  A-V:0.082 [541:290]
Skipping frame!
Pos: 319.0s   7980f ( 0%) 36.52fps Trem:   0min   0mb  A-V:0.071 [540:276]
Flushing video frames.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream:  540.588 kbit/s  (67573 B/s)  size: 21555944 bytes  319.000 secs  7980 frames

Audio stream:  276.788 kbit/s  (34598 B/s)  size: 11034460 bytes  318.929 secs

0
By: eastwind
2009-12-01 10:42:11

What Others Think

Wondershare Video Converter Platinum is the best video converter software that can convert between all popular Video formats ( AVI, MKV, MP4, WMV, FLV, MPEG etc.) to meet different format requirements and for playback on most popular players including iPod, iPhone, Apple TV, Zune, PSP, Pocket PC, Creative Zen, google phone and more. It is also the best HD video converter and AVCHD video converter which can convert HD video and AVCHD video to avi, convert m2ts to avi, convert mts to avi, convert ts to mp4 etc.. with excellent quality.. http://www.dvd-ripper-copy.com/articles/how-to-convert-mts-m2ts-to-avi-mp4-wmv.html#195
tracyjump · 514 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: