[MPlayer-users] Some issues in FLV encoding

John Brown johnbrown105 at hotmail.com
Sun Feb 24 19:28:40 CET 2008




Alexander Bokovikov wrote:
>
> Hi, All,
>
> As I've found, MEncoder can't encode FLV with audio in synch. I get a good
> video if I use "-noaudio" option while encoding, but I get a video, running
> at higher rate with normal audiotrack if I use audio encoding in parallel
> with the video encoding. The source file is MOV, produced on Mac. Other
> formats also gave several problems if I tried to encode audio + video at one
> pass. Maybe I'm doing something incorrectly?

Perhaps, but there is no way to know without posting your command line.
I normally produce DVD-compliant MPEG-2 from various sources, encoding
video and audio together with no problem. I basically used a sample from
the section in the MPlayer HTML documentation that explains how to create
such MPEG files.

 I used several versions upto
> February SVN's with more or less the same result.
>
> Then I've tried to encode FLV in three passes:
>
> 1. mute video FLV production
> 2. MP3 audio production
> 3. MP3 embedding into FLV, containing video.
>
> Unfortunately I can use MEncoder at pass 1 only, because I don't know, how
> to create audio-only files like MP3 using it.

Try:
mencoder -of rawaudio -o test.mp3 -oac mp3lame -lameopts br=128 -ovc frameno 
-o test.mp3  myfile.mov

> Also I don't know if it is
> possible to add MP3 track into FLV, using MEncoder.

mencoder -oac copy -audiofile test.mp3

> Therefore now I use
> other tools for steps 2 and 3. Step 2 now requires Windows codecs usage,
> what limits this solution. For example MOV files are not processed if
> QuickTime is not installed.
>
> Does anybody know how to create audio-only file with MEncoder? I've tried to
> use "-vcodec frameno" option, but it produces wrong (incomplete) audiotrack,
> because it processes source file at video framerate, which is detected
> incorrectly. Therefore video reaches its end, while audio is yet not
> finished, but MEncoder closes both streams as soon as video reaches its end.
>

Why do you say that the frame rate is detected incorrectly? If you play the source
file in MPlayer, doesn't it play correctly? Anyway, you can try -fps 
to force it.

_________________________________________________________________
Shed those extra pounds with MSN and The Biggest Loser!
http://biggestloser.msn.com/


More information about the MPlayer-users mailing list