[MPlayer-users] Nobody knows ...

tarass at club-internet.fr tarass at club-internet.fr
Sat Jan 3 16:32:36 CET 2004


Le 01/03/2004 03:53 PM, Adam Nielsen a joliment écrit :
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> 
>>what -vc codec should I use to play lavc-mpeg4 through the mpegpes 
>>output TV ?
> 
> 
> You don't need any -vc switch.  It's automatic.

Not in my case, certainelly because I make mistake somewhere ;-)

> But why are you trying to play an MPEG-4 file through an MPEG-2 DVB card?

I have a DVB card that have a hardware TV output that is connected to my 
TV set, and I look satellite channels on it decoded by my card.
I record some video with VDR and can see the ercords with VDR through 
the same output. All this is done with a remote from my armchair.

And there is a plugin for that uses mplayer to play all the stuff 
mplayer can play: DVD and previously 
VDR-recorded-mencoded-DVD-burned-and-stored-to-use-less-room movies,
I made by my self ;-)

I can play this movies and DVD through a matrox G550 tv-out but then I 
have to connect a second wire between the TV-set and the box and my wife 
said no!

> DVB is MPEG-2 only, so there 
> is no need for your card to have a separate decoder for MPEG-4 as well (hence 
> the message about the incompatibility.)  MPEG-4 is not MPEG-2 (you don't see 
> many DVDs around in the DivX format, do you??? ;-))

I never saw such a thing.

> If you leave off the -vc switch but use the proper -vo switch,

ie -vo mpegpes ?

 > mplayer should
> automatically decode the MPEG-4 file and re-encode it as MPEG-2 for the DVB 
> card, assuming your CPU is powerful enough to do the conversion in real time.

mplayer film.vdr -vo mpegpes , work fine:

MPlayer dev-CVS-031130-11:22-3.2.2 (C) 2000-2003 MPlayer Team

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 1003 MHz 
(Family: 6, Stepping: 10)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.confReading config 
file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Reading 
/usr/local/etc/mplayer/codecs.conf: Using built-in default codecs.conf.
CommandLine: '001.vdr' '-vo' 'mpegpes' '-v'
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
Font /root/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/root/.mplayer/input.conf'
get_path('001.vdr.conf') -> '/root/.mplayer/001.vdr.conf'

