mario0alberto1 / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
0 stars 0 forks source link

1.0.3 grabs the X11 input #507

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run gnome-mplayer 
http://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4

What is the expected output? What do you see instead?

Sometimes gnome-mplayer doesn't connect to the remote server. Then it shows 
"Connecting" (or sometimes "Stopped") all the time and grabs X11 input. I 
cannot move any window or close any window, keyboard and mouse don't work (I am 
able to move the mouse cursor). To kill gnome-mplayer I need to login from 
another machine with ssh and run killall -9 gnome-mplayer. All preferences are 
default.

What version of the product are you using? On what operating system?

1.0.3

Please provide any additional information below.

Debian Squeeze

Original issue reported on code.google.com by ksquirrel.iv@gmail.com on 28 Apr 2011 at 6:25

GoogleCodeExporter commented 8 years ago
If run strace or ltrace, gnome-mplayer always can open that video.

Original comment by ksquirrel.iv@gmail.com on 28 Apr 2011 at 6:28

GoogleCodeExporter commented 8 years ago
$ cat ~/.mplayer/config 

[default]
vo="xv"
ao="sdl"
framedrop="1"
softvol="1"

[gnome-mplayer]
msglevel=all=5

Original comment by ksquirrel.iv@gmail.com on 28 Apr 2011 at 6:30

GoogleCodeExporter commented 8 years ago
run gnome-mplayer -v 
http://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4

I'm guessing that will show some interesting information as to what is going 
on. That file is really huge (63MB) to be loading it from a website. It took 
15mins to download here at my location.

Original comment by kdeko...@gmail.com on 28 Apr 2011 at 6:31

GoogleCodeExporter commented 8 years ago
Hi.

$ gnome-mplayer -v 
http://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4
GNOME MPlayer v1.0.3
read mplayer config values: vo = (null)
Running with GIO support
Using audio device: Default
opening http://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4
is block 0
is character 0
is reg 0
is dir 0
playlist 0
embedded in window id 0x0
playlist detection = 0
adding http://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4 to 
playlist (cancel = 0)
The volume on 'Default' is 1.000000
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
playing - mmshttp://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4
is playlist 0
mplayer -quiet -slave -identify -softvol -volume 100 -framedrop 
-noconsolecontrols -noidle -osdlevel 0 -nomouseinput -cache 2000 -wid 0x460003b 
-ss 0 -ass -noembeddedfonts -ass-force-style 
FontName=Sans,Italic=0,Bold=0,Outline=0,Shadow=0 -ass-font-scale 1.00 
-ass-color ffffff00 -channels 2 -vf-add screenshot -dvd-device /dev/dvd -af-add 
export=/tmp/mplayer-af_exportbnkxse:512 -user-agent GnomeMplayer/1.0.3 
-nomsgcolor -nomsgmodule 
mmshttp://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4 
Spawn succeeded for filename 
mmshttp://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4
current size = 0 x 0 
MPlayer 1.0rc3-4.4.4 (C) 2000-2009 MPlayer Team
ERROR: mplayer: could not connect to socket
ERROR: mplayer: No such file or directory
ERROR: Failed to open LIRC support. You will not be able to use your remote 
control.

Playing mmshttp://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4.
STREAM_ASF, URL: 
mmshttp://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4
Resolving content.veptc.com for AF_INET6...
ERROR: Couldn't resolve name for AF_INET6: content.veptc.com
Resolving content.veptc.com for AF_INET...
Connecting to server content.veptc.com[64.62.173.222]: 80...

ERROR: Thread completing
Killed <=== (I logged in and killed)

Original comment by ksquirrel.iv@gmail.com on 28 Apr 2011 at 6:39

GoogleCodeExporter commented 8 years ago
Similar to what I get, it appears that mplayer is hanging on connect. A new 
version of mplayer should correct that.

I would strongly recommend that you upgrade mplayer, the version you have is 
pretty old.

