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

Add MKV downloading support for youtube #20

Closed
kkdai opened this issue Aug 5, 2019 · 8 comments
Closed

Add MKV downloading support for youtube #20

kkdai opened this issue Aug 5, 2019 · 8 comments

Comments

@kkdai
Copy link
Owner

kkdai commented Aug 5, 2019

Refer to #17

youtubedr https://www.youtube.com/watch?v=FHpvI8oGsuQ

Video content is MKV, need to refer https://github.com/ytdl-org/youtube-dl to add MKV download feature.

@prologic
Copy link

Do you plan to implement this?

@kkdai
Copy link
Owner Author

kkdai commented Mar 26, 2020

"help wanted".
I need someone to help with this issue.

@prologic
Copy link

Does this project support MKV? Can we reuse their code if it does?

@kkdai
Copy link
Owner Author

kkdai commented Mar 27, 2020

Hi @prologic
Thank you for your suggestion but https://github.com/rylio/ytdl is not working for this video youtubedr https://www.youtube.com/watch?v=FHpvI8oGsuQ

But https://github.com/ytdl-org/youtube-dl works well.
It still needs time to check and port related code from Python to Go

@prologic
Copy link

I see. Yes you are right:

$ ytdl https://www.youtube.com/watch?v=FHpvI8oGsuQ
{"level":"info","time":"2020-03-30T13:32:02+10:00","message":"Fetching video info..."}
{"level":"info","time":"2020-03-30T13:32:03+10:00","message":"Downloading to Milo: Forbidden Conversation.mp4"}
{"level":"fatal","error":"unexpected EOF","time":"2020-03-30T13:32:04+10:00"}

I kind of need this to work for Tube and I'm currently using ytdl. It would be nice to get this working in either your library or rylio's. What is the Python library doing that either your or rylio's library isn't? Can I help in some way?

@kkdai
Copy link
Owner Author

kkdai commented Mar 31, 2020

Maybe just need to understand how youtube-dl works?

 ~/Downloads  youtube-dl https://www.youtube.com/watch\?v\=FHpvI8oGsuQ
[youtube] FHpvI8oGsuQ: Downloading webpage
[youtube] FHpvI8oGsuQ: Downloading js player vflJSBrYd
[youtube] FHpvI8oGsuQ: Downloading js player vflJSBrYd
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Destination: Milo - Forbidden Conversation-FHpvI8oGsuQ.f137.mp4
[download] 100% of 1.40GiB in 06:00
[download] Destination: Milo - Forbidden Conversation-FHpvI8oGsuQ.f251.webm
[download] 100% of 84.07MiB in 00:20
[ffmpeg] Merging formats into "Milo - Forbidden Conversation-FHpvI8oGsuQ.mkv"
Deleting original file Milo - Forbidden Conversation-FHpvI8oGsuQ.f137.mp4 (pass -k to keep)
Deleting original file Milo - Forbidden Conversation-FHpvI8oGsuQ.f251.webm (pass -k to keep)


Maybe try to use -k and playback this video if it works and check whole path with the related messages.

@kkdai
Copy link
Owner Author

kkdai commented Apr 21, 2020

Hi @prologic this issue also fixed by #27.
Feel free to check it.

@kkdai kkdai closed this as completed Apr 21, 2020
@prologic
Copy link

Oh very nice! I'll check it out and replace my usage of github.com/rylio/ytdl if it works nicely. This should solve https://github.com/prologic/tube/issues/12 for me :)

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

No branches or pull requests

2 participants