pycousin / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
GNU General Public License v2.0
0 stars 0 forks source link

Displayed video is too small #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Play any video (mpg, avi, wmv, flv etc)

What is the expected output? What do you see instead?
I'm expecting to see a normal/usable display, instead I see the video
playing in an area the size of a UI button. The display cannot be resized
unless you enable the playlist but this does not resize the video. The
video plays fine when launched from the command line version of mplayer and
the gui version (gmplayer). All versions are configured to use xv/oss and I
tried x11 and gl in gnome-mplayer with no effect.

What version of the product are you using? On what operating system?
This is using v0.6.3 on Debian (Sid)

Please provide any additional information below.
I've attacted two screen shots, the default view and after resizing the
video. (If you look closely you'll see the video under the File menu)

Original issue reported on code.google.com by JSinclai...@gmail.com on 4 Aug 2008 at 8:56

Attachments:

GoogleCodeExporter commented 8 years ago
I don't see this problem. Can you please send me a sample file for testing? 
Also, can
you try the official 0.6.3 or from SVN and see if you get any different results.

Original comment by kdeko...@gmail.com on 5 Aug 2008 at 1:45

GoogleCodeExporter commented 8 years ago

Original comment by kdeko...@gmail.com on 5 Aug 2008 at 1:53

GoogleCodeExporter commented 8 years ago
Ok, I've tried 0.6.3, 0.6.2, 0.5.0 and the svn version, all exhibit the same 
problem.

Rather than upload someone's copyrighted content, try this web-page showing the
trailer for Watchmen. It exhibits the problem even when embedded in Iceweasel. 
Again,
the downloaded video (and all others) plays fine in totem, mplayer command line 
and
gui versions.

The trailer is here http://www.apple.com/trailers/wb/watchmen/low.html

uname -a
Linux baal 2.6.25-2-amd64 #1 SMP Mon Jul 14 11:05:23 UTC 2008 x86_64 GNU/Linux

I don't know if this is related or not but I notice gnome-mplayer leaving an 
instance
of mplayer behind when the program is closed via the window's close button. 
(After
several runs I've just killed 9 copies of mplayer)

Original comment by JSinclai...@gmail.com on 5 Aug 2008 at 5:12

GoogleCodeExporter commented 8 years ago
I've been fiddling around with the code and I think I may have found the reason 
but
not the cause why it's so small.

I had added a few printf's to resize_window() in gui.c to see what was going on 
and
noticed they were not showing up. It seems that resize_window() it is not being
called in my case and is therefore staying at the default 16x16 size you set 
during
play_file() in main.c. 

When I set the correct window size (480x204) in play_file() for my test video I 
get a
perfect display.

Could this be an issue of AMD64 and resize_window() being called only in the 
thread
idle callbacks?

Original comment by JSinclai...@gmail.com on 5 Aug 2008 at 5:54

GoogleCodeExporter commented 8 years ago
Can you please tell me what version of mplayer you are using. And also what vo 
you
are using? the fact the mplayer is leaving instances behind makes me a little 
worried
since that should not be happening and it does happen with older versions of 
mplayer.

Original comment by kdeko...@gmail.com on 5 Aug 2008 at 7:36

GoogleCodeExporter commented 8 years ago
vo is currently set to "xv", I've also tried x11 and gl with no difference.
mplayer reports "dev-SVN-r26940" 

Also if I use File->Details I'm told that the video size is "1x1" which is a 
fair bit
off from the correct "480x204" size.

Original comment by JSinclai...@gmail.com on 6 Aug 2008 at 6:21

GoogleCodeExporter commented 8 years ago
Well I tried the watchmen trailer and this is what I get. Perhaps it is due to
missing codecs?

Can you try this command and report back what the output is...

mplayer "http://movies.apple.com/movies/wb/watchmen/watchmen-tlr1_h320.mov"

Original comment by kdeko...@gmail.com on 6 Aug 2008 at 1:28

Attachments:

GoogleCodeExporter commented 8 years ago
Remember, it doesn't matter what video I try (mov, flv, avi, wmv, mpg) the 
result is
the same; a display still at the default 16x16 size.

Could you do me a favour and drop a printf() in the resize_window function? As 
I said
earlier, resize_window doesn't seem to be getting called when I run 
gnome-mplayer so
the display stays at 16x16. I'm interested in when the window is being resized 
on
your system.

Here's my output:

$ mplayer "http://movies.apple.com/movies/wb/watchmen/watchmen-tlr1_h320.mov"
MPlayer dev-SVN-r26940
CPU: Intel(R) Core(TM)2 Duo CPU     E6850  @ 3.00GHz (Family: 6, Model: 15, 
Stepping: 11)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory

(I've got latest codecs from www.debian-multimedia.org & mplayer codec bundle 
so that
might be why quicktime (mov) files play better on my system)

Original comment by JSinclai...@gmail.com on 6 Aug 2008 at 2:36

GoogleCodeExporter commented 8 years ago
I think something is wrong with your mplayer... this is what I get

mplayer "http://movies.apple.com/movies/wb/watchmen/watchmen-tlr1_h320.mov"
MPlayer dev-SVN-r27354-4.1.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz (Family: 6, Model: 15, 
Stepping: 11)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
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 http://movies.apple.com/movies/wb/watchmen/watchmen-tlr1_h320.mov.
Resolving movies.apple.com for AF_INET6...
Couldn't resolve name for AF_INET6: movies.apple.com
Resolving movies.apple.com for AF_INET...
Connecting to server movies.apple.com[207.138.126.177]: 80...
Cache size set to 320 KBytes
Cache fill: 17.50% (57344 bytes)   
ISO: File Type Major Brand: Original QuickTime
Quicktime/MOV file format detected.
[mov] Video stream found, -vid 0
[mov] Audio stream found, -aid 1
VIDEO:  [avc1]  320x136  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 comments: Encoded and delivered by apple.com/trailers/
 copyright: � 2008 Warner Bros. Pictures. All Rights Reserved
 name: Watchmen
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 96.0 kbit/6.80% (ratio: 12000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
[h264 @ 0x8809050]brainfart cropping not supported, this could look slightly 
wrong ...
VDec: vo config request - 320 x 136 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x136 => 320x136 Planar YV12 
A:   1.9 V:   1.9 A-V:  0.000 ct:  0.023  47/ 47  1%  0%  0.8% 0 0 60% 
Exiting... (Quit)

Original comment by kdeko...@gmail.com on 6 Aug 2008 at 3:26

GoogleCodeExporter commented 8 years ago
Committed patch to gnome-mplayer for window resize message look for 'Changing 
window
size to ? x ?'

Run with -v option to see

Original comment by kdeko...@gmail.com on 6 Aug 2008 at 3:30

GoogleCodeExporter commented 8 years ago
Sample run of gnome-mplayer from SVN

src/gnome-mplayer -v 
"http://movies.apple.com/movies/wb/watchmen/watchmen-tlr1_h320.mov"

GNOME MPlayer v0.6.3
vo = x11 ao = pulse
opening http://movies.apple.com/movies/wb/watchmen/watchmen-tlr1_h320.mov
is block 0
is character 0
is reg 0
is dir 1
playlist 0
embedded in window id 0
playlist detection = 0
playing - http://movies.apple.com/movies/wb/watchmen/watchmen-tlr1_h320.mov is
playlist = 0
playing - http://movies.apple.com/movies/wb/watchmen/watchmen-tlr1_h320.mov
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
Spawn succeeded for filename
http://movies.apple.com/movies/wb/watchmen/watchmen-tlr1_h320.mov
MPlayer dev-SVN-r27354-4.1.2 (C) 2000-2008 MPlayer Team
ERROR: mplayer: could not connect to socket
CPU: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz (Family: 6, Model: 15, 
Stepping: 11)
ERROR: mplayer: No such file or directory
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
ERROR: Failed to open LIRC support. You will not be able to use your remote 
control.
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
ERROR: Couldn't resolve name for AF_INET6: movies.apple.com

Playing http://movies.apple.com/movies/wb/watchmen/watchmen-tlr1_h320.mov.
Resolving movies.apple.com for AF_INET6...
Resolving movies.apple.com for AF_INET...
Connecting to server movies.apple.com[69.26.165.54]: 80...
Cache size set to 320 KBytes
Cache fill: 12.50% (40960 bytes)   
ISO: File Type Major Brand: Original QuickTime
Quicktime/MOV file format detected.
ID_VIDEO_ID=0
[mov] Video stream found, -vid 0
ID_AUDIO_ID=1
[mov] Audio stream found, -aid 1
VIDEO:  [avc1]  320x136  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 comments: Encoded and delivered by apple.com/trailers/
ID_CLIP_INFO_NAME0=comments
ID_CLIP_INFO_VALUE0=Encoded and delivered by apple.com/trailers/
 copyright: � 2008 Warner Bros. Pictures. All Rights Reserved
ID_CLIP_INFO_NAME1=copyright
ID_CLIP_INFO_VALUE1=� 2008 Warner Bros. Pictures. All Rights Reserved
 name: Watchmen
ID_CLIP_INFO_NAME2=name
ID_CLIP_INFO_VALUE2=Watchmen
ID_CLIP_INFO_N=3
ID_FILENAME=http://movies.apple.com/movies/wb/watchmen/watchmen-tlr1_h320.mov
ID_DEMUXER=mov
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=320
ID_VIDEO_HEIGHT=136
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=mp4a
ID_AUDIO_BITRATE=96000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_LENGTH=139.18
ID_SEEKABLE=0
[ass] auto-open
Opening video filter: [screenshot]
Opening video filter: [eq2]
Opening video filter: [scale]
Opening video filter: [softskip]
Opening video filter: [yadif]
[ass] Init
[ass] Updating font cache.
==========================================================================
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: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 96.0 kbit/6.80% (ratio: 12000->176400)
ID_AUDIO_BITRATE=96000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=faad
ERROR: [h264 @ 0x8809050]brainfart cropping not supported, this could look 
slightly
wrong ...
Starting playback...
VDec: vo config request - 320 x 136 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x87f1ae0]using unscaled yuv420p -> yuv420p special converter
[swscaler @ 0x87f1ae0]No accelerated colorspace conversion found.
VO: [x11] 320x136 => 320x136 Planar YV12  [zoom]
Resizing to 320 x 136 
Changing window size to 320 x 136 
Thread: state = QUIT, shutting down
Thread completing

Original comment by kdeko...@gmail.com on 6 Aug 2008 at 3:35

GoogleCodeExporter commented 8 years ago
Ok, here's my output when using the same message level (5) as you.
(I'll retry the svn version)

$ mplayer -msglevel all=5
"http://movies.apple.com/movies/wb/watchmen/watchmen-tlr1_h320.mov"
MPlayer dev-SVN-r26940
CPU: Intel(R) Core(TM)2 Duo CPU     E6850  @ 3.00GHz (Family: 6, Model: 15, 
Stepping: 11)
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 http://movies.apple.com/movies/wb/watchmen/watchmen-tlr1_h320.mov.
Resolving movies.apple.com for AF_INET6...
Couldn't resolve name for AF_INET6: movies.apple.com
Resolving movies.apple.com for AF_INET...
Connecting to server movies.apple.com[203.206.129.19]: 80...
Cache size set to 320 KBytes
Cache fill: 17.50% (57344 bytes)   
ISO: File Type Major Brand: Original QuickTime
Quicktime/MOV file format detected.
[mov] Video stream found, -vid 0
[mov] Audio stream found, -aid 1
VIDEO:  [avc1]  320x136  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 comments: Encoded and delivered by apple.com/trailers/
 copyright: � 2008 Warner Bros. Pictures. All Rights Reserved
 name: Watchmen
Opening video filter: [hqdn3d]
Opening video filter: [pp=de]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
[PP] Using external postprocessing filter, max q = 6.
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 96.0 kbit/6.80% (ratio: 12000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
[h264 @ 0xb3d920]brainfart cropping not supported, this could look slightly 
wrong ...
VDec: vo config request - 320 x 136 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x136 => 320x136 Planar YV12 
A:   5.0 V:   5.0 A-V: -0.000 ct:  0.024 120/120  2%  1%  0.4% 0 6 53% 
Exiting... (Quit)

Original comment by JSinclai...@gmail.com on 7 Aug 2008 at 6:40

GoogleCodeExporter commented 8 years ago
Hah, I worked out what's going on.

The latest svn version works... as do all the previous versions. After I 
changed my
config to get the same output as you.

It seems that you're getting the video's details from mplayer's stdout... which 
works
fine when a user has not modified their config to limit the amount of spam 
mplayer
sends to the console. (It's no problem for gui users, but most people who use 
mplayer
from a command line occasionally don't want 2-3 pages of crap spewed out each 
time
it's run :)

Setting the config item (really-quiet=1), or any msglevel besides the 
informational
one will break gnome-mplayer. To reproduce what I was seeing set   
really-quiet="1" 
 in ~/.mplayer/config and run a video.

I had a quick try at modifying thread.c to add "msglevel all=5" to mplayer's 
options,
but it looks like the config option "really-quiet" overrides the command line
msglevel, which is stupid because an explicit command line should always 
override
general default config >.<

Anyway, I've removed the really-quiet option from the [default] profile and 
added it
to a new [cmd-line] profile so it doesn't conflict with the [gnome-mplayer] 
profile.
Gnome-mplayer is now working fine.

ps. Note the default profile is read and applied before gnome-player one.

Original comment by JSinclai...@gmail.com on 7 Aug 2008 at 7:40

GoogleCodeExporter commented 8 years ago

Original comment by kdeko...@gmail.com on 7 Aug 2008 at 1:08

GoogleCodeExporter commented 8 years ago
As a workaround I added really-quiet=0 to gnome-mplayer profile in the
~/.mplayer/config file

Original comment by kdeko...@gmail.com on 7 Aug 2008 at 7:03

GoogleCodeExporter commented 8 years ago
Redid the workaround and added msglevel=5 to the profile, this allows 
really-quiet to
be in the default profile but for gnome-mplayer to still work correctly.

Original comment by kdeko...@gmail.com on 7 Aug 2008 at 7:10