Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
mp4 files double length or won't play in QuickTime Player/iTunes? #5048
Comments
|
Sorry, I don't understand what you are doing in the first place. Where are you downloading the videos from? How do you "download audio using mp4 formats"? Note that mp3 can be present, it just depends on the service you're using. For instance:
So please elaborate on what you are doing. Don't forget to review or issue reporting guidelines. In particular, the output when called with |
|
Sorry I mistyped I meant m4a. I'm downloading from YouTube using -f 141 for example (141 m4a audio only DASH audio 256k , m4a_dash container, aac @256k (44100Hz), 22.38MiB) and haven't seem mp3 yet. I'm curious if it's a bug on your end or Apple's software is not compliment with the standard and I should be converting it. |
|
YouTube does not natively serve mp3. You can simply pass in |
|
Ok, I'll just ignore the problem then and try mp3. I'm looking for ffprobe now and I think it changed it's name to ffmpeg. Is that correct? If so maybe I just need to change the name and install to /usr/bin? Thanks. |
|
I still don't understand your problem in the first place, and since you are refusing to post the requested output of youtube-dl when called with Note that YouTube's m4as are not playable by a large number of players. youtube-dl should auto-correct this when ffmpeg is installed, and warn otherwise. ffprobe is a binary in the ffmpeg package. You can download the ffmpeg package at https://www.ffmpeg.org/download.html#build-mac . Without the requested information (the output when called with |
|
Sorry I didn't post the output because it's a question about the specific format and how youtube-dl generated it internally, not that there was an error. You answered the question already though which is m4a is probably just a shaky format to use and I should convert it. Not sure where you want ffmpeg installed to but I do some research. Thanks. |
|
ffmpeg can go anywhere in your PATH. If you are installing it by hand instead of with a package manager or installer, |
|
Thanks for your support but I'm still having problems. Installed ffmpeg to correct location but I can't get youtube-dl to locate it using 2 methods (below). The option --ffmpeg-location is not appearing in youtube-dl -h either. MacBooks-MacBook-2:~ ryanjoseph$ /usr/local/bin/ffmpeg MacBooks-MacBook-2:~ ryanjoseph$ youtube-dl -v -f 141 -x --audio-format mp3 --ffmpeg-location /usr/local/bin/ffmpeg https://www.youtube.com/watch?v=DShCO4lrnFU youtube-dl: error: no such option: --ffmpeg-location MacBooks-MacBook-2:~ ryanjoseph$ youtube-dl -v -f 141 -x --audio-format mp3 https://www.youtube.com/watch?v=DShCO4lrnFU |
|
youtube-dl needs ffmpeg and ffprobe, both of which come in one package. Additionally, your version of youtube-dl is out of date, and that's why |
|
Thanks for all your support, I got it working now by installing the package from brew. However, for the record I found out my iTunes can indeed play m4a files without errors so there must be an error in the way youtube-dl generated the file which results in the extra space I was talking about (this didn't affect the file in VLC though). Probably not worth digging into since it's a fringe format but I wanted to let you know anyways. Thanks again. |
|
youtube-dl just transmits the file as YouTube renders it - we can reproduce the behavior just fine when using an external downloader. iTunes supports normal m4a files, but not the specific format generated by YouTube. |
When I try to download audio using mp4 formats (mp3 is never presented in -F) the audio length is 2x what the original is resulting in no volume empty space at the end of the track or total failure to play. I'm using a Mac and usually opening the files in QuickTime Player or iTunes (where the file won't play at all) when I see the problem but in VLC this doesn't happen. Is this a bug that needs fixing or should I try another utility to convert it to mp3 perhaps? Thanks.