[MPlayer-users] Mencoder encoding to mpeg2

Erik Slagter erik at oldconomy.com
Wed Aug 27 12:00:44 CEST 2003


> > not only is it true, but it already appears to work...sorta.
> > Compiling mencoder/mplayer CVS with libavcodec out of ffmpeg cvs I can do:
> > -lavcopts vcodec=mpeg2video:vbitrate=2500:vhq
> 
> But how to generate a compliant mp2 or ac3 audio stream then!?!?
> 
> Mencode only offers me copy, pcm and mp3lame. Using mp3 might work on
> some players, pcm probably will, but that takes a _lot_ of space.

*UPDATE*

Any of "pcm" or "mp3lame" as audio codec yields an mpeg file without any
audio.

This is de command line:

mencoder -ofps 25 tv:// -tv
"driver=v4l2:device=/dev/video0:width=352:height=288:fps=25:forceaudio=1
:audiorate=32000:amode=1:forcechan=2:adevice=/dev/dsp"
-oac pcm -of mpeg -ovc lavc -lavcopts "vcodec=mpeg1video"
-o test.mpg

MPlayer says:

Playing test.mpg
MPEG-PS file format detected.
MPEG: No audio stream found -> no sound.
VIDEO:  MPEG1  352x288  (aspect 1)  25.00 fps  800.0 kbps (100.0
kbyte/s)
ID_FILENAME=test.mp1
ID_VIDEO_FORMAT=0x10000001
ID_VIDEO_BITRATE=800000
ID_VIDEO_WIDTH=352
ID_VIDEO_HEIGHT=288
ID_VIDEO_FPS=25.000
ID_VIDEO_ASPECT=0.0000
ID_LENGTH=11

tcprobe says:

[tcprobe] MPEG program stream (PS)
[tcprobe] summary for test.mp1, (*) = not default, 0 = not detected
import frame size: -g 352x288 [720x576] (*)
     aspect ratio: 1:1
       frame rate: -f 25.000 [25.000] frc=3
                   PTS=2226.7919, frame_time=40 ms, bitrate=800 kbps
   no audio track: use "null" import module for audio



More information about the MPlayer-users mailing list