Support and General Use > Audio Playback, Database and Playlists

[solved] youtube aac and ffmpeg

(1/4) > >>

Crispin:
Hello out there

I would like to play the audio stream of some youtube videos on my Sansa e200. I get the audio by downloading the video. 'ffplay -stats' says that the audio is aac. To extract it I use the following line: 'ffmpeg -i FlashY1234 -vn -acodec copy some_output_file.m4a'
I don't use the .aac-ending because these files don't even show up in rockbox. These m4a-aac-files don't play in rockbox. They do on my computer. Anyone got an idea what's wrong?

Thanks, Crispin

P.S. I don't like converting already lossly compressed audio to another format

RotAtoR:
If the audio extracted by ffmpeg is a raw aac stream (which the ".aac" file extension appears to indicate) you can't just rename it to ".m4a" and have it work, you actually need to mux the stream into an mp4 container.

sirdan:
Funny, i had exactly the same problem recently.
Solution is easy. Use mp4Muxer from here http://www.dvbportal.de/projects/mp4muxer/ Drag ang drop file, on streaming tab check optimize and then multiplex. So far i found its the only tool that produce mp4 files playable on rockbox. Crispin, muxing is completely lossless process.

Crispin:
ffmpeg choses, AFAIK, the container appropriate to the file extension. The command line output also indicates this, as it says "Output #0, ipod, to 'test.m4a'" for the m4a extension and "Output #0, adts, to 'test.aac'" when I call the output file a *.aac.

Does anyone know which output format or container for aac I should use with ffmpeg so that the resulting file is playable in Rockbox?

Thanks, Crispin

saratoga:

--- Quote from: Crispin on July 28, 2009, 11:14:35 AM ---
Does anyone know which output format or container for aac I should use with ffmpeg so that the resulting file is playable in Rockbox?


--- End quote ---

As RotAtoR said, you'll need to use either MP4/M4A.  Alternatively, you can probably use RM too, but support was just implemented so it may be a little untested at the moment. 

Also, FWIW, adts/aac isn't a container.  Its the format itself, with no container at all, and won't be playable in much of anything. 

Navigation

[0] Message Index

[#] Next page

Go to full version