gnome-mplayer http://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4 
GNOME MPlayer v1.0.3beta
read mplayer config values: vo = gl
Running with GIO support
Using audio device: Internal Audio Analog Stereo (PulseAudio)
opening http://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4
is block 0
is character 0
is reg 0
is dir 0
playlist 0
embedded in window id 0x0
playlist detection = 0
adding http://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4 to 
playlist (cancel = 0)
The volume on 'Internal Audio Analog Stereo (PulseAudio)' is 0.000000
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
playing - mmshttp://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4
is playlist 0
mplayer -profile gnome-mplayer -ao pulse::2 -quiet -slave -identify -volume 0 
-framedrop -vf-pre yadif,softskip,scale -noconsolecontrols -noidle -osdlevel 0 
-nomouseinput -cache 2000 -wid 0x5000056 -ss 0 -ass -noembeddedfonts 
-ass-force-style FontName=Sans,Italic=0,Bold=0,Outline=0,Shadow=0 
-ass-font-scale 1.00 -ass-color ffffff00 -channels 6 -vf-add screenshot -af-add 
export=/tmp/mplayer-af_exportbsvncc:512 -user-agent GnomeMplayer/1.0.3beta 
-nomsgcolor -nomsgmodule 
mmshttp://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4 
current size = 0 x 0 
Spawn succeeded for filename 
mmshttp://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4
MPlayer SVN-r33321-4.6.0 (C) 2000-2011 MPlayer Team
ERROR: mplayer: could not connect to socket

ERROR: mplayer: No such file or directory
Playing mmshttp://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4.
ERROR: Failed to open LIRC support. You will not be able to use your remote 
control.
STREAM_ASF, URL: 
mmshttp://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4
Resolving content.veptc.com for AF_INET6...
ERROR: 
Resolving content.veptc.com for AF_INET...
ERROR: Couldn't resolve name for AF_INET6: content.veptc.com
Connecting to server content.veptc.com[64.62.173.222]: 80...

ERROR: Thread completing
playing - http://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4
is playlist 0
mplayer -profile gnome-mplayer -ao pulse::2 -quiet -slave -identify -volume 0 
-framedrop -vf-pre yadif,softskip,scale -noconsolecontrols -noidle -osdlevel 0 
-nomouseinput -cache 2000 -wid 0x5000056 -ss 0 -ass -noembeddedfonts 
-ass-force-style FontName=Sans,Italic=0,Bold=0,Outline=0,Shadow=0 
-ass-font-scale 1.00 -ass-color ffffff00 -channels 6 -vf-add screenshot -af-add 
export=/tmp/mplayer-af_exportisorbb:512 -user-agent GnomeMplayer/1.0.3beta 
-nomsgcolor -nomsgmodule 
http://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4 
Spawn succeeded for filename 
http://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4
current size = 334 x 1 
MPlayer SVN-r33321-4.6.0 (C) 2000-2011 MPlayer Team
ERROR: mplayer: could not connect to socket

ERROR: mplayer: No such file or directory
Playing http://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4.
ERROR: Failed to open LIRC support. You will not be able to use your remote 
control.
Resolving content.veptc.com for AF_INET6...
Resolving content.veptc.com for AF_INET...
ERROR: 
Connecting to server content.veptc.com[64.62.173.222]: 80...
ERROR: Couldn't resolve name for AF_INET6: content.veptc.com

Cache size set to 2000 KBytes
Cache fill: 19.50% (399384 bytes)   

libavformat file format detected.
ID_VIDEO_ID=0
[lavf] stream 0: video (h264), -vid 0
ID_AUDIO_ID=0
Adding audio track, id = 0, label = 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  1280x720  24bpp  24.000 fps  2025.2 kbps (247.2 kbyte/s)
Clip info:
 major_brand: isom
ID_CLIP_INFO_NAME0=major_brand
ERROR: X11 error: BadMatch (invalid parameter attributes)
current size = 334 x 1 
ID_CLIP_INFO_VALUE0=isom
 minor_version: 1
ERROR: Couldn't open video filter 'ass'.
ID_CLIP_INFO_NAME1=minor_version
ERROR: ASS: cannot add video filter
ID_CLIP_INFO_VALUE1=1
 compatible_brands: isomavc1
ID_CLIP_INFO_NAME2=compatible_brands
ID_CLIP_INFO_VALUE2=isomavc1
 creation_time: 2011-01-05 18:36:55
