Libvlc stream seeking

This forum is about all development around libVLC.
nevare
Blank Cone
Blank Cone
Posts: 17
Joined: 16 Sep 2016 13:39

Libvlc stream seeking

Postby nevare » 27 Sep 2016 11:14

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

nevare
Blank Cone
Blank Cone
Posts: 17
Joined: 16 Sep 2016 13:39

Re: Libvlc stream seeking

Postby nevare » 28 Sep 2016 09:20

No one?

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

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: Libvlc stream seeking

Postby Jean-Baptiste Kempf » 28 Sep 2016 23:21

Please share a backtrace if you have a crash.
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.

nevare
Blank Cone
Blank Cone
Posts: 17
Joined: 16 Sep 2016 13:39

Re: Libvlc stream seeking

Postby nevare » 29 Sep 2016 10:42

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

nevare
Blank Cone
Blank Cone
Posts: 17
Joined: 16 Sep 2016 13:39

Re: Libvlc stream seeking

Postby nevare » 10 Oct 2016 09:26

No one?

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Libvlc stream seeking

Postby Rémi Denis-Courmont » 31 Oct 2016 21:31

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests