Discussion:
[MPlayer-users] problems with mplayer audio with snd_pc
George R Goffe
2017-05-18 19:44:38 UTC
Permalink
Hi,

I occasionally experience a hang when using mplayer built from source (At revision 37938.). The process appears to be blocked and causes reboot or shutdown hangs. This is a Fedora 27 x86_64 system (rawhide).


ANY help would be appreciated.

Thanks,

George...


I get these messages from mplayer:

libavformat version 57.72.101 (internal)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x559a32022260]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 852x480 24bpp 24.000 fps 961.6 kbps (117.4 kbyte/s)
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.94.101 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
major_brand: isom
minor_version: 512
compatible_brands: isomiso2avc1mp41
encoder: Lavf55.48.100
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 64.0 kbit/2.27% (ratio: 8001->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...

Here's what the ps command says about the process:

F S UID PID PPID CLS PRI ADDR SZ WCHAN STIME TTY TIME CMD
0 D root 11899 2080 TS 19 - 152952 snd_pc 12:23 pts/5 00:00:00 /usr/lsd/bin/mplayer -idx -fs -loop 0 -fs -zoom -idx
Dominik 'Rathann' Mierzejewski
2017-05-18 20:38:33 UTC
Permalink
Hello, George.
Post by George R Goffe
Hi,
I occasionally experience a hang when using mplayer built from source (At revision 37938.). The process appears to be blocked and causes reboot or shutdown hangs. This is a Fedora 27 x86_64 system (rawhide).
ANY help would be appreciated.
Thanks,
George...
You didn't post the beginning of output (including the command line).
Please don't omit that.
Post by George R Goffe
libavformat version 57.72.101 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 852x480 24bpp 24.000 fps 961.6 kbps (117.4 kbyte/s)
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.
Try -vo gl. What GPU do you have?
Post by George R Goffe
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.94.101 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
major_brand: isom
minor_version: 512
compatible_brands: isomiso2avc1mp41
encoder: Lavf55.48.100
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 64.0 kbit/2.27% (ratio: 8001->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Try -ao pulse.

Regards,
Dominik
--
MPlayer http://mplayerhq.hu | RPM Fusion http://rpmfusion.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
George R Goffe
2017-05-19 17:52:03 UTC
Permalink
Dominik,

Thank you for your response. Here are the answers to your questions:

I'll be testing your suggestions later today.

THANKS!


George...


cmdline options: mplayer -loop 0 -fs -zoom -idx

gpuinfo from the spec sheet for Asus N53SN
Graphics adapter
NVIDIA GeForce GT 550M - 2048 MB,
Core: 740 MHz,
Memory: 900 MHz,
1480 MHz shader clock,
DirectX 11,
ForceWare 266.39,
Nvidia Optimus (Intel GMA HD 3000, 8.15.10.2253), 8.17.12.6639







There should be a science of discontent. People need hard times and

oppression to develop psychic muscles.

-- from "Collected Sayings of Muad'Dib" by the Princess Irulan



WHAT A COOL BOOK!
d***@greysector.net
2017-05-22 20:13:33 UTC
Permalink
Hello, George.

On Friday, 19 May 2017 at 19:52, George R Goffe wrote:
[...]
Post by George R Goffe
cmdline options: mplayer -loop 0 -fs -zoom -idx
Don't use -zoom, it forces software scaling, which may be slow.
You should take advantage of the hardware scaling capabilites
of your GPU. I.e. use -vo vdpau, -vo gl or -vo xv.
Post by George R Goffe
gpuinfo from the spec sheet for Asus N53SN
Graphics adapter
NVIDIA GeForce GT 550M - 2048 MB,
Core: 740 MHz,
Memory: 900 MHz,
1480 MHz shader clock,
DirectX 11,
ForceWare 266.39,
Nvidia Optimus (Intel GMA HD 3000, 8.15.10.2253), 8.17.12.6639
You should be able to use either intel or nvidia gpu for accelerated
video playback.

For any troubleshooting, you need to provide the full command line
with -v option added and not modify/cut the output in anyway.

Regards,
Dominik
--
MPlayer http://mplayerhq.hu | RPM Fusion http://rpmfusion.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
Dominik Mierzejewski
2017-05-22 20:20:40 UTC
Permalink
Hi, George.
I'm replying to the list so that others might chime in and so that
the solution stays public in case anyone has a similar issue.
I tried your suggestions and at first they seemed to work but now,
mplayer seems to be trying other sound related code. First try it
tried azx_pc which is now blocked, then it tried snd_pc... same result.
I have no idea what you mean by the above. Please post unedited mplayer
output with -v option added to the commandline that reproduces the above
issue(s).
Isn't there a way to attempt this process in such a way as to NOT block?
I don't know if these are kernel modules or just what's happening.
I'm not sure that the sound system in this computer is fully functional
or not,
Again, no idea what you're talking about here.
is there a way to disable audio in Mplayer?
Yes, mplayer -nosound. man mplayer would tell you that.

Regards,
Dominik
--
MPlayer http://mplayerhq.hu | RPM Fusion http://rpmfusion.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
Loading...