Page 1 of 1

Libvlc stream seeking

Posted: 27 Sep 2016 11:14
by nevare
Im trying to use libvlc python bindings to play a youtube stream for example. This works fine, however I cannot seek using the set_time() function. It will go to the specified time, but it will try to load and stutters and after a little while it just crashes. I found that I wasn't able to seek in a youtube stream using the normal vlc player either, it will try to load from the new position but it won't play..
Is there some setting that I should set or..?

VLC version is 2.2.

Thanks

Re: Libvlc stream seeking

Posted: 28 Sep 2016 09:20
by nevare
No one?

I can't imagine I'm the only one with this problem..

Re: Libvlc stream seeking

Posted: 28 Sep 2016 23:21
by Jean-Baptiste Kempf
Please share a backtrace if you have a crash.

Re: Libvlc stream seeking

Posted: 29 Sep 2016 10:42
by nevare
It keeps looping on this:
[0306103c] http access debug: trying to seek to 56923598
[0306103c] core access debug: net: connecting to r8---sn-5hnednek.googlevideo.com port 443
[0306103c] core access debug: connection succeeded (socket = 1876)
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Success.
[02fff29c] gnutls tls session debug: 3 certificate(s) in the list
[0306103c] http access debug: protocol 'HTTP' answer code 206
[0306103c] http access debug: Content-Type: video/mp4
[0306103c] http access debug: stream size=144937298,pos=56923598,remaining=88013700
[0306103c] http access debug: this frame size=88013700
[0306103c] http access debug: Connection: close
[0306103c] http access debug: Server: gvs 1.0
[03011154] core input debug: Buffering 2%
[0306103c] http access debug: trying to seek to 56932993
[0306103c] core access debug: net: connecting to r8---sn-5hnednek.googlevideo.com port 443
[0306103c] core access debug: connection succeeded (socket = 1876)
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Success.
[02fff29c] gnutls tls session debug: 3 certificate(s) in the list
[0306103c] http access debug: protocol 'HTTP' answer code 206
[0306103c] http access debug: Content-Type: video/mp4
[0306103c] http access debug: stream size=144937298,pos=56932993,remaining=88004305
[0306103c] http access debug: this frame size=88004305
[0306103c] http access debug: Connection: close
[0306103c] http access debug: Server: gvs 1.0
[03011154] core input debug: Buffering 2%
Two minutes later the output is this:
[0306103c] http access debug: protocol 'HTTP' answer code 206
[0306103c] http access debug: Content-Type: video/mp4
[0306103c] http access debug: stream size=144937298,pos=59642873,remaining=85294425
[0306103c] http access debug: this frame size=85294425
[0306103c] http access debug: Connection: close
[0306103c] http access debug: Server: gvs 1.0
[03011154] core input debug: Buffering 65%
[0306103c] http access debug: trying to seek to 59632504
[0306103c] core access debug: net: connecting to r8---sn-5hnednek.googlevideo.com port 443
[0306103c] core access debug: connection succeeded (socket = 1868)
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Success.
[02fff29c] gnutls tls session debug: 3 certificate(s) in the list
[0306103c] http access debug: protocol 'HTTP' answer code 206
[0306103c] http access debug: Content-Type: video/mp4
[0306103c] http access debug: stream size=144937298,pos=59632504,remaining=85304794
[0306103c] http access debug: this frame size=85304794
[0306103c] http access debug: Connection: close
[0306103c] http access debug: Server: gvs 1.0
[03011154] core input debug: Buffering 65%
[0306103c] http access debug: trying to seek to 59642873
[0306103c] core access debug: net: connecting to r8---sn-5hnednek.googlevideo.com port 443
[0306103c] core access debug: connection succeeded (socket = 1868)
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Success.
[02fff29c] gnutls tls session debug: 3 certificate(s) in the list
[0306103c] http access debug: protocol 'HTTP' answer code 206
[0306103c] http access debug: Content-Type: video/mp4
[0306103c] http access debug: stream size=144937298,pos=59642873,remaining=85294425
[0306103c] http access debug: this frame size=85294425
[0306103c] http access debug: Connection: close
[0306103c] http access debug: Server: gvs 1.0
[03011154] core input debug: Buffering 65%
[0306103c] http access debug: trying to seek to 59632504
[0306103c] core access debug: net: connecting to r8---sn-5hnednek.googlevideo.com port 443
[0306103c] core access debug: connection succeeded (socket = 1500)
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Resource temporarily unavailable, try again.
[02fff29c] gnutls tls session debug: TLS handshake: Success.
[02fff29c] gnutls tls session debug: 3 certificate(s) in the list
So it seems to be making some progress as the buffering went from 2% to 65% but this cant be right.
Let me know if you need more info

Re: Libvlc stream seeking

Posted: 10 Oct 2016 09:26
by nevare
No one?

Re: Libvlc stream seeking

Posted: 31 Oct 2016 21:31
by RĂ©mi Denis-Courmont
MP4 files may require a lot of seeking, depending on how they are generated. Consider generating the files with another tool, adjusting the muxer settings or using another format.