PDA

View Full Version : 3gp muxer


sillKotscha
13th June 2007, 13:41
salut,

I'm looking for a muxer to mux aac and avi files into 3gp container. With yamb it is possible to demux those files - is this also possible vice versa, 'cause with yamb I've only found the ability to mux files into mp4... or is it possible without any drawbacks to rename mp4 into 3gp? that would be to easy but just a question...

if ffmpeg is able to mux avi and aac file into 3gp, what would be the appropriate cmd-line to do it...

thank you in advance

buzzqw
13th June 2007, 14:15
something like this ?


ffmpeg.exe -i movie.avi -i test.mp3 -f 3gp test.3gp


BHH

sillKotscha
13th June 2007, 14:44
oh, I hate cmd line excursions :)

E:\ffmpeg>ffmpeg.exe -i test.avi -i test.aac -f 3gp test.3gp

FFmpeg version SVN-r9017, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --enable-pthreads --enable-libmp3lame --
enable-libogg --enable-libvorbis --enable-libtheora --enable-libamr-nb --enable-
libamr-wb --enable-libgsm --enable-libnut --enable-x264 --enable-gpl --enable-sw
scaler --enable-liba52 --enable-xvid --enable-libfaad --enable-libfaac --enable-
libdts --enable-avisynth --cpu=i686 --disable-shared --enable-static
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on May 13 2007 17:41:26, gcc: 4.1.2
Input #0, avi, from 'test.avi':
Duration: 00:01:14.8, start: 0.000000, bitrate: 129 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 176x144, 14.98 fps(r)
Input #1, aac, from 'test.aac':
Duration: 00:01:14.4, start: 0.000000, bitrate: 96 kb/s
Stream #1.0: Audio: aac, 48000 Hz, stereo, 96 kb/s

Output #0, 3gp, to 'test.3gp':
Stream #0.0: Video: h263, yuv420p, 176x144, q=2-31, 200 kb/s, 14.98 fps(c)
Stream #0.1: Audio: libamr_nb, 48000 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
[libamr_nb @ 009B29C0]Only 8000Hz sample rate supported
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

hmmm... as it seems ffmpeg wants to convert my input and not just mux it... and btw, as ffmpeg is converting my files, why doesn't it resample the audio rate - as it is complaining about the sample rate :)

is there any other way to mux my input files into 3gp??

buzzqw
13th June 2007, 16:04
mp4box ?


NicMP4Box.exe -add movie.mp4 -add audio.mp4 aaa.3gp
Converting to 3GP file...
[3GPP convert] Setting major brand to 3GPP Generic file
Saving aaa.3gp: 0.500 secs Interleaving

BHH

sillKotscha
13th June 2007, 16:18
hi BHH,

thanks for your input!! I see you've used NicMP4Box.exe - any special reason?... does it mean I can't use any mp4box? If so, which build would you recommend?

for the moment I'll try Kurtnoise13's build (MP4Box-0.4.4) for my first testings...

cheers Sill

EDIT:

MP4Box.exe -add test.avi -add test.aac video.3gp

just worked :)

thank you... now I have to find out the max. sample rate and bitrate of audio files my moblie phone supports...

find out by testing 'cause in the FAQ only the audio/ video formats are listed but not their maximum properties my SL75 would play properly...

Kurtnoise
13th June 2007, 17:23
Yamb 2.xxx is able to create 3gp files, you didn't know ?

sillKotscha
13th June 2007, 17:24
no, not until now :)

I'll have a look... thank you.

just downloading Yamb-2.0_20070603.zip... is this your last release of the 2.xxx branch?

EDIT:

where do I find yamb's supported tagger tools... I had an external harddisk crash and have to search all the tools I have lost :mad:

foxyshadis
14th June 2007, 10:39
ffmpeg's syntax has to include -acodec copy and -vcodec copy, btw, or it's re-encode. Yamb is definitely the way to go for a GUI though.

sillKotscha
14th June 2007, 10:53
Yamb is definitely the way to go for a GUI though.

as it seems... but it has bug while creating 3gp files...

and I have to excuse myself - till now I was too lazy to write a bug-report, which I'll do now :)

even tough I had selected "create a 3gp file" YAMB always wanted to name the file as mp4 - I choose explicitly *.3gp as the file ending but YAMB didn't respected that and insisted on mp4 as the naming scheme.

was I doing something wrong or is that reproducible by others as well?!... build: Yamb-2.0_20070603

but I have to say that mp4box cmd-line options worked very well

http://img2.freeimagehosting.net/uploads/1e99fd6484.jpg (http://www.freeimagehosting.net/)

even though I hate CLI's :)

Kurtnoise
14th June 2007, 12:43
Seems to work fine now with the lastest build...;)

sillKotscha
14th June 2007, 12:51
thank you for that fast fix... I'll test it later on that day and report my findings...

cheers

sillKotscha
14th June 2007, 16:38
yes it works :)

thank you

Stux
15th June 2007, 07:37
salut,

I'm looking for a muxer to mux aac and avi files into 3gp container. With yamb it is possible to demux those files - is this also possible vice versa, 'cause with yamb I've only found the ability to mux files into mp4... or is it possible without any drawbacks to rename mp4 into 3gp? that would be to easy but just a question...

if ffmpeg is able to mux avi and aac file into 3gp, what would be the appropriate cmd-line to do it...

thank you in advance

You can mux MP4V + AAC into the 3GP container with the 3ivx 5.0 Filter Suite + GraphEdit.

The MP4V could be in whatever container you want, including AVI. The muxer will correct a bunch of Video Header problems as it muxes.

Remuxing back into AVI should be possible as well, providing the Video doesn't have variable framerate, it would probably be a good idea to recode the AAC to MP3 or some other format.

sillKotscha
15th June 2007, 09:21
You can mux MP4V + AAC into the 3GP container with the 3ivx 5.0 Filter Suite + GraphEdit.
...

The muxer will correct a bunch of Video Header problems as it muxes.


that sounds great but....


3ivx MPEG-4 5.0 is now available for purchase from the 3ivx Store.


as I have 2 free options, I'm not really thinking of purchasing anything at the moment :)

it would probably be a good idea to recode the AAC to MP3 or some other format.

is AAC not suited for 3gp? I'm just trying out different things... and as long as my mobile does play my own created 3gp files, why shouldn't I mux AAC or even AAC+(+) into 3gp?

Stux
16th June 2007, 00:33
is AAC not suited for 3gp? I'm just trying out different things... and as long as my mobile does play my own created 3gp files, why shouldn't I mux AAC or even AAC+(+) into 3gp?

AAC is not suited for muxing into AVI, especially using the AVI Muxer. You indicated you wanted to be able to reverse the AVI->3GP muxing.

so, 3GP->MP3->AVI

sillKotscha
16th June 2007, 01:12
aac into avi was never the task :)

I just wanted to create an 3gp file from an xvid encoded avi file and an aac encoded audio file...

just as you can see in the picture in post number 9...