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

MP4 support & Direct downloads #3

Open
That-Guy-Jack opened this issue Sep 6, 2021 · 9 comments
Open

MP4 support & Direct downloads #3

That-Guy-Jack opened this issue Sep 6, 2021 · 9 comments

Comments

@That-Guy-Jack
Copy link

Hi was wondering what i need to change to make the downloads be .mp4 rather than .mkv as mp4 is supported with discord and other platforms natively. i've tried changing the file type in backend/src/youtube_archiver/downloader.py (line 208) to .mp4 but that made the download not have audio so not sure what else needs changing.

also is there a way to make the download button just download the file rather than taking you to the directory?

Thanks
Jack

@Caligatio
Copy link
Owner

It should be relatively easy for it to churn out a MP4 but I'll have to experiment a bit to remember what would need to change.

I can also take a look at maybe adding individual links for video and audio as that probably wouldn't be too cluttered (I actually made this for a family member and tried to make it simple to use).

Unfortunately I'm in the midst of an international move so my ability to do any work is hampered by my lack of good internet and any furniture :) It might take me a few weeks before I can dig into this.

@That-Guy-Jack
Copy link
Author

Sounds Good good luck with the move, ill see if i can do some tinkering in the mean time :D

@That-Guy-Jack
Copy link
Author

Been messing around with the code for about 30 mins now made a daft patch for the direct download button css might need tweaking a bit but it works
2021-09-07_15-12

I'll upload it to a git repo now and ill drop a link in here once its done

@That-Guy-Jack
Copy link
Author

Made A Fork here in the mean time i'll look into the mp4 support

https://github.com/That-Guy-Jack/youtube-archiver

@That-Guy-Jack
Copy link
Author

managed to get some videos to work with the mp4 set as the "merge_output_format" in the downloader.py but most videos had no audio but normal video so not sure what is wrong there

@That-Guy-Jack
Copy link
Author

Any Updates @Caligatio ?

@Caligatio
Copy link
Owner

Still living out of suitcases and using my phone as my primary computing device. I do have a date for my stuff to be delivered and hope to take a look at this sometime next month!

@That-Guy-Jack
Copy link
Author

any updates on this : )

@Caligatio
Copy link
Owner

Do you have an example of a video (a link) that is lacking audio? It should always be grabbing audio and doing a merge if necessary.

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

No branches or pull requests

2 participants