LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   convert mp3 to mov using ffmpeg (https://www.linuxquestions.org/questions/linux-newbie-8/convert-mp3-to-mov-using-ffmpeg-753850/)

kirukan 09-09-2009 08:36 AM

convert mp3 to mov using ffmpeg
 
I could stream the following file at my darwin server it means i am able to stream .mov files with 8KHz sampling rate and 20kb/s bite rate.

Quote:

# ffmpeg -i streamingloadtool.mov
FFmpeg version SVN-r10524, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-libxvid --enable-gpl --enable-libamr-nb --enable-libmp3lame --enable-libfaac --enable-libfaad
libavutil version: 49.5.0
libavcodec version: 51.44.0
libavformat version: 51.13.3
built on Jun 2 2009 18:04:38, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'streamingloadtool.mov':
Duration: 00:01:15.6, start: 0.000000, bitrate: 20 kb/s
Stream #0.0(eng): Audio: libamr_nb, 8000 Hz, mono
Stream #0.1(eng): Data: rtp / 0x20707472


Quote:

ffmpeg -i kurai-onrum.mp3
FFmpeg version SVN-r10524, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-libxvid --enable-gpl --enable-libamr-nb --enable-libmp3lame --enable-libfaac --enable-libfaad
libavutil version: 49.5.0
libavcodec version: 51.44.0
libavformat version: 51.13.3
built on Jun 2 2009 18:04:38, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
mdb:511, lastbuf:0 skipping granule 0
mdb:511, lastbuf:0 skipping granule 0
mdb:511, lastbuf:0 skipping granule 1
mdb:511, lastbuf:0 skipping granule 1
Input #0, mp3, from 'kurai-onrum.mp3':
Duration: 00:04:00.9, bitrate: 95 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, stereo, 96 kb/s
The above .mp3 file converted are as follows
ffmpeg -i kurai-onrum.mp3 -ar 8000 -ab 12200 -ac 1 -acodec libamr_nb kuraiamr_nb.mov

Quote:

# ffmpeg -i kuraiamr_nb.mov
FFmpeg version SVN-r10524, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-libxvid --enable-gpl --enable-libamr-nb --enable-libmp3lame --enable-libfaac --enable-libfaad
libavutil version: 49.5.0
libavcodec version: 51.44.0
libavformat version: 51.13.3
built on Jun 2 2009 18:04:38, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'kuraiamr_nb.mov':
Duration: 00:04:00.7, start: 0.000000, bitrate: 12 kb/s
Stream #0.0(eng): Audio: libamr_nb, 8000 Hz, mono
The problem is i unable to stream this kuraiamr_nb.mov file at my streaming server. when i play this file in quicktime player its stating that this is a unsupported media type.

What's wrong at my conversion?

kirukan 09-10-2009 02:40 AM

Anybody have idea?
Quote:

Stream #0.1(eng): Data: rtp / 0x20707472
kind of this part missing at my converted file i think because of this i unable to stream the file that i have converted.

whats wrong at my conversion?
Quote:

ffmpeg -i kurai-onrum.mp3 -ar 8000 -ab 12200 -ac 1 -acodec libamr_nb kuraiamr_nb.mov

kirukan 09-10-2009 05:42 AM

The things that i have posted on here is reflected on this following site
http://www.tuxwire.com/2009/09/09/co...-using-ffmpeg/
how is this happening (I didn't post)

Still i am struggling with this audio conversion....

kirukan 09-11-2009 07:22 AM

Quote:

# ffmpeg -i kuraiamr_nb.mov
FFmpeg version SVN-r10524, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-libxvid --enable-gpl --enable-libamr-nb --enable-libmp3lame --enable-libfaac --enable-libfaad
libavutil version: 49.5.0
libavcodec version: 51.44.0
libavformat version: 51.13.3
built on Jun 2 2009 18:04:38, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'kuraiamr_nb.mov':
Duration: 00:04:00.7, start: 0.000000, bitrate: 12 kb/s
Stream #0.0(eng): Audio: libamr_nb, 8000 Hz, mono
Yess i got the point why i couldn't stream this file at my darwin server because after convert the file we need to hint this using mp4creator then only its become as streamable file.


But still i have problem with my scenario:-
i need a streamable audio or video file(darwin support format .3gp, .mp4 or .mov) with any of these g729, g726, g7211 or g723.1 codecs.

if anybody have idea please guide me to do this task.

http://www.linuxquestions.org/questi...codecs-753771/

Thanks.

kirukan 09-17-2009 01:29 AM

I unable to find a opensource converter for these codecs (g729,g721,g723.1) because all these are licenses codecs. However if anybody have some streamable samples with these codecs please share with me.


All times are GMT -5. The time now is 08:38 AM.