Playing 001.vdr.
[file] File size is 2097386948 bytes
STREAM: [file] 001.vdr
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0
  Cache fill:  0,00% (0 bytes)    Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x86aa638
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x86aa638
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x86aa638
Checking for REAL
DEMUXER: freeing demuxer at 0x86aa638
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x86aa638
DEMUXER: freeing demuxer at 0x86aaea0
Searching demuxer type for filename 001.vdr ext: .vdr
Checking for MOV
DEMUXER: freeing demuxer at 0x86aaea0
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x86aaea0
DEMUXER: freeing demuxer at 0x86aaea0
DEMUXER: freeing demuxer at 0x86aaea0
DEMUXER: freeing demuxer at 0x86aaea0
DEMUXER: freeing demuxer at 0x86aaea0
DEMUXER: freeing demuxer at 0x86aaea0
DEMUXER: freeing demuxer at 0x86aaea0
Checking for PVA
DEMUXER: freeing demuxer at 0x86aaea0
Checking for MPEG-TS...
TRIED UP TO POSITION 69582, FOUND 47, packet_size= 0, SEEMS A TS? 0
DEMUXER: freeing demuxer at 0x86aaea0
==> Found video stream: 0
MPEG-PES file format detected.
==> Found audio stream: 0
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 2)  25,000 fps  15000,0 kbps (1875,0 
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25,00  ftime:=0,0400
get_path('sub/') -> '/root/.mplayer/sub/'
get_path('default.sub') -> '/root/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
  MPEG 1.0, Layer II, 48000 Hz 256 kbit Stereo, BPF: 768
Channels: 2, copyright: No, original: No, CRC: Yes, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 32000->192000 (256,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening /dev/dvb/adapter0/video0+audio0
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Trying filter chain: vo
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
VO Config (720x576->768x576,flags=0,'MPlayer',0x4D504553)
VO: [mpegpes] 720x576 => 768x576 Mpeg PES
VO: Description: Mpeg-PES to DVB card
VO: Author: A'rpi
Selected video codec: [mpegpes] vfm:mpegpes (Mpeg PES output (.mpg or 
Dxr3/DVB card))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [mpegpes] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: DVB audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
Starting playback...
*** [vo] Exporting mp_image_t, 720x576x0bpp RGB packed, 0 bytes
A:25192,2 V:   0,0 A-V:25192,164 ct:  0,000    1/  1   0%  0%  0,0% 0 0 99%
A:25192,2 V:25192,8 A-V: -0,601 ct: -0,004    2/  2   0%  0%  0,0% 0 0 99%
...
A:25195,9 V:25196,2 A-V: -0,304 ct: -0,340   87/ 87   0% 18%  1,2% 0 0 77%
Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: mp3lib
uninit video: mpegpes
DEMUXER: freeing demuxer at 0x86aaea0
DEMUXER: freeing sh_audio at 0x86a91d8
DEMUXER: freeing sh_video at 0x86a9140
vo: x11 uninit called but X11 not inited..

Exiting... (Quit)


For an avi lavc-mpeg4 coded file :

mplayer film.avi -vo mpegpes

MPlayer dev-CVS-031130-11:22-3.2.2 (C) 2000-2003 MPlayer Team

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 1003 MHz 
(Family: 6, Stepping: 10)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: Aucun fichier 
ou répertoire de ce type
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Can't open 
'/root/.mplayer/codecs.conf': Aucun fichier ou répertoire de ce type
Reading /usr/local/etc/mplayer/codecs.conf: Can't open 
'/usr/local/etc/mplayer/codecs.conf': Aucun fichier ou répertoire de ce type
Using built-in default codecs.conf.
CommandLine: 'film.avi' '-vo' 'mpegpes' '-v'
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
Font /root/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.mplayer/input.conf: Aucun fichier ou 
répertoire de ce type
Can't open input config file /usr/local/etc/mplayer/input.conf: Aucun 
fichier ou répertoire de ce type
Falling back on default (hardcoded) input config
get_path('film.avi.conf') -> '/root/.mplayer/film.avi.conf'

Playing film.avi.
[file] File size is 1087512662 bytes
STREAM: [file] film.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:4055040
AVI file format detected.
list_end=0x146
======= AVI Header =======
us/frame: 40000  (fps=25,000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames  total: 144589   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  524 x 572
==========================
list_end=0xD4
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 250000/10000 = 25,000
Start: 0   Len: 144589
Suggested BufferSize: 70539
Quality 0
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
   biSize 40
   biWidth 524
   biHeight 572
   biPlanes 1
   biBitCount 24
   biCompression 1482049860='DIVX'
   biSizeImage 899184
===========================
Regenerating keyframe table for DIVX 4 video
list_end=0x146
==> Found audio stream: 1
====== STREAM Header =====
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 40000/1 = 40000,000
Start: 0   Len: 231380000
Suggested BufferSize: 20000
Quality 0
Sample size: 1
==========================
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 40000
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=960
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
===========================
list_end=0x17E
hdr=Software  size=36
Software  : MEncoder dev-CVS-031130-11:22-3.2.2
Broken chunk?  chunksize=1658  (id=JUNK)
list_end=0x40AC006E
Found movie at 0x80C - 0x40AC006E
Reading INDEX block, 156158 chunks for 144589 frames (fpos=0x40ac0076)
AVI index offset: 0x808 (movi=0x80C idx0=0x4 idx1=0x4E2C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=852310329 (144589) audio size=231380000 (231380000)
VIDEO:  [DIVX]  524x572  24bpp  25,000 fps  1178,9 kbps (143,9 kbyte/s)
[V] filefmt:3  fourcc:0x58564944  size:524x572  fps:25,00  ftime:=0,0400
Clip info:
  Software: MEncoder dev-CVS-031130-11:22-3.2.2
get_path('sub/') -> '/root/.mplayer/sub/'
get_path('default.sub') -> '/root/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
  MPEG 1.0, Layer III, 48000 Hz 320 kbit Stereo, BPF: 960
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 40000->192000 (320,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening /dev/dvb/adapter0/video0+audio0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [mpegpes] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: DVB audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
Starting playback...
[ffmpeg] aspect_ratio: 1,332007
VDec: vo config request - 524 x 572 (preferred csp: Planar YV12)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
Opening video filter: [lavc]
Trying filter chain: lavc vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
VO Config (524x572->762x572,flags=0,'MPlayer',0x32315659)
REQ: flags=0x103  req=0x0
VO: [mpegpes] 524x572 => 762x572 Mpeg PES
VO: Description: Mpeg-PES to DVB card
VO: Author: A'rpi
DVB: height=572 not supported (try 240/480 (ntsc) or 288/576 (pal)
FATAL: Cannot initialize video driver.
*** [lavc] Exporting mp_image_t, 524x572x12bpp YUV planar, 449592 bytes

FATAL: Could not initialize video filters (-vf) or video output (-vo).

Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: mp3lib
uninit video: ffmpeg
DEMUXER: freeing demuxer at 0x86a9dd0
vo: x11 uninit called but X11 not inited..

Exiting... (End of file)

And if I try to scale :


mplayer film.avi -vo mpegpes -vf scale=720:576

MPlayer dev-CVS-031130-11:22-3.2.2 (C) 2000-2003 MPlayer Team

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 1002 MHz 
(Family: 6, Stepping: 10)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: Aucun fichier 
ou répertoire de ce type
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Can't open 
'/root/.mplayer/codecs.conf': Aucun fichier ou répertoire de ce type
Reading /usr/local/etc/mplayer/codecs.conf: Can't open 
'/usr/local/etc/mplayer/codecs.conf': Aucun fichier ou répertoire de ce type
Using built-in default codecs.conf.
CommandLine: 'film.avi' '-vo' 'mpegpes' '-vf' 'scale=720:576' '-v'
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
Font /root/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.mplayer/input.conf: Aucun fichier ou 
répertoire de ce type
Can't open input config file /usr/local/etc/mplayer/input.conf: Aucun 
fichier ou répertoire de ce type
Falling back on default (hardcoded) input config
get_path('film.avi.conf') -> '/root/.mplayer/film.avi.conf'

Playing film.avi.
[file] File size is 1087512662 bytes
STREAM: [file] film.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0
  Cache fill:  0,00% (0 bytes)    AVI file format detected.
list_end=0x146
======= AVI Header =======
us/frame: 40000  (fps=25,000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames  total: 144589   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  524 x 572
==========================
list_end=0xD4
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 250000/10000 = 25,000
Start: 0   Len: 144589
Suggested BufferSize: 70539
Quality 0
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
   biSize 40
   biWidth 524
   biHeight 572
   biPlanes 1
   biBitCount 24
   biCompression 1482049860='DIVX'
   biSizeImage 899184
===========================
Regenerating keyframe table for DIVX 4 video
list_end=0x146
==> Found audio stream: 1
====== STREAM Header =====
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 40000/1 = 40000,000
Start: 0   Len: 231380000
Suggested BufferSize: 20000
Quality 0
Sample size: 1
==========================
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 40000
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=960
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
===========================
list_end=0x17E
hdr=Software  size=36
Software  : MEncoder dev-CVS-031130-11:22-3.2.2
Broken chunk?  chunksize=1658  (id=JUNK)
list_end=0x40AC006E
Found movie at 0x80C - 0x40AC006E
Reading INDEX block, 156158 chunks for 144589 frames (fpos=0x40ac0076)
AVI index offset: 0x808 (movi=0x80C idx0=0x4 idx1=0x4E2C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=852310329 (144589) audio size=231380000 (231380000)
VIDEO:  [DIVX]  524x572  24bpp  25,000 fps  1178,9 kbps (143,9 kbyte/s)
[V] filefmt:3  fourcc:0x58564944  size:524x572  fps:25,00  ftime:=0,0400
Clip info:
  Software: MEncoder dev-CVS-031130-11:22-3.2.2
get_path('sub/') -> '/root/.mplayer/sub/'
get_path('default.sub') -> '/root/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
  MPEG 1.0, Layer III, 48000 Hz 320 kbit Stereo, BPF: 960
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 40000->192000 (320,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening /dev/dvb/adapter0/video0+audio0
Opening video filter: [scale w=720 h=576]
SwScale params: 720 x 576 (-1=no scaling)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [mpegpes] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: DVB audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
Starting playback...
[ffmpeg] aspect_ratio: 1,332007
VDec: vo config request - 524 x 572 (preferred csp: Planar YV12)
Trying filter chain: scale vo
Opening video filter: [lavc]
Trying filter chain: scale lavc vo
The selected video_out device is incompatible with this codec.
*** [scale] Exporting mp_image_t, 524x572x12bpp YUV planar, 449592 bytes

FATAL: Could not initialize video filters (-vf) or video output (-vo).

Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: mp3lib
uninit video: ffmpeg
DEMUXER: freeing demuxer at 0x86a9f18
vo: x11 uninit called but X11 not inited..

Exiting... (End of file)





-- 
    Powered           .~.
    by Linux          /V\
     ------          // \\
  solutions for     /(   )\
  smart penguins     ^`~'^




More information about the MPlayer-users mailing list