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

Wrong audio format #50

Closed
danieleugoletti opened this issue Nov 21, 2019 · 3 comments
Closed

Wrong audio format #50

danieleugoletti opened this issue Nov 21, 2019 · 3 comments

Comments

@danieleugoletti
Copy link

I use the docker version to generate a feed from youtube channel in audio format (quality = "high" format = "audio"), the files are stored in a folder (data_dir="/app/data/") and have the right name and extension (.mp3), but the files aren't mp3 anche can't be played.

I made some test in macOS and the error seams in youtube-dl

this command produce wrong file:
youtube-dl --extract-audio --audio-format mp3 --format bestaudio --output data/abc/TA-c16e_zZ8.mp3 https://youtube.com/watch\?v\=TA-c16e_zZ8

this command without output param produce the right mp3 but in wrong location:
youtube-dl --extract-audio --audio-format mp3 --format bestaudio https://youtube.com/watch\?v\=TA-c16e_zZ8

@tuxpeople
Copy link
Contributor

In my case, content was WebM, not MP3.

@danieleugoletti
Copy link
Author

I'm not RSS export, podsync generate audio in webm but in the RSS there is

it's correc?, seems strange

The workaround that I found is to change the --output param in youtube-dl with .webm extension:

youtube-dl --extract-audio --audio-format mp3 --format bestaudio --output data/abc/TA-c16e_zZ8.webm https://youtube.com/watch\?v\=TA-c16e_zZ8

in this case youtube-dl download the file in data/abc/TA-c16e_zZ8.webm and convert it to data/abc/TA-c16e_zZ8.mp3

@huseyz
Copy link
Contributor

huseyz commented Nov 25, 2019

Glad someone else found this. podsync uses --output in the wrong way. See: ytdl-org/youtube-dl#16357

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

4 participants