Log in

View Full Version : Only audio is working. Missing codec?


bmnot
19th February 2008, 04:40
I dumped the STREAM folder from my blu-ray disc to the hard disk, and when I play it using mplayer, I get only audio. Here's the output.

death@death:~/Desktop/bd-rip$ mplayer 00026.m2ts
MPlayer 2:1.0~rc1-0ubuntu13.1 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz (Family: 6, Model: 15, Stepping: 10)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 00026.m2ts.
TS file format detected.
NO VIDEO! AUDIO A52(pid=4352) NO SUBS (yet)! PROGRAM N. 1
==========================================================================
Forced audio codec: mad
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 640.0 kbit/41.67% (ratio: 80000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 28.8 (28.8) of 312023.8 (86:40:23.7) 1.9%

Exiting... (End of file)
death@death:~/Desktop/bd-rip$

What codec do I need to play this? I tried installing everything that was there in the repositories, including w32codecs.

Henrikx
19th February 2008, 09:46
MPlayer 2:1.0~rc1-0ubuntu13.1 (C) 2000-2006 MPlayer Team

First install rc2, or compile svn version.

For Ubuntu - take a look at getdeb.

nm
19th February 2008, 09:47
Your MPlayer is too old. Compile the latest SVN version by yourself:
sudo apt-get remove mplayer
sudo apt-get install build-essential xorg-dev libasound2-dev subversion
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd mplayer
./configure
make
sudo make install

(there may be some other packages that need to be installed before MPlayer can be built properly, but you'll find out what you're missing sooner or later)

I'm not sure if MPlayer 1.0rc1 can be trusted on telling what Blu-ray .m2ts files contain, but are you sure that there actually is a video track in that file, because MPlayer doesn't seem to find any kind of video.

bmnot
19th February 2008, 12:26
Well I don't know, I ripped the disc, tried playing all the files in the folder and it was the same everytime.

Okay so I'll try a newer version of mplayer then

bmnot
19th February 2008, 13:41
Thanks! It's playing now :D

How do I choose the language? It's not playing english by default.

nm
19th February 2008, 13:55
-alang en

Or if that doesn't work, use mplayer -v file.m2ts to find out the correct audio track and try -aid NN (where NN is the track ID).

bmnot
19th February 2008, 20:06
I got the following output. Which one is the track ID? Sorry this is confusing :(

PARSE_PMT(1 INDEX 0), STREAM: 0, FOUND pid=0x1011 (4113), type=0x31435657, ES_DESCR_LENGTH: 8, bytes left: 120
...descr id: 0x5, len=4
...descr id: 0x81, len=4
PARSE_PMT(1 INDEX 1), STREAM: 1, FOUND pid=0x1100 (4352), type=0x2000, ES_DESCR_LENGTH: 12, bytes left: 103
...descr id: 0x5, len=4
...descr id: 0x81, len=4
PARSE_PMT(1 INDEX 2), STREAM: 2, FOUND pid=0x1101 (4353), type=0xffffffff, ES_DESCR_LENGTH: 12, bytes left: 86
...descr id: 0x5, len=4
...descr id: 0x81, len=4
PARSE_PMT(1 INDEX 3), STREAM: 3, FOUND pid=0x1102 (4354), type=0x2000, ES_DESCR_LENGTH: 12, bytes left: 69
...descr id: 0x5, len=4
...descr id: 0x81, len=4
PARSE_PMT(1 INDEX 4), STREAM: 4, FOUND pid=0x1103 (4355), type=0x2000, ES_DESCR_LENGTH: 12, bytes left: 52
...descr id: 0x5, len=4
...descr id: 0x81, len=4
PARSE_PMT(1 INDEX 5), STREAM: 5, FOUND pid=0x1104 (4356), type=0x2000, ES_DESCR_LENGTH: 12, bytes left: 35
...descr id: 0x5, len=8
PARSE_PMT(1 INDEX 6), STREAM: 6, FOUND pid=0x1105 (4357), type=0xffffffff, ES_DESCR_LENGTH: 10, bytes left: 20
PARSE_PMT(1 INDEX 7), STREAM: 7, FOUND pid=0x1200 (4608), type=0xffffffff, ES_DESCR_LENGTH: 0, bytes left: 15
PARSE_PMT(1 INDEX 8), STREAM: 8, FOUND pid=0x1201 (4609), type=0xffffffff, ES_DESCR_LENGTH: 0, bytes left: 10
PARSE_PMT(1 INDEX 9), STREAM: 9, FOUND pid=0x1202 (4610), type=0xffffffff, ES_DESCR_LENGTH: 0, bytes left: 5
PARSE_PMT(1 INDEX 10), STREAM: 10, FOUND pid=0x1203 (4611), type=0xffffffff, ES_DESCR_LENGTH: 0, bytes left: 0


Another problem I have is that the video has red spots here and there. When I was using the one from the repositories, I had the options nv, gl, gl2 etc to use with -vo, but now I have only xv and x11, and some other ones which don't work.

nm
19th February 2008, 21:10
I got the following output. Which one is the track ID? Sorry this is confusing :(
I thought it would have been a bit more verbose (haven't played with MPEG-TS myself), but apparently you'll need to use the decimal PIDs. PID 4113 is WVC1 video and PIDs 4352, 4354, 4355, 4356 seem to be AC3 audio, so try -aid 4354 and so on.

Another problem I have is that the video has red spots here and there. When I was using the one from the repositories, I had the options nv, gl, gl2 etc to use with -vo, but now I have only xv and x11, and some other ones which don't work.
I'm not familiar with "nv" output, but you'll get OpenGL outputs by installing the GL development headers (probably in x11proto-gl-dev) and then recompiling MPlayer. Start from the ./configure command if you still have the source tree around.

bmnot
19th February 2008, 23:34
nm, thanks a lot for the help. I now have english audio (-aid 4352).

Gonna try recompiling it again for gl. Will post when I've made further progress.

Added:

I already had x11proto-gl-dev so I installed a few more dev packages and configured it opengl but it still didn't work, so I installed a precompiled version of rc2 and now it's playing perfectly. :thanks: