LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-20-2012, 10:44 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
mplayer will do it his way.


Hi:

How do I tell mplayer to look for the stream in /dev/hdc? It looks into /dev/dvd but /dev/dvd does not exist. I can create it with mknod, but do not know the minor and major numbers. The type I think must be 'b'.
 
Old 07-21-2012, 12:44 AM   #2
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
A solution, almost:

Code:
mplayer dvd:// -dvd-device /dev/hdc.
That should work. However:
Code:
semoi@host_1:~/STORE1/soft/linux/grabacion$ mplayer dvd:// -cache 10000 -cache-min 50   -dvd-device /dev/hdc
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(TM) CPU                1100MHz (Family: 6, Model: 11, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Playing dvd://.
Couldn't open DVD device: /dev/hdc
No stream found to handle url dvd://


Exiting... (End of file)
semoi@host_1:~/STORE1/soft/linux/grabacion$ mplayer dvd:// -cache 10000 -cache-min 50   -dvd-device /dev/hdc
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(TM) CPU                1100MHz (Family: 6, Model: 11, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Playing dvd://.
There are 3 titles on this DVD.
There are 8 chapters in this DVD title.
There are 1 angles in this DVD title.
*** Zero check failed in ifo_read.c:735
    for cell_position[i].zero_1 = 0x20
*** Zero check failed in ifo_read.c:761
    for pgc->zero_1 = 0x0008
*** Zero check failed in ifo_read.c:767
    for pgc->audio_control[i] = 0x0008
*** Zero check failed in ifo_read.c:767
    for pgc->audio_control[i] = 0x0020
*** Zero check failed in ifo_read.c:767
    for pgc->audio_control[i] = 0x0008
*** Zero check failed in ifo_read.c:767
    for pgc->audio_control[i] = 0x0021
*** Zero check failed in ifo_read.c:767
    for pgc->audio_control[i] = 0x0008
*** Zero check failed in ifo_read.c:767
    for pgc->audio_control[i] = 0x0022
*** Zero check failed in ifo_read.c:767
    for pgc->audio_control[i] = 0x0009
*** Zero check failed in ifo_read.c:767
    for pgc->audio_control[i] = 0x0001
audio stream: 0 format: ac3 (5.1) language: en aid: 128.
audio stream: 1 format: ac3 (5.1) language: de aid: 129.
audio stream: 2 format: ac3 (5.1) language: fr aid: 130.
audio stream: 3 format: ac3 (5.1) language: it aid: 131.
audio stream: 4 format: ac3 (5.1) language: es aid: 132.
number of audio channels on disk: 5.
subtitle ( sid ): 0 language: en
subtitle ( sid ): 1 language: de
subtitle ( sid ): 2 language: fr
subtitle ( sid ): 3 language: it
subtitle ( sid ): 4 language: es
subtitle ( sid ): 5 language: nl
subtitle ( sid ): 6 language: sv
subtitle ( sid ): 7 language: fi
subtitle ( sid ): 8 language: no
subtitle ( sid ): 9 language: da
subtitle ( sid ): 10 language: pt
subtitle ( sid ): 11 language: el
subtitle ( sid ): 12 language: hu
subtitle ( sid ): 13 language: iw
subtitle ( sid ): 14 language: tr
number of subtitles on disk: 15
Cache fill:  1.48% (151552 bytes)   
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  8000.0 kbps (1000.0 kbyte/s)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 1024x576 Planar YV12 
A:   0.6 V:   0.3 A-V:  0.220 ct:  0.008   2/  2 ??% ??% ??,?% 0 0 0% 

Exiting... (End of file)
semoi@host_1:~/STORE1/soft/linux/grabacion$
Even more: if I replace '-dvd-device' by 'dvd-device' then it doesn't quit:
Code:
semoi@host_1:~/STORE1/soft/linux/grabacion$ mplayer dvd:// -cache 10000 -cache-min 50   dvd-device /dev/hdc
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(TM) CPU                1100MHz (Family: 6, Model: 11, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Playing dvd://.
Couldn't open DVD device: /dev/dvd
No stream found to handle url dvd://


Playing dvd-device.
File not found: 'dvd-device'
Failed to open dvd-device.


Playing /dev/hdc.
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  9800.0 kbps (1225.0 kbyte/s)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 1024x576 Planar YV12 
New_Face failed. Maybe the font path is wrong. 2 ??% ??% ??,?% 1 0 
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
A:   3.2 V:   2.7 A-V:  0.478 ct:  0.060  63/ 63 58% 48%  5.2% 54 0 

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

A:   1.2 V:   7.9 A-V: -6.654 ct: -0.011 192/192 59% 49% 11.2% 179 0 
Exiting... (Quit) [[[[[[[[[[At my request]]]]]]]]]]]
semoi@host_1:~/STORE1/soft/linux/grabacion$
What can possible be the cause of mplayer accepting a wrong syntax?
 
Old 07-22-2012, 12:45 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MPlayer GUI (gmplayer - NOT gnome-mplayer) single instance fix... poweredbydodge Linux - Desktop 5 04-12-2011 03:34 PM
LXer: SMPlayer and GNOME Mplayer - Two Incredibly Good Mplayer Based Media Players For Ubuntu LXer Syndicated Linux News 0 07-13-2010 02:10 AM
Mplayer build: configure finds ALSA, but mplayer doesn't galle Linux - Software 5 10-13-2007 06:14 PM
Mplayer codecs - running 32bit mplayer on 64bit OS sleepyrob Linux - Software 2 08-12-2006 05:08 AM
In Kubuntu I have compiled MPlayer and it works fine, MPlayer Plug-in is not working kickass331 Linux - Newbie 10 08-11-2006 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration