annolinux / gnome-mplayer

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

Force use of cache => Paused video #213

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
0. Removed all gnome-mplayer and mplayer configs
1. Start gnome-mplayer and in preferences check Force cache usage on
streaming sites
2. Close gnome-mplayer
3. Start player 'gnome-mplayer sound.wav'

What is the expected output? What do you see instead?
Often the player instantly goes into Paused state. The Play button is
greyed out when this happens, althoug pressing the space bar makes the
media start/continue playing. The greyed out play button turns into a
greyed out pause button.

Occasionally the player will pause well into the media as well, but this is
quite rare.

Disable the Force cache usage makes everything work again.

What version of the product are you using? On what operating system?
Tested with 0.9.6 release and SVN of Jun 25th 20009.
Gentoo, no fance compile flags (just -O2).
Configure line:
./configure --prefix=/usr --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info
--datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
--disable-dependency-tracking --disable-schemas-install --disable-nautilus
--with-gio --without-gconf --with-alsa --without-libnotify
--without-libgpod --without-libmusicbrainz3 --disable-dependency-tracking
--disable-schemas-install --disable-nautilus --with-gio --without-gconf
--with-alsa --without-libnotify --without-libgpod --without-libmusicbrainz3

Please provide any additional information below.

Im using the force cache option because a lot of my media is played from
network filesystems over not that fast links. Though this problem occurs on
local files as well with this force cache option checked.

Attached is the debug output for gnome-mplayer when this pause problem occurs.

Original issue reported on code.google.com by m.c.huij...@gmail.com on 25 Jun 2009 at 9:26

Attachments:

GoogleCodeExporter commented 8 years ago
That option should only enable the mplayer cache. I don't see why that would 
cause
media issue. The log does not show any messages coming from the player that 
should
cause it to pause.

Original comment by kdeko...@gmail.com on 25 Jun 2009 at 2:02

GoogleCodeExporter commented 8 years ago
It seems to be related to cache size and size of the media file.

If media file < cache, it will do this pause thing. If I set the cache to 32kb, 
no
pausing happens (all media I tested is bigger then 32kb).

Doesn't explain why it would pause halfway on big files, or maybe it does 
because its
a cache underrun?

Original comment by m.c.huij...@gmail.com on 25 Jun 2009 at 2:35

GoogleCodeExporter commented 8 years ago
Perhaps upgrading to a newer mplayer will solve this issue. The force cache 
option is
something that I normally don't recommend, but it is there if you need it. 
Might also
try opening a bug with the mplayer team.

Original comment by kdeko...@gmail.com on 25 Jun 2009 at 2:49

GoogleCodeExporter commented 8 years ago
When opening a small file that goes into paused mode, if I then copy paste the
mplayer commandline from the debug output:

mplayer -quiet -slave -identify -volume 27 -framedrop -vf-pre 
yadif,softskip,scale
-noconsolecontrols -osdlevel 3 -nomouseinput -cache 2000 -wid 0x14002bd -ass
-embeddedfonts -ass-font-scale 1,00 -ass-color ffffff00 -vf-add pp=ac/tn:a 
-autoq 6
-vf-add screenshot -af-add export=/tmp/mplayer-af_exportyykopn:512
/usr/share/amsn/skins/default/sounds/online.wav

it plays as its supposed to without pausing.

Also when using
mplayer -cache 2000 /usr/share/amsn/skins/default/sounds/online.wav
always works without pausing.

With just mplayer I cannot reproduce the problem. Only when playing these small 
files
with force cache option in gnome-mplayer, gnome-mplayer (and mplayer) go into 
paused
mode.

If I hit spacebar in gnome-mplayer the file starts to play. The play/pause 
button
stayed bugged (greyed out/disabled) when the pause bug occurs, also after space 
bar
when the file plays this button stays disabled.

I will give it a go with a svn version of mplayer.

Original comment by m.c.huij...@gmail.com on 30 Jun 2009 at 10:21

GoogleCodeExporter commented 8 years ago
SVN version (MPlayer SVN-r29408-4.1.2) makes no difference.

Its a bit different from what I posted earlier. Mplayer does play a small 
fraction of
small files before mplayer seems to pause. On the gnome-mplayer UI it seems to 
be
'paused' as soon as it comes up though.

I've a attached one of the wav files I used for testing this.

Original comment by m.c.huij...@gmail.com on 30 Jun 2009 at 10:36

Attachments:

GoogleCodeExporter commented 8 years ago
While reading the source I found there is more debug output with verbose > 1, 
so I
changed the config file to verbose=2 and played the small file again.

Attached 2 logs
verbose.log: output from starting gnome-mplayer with the previously attached 
wav that
goes into paused.

verbose-after-spacebar.log: the output that is shown after hitting spacebar in
gnome-mplayer, which will now play the rest of the file.

From what I can make up from the logs is gnome-mplayer actually sends the pause 
command?

Original comment by m.c.huij...@gmail.com on 30 Jun 2009 at 10:45

Attachments:

GoogleCodeExporter commented 8 years ago
Should be fixed in SVN now. Side effect of the browser caching code when 
running as a
plugin.

Original comment by kdeko...@gmail.com on 30 Jun 2009 at 1:14

GoogleCodeExporter commented 8 years ago
Confirmed fixed.

This also fixed another issue I had with force cache and gnome-mplayer suddenly
pausing somewhere 2/3'rds into the media.

Again nice work!

Original comment by m.c.huij...@gmail.com on 30 Jun 2009 at 1:42

GoogleCodeExporter commented 8 years ago

Original comment by kdeko...@gmail.com on 2 Jul 2009 at 8:33