.ogg file shows wrong timer

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
shirish
Blank Cone
Blank Cone
Posts: 20
Joined: 10 May 2007 08:17
VLC version: 2.2.0-rc2 Weatherwax
Operating System: Linux

.ogg file shows wrong timer

Postby shirish » 10 May 2007 09:17

Hi all,
First of all I tried to take a snapshot with the inbuilt picture-taker which didn't work. Then I tried to take it through the windows print screen button which showed the following pic.

Image

Now this is in version 0.9b

The same file can be played with media player classic, zoom player or any other player without an issue. The file being played, tested is this http://ftp.belnet.be/mirrors/FOSDEM/200 ... uxBios.ogg
--
Shirish Agarwal
This post is licensed under http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
VLC player 2.2.rc2-Weathermax, Intel Dual-Core CPU E5400 (soc 775) @ 2.70GHz, onboard Intel G33, Asus MB P5KPL-AM IN (Intel G31), Debian Jessie
GNUPG 065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

DJ
Cone Master
Cone Master
Posts: 8206
Joined: 01 Jan 2006 04:30
Location: Koloa, Hawaii USA

Postby DJ » 10 May 2007 10:39

Reference VLC 0.8.6b, Theora with Vorbis audio in a OGG/OGM container is not an problem. The file plays fine and using ctrl alt s in full screen produced a picture in My Pictures using all the defaults.

shirish
Blank Cone
Blank Cone
Posts: 20
Joined: 10 May 2007 08:17
VLC version: 2.2.0-rc2 Weatherwax
Operating System: Linux

Postby shirish » 10 May 2007 13:37

DJ,
I never said that the picture doesn't play fine. What I said were two things:-

1. See the counter that being displayed it shows 28 minutes passed out of 7:46 minute file which the file itself is just 46 minutes. I played this file in three other players & there the counter is good.

2. I haven't tried the ctrl+alt+s but you are right, the snapshot did get saved in My Pictures. I didn't know that.
--
Shirish Agarwal
This post is licensed under http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
VLC player 2.2.rc2-Weathermax, Intel Dual-Core CPU E5400 (soc 775) @ 2.70GHz, onboard Intel G33, Asus MB P5KPL-AM IN (Intel G31), Debian Jessie
GNUPG 065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Postby Jean-Baptiste Kempf » 10 May 2007 14:00

DJ,
I never said that the picture doesn't play fine. What I said were two things:-

1. See the counter that being displayed it shows 28 minutes passed out of 7:46 minute file which the file itself is just 46 minutes. I played this file in three other players & there the counter is good.

2. I haven't tried the ctrl+alt+s but you are right, the snapshot did get saved in My Pictures. I didn't know that.
1. Fix it :D
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

shirish
Blank Cone
Blank Cone
Posts: 20
Joined: 10 May 2007 08:17
VLC version: 2.2.0-rc2 Weatherwax
Operating System: Linux

Postby shirish » 10 May 2007 14:03

sorry meant 7:46: and some seconds as shown in the picture. I don't think I can fix this
--
Shirish Agarwal
This post is licensed under http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
VLC player 2.2.rc2-Weathermax, Intel Dual-Core CPU E5400 (soc 775) @ 2.70GHz, onboard Intel G33, Asus MB P5KPL-AM IN (Intel G31), Debian Jessie
GNUPG 065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

asdufisn

timer bug

Postby asdufisn » 09 Jun 2007 09:55

Post subject: .ogg file shows wrong timer
YES I also have this BUG. In VLC 0.8.6.

The timer is wrong, the movie plays (well only on CPU's above 1 GHz :-( ).

DJ
Cone Master
Cone Master
Posts: 8206
Joined: 01 Jan 2006 04:30
Location: Koloa, Hawaii USA

Postby DJ » 09 Jun 2007 12:28


maxpain
New Cone
New Cone
Posts: 4
Joined: 03 Jul 2007 11:58

Re: .ogg file shows wrong timer

Postby maxpain » 11 Jul 2007 15:29

Hello,

I think this happens because VLC calculates the time with the "Target bitrate" not with the "Average bitrate".

I`m not able to fix this. So if anyone knows how to do this ....... :-)

Example:
Target bitrate: 640 kbps

Total data length: 4663651 bytes
Average bitrate: 381,017239 kb/s

4663651 bytes / 1024 = 4554,346679687 kB
381,017239 kbits/s / 8 = 47,627154875 kB/s
95,62499989 seconds this should be correct

4663651 bytes / 1024 = 4554,346679687 kB
640kbits/s / 8 = 80 kB/s
56,929333496 seconds this is what vlc shows

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: .ogg file shows wrong timer

Postby Jean-Baptiste Kempf » 11 Jul 2007 16:04

Is the average bitrate information in the ogg headers ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

maxpain
New Cone
New Cone
Posts: 4
Joined: 03 Jul 2007 11:58

Re: .ogg file shows wrong timer

Postby maxpain » 11 Jul 2007 17:05

I don`t know. I could not find any documentation about the header.
I can read out the average bitrate with ogginfo, but i don`t know if it`s in the header or is calculated somehow.

I`m very new to this......

maxpain
New Cone
New Cone
Posts: 4
Joined: 03 Jul 2007 11:58

Re: .ogg file shows wrong timer

Postby maxpain » 11 Jul 2007 17:15

OK. No it`s not in the header. It`s calculated:

bitrate = inf->bytes*8 / time / 1000.0;

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: .ogg file shows wrong timer

Postby Jean-Baptiste Kempf » 11 Jul 2007 18:25

So now, you should now how to fix it for VLC :D
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

maxpain
New Cone
New Cone
Posts: 4
Joined: 03 Jul 2007 11:58

Re: .ogg file shows wrong timer

Postby maxpain » 11 Jul 2007 18:37

I wish i would know :-)

But Time insn`t in the header too. With time in the header i would be easy.....
I think i have to understand how ogginfo gets the time.....then a little C-crashcourse :shock:

I hope anyone can help me a little......

ssbssa
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 03 May 2007 22:00
VLC version: 2.0.2
Operating System: Windows

Re: .ogg file shows wrong timer

Postby ssbssa » 12 Jul 2007 10:53

i think one of those files is responsible (is this correct?):
modules/demux/ogg.c
modules/codec/theora.c

additionally, this is the way ogginfo calculates the time and bitrate (ogginfo.c):
static void theora_end(stream_processor *stream)
{
misc_theora_info *inf = stream->data;
long minutes, seconds, milliseconds;
double bitrate, time;

/* This should be lastgranulepos - startgranulepos, or something like that*/
ogg_int64_t iframe=inf->lastgranulepos>>inf->ti.granule_shift;
ogg_int64_t pframe=inf->lastgranulepos-(iframe<<inf->ti.granule_shift);
time = (double)(iframe+pframe) /
((float)inf->ti.fps_numerator/(float)inf->ti.fps_denominator);
minutes = (long)time / 60;
seconds = (long)time - minutes*60;
milliseconds = (long)((time - minutes*60 - seconds)*1000);
bitrate = inf->bytes*8 / time / 1000.0;

lastgranulepos was returned from ogg_page_granulepos(page),
the ti-struct was set from theora_decode_header().

so, where (in which file) is the shown time calculated?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: .ogg file shows wrong timer

Postby Jean-Baptiste Kempf » 12 Jul 2007 12:03

Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 77 guests