-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file corruption: youtube, youtube-dl, or what? #411
Comments
In my short experience, yes, YouTube may serve you slightly different https://github.com/rg3/youtube-dl/blob/master/youtube_dl/FileDownloader.py#L605 Based on that, maybe YouTube gives you different files every time and |
Scripting around a little trying to implement some cache around youtube-dl I encountered different file contents on every download I tried. my example was: http://www.youtube.com/watch?v=-K_P6G0E7oE.flv client-IP was always the same. using cmp -l I discovered that the difference is around byte 305. here are diffs from hexdump -C -n 512 -- "$f": seccond: Looks like some kind of tag in the metadata. |
Seems like an obsolete issue. Shall we close this? |
[pull] master from ytdl-org:master
Apparently, if you use youtube-dl and for the naming use just the URI or the name given in the verbal description of the file the files contents differ even though their lengths are the same and they "look" the same even if you download the files one right after the other (they don't use tildes ("~") in youtube URIs):
export _YT_URI=qkSuYoexbiY
echo ${_YT_URI}
date
youtube-dl --no-overwrites --continue --no-progress --audio-format
best --max-quality mp4 -o
'%(uploader)s'"/"'%(stitle)s'"~"${_YT_URI}.'%(ext)s'
"http://www.youtube.com/watch?v=${_YT_URI}&hd=1"
date
youtube-dl --no-overwrites --continue --no-progress --audio-format
best --max-quality mp4 -o '%(uploader)s'"/"${_YT_URI}.'%(ext)s'
"http://www.youtube.com/watch?v=${_YT_URI}&hd=1"
date
$ ls -lR
.:
total 4
drwxr-xr-x 2 knoppix knoppix 4096 Aug 29 12:03 TheYoungTurks
./TheYoungTurks:
total 260528
-rw-r--r-- 1 knoppix knoppix 133389811 Jun 4 23:31
Bradley_Manning_Trial_Update~qkSuYoexbiY.mp4
-rw-r--r-- 1 knoppix knoppix 133389811 Jun 4 23:31 qkSuYoexbiY.mp4
$ md5sum -b TheYoungTurks/Bradley_Manning_Trial_Update
qkSuYoexbiY.mp4qkSuYoexbiY.mp4d7c2064ee789dd79395da15ab2bcd1b2
*TheYoungTurks/Bradley_Manning_Trial_Update
$ md5sum -b TheYoungTurks/qkSuYoexbiY.mp4
d7a5937fda4ad2d8819e97e1c041b29b *TheYoungTurks/qkSuYoexbiY.mp4
Which utility would you use to check media files on a binary data level and see if the difference lies in some metadata or it is just some other kind of corruption? So the ultility must "understand" media files?
What do you think is going on here?
thanks
lbrtchx
The text was updated successfully, but these errors were encountered: