Mplayer and Coreavc-for-linux
This site contains installable binary packages (.deb) for Ubuntu 8.10 (Intrepid Ibex) for i368 and x86_64.
x86_64 version:
- Mplayer version is #27800
- coreavc-for-linux #77
Download and Installation instructions:
- Download mplayer_20081121-1_amd64.tgz [8.0MB] for x86_64
tar xvfz mplayer_20081121-1_amd64.tgz
dpkg -i mplayer_20081121-1_amd64.deb
cp usr/bin/* /usr/bin
>
i386 (32bit) version:
- Mplayer version is #27975
- coreavc-for-linux #82
Download and Installation instructions:
- Download mplayer_20081121-1_i368.tgz [7.0MB] for i386 (32bit)
tar xvfz mplayer_20081121-1_i368.tgz
dpkg -i mplayer_20081121-1_i368.deb
cp usr/bin/* /usr/bin
Note: You have to install and register
CoreAVCDecoder.ax
yourself. Install coreavc_professional_edition.exe
with wine
, and copy CoreAVCDecoder.ax into /usr/lib/win32.Registration is done for CoreAVCDecoder >= 1.7.x like this:
export REGISTRY=$HOME/.mplayer/registry32
registercodec -r $REGISTRY -k "HKLM\Software\CoreCodec\CoreAVC Pro\Serial" -v "55555-55555-CORE-55555-55555"
The 5’s are your serial key you get when you buy the product. You’ll also have to add an entry to your ~/.mplayer/codecs.conf.
If you don’t know how to use mplayer with coreavc-for-linux, search this site for avchd, mplayer or dshowserver, and you’ll find a lot of tips and HOWTOs.
Quick start:
/usr/local/bin/mplayer -vc coreserve my-video-matroska-sample.mkv
Thanks, man! I was almost going to have to run (gulp) Windows XP to get a few high bitrate 720p files to play on my Eee 1000h, but now they run perfectly!
@Anonymous Coward
🙂
Works great for me in with Ibex. This codec doesn’t choke in places that FFMpeg does. Really appreciate this one!
I can’t seem to get any subtitles to work with this (32bit) when playing mkv files, it’s the same thing with at least internal .ASS and external .SRT subtitles.
I’ve tried forcing them with -slang eng or -sub switches but it doesn’t help.
Video and audio works perfectly though, and subs work with vlc.
Any ideas?
Here’s the output:
[user@localhost home]$ /usr/local/bin/mplayer -fs -vc coreserve /media/disk-1/file.mkv
MPlayer dev-SVN-r27975-4.3.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (Family: 6, Model: 28, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
137 audio & 290 video codecs
Playing /media/disk-1/file.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AAC), -aid 0, -alang jpn
[mkv] Track ID 3: subtitles (S_TEXT/ASS), -sid 0, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280×720 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
Opening device
len: 992
ProductVersion: 1.8.5
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete
Dshowserver Connected to host
VDec: vo config request – 1280 x 720 (preferred colorspace: Packed YUY2)
[PP] Using codec’s postprocessing, max q = 4.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 – prescaling to correct movie aspect.
VO: [xv] 1280×720 => 1280×720 Planar YV12 [fs]
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
Found DirectShow filterSelected video codec: [coreserve] vfm: dshowserver (CoreAVC DShow H264 decoder 1.3 for x86 – http://corecodec.org/)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback…
[ASPECT] Warning: No suitable new res found!
pts value <= previous: -0.009 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0
Destroying filter A-V: 0.159 ct: -0.021 0/ 0 67% 3% 3.2% 6 0
Exiting… (Quit)
@eddie
Ok eddie, it took me some time to investigate that, but – I don’t have any clue.
I’m not an mplayer pro, so I don’t exactly know, if “–enable-menu” is needed for subtitles (wild ass guess), because this is the only thing I can think of, that could be needed for subtitles (but unlikely, because in my living room the mplayer is running with a plain “./configure” line, without any switch, and I do have subtitles there.
So could you please check first these points?
1) Ensure the subtitle (if not directly included in the stream itself) is in the same directory, and the name of e.g. the .srt file matches exactly the name of the video stream.
2) What happens, if you press “j” on the keyboard? This key lets the subtitles switch usually.
3) I can’t see it in your output above, but could you check the output for a missing font?
A font ~./mplayer/subfont.ttf must exist.
What does
ls -l ~./mplayer/subfont.ttf
return for you?Thanks
Regards
Andreas
Sorry for the delayed answer.
The problem really was/is with the mplayer fonts.
I didn’t have the subfont.ttf file, so I tried making a symbolic link from
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf to ~/.mplayer/subfont.ttf
but it didn’t help.
Then I tried adding different kinds of lines to .mplayer/config, like
font=/home/acer/.mplayer/subfont.ttf
and
font=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
but none worked.
So far the only working solution has been with this guide
http://top-web-solutions.com/mplayer-subtitles-font-change/
I extracted the raw subtitle files to ~/.mplayer/font/
and only then the subs show up, and can be enabled/disabled with the “j” button.
I think the problem might be with the ~/.mplayer/config file, that I’m missing the right line for truetype fonts to work,
or then it’s with the subfont.ttf file, is there maybe some specific way of creating it?
@eddie
Only think about it I do, is to simply copy the Vera.ttf font into ~/.mplayer/subfont.ttf.
E.g.
cp /usr/local/share/mms/fonts/Vera.ttf ~/.mplayer/subfont.ttf
And it was always working like that. I’ve never changed anything else.
hmm… this, doenst work for me.
I get the following error:
MPlayer dev-SVN-r27975-4.3.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (Family: 15, Model: 1, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
..
MPlayer interrupted by signal 4 in module: demux_open
– MPlayer crashed by an ‘Illegal Instruction’.
It usually happens when you run it on a CPU different than the one it was
compiled/optimized for.
Verify this!
– MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with –enable-debug and make a ‘gdb’ backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
– MPlayer crashed. This shouldn’t happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it’s MPlayer’s fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can’t and
won’t help unless you provide this information when reporting a possible bug.
Any ideas?
808y
@808y
well – The x86 package was compiled on a AMDx2 5200+ and the x86-64 on a Intel Q6600.
It seems your CPU is ‘too’ old.
Could you post the output of
and ensure sse2 flag is listed.
If not, your CPU is maybe too slow to playback HD content with 1.8GHz and CoreAVC.
Hi, thx for the fast answer 😀
cat /proc/cpuinfo | grep flags
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm up pebs bts
That’s the problem it says i have the needed extensions.
808y
Could you maybe build this again with autodetect?
That would be so nice.
Thx for the help anyway,
808y