LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Trying to convert from flv to mp4 (for iPod) using mencoder. (https://www.linuxquestions.org/questions/slackware-14/trying-to-convert-from-flv-to-mp4-for-ipod-using-mencoder-596539/)

alkos333 11-02-2007 02:32 AM

Trying to convert from flv to mp4 (for iPod) using mencoder.
 
I used the latest 1.0rc2 MPlayer script from SlackBuilds.org. I also have a faac package installed from SBo as well.

Here's the command I'm running to convert the flv file into an mp4 and the output I get:

Code:

me@alkos333_TPT60:~/testing$ mencoder Unleashing\ Video\ Search.flv -oac lavc -lavcopts acodec=aac:aglobal=1:vglobal=1:abitrate=128 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:v>
MEncoder 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Genuine Intel(R) CPU          T2500  @ 2.00GHz (Family: 6, Model: 14, Stepping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0x7e47ac9
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO:  [FLV1]  320x240  0bpp  29.917 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44  fourcc:0x31564C46  size:320x240  fps:29.92  ftime:=0.0334
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 22050 Hz, 2 ch, s16le, 8.0 kbit/1.13% (ratio: 1000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=320 h=-11]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
==========================================================================
Audio LAVC, couldn't find encoder for codec aac.

Exiting...
me@alkos333_TPT60:~/testing$


H_TeXMeX_H 11-02-2007 05:51 AM

Have you tried using 'ffmpeg' for the conversion instead ? I've found mencoder to produce horrible results for converting most things.

samael26 11-02-2007 06:10 AM

ffmpeg works without a cinch.

BCarey 11-02-2007 11:31 AM

I think you need to use -faacopts not -lavcopts to use the aac codec.
Brian

BCarey 11-02-2007 11:45 AM

Quote:

Originally Posted by H_TeXMeX_H (Post 2945533)
I've found mencoder to produce horrible results for converting most things.

Please don't throw out sweeping comments like that without at least giving some examples. mencoder works very well for many things. It even uses ffmpeg codecs (among others) as well, so if you are converting with the same codecs and the same settings I don't see how the quality would be different.

Brian

H_TeXMeX_H 11-02-2007 12:14 PM

It's different because it's harder to get the settings right ... if not impossible ?

alkos333 11-03-2007 02:36 PM

Quote:

Originally Posted by BCarey (Post 2945898)
I think you need to use -faacopts not -lavcopts to use the aac codec.
Brian


I tried it - it didn't work.


All times are GMT -5. The time now is 03:00 PM.