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

Creating direct video link in Objective-C #1451

Closed
cujo30227 opened this issue Sep 17, 2013 · 5 comments
Closed

Creating direct video link in Objective-C #1451

cujo30227 opened this issue Sep 17, 2013 · 5 comments

Comments

@cujo30227
Copy link

@cujo30227 cujo30227 commented Sep 17, 2013

Hi,
I'm experimenting with youtube-dl a bit to implement this in my iOS app. I'm basically reproducing the youtube.py extractor > extract the fmt stream map, identify the mp4 url, read the encrypted signature s, decrypt it using the directions in youtube.py and then adding it to the url link. For some reason, this doesn't work... It works with the non-encrypted signatures, but not with the encrypted one. Using an online Python parser, I confirmed that I have implemented the decryption procedures correctly...

Any suggestions??

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 18, 2013

You should check you are using the latest algo (it changed yesterday) and if you are following the exact process, it should work.

@jaimeMF jaimeMF closed this Sep 18, 2013
@cujo30227
Copy link
Author

@cujo30227 cujo30227 commented Sep 18, 2013

Sure? I spend 6 hours to set this up and reproduce the whole procedure from youtube.py in and XCode... I think I checked every step, but still I don't get a valid link. Not sure whether it has something to do with it, but when I run youtube-dl on my computer on a specifc video, I consistently get the same signature length. but when I'm testing my iOS code in the simulator or on actual devices I get different signatures for every call. Decrypting them never gives me a valid link.. Really not sure how to proceed, did someone make progress on this already and can help me???

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 18, 2013

Are you getting the fmt stream map from the /watch?v=xxx page or the get_video_info? we extract it from the /watch page beacuse the first time we saw the signatures we couldn't use the second page.
If you let us see your code we can try to provide more help.

@cujo30227
Copy link
Author

@cujo30227 cujo30227 commented Sep 18, 2013

Thanks for responding again, I sent you a PM to your email

@FaridHaddad
Copy link

@FaridHaddad FaridHaddad commented Nov 12, 2015

did you solve this ?
if yes can you provide me with an answer ? thanks

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
3 participants
You can’t perform that action at this time.