ID_CLIP_INFO_NAME3=creation_time
ID_CLIP_INFO_VALUE3=2011-01-05 18:36:55
ID_CLIP_INFO_N=4
ID_FILENAME=http://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=2025168
ID_VIDEO_WIDTH=1280
ID_VIDEO_HEIGHT=720
ID_VIDEO_FPS=24.000
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=MP4A
ID_AUDIO_BITRATE=157192
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_START_TIME=0.00
ID_LENGTH=240.08
ID_SEEKABLE=1
ID_CHAPTERS=0
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
Opening video filter: [ass auto=1]
Opening video filter: [screenshot]
Opening video filter: [scale]
Opening video filter: [softskip]
Opening video filter: [yadif]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 157.2 kbit/11.14% (ratio: 19649->176400)
ID_AUDIO_BITRATE=157192
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[export] Exporting to file: /tmp/mplayer-af_exportisorbb
[export] Memory mapped to file: /tmp/mplayer-af_exportisorbb (0x7fcfcfacf000)
[export] Exporting to file: /tmp/mplayer-af_exportisorbb
[export] Memory mapped to file: /tmp/mplayer-af_exportisorbb (0x7fcfcfacf000)
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
[export] Exporting to file: /tmp/mplayer-af_exportisorbb
[export] Memory mapped to file: /tmp/mplayer-af_exportisorbb (0x7fcfcfacf000)
[export] Exporting to file: /tmp/mplayer-af_exportisorbb
[export] Memory mapped to file: /tmp/mplayer-af_exportisorbb (0x7fcfcfacf000)
ID_AUDIO_CODEC=ffaac
Starting playback...
ERROR: Unsupported PixelFormat 61
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ERROR: Unsupported PixelFormat 53
ID_VIDEO_ASPECT=1.7778
ERROR: X11 error: BadMatch (invalid parameter attributes)
current size = 334 x 1 
[swscaler @ 0xe33820]using unscaled yuv420p -> yuv420p special converter
VO: [gl] 1280x720 => 1280x720 Planar YV12 
Resizing to 1280 x 720
current size = 334 x 1 
Changing window size to 1280 x 720 visible = 1
ERROR: Failed to get value of property 'sub_demux'.
ANS_switch_audio is invalid -1
ANS_switch_audio is invalid -1
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
ERROR: Cache not filling, consider increasing -cache and/or -cache-min!
Thread completing

Original comment by kdeko...@gmail.com on 28 Apr 2011 at 6:51

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
>>it appears that mplayer is hanging on connect

Mplayer itself works fine, I tried 10 times to run mplayer http://content.. and 
it works ok. Sometimes it cannot connect, but then tries to reconnect and the 
second attempt goes fine

Original comment by ksquirrel.iv@gmail.com on 28 Apr 2011 at 7:00

GoogleCodeExporter commented 8 years ago
try

mplayer mmshttp://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4

That is what it appears to be hanging on.

Original comment by kdeko...@gmail.com on 28 Apr 2011 at 7:40

GoogleCodeExporter commented 8 years ago
Hmm, mplayer cannot connect to 
mmshttp://content.veptc.com/content/FF/VIDEO/tfl/LondonInWinter.mp4. What's 
that? Why gnome-mplayer use "mms" prefix?

Original comment by ksquirrel.iv@gmail.com on 28 Apr 2011 at 7:50

GoogleCodeExporter commented 8 years ago
Some website, particularly those that depend on Windows Media Player, tell the 
player to use http, but actually mean mms over http. So to duplicate this 
behavior we try mmshttp first and if that doesn't work we try http. If we do it 
the otherway, we may end up getting a playlist over and over, without getting 
the media data. So that is why we do it that way. 

Upgrading mplayer should fix the bug in mplayer with it getting stuck on an 
mmshttp URL.

Original comment by kdeko...@gmail.com on 28 Apr 2011 at 8:12

GoogleCodeExporter commented 8 years ago
Any luck with a newer mplayer?

Original comment by kdeko...@gmail.com on 30 Apr 2011 at 9:23

GoogleCodeExporter commented 8 years ago
Hello. New mplayer from testing works worse than from stable, I think I will 
not use it. For me, I've fixed this with commenting out the code which replaces 
http:// with mmshttp:// and recompiling gnome-mplayer

Original comment by ksquirrel.iv@gmail.com on 30 Apr 2011 at 9:31

GoogleCodeExporter commented 8 years ago
I also think that it will be great to have an option like 
--dont-replace-http-with-mmshttp and a checkbox in GUI

Original comment by ksquirrel.iv@gmail.com on 30 Apr 2011 at 9:32

GoogleCodeExporter commented 8 years ago
Unfortunately that option will cause even more problems for the general user, 
so I do not think I will add it.

Closing due to mplayer bug

Original comment by kdeko...@gmail.com on 30 Apr 2011 at 9:39