PDA

View Full Version : Videos - Change Filesize to Playtime


joe_user
2004-01-14, 14:55
hi guys

currently (or in the cvs i am using) in the videolist the filesize of each video ist displayed.

don't you think it would be much more interesting to display the playtime of the video? i mean, noone cares how big the video is he wants to watch. or do you?

just my 2 cents. thought about that while looking for a video yesterday evening ;)

cheers joe_user

floink
2004-01-14, 15:25
i definetly would like this. also for music if possible.

/floink

pike
2004-01-14, 16:23
only possible if that information is either

1) tagged somewhere in the file
or
2) the file is scanned in it's full. this due to vbr being used by most modern codecs and length can thus not be predicted accurately.

floink
2004-01-14, 17:11
something i suspected... still, could this be information that was logged and added to the my music db as soon as the file has been used? it is displayed when you play a file.

as there currently is no movie db in the sense of the music db i guess it's a larger issue? or maybe it could be connected to the imdb info?

/floink

joe_user
2004-01-15, 09:08
only possible if that information is either

1) tagged somewhere in the file
or
2) the file is scanned in it's full. this due to vbr being used by most modern codecs and length can thus not be predicted accurately.
yes, that's clear that the file has to be scanned. that's why i would suggest to do it in 2 steps to display the information (if you want to do it):

1. scan the directory for movie files and display the titles
2. scan each movie for its length (or other infos) and display them

so we have the movie list really quick displayed, and shortly after that the playtime (or whatever else).

just a suggestion. cheers

Frodo
2004-01-15, 09:49
actually
i've been thinking of a movie database in xbmc similar to the music database
it should allow you to view by
- movie name
- genre
- actor/actresses
- year
- rating
etc.

we could use the imdb info for this.
about the movie duration, thats a though one.
almost all movie codecs nowadays are vbr and make it difficult (not impossible) to determine to duration of a movie.

frodo

MrMario64
2004-01-15, 11:29
we could ofcourse display the playtime given by imdb.
though not 100% accurate it may be a nice indication...

joe_user
2004-01-15, 12:34
actually
i've been thinking of a movie database in xbmc similar to the music database
it should allow you to view by
- movie name
- genre
- actor/actresses
- year
- rating
etc.

we could use the imdb info for this.
about the movie duration, thats a though one.
almost all movie codecs nowadays are vbr and make it difficult (not impossible) to determine to duration of a movie.

frodo
this is actually more then i expected, frodo. but it would really be nice. :)

how does it work for a network share? where do you store this information if i use a samba share? locally or on the network?

ktd
2004-01-15, 16:45
how does a windows media player do to show remaning time?

Frodo
2004-01-15, 18:28
how does a windows media player do to show remaning time?
well i didnt say its impossible, but its just much work
guess ms$ took the time & money and did implement it for each codec.

frodo

ktd
2004-01-15, 20:00
i was just curious. it was not meant as a m$-can-so-why-cant-you...

floink
2004-01-15, 20:41
how is duration calculated when playing a movie? if i remeber it right isn't remaning/total time displayed by the default osd for mplayer? and why can't this be used?