maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Possible to convert YouTube videos to MP3 on N900? (https://talk.maemo.org/showthread.php?t=66267)

HtheB 2010-11-27 12:25

Possible to convert YouTube videos to MP3 on N900?
 
Is there a way to convert downloaded YouTube videos (flv/mp4 files) into mp3 files on the Nokia N900 it self?

BLIZZARD 2010-11-27 13:11

Re: Possible to convert YouTube videos to MP3 on N900?
 
I think theres a webpage where you can download only the mp3 of the video...

BLIZZARD 2010-11-27 13:12

Re: Possible to convert YouTube videos to MP3 on N900?
 
And...here it is:
http://www.listentoyoutube.com/

laasonen 2010-11-27 13:44

Re: Possible to convert YouTube videos to MP3 on N900?
 
Yes, with ffmpeg.

I recommend to just get the aac-soundtrack without encoding it to mp3, because this is a lot faster and it doesn't reduce the sound quality:
Code:

ffmpeg -i input.mp4 -acodec copy -vn output.m4a
But, if you must convert it to mp3 for some reason:
Code:

ffmpeg -i input.mp4 -acodec libmp3lame -vn output.mp3

bitrocky 2010-11-27 15:08

Re: Possible to convert YouTube videos to MP3 on N900?
 
hi,

I tried ffmpeg, but mp3 seems not supported:
I get "Unknown encoder 'libmp3lame'"

I have this version: built on Dec 21 2009 02:33:19, gcc: 4.2.1

where can I dl a mp3 enabled ffmpeg?

quipper8 2010-11-27 15:35

Re: Possible to convert YouTube videos to MP3 on N900?
 
i realize this is not exactly what you are looking for, but as a quick hack I have often used Recaller set to record system to record the audio of a youtube video to a wav file.

I usually play the vido through once to prevent it from buffering while recording, and if it is a long one you might want to go to offline mode so you dont get any alerts(im email sms) recorded into your sound.

divan 2010-11-27 15:38

Re: Possible to convert YouTube videos to MP3 on N900?
 
Code:

apt-get install mplayer lame
mplayer file.flv -ao pcm -vo null
lame audiodump.wav file.mp3

First command will generate audiodump.wav WAV PCM file (you can change it's name, see mplayer man), second is LAME mp3 encoder - convert it to mp3.

laasonen 2010-11-27 16:16

Re: Possible to convert YouTube videos to MP3 on N900?
 
Quote:

Originally Posted by divan (Post 884440)
Code:

apt-get install mplayer lame
mplayer file.flv -ao pcm -vo null
lame audiodump.wav file.mp3

First command will generate audiodump.wav WAV PCM file (you can change it's name, see mplayer man), second is LAME mp3 encoder - convert it to mp3.

What is the point of converting it twice? Takes 2x longer and result is worse.

JayBEE 2010-11-27 16:44

Re: Possible to convert YouTube videos to MP3 on N900?
 
I am hoping cutetube incorporates the ability to convert youtube videos to mp3.

HtheB 2010-11-27 17:27

Re: Possible to convert YouTube videos to MP3 on N900?
 
Quote:

Originally Posted by laasonen (Post 884372)
Yes, with ffmpeg.

I recommend to just get the aac-soundtrack without encoding it to mp3, because this is a lot faster and it doesn't reduce the sound quality:
Code:

ffmpeg -i input.mp4 -acodec copy -vn output.m4a
But, if you must convert it to mp3 for some reason:
Code:

ffmpeg -i input.mp4 -acodec libmp3lame -vn output.mp3

Thanks!
Works great!
A nice GUI would be great though...
:p

Quote:

Originally Posted by JayBEE (Post 884471)
I am hoping cutetube incorporates the ability to convert youtube videos to mp3.

I second this feature...


All times are GMT. The time now is 02:40.

vBulletin® Version 3.8.8