Old 6th November 2014, 22:24   #1
sunk818
Junior Member
 
Join Date: Nov 2007
Posts: 48
Unable to play m4a from YouTube (youtube-dl -f 141)

I used youtube-dl to download the m4a audio from YouTube:

c:\music> youtube-dl -f 141 https://www.youtube.com/watch?v=x6NyQN4hloY

The file is saved with an extension of m4a.

Unable to play using Winamp v5.666 Build 3516 (x86) - Dec 12 2013

Strangely enough, if I just download the mp4 version (with video), I can play it just fine as an audio.

I can also use ffmpeg to re-convert the m4a to another m4a. Then WinAmp plays it fine.

Latest version of VLC plays either m4a or mp4 just fine.

It is not just this URL, but any m4a I download from YouTube all behave this way when using WinAmp.

Below are some diagnostics about the URL in question and downloaded file.

c:\music>youtube-dl -F https://www.youtube.com/watch?v=x6NyQN4hloY
[youtube] Confirming age
[youtube] x6NyQN4hloY: Downloading webpage
[youtube] x6NyQN4hloY: Downloading video info webpage
[youtube] x6NyQN4hloY: Extracting video information
[youtube] x6NyQN4hloY: Downloading DASH manifest
[info] Available formats for x6NyQN4hloY:
format code extension resolution note
139 m4a audio only DASH audio 55k , audio@ 48k (22050Hz), 21.06MiB (worst)
140 m4a audio only DASH audio 162k , audio@128k (44100Hz), 56.04MiB
141 m4a audio only DASH audio 292k , audio@256k (44100Hz), 111.28MiB
160 mp4 256x144 DASH video 108k , video only, 40.66MiB
133 mp4 426x240 DASH video 225k , video only, 83.60MiB
134 mp4 640x360 DASH video 164k , video only, 22.78MiB
135 mp4 854x480 DASH video 279k , video only, 36.12MiB
136 mp4 1280x720 DASH video 585k , video only, 59.62MiB
17 3gp 176x144
36 3gp 320x240
5 flv 400x240
43 webm 640x360
18 mp4 640x360
22 mp4 1280x720 (best)

c:\music>ffmpeg -i "fedde le grand essential mix-x6nyqn4hloy.m4a"

ffmpeg version N-61143-g64e4bd7 Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 7 2014 00:01:08 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-li
bass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopenco
re-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidst
ab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable
-zlib
libavutil 52. 66.101 / 52. 66.101
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.101 / 55. 33.101
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fedde le grand essential mix-x6nyqn4hloy.m4a':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6mp41
creation_time : 2014-11-05 08:39:44
Duration: 01:01:00.05, start: 0.000000, bitrate: 255 kb/s
Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 253 kb/s (default)
Metadata:
creation_time : 2014-11-05 08:39:44
handler_name : SoundHandler
At least one output file must be specified
sunk818 is offline  
Old 6th November 2014, 22:35   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
Winamp doesn't support MPEG DASH.
DrO is offline  
Old 6th November 2014, 23:00   #3
sunk818
Junior Member
 
Join Date: Nov 2007
Posts: 48
Thanks for educating me.

I figured out I can use ffmpeg to convert MPEG DASH to a clean m4a audio file without affecting the quality.

ffmpeg -i input.m4a -vn -c:a copy output.m4a
sunk818 is offline  
Old 7th November 2014, 15:04   #4
sunk818
Junior Member
 
Join Date: Nov 2007
Posts: 48
I realize Winamp's future is not clear, but if there is further development and public release of the software, I'd like to submit an enhancement to support MPEG DASH audio (m4a) support.

http://superuser.com/questions/83706...to-m4a-aac-dl/

https://github.com/rg3/youtube-dl/issues/1897
sunk818 is offline  
Old 7th November 2014, 15:18   #5
DrO
 
Join Date: Sep 2003
Posts: 27,873
it's already on a possible todo list from prior to the sale (though that means nothing about it actually happening) and if anything, it would be more focused on allowing playback to work rather than video aspects (as video is unlikely to be a pushed feature when the new Winamp is released at some stage in 2015).

as for the comment in the SU post, i will take it on board (though i take offence at the mis-spelling of Winamp and calling it "too old") as something to look into further if i can find some extra time in an already pushed 24 hour day.
DrO is offline  
Old 7th November 2014, 18:27   #6
sunk818
Junior Member
 
Join Date: Nov 2007
Posts: 48
I've made the edits to reflect Winamp as the correct spelling. I think the answerer just meant "too old" to mean that the last build of Winamp (Dec 2013) doesn't have the support... To be fair, he also said other programs do not support MPEG DASH either. Anyway, I'm hoping for a good future for Winamp. I've been a long time user!
sunk818 is offline  
Old 7th November 2014, 19:19   #7
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,940
Send a message via Skype™ to thinktink
I've never had problems with audio files downloaded with http://www.clipconverter.cc/ Infact, I downloaded an audio track from a YouTube video yesterday directly to m4a and I was able to play and convert it in Winamp.
thinktink is offline  
Old 10th November 2014, 16:15   #8
sunk818
Junior Member
 
Join Date: Nov 2007
Posts: 48
The process that clipconverter uses is likely different than process youtube-dl uses.
sunk818 is offline  
Old 13th November 2014, 14:29   #9
Menschenfleisch
Senior Member
 
Menschenfleisch's Avatar
 
