Kangry.com [insert cool graphic here]
home | Topics | Logout | Search | Contact | ?? Kangry ?? | Bandwitdh
Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor

Name

Password

New user

uploaded files
(Mplayer)-> Movie bookmarking submited by Russell Sat 29 Jan 05
Edited Sun 27 Feb 05
Web kangry.com
I built a simple utility to remember the current location in a movie when it is stopped so that you can resume at that spot lator.


you see if you run mplayer into a file ( or pipe) you get data that looks like this
A:   1.3 V:   1.3 A-V:  0.009 ct:  0.060   39/ 39  40% 14%  8.1% 6 0 0%
A:   1.4 V:   1.4 A-V: -0.003 ct:  0.059   43/ 42  39% 14%  7.8% 6 0 0%
A:   1.5 V:   1.5 A-V: -0.002 ct:  0.059   46/ 46  37% 14%  7.5% 6 0 0%
A:   1.6 V:   1.6 A-V: -0.000 ct:  0.058   50/ 50  36% 14%  7.3% 6 0 0%
A:   1.8 V:   1.8 A-V: -0.001 ct:  0.058   53/ 53  35% 14%  7.0% 6 0 0%
A:   1.8 V:   1.8 A-V: -0.002 ct:  0.058   56/ 56  34% 13%  6.8% 6 0 0%

the value after the last : is the seconds in the file. I append this value in a file called .info
this way the next time I call playmovie I can read the info file and instruct mplayer to skip to the previous location in the movie using the -ss option.

Drawbacks to this approch:
it creates extra files that I need to delete when I delete movies
It does not work for movies stored on CDROM or other R/O media.

I figure the best way to fix this is to have is keep a small database of "last positons" in the users home directory. I have not been motivated to make this improvement.

Source is here playmovie.pl


Add comment or question...:
Subject:
Submited by: NOT email address. Leave blank for anonymous    (Spam Policy)

Enter Text: (text must match image for posting)




This file (the script that presented the data, not the data itself) , last modified Wednesday 03rd of December 2014 09:40:39 AM
your client: CCBot/2.0 (http://commoncrawl.org/faq/)
current time: Saturday 21st of October 2017 09:43:51 AM