Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Youtube-dl, m4a files won't play
« previous next »
  • Print
Pages: [1]

Author Topic: Youtube-dl, m4a files won't play  (Read 2560 times)

Offline Thrasymachus

  • Member
  • *
  • Posts: 4
Youtube-dl, m4a files won't play
« on: November 06, 2015, 09:12:52 AM »
When I download m4a audio files using the youtube-dl script if I choose to directly download a m4a audio file it won't work.

What does work is choosing to download a low-quality mp4 audio/video file and converting it using this command switch: 
Code: [Select]
youtube-dl -f 18 -x --audio-format m4a  https://www.youtube.com/watch?v=YQbJfAPKOqA
-f 18 tells it to download the lowest quality mp4
-x to convert it to audio

Is there a way to get m4a files retrieved from Youtube to work without all that extra command line input and remuxing?

Thanks
« Last Edit: November 06, 2015, 09:21:32 AM by Thrasymachus »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Youtube-dl, m4a files won't play
« Reply #1 on: November 06, 2015, 11:59:27 AM »
Probably you have to remux them into a normal audio m4a stream. Try mp4box.
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: Youtube-dl, m4a files won't play
« Reply #2 on: November 22, 2015, 11:44:12 AM »
If you look at available formats with youtube-dl -F, you'll see that the audio only options have "DASH audio" in the description. That's a different kind of container format which won't play in some programs. You can easily convert it without re-encoding using ffmpeg or another similar tool: ffmpeg -i input.m4a -vn -acodec copy output.m4a

Current versions of youtube-dl ought to do the conversion automatically if they can find ffmpeg. The --ffmpeg-location switch can be used to tell youtube-dl where ffmpeg is located.

https://github.com/rg3/youtube-dl/issues/3681
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Youtube-dl, m4a files won't play
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.071 seconds with 15 queries.