[MPlayer-users] MPEG-2 streams id'd as H264-ES
Steven M. Schultz
sms at 2BSD.COM
Sat Mar 27 05:23:24 CET 2004
Hi!
MPlayer seems to misidentify MPEG2-ES files as H264-ES format. If
I mux (using mplex) the .m2v file with an audio stream MPlayer will
play the resulting .mpg file fine.
The file(1) program says the file is MPEG video:
file 032604182201.m2v
032604182201.m2v: MPEG video stream data
MPlayer says:
Script started on Fri Mar 26 20:18:55 2004
mplayer -v 032604182201.m2v
MPlayer dev-CVS-040326-08:47-3.3 (C) 2000-2004 MPlayer Team
AltiVec found
CPU: PowerPC
Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /Users/stevenschultz/.mplayer/config
Reading /Users/stevenschultz/.mplayer/codecs.conf: Can't open '/Users/stevenschultz/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' '032604182201.m2v'
get_path('font/font.desc') -> '/Users/stevenschultz/.mplayer/font/font.desc'
font: can't open file: /Users/stevenschultz/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using Unoptimized OnScreenDisplay
Using usleep() timing
get_path('input.conf') -> '/Users/stevenschultz/.mplayer/input.conf'
Parsing input config file /Users/stevenschultz/.mplayer/input.conf
Input config file /Users/stevenschultz/.mplayer/input.conf parsed: 53 binds
get_path('032604182201.m2v.conf') -> '/Users/stevenschultz/.mplayer/032604182201.m2v.conf'
Playing 032604182201.m2v.
[file] File size is 106394300 bytes
STREAM: [file] 032604182201.m2v
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x1832c00
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x1832c00
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x1832c00
Checking for REAL
DEMUXER: freeing demuxer at 0x1832c00
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x1832c00
DEMUXER: freeing demuxer at 0x1833600
DEMUXER: freeing demuxer at 0x1833600
Searching demuxer type for filename 032604182201.m2v ext: .m2v
Trying demuxer 2 based on filename extension
sync_mpeg_ps: seems to be ES/PES stream...
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 149 p101: 298 p1B6: 0 p12x: 4144 sli: 594 a: 594 b: 594 c: 0 idr: 296 sps: 0 pps: 296 PES: 0 MP3: 0
H264-ES file format detected.
==> Found video stream: 0
Searching for sequence parameter set... OK!
Searching for picture parameter set... 0x127
0x127
0x128
OK!
Searching for Slice... OK!
[V] filefmt:30 fourcc:0x10000005 size:0x0 fps: 0.00 ftime:=0.0000
FPS not specified in the header or invalid, use the -fps option.
No stream found.
DEMUXER: freeing demuxer at 0x1834000
DEMUXER: freeing sh_video at 0x2141dd0
vo: x11 uninit called but X11 not inited..
Exiting... (End of file)
Script done on Fri Mar 26 20:19:14 2004
od(1) says:
od -x 032604182201.m2v | head
0000000 0000 01b3 5002 d037 274c 2f40 0000 01b5
0000020 144a 0001 0000 0000 01b8 0008 0040 0000
0000040 0100 000f fff8 0000 01b5 8fff f351 8000
0000060 0001 b538 4080 8098 8098 b0b0 b0b0 d0d0
0000100 d0d0 d0d8 d8d8 d8d8 d8e8 e8f1 00f0 e8e9
0000120 1111 1921 2119 1111 2931 3141 3131 2931
0000140 3949 4939 3141 6991 6941 81b1 b181 d201
0000160 d22a 2a9c 3040 404c 404c 5858 5858 5858
0000200 6860 686c 6c6c 6868 6868 6c6c 6c74 7474
0000220 8888 8874 7474 6c6c 7474 8080 8888 9498
and finally mplex says:
mplex -f 3 -r 20000 -o /dev/null 032604182201.m2v 032604182201.ac3
INFO: [mplex] File 032604182201.m2v looks like an MPEG Video stream.
INFO: [mplex] File 032604182201.ac3 looks like an AC3 Audio stream.
INFO: [mplex] Found 1 audio streams and 1 video streams
INFO: [mplex] Selecting generic MPEG2 output profile
INFO: [mplex] Multiplexing video program stream!
INFO: [mplex] Scanning for header info: Video stream e0 (032604182201.m2v)
INFO: [mplex] VIDEO STREAM: e0
INFO: [mplex] Frame width : 1280
INFO: [mplex] Frame height : 720
INFO: [mplex] Aspect ratio : 16:9 display
INFO: [mplex] Picture rate : 59.940 frames/sec
INFO: [mplex] Bit rate : 16096000 bits/sec
INFO: [mplex] Vbv buffer size : 999424 bytes
INFO: [mplex] CSPF : 0
INFO: [mplex] Scanning for header info: AC3 Audio stream 00 (032604182201.ac3)
INFO: [mplex] AC3 frame size = 1536
INFO: [mplex] AC3 AUDIO STREAM:
INFO: [mplex] Bit rate : 49152 bytes/sec (384 kbit/sec)
INFO: [mplex] Frequency : 48000 Hz
INFO: [mplex] SYSTEMS/PROGRAM stream:
INFO: [mplex] rough-guess multiplexed stream data rate : 16828448
INFO: [mplex] target data-rate specified : 20000000
INFO: [mplex] Setting specified specified data rate: 20000000
INFO: [mplex] Run-in Sectors = 97 Video delay = 7151 Audio delay = 8653
INFO: [mplex] New sequence commences...
INFO: [mplex] Video e0: buf= 0 frame=000000 sector=00000000
INFO: [mplex] Audio bd: buf= 0 frame=000000 sector=00000000
INFO: [mplex] Padding : sector=00000000
INFO: [mplex] STREAM bd completed @ frame 2155.
INFO: [mplex] Scanned to end AU 4137
INFO: [mplex] STREAM e0 completed @ frame 4137.
INFO: [mplex] Multiplex completion at SCR=6205464.
INFO: [mplex] Video e0: buf= 220407 frame=004137 sector=00052626
INFO: [mplex] Audio bd: buf= 6144 frame=002155 sector=00001646
INFO: [mplex] Padding : sector=00029895
INFO: [mplex] VIDEO_STATISTICS: e0
INFO: [mplex] Video Stream length: 106394300 bytes
INFO: [mplex] Sequence headers: 138
INFO: [mplex] Sequence ends : 1
INFO: [mplex] No. Pictures : 4138
INFO: [mplex] No. Groups : 138
INFO: [mplex] No. I Frames : 138 avg. size 98247 bytes
INFO: [mplex] No. P Frames : 1242 avg. size 33893 bytes
INFO: [mplex] No. B Frames : 2758 avg. size 18397 bytes
INFO: [mplex] Average bit-rate : 12328400 bits/sec
INFO: [mplex] Peak bit-rate : 16090800 bits/sec
INFO: [mplex] BUFFERING min 15 Buf max 146347
INFO: [mplex] AUDIO_STATISTICS: bd
INFO: [mplex] Audio stream length 3311616 bytes.
INFO: [mplex] Frames : 2156
INFO: [mplex] BUFFERING min 22 Buf max 7288
Any idea why MPlayer's the only program to not think it's MPEG-2
data?
Cheers,
Steven Schultz
More information about the MPlayer-users
mailing list