Thanks for taking a look at this. Unfortunately, it's not possible for me to change my player. It's my media center software which runs my entire home's TV/Audio/Video in every room (SageTV). It has a plugin to allow me to do whatever I want using command-line; which I've used youtube-dl.exe for. Whatever the issue is, it doesnt look like its by accident that youtube-dl.exe is able able produce media file that's playable until the "real" end of the media file; which could go on indefinitely.
I have a feeling this might not be a file permissions issue. Whatever the issue is, it only affects liveTV videos produced with your executable, not video clips with a defined ending. if it was a permissions issue the same behavior would occur with video clips as well. For example, if I start download a 10 minute video; and, start playing it back in SageTV after 30 seconds, it will continue playing it back until the very end. This isn't true doing the same thing with liveTV clips. Do you think youtube-dl changes the livetv file attribute to have a fake, unobtainable very long video clip lenth such as a 10 hour video? that way the play will try to play it all the way until the end no matter what.
Anyway.. thanks a million for helping us!
Quote:
Originally Posted by Elgero
Item 1:
FLV videos can contain metadata at the beginning with information about the video file, like the duration, but this is not the case with live streams from YouTube. Your video player probably reads the timestamp of the last audio/video frame and gets the duration that way.
I'm not sure what the problem is, but I can change the file permissions in the code (it's set to write only now) and maybe that will solve the issue. VLC doesn't have any problems with playing the video while downloading it and keeps on playing, so you might want to try that.
The 2.00G that youtube-dl shows is simply the content-length header returned from the youtube server. When downloading a normal file it returns the size of the file in bytes. With a live stream it returns 2147483648 (2GB).
Item 2:
Yes.
Item 3:
Yes.
I'll do it tomorrow.
|