Join Date: Apr 2008
Posts: 178
Send a message via ICQ to Menschenfleisch
Quote:
Originally Posted by DrO View Post
Winamp doesn't support MPEG DASH.
If he downloaded the video/audio it is a normal file and not a dash stream.
Menschenfleisch is offline  
Old 14th November 2014, 00:52   #10
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,940
Send a message via Skype™ to thinktink
Quote:
Originally Posted by Menschenfleisch View Post
If he downloaded the video/audio it is a normal file and not a dash stream.
I downloaded the video's audio using his exact command line and also with -f m4a. I got the same result both times:
Quote:
C:\testdl>youtube-dl -f 141 http://www.youtube.com/watch?v=x6NyQN4hloY
[youtube] Confirming age
[youtube] x6NyQN4hloY: Downloading webpage
[youtube] x6NyQN4hloY: Downloading video info webpage
[youtube] x6NyQN4hloY: Extracting video information
[youtube] x6NyQN4hloY: Downloading DASH manifest
[download] Destination: Fedde Le Grand Essential Mix-x6NyQN4hloY.m4a
[download] 100% of 111.28MiB in 03:43

C:\testdl>ffprobe -i "fedde le grand essential mix-x6nyqn4hloy.m4a"
ffprobe version N-57448-gc78a416 Copyright (c) 2007-2013 the FFmpeg developers
built on Oct 26 2013 18:02:03 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi
g --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopenco
re-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 47.101 / 52. 47.101
libavcodec 55. 38.101 / 55. 38.101
libavformat 55. 19.104 / 55. 19.104
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 89.100 / 3. 89.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fedde le grand essential mix-x6nyqn4hloy.m4a':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6mp41
creation_time : 2014-11-05 08:39:44
Duration: 01:01:00.05, start: 0.000000, bitrate: 255 kb/s
Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 253 kb/s (default)
Metadata:
creation_time : 2014-11-05 08:39:44
handler_name : SoundHandler

C:\testdl>
DrO is right, it's definitely an aac DASH stream inside an m4a file format; ergo, MPEG-DASH.

It's not the first time I've seen stream-spec data put into a file. I know that the Flash Media Live Encoder would stream and record the stream it sent, bit-for-bit, to the file that had to be repacketized with a command-line utility from Adobe before it could be used on our (only at the time) Windows box or uploaded to Vimeo.
thinktink is offline  
Old 14th November 2014, 14:25   #11
Menschenfleisch
Senior Member
 
Menschenfleisch's Avatar
 
Join Date: Apr 2008
Posts: 178
Send a message via ICQ to Menschenfleisch
DASH is a streaming method, not a codec or sth like that.

When you download the file, you have the full file.

Its a normal aac file.
Menschenfleisch is offline  
Old 14th November 2014, 14:36   #12
DrO
 
Join Date: Sep 2003
Posts: 27,873
my comment is correct as Winamp doesn't support it and the file which is being generated is different enough to not be able to be processed by Winamp's existing MP4 handling and so it will fail (as covered in the superuser link).

as such, Winamp cannot correctly de-mux the file to be able to get at the actual data inside of the container and that is the main issue irrespective of it containing AAC or whatever, if WInamp cannot process the container correctly then it doesn't matter what is inside it.
DrO is offline  
Old 14th November 2014, 15:04   #13
Menschenfleisch
Senior Member
 
Menschenfleisch's Avatar
 
Join Date: Apr 2008
Posts: 178
Send a message via ICQ to Menschenfleisch
If it cant read the containerformat, ok.
But that has absolutely nothing to do with dash ^^

Muxing into MP4 container or demuxing to raw aac file should help winamp to play the file then.
Menschenfleisch is offline  
Old 14th November 2014, 15:06   #14
DrO
 
Join Date: Sep 2003
Posts: 27,873
you can have my job and sort it out then.
DrO is offline  
Old 14th November 2014, 15:17   #15
Menschenfleisch
Senior Member
 
Menschenfleisch's Avatar
 
Join Date: Apr 2008
Posts: 178
Send a message via ICQ to Menschenfleisch
hell its a normal file.

and dash is this:

http://en.wikipedia.org/wiki/Dynamic...ming_over_HTTP

If you download a file, you download all dash parts and mux the dash parts together into in this case the m4a container. Thats how downloaders do it. Thats why for example jdownloader 2 needs ffmpeg for the dash videos of youtube.


But I tested out with jdownloader 2 and apparently Winamp can read m4a container.

At least the m4a could opened by winamp. And on youtube it was a dash video as well.
a raw aac stream works as well.

Maybe he downloads it wrong then?

edit:

Tried his videolink but the video was deleted:
http://abload.de/img/unbenannt162hlpgi.png

edit2:

here mediainfo of a m4a by jdownloader 2.

code:
Allgemein
Vollständiger Name : D:\JDownloader\downloads\Cliff Lin - Total Annihilation (256 kbit_s).m4a
Format : MPEG-4
Format-Profil : Base Media
Codec-ID : isom
Dateigröße : 5,63 MiB
Dauer : 3min 5s
Modus der Gesamtbitrate : konstant
Gesamte Bitrate : 255 Kbps
Kodierendes Programm : Lavf55.21.102

Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format-Profil : LC
Codec-ID : 40
Dauer : 3min 5s
Bitraten-Modus : konstant
Bitrate : 254 Kbps
Kanäle : 2 Kanäle
Kanal-Positionen : Front: L R
Samplingrate : 44,1 KHz
Stream-Größe : 5,60 MiB (99%)

Menschenfleisch is offline  
Old 5th May 2018, 23:31   #16
Victhor
Late skinner & Moderator
 
Victhor's Avatar
 
Join Date: May 2003
Location: Argentina
Posts: 1,516
*** Thread closed due to spam flood. ***

· · TMCT · KOMODO X
Victhor is online now  
Closed Thread
Go Back   Winamp & SHOUTcast Forums > Winamp > Winamp Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump