Skip to content
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

Remove trackers by default #2885

Open
Nikoli opened this issue May 10, 2014 · 0 comments
Open

Remove trackers by default #2885

Nikoli opened this issue May 10, 2014 · 0 comments
Labels

Comments

@Nikoli
Copy link
Contributor

@Nikoli Nikoli commented May 10, 2014

For tracking purposes google adds unique fields at container level to mp4 files downloaded from youtube:

$ mediainfo -f _video.mp4 |grep '^g'
gsst                                     : 0
gstd                                     : xxxxxx
gssd                                     : yyyyyyyyyyyyyyyyyyyyyyyyyyy
gshh                                     : zzzzzzzzzzzzzzzz.googlevideo.com

https://superuser.com/questions/503868/how-i-can-remove-all-google-data-from-youtube-video-downloads

I think youtube-dl should by default create reproducible downloads: if several people from different countries using different platforms execute at different time same youtube-dl commands for same urls they should get exactly the same files. Now md5sum for mp4 files from youtube changes after simple redownloading file from same system and location, because gs* entries are changed.

The most obvious and trivial workaround is to simply remux:
avconv -i _video.mp4 -c copy -flags bitexact video.mp4.

-flags bitexact is required, because else info about ffmpeg/libav versions will be added to file

$ mediainfo -f video.mp4 |grep -i lavf
Writing application                      : Lavf55.12.0

P.S. With matroska files bitexact option works fine too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.