Page 1 of 1

MKV + H264 => libvlc looping sections.

Posted: 30 Nov 2014 16:06
by Diamant
Hi
I am developing libvlc based video player. Everything is fine except one strange problem...
If a video file is MKV H264 and it has sections it plays up to some point(s) jumps back few minutes before and does it again and again (loop)...
Strange, I tried to play same file(s) using the player itself (using default settings), they were fine but if I did the same using the libvlc libraries (code sample: https://wiki.videolan.org/LibVLC_Tutorial) video looped every time in the same points.
I have heard that there might be a problem with chapter like this one: https://forum.videolan.org/viewtopic.ph ... kv#p294193 but if I changed VLC player setting the problem did not appear in VLC player. When I changed the chapter settings in code - nothing happened (looping every time). What could I do?

This is the log (exactly in the moment of rewind):

Code: Select all

[143eb39c] direct3d vout display debug: Created 217x34 texture for OSD mkv demux debug: NEW CHAPTER 1059101000 [14376994] mkv demux debug: NEW CHAPTER 1059101000 direct3d vout display debug: Created 934x43 texture for OSD [143eb39c] direct3d vout display debug: Created 934x43 texture for OSD direct3d vout display debug: Created 558x43 texture for OSD [143eb39c] direct3d vout display debug: Created 558x43 texture for OSD direct3d vout display debug: Created 642x43 texture for OSD [143eb39c] direct3d vout display debug: Created 642x43 texture for OSD direct3d vout display debug: Created 836x109 texture for OSD [143eb39c] direct3d vout display debug: Created 836x109 texture for OSD direct3d vout display debug: Created 279x101 texture for OSD [143eb39c] direct3d vout display debug: Created 279x101 texture for OSD direct3d vout display debug: Created 837x110 texture for OSD [143eb39c] direct3d vout display debug: Created 837x110 texture for OSD direct3d vout display debug: Created 811x43 texture for OSD [143eb39c] direct3d vout display debug: Created 811x43 texture for OSD direct3d vout display debug: Created 466x44 texture for OSD [143eb39c] direct3d vout display debug: Created 466x44 texture for OSD direct3d vout display debug: Created 935x43 texture for OSD [143eb39c] direct3d vout display debug: Created 935x43 texture for OSD direct3d vout display debug: Created 431x34 texture for OSD [143eb39c] direct3d vout display debug: Created 431x34 texture for OSD direct3d vout display debug: Created 324x100 texture for OSD [143eb39c] direct3d vout display debug: Created 324x100 texture for OSD direct3d vout display debug: Created 527x44 texture for OSD [143eb39c] direct3d vout display debug: Created 527x44 texture for OSD direct3d vout display debug: Created 117x43 texture for OSD [143eb39c] direct3d vout display debug: Created 117x43 texture for OSD direct3d vout display debug: Created 193x100 texture for OSD [143eb39c] direct3d vout display debug: Created 193x100 texture for OSD direct3d vout display debug: Created 633x110 texture for OSD [143eb39c] direct3d vout display debug: Created 633x110 texture for OSD **********JUMP BACK RIGHT NOW:********** spudec decoder debug: invalid starting packet (size < 4 or pts <=0) [1444a694] spudec decoder debug: invalid starting packet (size < 4 or pts <=0) spudec decoder debug: spu size: 0, i_pts: 0 i_buffer: 128 mkv demux debug: seek request to -1 (0.161616%) mkv demux debug: seek got 1099760000 (16%) [1444a694] spudec decoder debug: spu size: 0, i_pts: 0 i_buffer: 128 [14376994] mkv demux debug: seek request to -1 (0.161616%) [14376994] mkv demux debug: seek got 1099760000 (16%) main input debug: Buffering 0% main input debug: Buffering 0% main input debug: Buffering 11% [1437ba04] main input debug: Buffering 0% [1437ba04] main input debug: Buffering 0% [1437ba04] main input debug: Buffering 11% main input debug: Buffering 20% main input debug: Buffering 29% main input debug: Buffering 38% main input debug: Buffering 49% main input debug: Buffering 59% main input debug: Buffering 68% main input debug: Buffering 77% main input debug: Buffering 86% [1437ba04] main input debug: Buffering 20% [1437ba04] main input debug: Buffering 29% [1437ba04] main input debug: Buffering 38% [1437ba04] main input debug: Buffering 49% [1437ba04] main input debug: Buffering 59% [1437ba04] main input debug: Buffering 68% [1437ba04] main input debug: Buffering 77% [1437ba04] main input debug: Buffering 86% main input debug: Buffering 95% main decoder debug: End of audio preroll main input debug: Stream buffering done (3879 ms in 12 ms) [1437ba04] main input debug: Buffering 95% [1448fbe4] main decoder debug: End of audio preroll [1437ba04] main input debug: Stream buffering done (3879 ms in 12 ms) main decoder debug: End of video preroll [144643cc] main decoder debug: End of video preroll main decoder debug: Received first picture [144643cc] main decoder debug: Received first picture main input debug: Decoder buffering done in 378 ms [1437ba04] main input debug: Decoder buffering done in 378 ms main audio output warning: playback way too early (-834001): playing silence [12320c2c] main audio output warning: playback way too early (-834001): playing silence main audio output debug: inserting 40032 zeroes [12320c2c] main audio output debug: inserting 40032 zeroes direct3d vout display debug: Created 633x110 texture for OSD [143eb39c] direct3d vout display debug: Created 633x110 texture for OSD spudec decoder debug: invalid starting packet (size < 4 or pts <=0) [1444a694] spudec decoder debug: invalid starting packet (size < 4 or pts <=0) spudec decoder debug: spu size: 0, i_pts: 0 i_buffer: 128 mkv demux debug: seek request to -1 (0.151515%) mkv demux debug: seek got 1027403000 (15%) [1444a694] spudec decoder debug: spu size: 0, i_pts: 0 i_buffer: 128 [14376994] mkv demux debug: seek request to -1 (0.151515%) [14376994] mkv demux debug: seek got 1027403000 (15%) main input debug: Buffering 0% main input debug: Buffering 0% main input debug: Buffering 8% main input debug: Buffering 16% [1437ba04] main input debug: Buffering 0% [1437ba04] main input debug: Buffering 0% [1437ba04] main input debug: Buffering 8% [1437ba04] main input debug: Buffering 16% main input debug: Buffering 23% main input debug: Buffering 30% main input debug: Buffering 37% main input debug: Buffering 44% main input debug: Buffering 52% main input debug: Buffering 59% main input debug: Buffering 67% main input debug: Buffering 75% main input debug: Buffering 82% main decoder debug: End of audio preroll main input debug: Buffering 90% main input debug: Buffering 98% main input debug: Stream buffering done (4921 ms in 9 ms) [1437ba04] main input debug: Buffering 23% [1437ba04] main input debug: Buffering 30% [1437ba04] main input debug: Buffering 37% [1437ba04] main input debug: Buffering 44% [1437ba04] main input debug: Buffering 52% [1437ba04] main input debug: Buffering 59% [1437ba04] main input debug: Buffering 67% [1437ba04] main input debug: Buffering 75% [1437ba04] main input debug: Buffering 82% [1448fbe4] main decoder debug: End of audio preroll [1437ba04] main input debug: Buffering 90% [1437ba04] main input debug: Buffering 98% [1437ba04] main input debug: Stream buffering done (4921 ms in 9 ms) main decoder debug: End of video preroll [144643cc] main decoder debug: End of video preroll main decoder debug: Received first picture [144643cc] main decoder debug: Received first picture main input debug: Decoder buffering done in 500 ms [1437ba04] main input debug: Decoder buffering done in 500 ms main audio output warning: playback way too early (-137637): playing silence [12320c2c] main audio output warning: playback way too early (-137637): playing silence main audio output debug: inserting 6606 zeroes [12320c2c] main audio output debug: inserting 6606 zeroes main video output debug: picture might be displayed late (missing 5 ms) [1b5e47d4] main video output debug: picture might be displayed late (missing 5 ms)
Btw, there are no messages like spudecoder error while plainig the same video(s) directly in VLC player.
Please help :!:

Btw, Same behavior on VLC 2.1.0 and 2.1.5

Re: MKV + H264 => libvlc looping sections.

Posted: 01 Dec 2014 19:41
by Diamant
Some update...

this:
spudec decoder debug: invalid starting packet (size < 4 or pts <=0)
[1444a694] spudec decoder debug: invalid starting packet (size < 4 or pts <=0)

is a result of incorrect sub picture data - disabling subtitles this message disappeared.

Now it looks like a jump from 16% to 15%. Completely unclear!

Code: Select all

[147b86c4] mkv demux debug: seek request to -1 (0.161616%) [147b86c4] mkv demux debug: seek got 1099760000 (16%) [147bc6d4] main input debug: Buffering 0% [147bc6d4] main input debug: Buffering 0% [147bc6d4] main input debug: Buffering 11% [147bc6d4] main input debug: Buffering 20% [147bc6d4] main input debug: Buffering 29% [147bc6d4] main input debug: Buffering 38% [147bc6d4] main input debug: Buffering 49% [147bc6d4] main input debug: Buffering 59% [147bc6d4] main input debug: Buffering 68% [147bc6d4] main input debug: Buffering 77% [147bc6d4] main input debug: Buffering 86% [147bc6d4] main input debug: Buffering 95% [1493fc0c] main decoder debug: End of audio preroll [147bc6d4] main input debug: Stream buffering done (3879 ms in 13 ms) [1ba10cb4] main decoder debug: End of video preroll [1ba10cb4] main decoder debug: Received first picture [147bc6d4] main input debug: Decoder buffering done in 369 ms [00900c2c] main audio output warning: playback way too early (-851001): playing silence [00900c2c] main audio output debug: inserting 40848 zeroes position: 0.161606 [147b86c4] mkv demux debug: seek request to -1 (0.151515%) [147b86c4] mkv demux debug: seek got 1027403000 (15%)