Quote:
Originally Posted by MKANET
This is almost perfect! There is a couple of very minor items I noticed:
Sorry, in advance that Issue 1 is so long. Its very hard for me to describe such a seemingly simple symptom:
Item 1: For example, while a media file is still downloading (20 seconds after starting the download), if I try to play it back in my media player, the video will playback up until 20 seconds, then get stuck.
It seems like there is a value/attribute saved in the media file which stores the media file's estimated length/size of the file. A couple of my media players seems to look at that value; and, stops at the file-length it reads when it first started playing the media file back.
I am hoping you might be able to remove this attribute in the media file so the player wont be able to read the length/size of the file, so it can continue playback back a growing media file.
Youtube-dl.exe already knows how to handle this issue and displays a NO-ETA for live TV streams:
[download] 0.1% of 2.00G at 66.15k/s ETA --:--
So, none of my players have a problem playback back liveTV streams.
Item 2: This is a very very minor issue, but if possible, could you make it so if the format is not specified by the user, it will automatically select the highest quality stream? This is also what Youtube-dl.exe does.
Issue 3: This is also a very minor issue, but if possible, could you also allow the full URL to be specified by the user? So, "http://www.youtube.com/watch?v=v_UyVmITiYQ" could be used instead of only "v_UyVmITiYQ". My applications use the full URL as their URL variable. No worries if this is too hard to do.
Thanks for all your time.. If possible, I would like to offer a donation via paypal for your time.
|
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.