Open GoogleCodeExporter opened 8 years ago
Seeking depends on if mplayer reports if the media is seekable or not.
Upgrading mplayer may solve your problem.
Original comment by kdeko...@gmail.com
on 23 Jul 2011 at 2:09
I don't think that this issue has more to do with the peculiarities of the AVI
format when a given .avi is truncated, than with the version of mplayer. By
default media players (at least mplayer and vlc) cannot seek truncated .avi
files. Since the 2% buffer is essentially a truncated .avi file, when playing
starts automatically the ability to seek throughout the file is lost. (This
doesn't hold for .flv format.)
I have now tested with mplayer SVN 33891 and the problem persists. Waiting for
the file to download completely before starting the playback may be the only
way to enable seeking in such cases, and the user might want to do this.
Original comment by landroni...@gmail.com
on 23 Jul 2011 at 5:33
Instead of treating .avi files differently (by not starting to play them prior
a 100% download), perhaps would be better to propose an option in Preferences:
"Automatically start playing media files in gecko-mp" (or similar).
The idea is that this will cover not only the specific issue of .avi files, but
also the more general one of (as it is now) having to wait until the 2% buffer
has been filled and the video has started in order to hit pause and wait for
the download to finish. This is especially troublesome when the internet
connection is slow.
Original comment by landroni...@gmail.com
on 23 Sep 2011 at 6:34
There are some workarounds to this issue, of which none of them are great.
One option is to add -forceidx to the mplayer command line in Edit->Preferences
[mplayer] in gnome-mplayer. However, this can cause issues for other media
files and will only allow seeking in the part of the file that was available
when mplayer is started (ie the first 20%).
Also some formats place the metadata about the file at the end of the file (I
can't recall is AVI is one of those). Which is a problem if you want to start
playing before the metadata is available. This data may include keyframe
locations or other important data related to seeking.
With some quick time files I start playing them, but mplayer will give an error
about a missing header (which is at the end of the file) and mplayer will exit.
In this condition I will wait until the file is complete and then retry. Since
mplayer does not give a similar message about these avi files it is hard to
detect when I should wait for the file to be completely cached. Looking for an
.avi extension and ID_SEEKABLE=0 is not reliable enough for consistent
detection.
Original comment by kdeko...@gmail.com
on 23 Sep 2011 at 12:51
On the mplayer-dev list there are some patches to mplayer that help and solve
this issue. I have heard that they work from a couple of users. So you may just
need to upgrade mplayer to a newer version (within the last couple of weeks)
and it may be fixed.
Original comment by kdeko...@gmail.com
on 20 Apr 2012 at 8:15
Nice to know. I'm currently experimenting with mplayer2 GIT. Do you know if
they mirror MPlayer SVN? Or should I switch back to mplayer SVN?
Thanks!
Original comment by landroni...@gmail.com
on 20 Apr 2012 at 8:33
I know that many of the patches that get into mplayer usually end up in
mplayer2, but for this specific one I would check with them. mplayer and
mplayer2 are basically separate projects at this point.
Original comment by kdeko...@gmail.com
on 20 Apr 2012 at 8:37
Original issue reported on code.google.com by
landroni...@gmail.com
on 22 Jul 2011 at 9:27