GNOME Bugzilla – Bug 614125
Option --seek do not work
Last modified: 2010-04-07 19:23:38 UTC
Created attachment 157287 [details] [review] the trivial fix for the issue For example, 'totem --seek 10000 my_clip.mpg' opens Totem at the beginning of my_clip.mpg, not at 10th second. This issue was introduced with fixing https://bugzilla.gnome.org/show_bug.cgi?id=600425, so all versions >= 2.28.2 have this issue. I attach trivial fix, seek_to_start.diff . I am thinking to use that functionality in my project, Bombono DVD. It was not simple to discover it (the option is hidden and cant be seen via 'totem --help'). So I have some questions: 1. Will it be supported in future releases of Totem? 2. Why not to show it with 'totem --help'? Also, 'totem --seek NNN' dont work with existing instances of Totem while --play, --pause, ... do. It would be nice if Totem can be controlled with '--seek' too.
--seek is only for internal use. It's used when saving the session, so that we can restore to the same position in the file when restoring the session. The fix for bug 600425 certainly doesn't have anything to do with it. I'd rather you told me what you were trying to achieve, and what sort of integration Bombono needs in Totem, rather than use internal functions that way.
My app has mpeg2 viewer (first screenshot at http://www.bombono.org/cgi-bin/wiki/Screenshots), timeline + monitor, so one can see frames from video on per frame (!) basis. It does the job well but people need to play video from a position, not only view frames. The reasonable choice to make it real is to run a video player with command like "some_player --seek time some_video.[mpg,vob]". So I began to search a player with such functionality: 1. MPlayer has '-ss sec' option but it works really rough (+- one second) 2. Xine does not such function at all. 3. Totem has hidden '--seek millisec' which work pretty good unlike MPlayer (I speak about precision, again). I was able to find --seek only by searching Totem's sources. One bad side was that distibution (Ubuntu 9.10) version of Totem does not work with --seek as expected unlike my own build of Totem. I spent some time and found out the guilty - that was the patch against #600425. I am sure that fix really breaks '--seek': as you can see the patch of mine, the 'if' line checks seek_to_start variable but seek_to is used instead, for seeking.
Based on that description, marking as a duplicate. Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 563938 ***
Duh. You're right, it was broken even for session restore...
Fixed in master and gnome-2-28. If you're interested in something supported, please contribute in bug 563938.
Thanks for attention