Hi! Please help me out from this problem, i dont't know, what can i do now. my command is: /usr/local/bin/ffmpeg -i /home/bish/1234567.3gp -y /home/bish/new_bish.3gp the answer is: FFmpeg version SVN-r9983, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-libamr-nb --enable-libamr-wb libavutil version: 49.4.1 libavcodec version: 51.40.4 libavformat version: 51.12.1 built on Aug 9 2007 11:36:47, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/bish/1234567.3gp': Duration: 00:00:15.5, start: 0.000000, bitrate: 43 kb/s Stream #0.0(und): Video: h263, yuv420p, 128x96, 29.97 fps(r) Stream #0.1(und): Audio: samr / 0x726D6173, 8000 Hz, mono Output #0, 3gp, to '/home/bish/new_bish.3gp': Stream #0.0(und): Video: h263, yuv420p, 128x96, q=2-31, 200 kb/s, 29.97 fps(c) Stream #0.1(und): Audio: 0x0000, 8000 Hz, mono, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Unsupported codec for output stream #0.1 the libamr codecs have been enabled. what is the problem? regards, heal
On date Thursday 2007-08-09 12:22:21 +0200, heal25 at gmail.com encoded:
Hi!
Please help me out from this problem, i dont't know, what can i do now. my command is: /usr/local/bin/ffmpeg -i /home/bish/1234567.3gp -y /home/bish/new_bish.3gp
the answer is: FFmpeg version SVN-r9983, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-libamr-nb --enable-libamr-wb libavutil version: 49.4.1 libavcodec version: 51.40.4 libavformat version: 51.12.1 built on Aug 9 2007 11:36:47, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/bish/1234567.3gp': Duration: 00:00:15.5, start: 0.000000, bitrate: 43 kb/s Stream #0.0(und): Video: h263, yuv420p, 128x96, 29.97 fps(r) Stream #0.1(und): Audio: samr / 0x726D6173, 8000 Hz, mono Output #0, 3gp, to '/home/bish/new_bish.3gp': Stream #0.0(und): Video: h263, yuv420p, 128x96, q=2-31, 200 kb/s, 29.97 fps(c) Stream #0.1(und): Audio: 0x0000, 8000 Hz, mono, 64 kb/s ^^^^^^^^^^^^^ Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Unsupported codec for output stream #0.1
the libamr codecs have been enabled. what is the problem?
The problem seems to be in the ffmpeg mechanism to automatically determine the codec to use, given the container format of the output. In this case you should try to explicitly set the audio encoder, for example with: ffmpeg -i /home/bish/1234567.3gp -acodec mp2 -y /home/bish/new_bish.3gp-vcodec BTW: I also tried with -acodec libamr_wb and libamr_nb getting ffmpeg hang. Do you experience this too? HTH, cheers. -- ffmpeg-user random tip #6 Please follow netiquette rules while posting to ffmpeg-user: http://linux.sgms-centre.com/misc/netiquette.php
Stefano Sabatini wrote:
On date Thursday 2007-08-09 12:22:21 +0200, heal25 at gmail.com encoded:
Hi!
Please help me out from this problem, i dont't know, what can i do now. my command is: /usr/local/bin/ffmpeg -i /home/bish/1234567.3gp -y /home/bish/new_bish.3gp
the answer is: FFmpeg version SVN-r9983, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-libamr-nb --enable-libamr-wb libavutil version: 49.4.1 libavcodec version: 51.40.4 libavformat version: 51.12.1 built on Aug 9 2007 11:36:47, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/bish/1234567.3gp': Duration: 00:00:15.5, start: 0.000000, bitrate: 43 kb/s Stream #0.0(und): Video: h263, yuv420p, 128x96, 29.97 fps(r) Stream #0.1(und): Audio: samr / 0x726D6173, 8000 Hz, mono Output #0, 3gp, to '/home/bish/new_bish.3gp': Stream #0.0(und): Video: h263, yuv420p, 128x96, q=2-31, 200 kb/s, 29.97 fps(c) Stream #0.1(und): Audio: 0x0000, 8000 Hz, mono, 64 kb/s
^^^^^^^^^^^^^
Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Unsupported codec for output stream #0.1
the libamr codecs have been enabled. what is the problem?
The problem seems to be in the ffmpeg mechanism to automatically determine the codec to use, given the container format of the output.
In this case you should try to explicitly set the audio encoder, for example with: ffmpeg -i /home/bish/1234567.3gp -acodec mp2 -y /home/bish/new_bish.3gp-vcodec
BTW: I also tried with -acodec libamr_wb and libamr_nb getting ffmpeg hang. Do you experience this too?
HTH, cheers.
I personally use libfaac? let me know -- Frederic Belleudy Programmer PWIdeas ICQ #: 253-372-030
On date Thursday 2007-08-09 11:44:40 -0400, Frederic Belleudy encoded:
Stefano Sabatini wrote: [...]
In this case you should try to explicitly set the audio encoder, for example with: ffmpeg -i /home/bish/1234567.3gp -acodec mp2 -y /home/bish/new_bish.3gp-vcodec
BTW: I also tried with -acodec libamr_wb and libamr_nb getting ffmpeg hang. Do you experience this too?
HTH, cheers.
I personally use libfaac? let me know
It works fine with libfaac. For what regards the libamr_nb attempt I get this: sds at santefisi ~/s/m/samples> gdb ~/src/ffmpeg-svn/ffmpeg_g GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) set args -i aikido.3gp -acodec libamr_nb -ar 8k -y aikido2.3gp (gdb) run Starting program: /home/sds/src/ffmpeg-svn/ffmpeg_g -i aikido.3gp -acodec libamr_nb -ar 8k -y aikido2.3gp FFmpeg version SVN-r10017, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --prefix=/home/sds --mandir=/home/sds/share/man --enable-gpl --enable-pp --enable-libfaad --enable-libfaac --enable-libamr-nb --enable-libamr-wb --enable-x11grab --enable-libmp3lame libavutil version: 49.4.1 libavcodec version: 51.40.4 libavformat version: 51.12.1 built on Aug 9 2007 16:38:19, gcc: 4.1.2 20061028 (prerelease) (Debian 4.1.1-19) Seems stream 0 codec frame rate differs from container frame rate: 29.97 (30000/1001) -> 25.00 (25/1) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'aikido.3gp': Duration: 00:00:53.4, start: 0.000000, bitrate: 284 kb/s Stream #0.0(und): Video: h263, yuv420p, 176x144, 25.00 fps(r) Stream #0.1(und): Audio: mp3, 22050 Hz, stereo, 64 kb/s Program received signal SIGINT, Interrupt. 0xb7f7ccf6 in sin () from /lib/libm.so.6 (gdb) bt #0 0xb7f7ccf6 in sin () from /lib/libm.so.6 #1 0x080c93be in av_build_filter (filter=0xb0fdc020, factor=0.00029024943310657596, tap_count=55125, phase_count=1024, scale=32768, type=9) at resample2.c:109 #2 0x080c9585 in av_resample_init (out_rate=8, in_rate=22050, filter_size=16, phase_shift=10, linear=0, cutoff=0.80000000000000004) at resample2.c:193 #3 0x080c8bda in audio_resample_init (output_channels=2, input_channels=2, output_rate=8, input_rate=22050) at resample.c:165 #4 0x080627f9 in main (argc=Cannot access memory at address 0xd755 ) at ffmpeg.c:1590 (gdb) c Continuing. Program received signal SIGINT, Interrupt. 0xb7f7ccf6 in sin () from /lib/libm.so.6 (gdb) bt #0 0xb7f7ccf6 in sin () from /lib/libm.so.6 #1 0x080c93be in av_build_filter (filter=0xb0fdc020, factor=0.00029024943310657596, tap_count=55125, phase_count=1024, scale=32768, type=9) at resample2.c:109 #2 0x080c9585 in av_resample_init (out_rate=8, in_rate=22050, filter_size=16, phase_shift=10, linear=0, cutoff=0.80000000000000004) at resample2.c:193 #3 0x080c8bda in audio_resample_init (output_channels=2, input_channels=2, output_rate=8, input_rate=22050) at resample.c:165 #4 0x080627f9 in main (argc=Cannot access memory at address 0xd755 ) at ffmpeg.c:1590 (gdb) f 1 #1 0x080c93be in av_build_filter (filter=0xb0fdc020, factor=0.00029024943310657596, tap_count=55125, phase_count=1024, scale=32768, type=9) at resample2.c:109 109 else y = sin(x) / x; (gdb) bt #0 0xb7f7ccf6 in sin () from /lib/libm.so.6 #1 0x080c93be in av_build_filter (filter=0xb0fdc020, factor=0.00029024943310657596, tap_count=55125, phase_count=1024, scale=32768, type=9) at resample2.c:109 #2 0x080c9585 in av_resample_init (out_rate=8, in_rate=22050, filter_size=16, phase_shift=10, linear=0, cutoff=0.80000000000000004) at resample2.c:193 #3 0x080c8bda in audio_resample_init (output_channels=2, input_channels=2, output_rate=8, input_rate=22050) at resample.c:165 #4 0x080627f9 in main (argc=Cannot access memory at address 0xd755 ) at ffmpeg.c:1590 (gdb) c Continuing. Program received signal SIGINT, Interrupt. 0xb7f7ccf6 in sin () from /lib/libm.so.6 (gdb) bt #0 0xb7f7ccf6 in sin () from /lib/libm.so.6 #1 0x080c93be in av_build_filter (filter=0xb0fdc020, factor=0.00029024943310657596, tap_count=55125, phase_count=1024, scale=32768, type=9) at resample2.c:109 #2 0x080c9585 in av_resample_init (out_rate=8, in_rate=22050, filter_size=16, phase_shift=10, linear=0, cutoff=0.80000000000000004) at resample2.c:193 #3 0x080c8bda in audio_resample_init (output_channels=2, input_channels=2, output_rate=8, input_rate=22050) at resample.c:165 #4 0x080627f9 in main (argc=Cannot access memory at address 0xd755 ) at ffmpeg.c:1590 (gdb) seems it gets stuck in av_build_filter. Cheers. -- ffmpeg-user random tip #7 If you're asking about problems with an ffmpeg tool, *always* post the command you're using and the complete output.
Hi On Thu, Aug 09, 2007 at 06:34:19PM +0200, Stefano Sabatini wrote:
On date Thursday 2007-08-09 11:44:40 -0400, Frederic Belleudy encoded:
Stefano Sabatini wrote: [...]
In this case you should try to explicitly set the audio encoder, for example with: ffmpeg -i /home/bish/1234567.3gp -acodec mp2 -y /home/bish/new_bish.3gp-vcodec
BTW: I also tried with -acodec libamr_wb and libamr_nb getting ffmpeg hang. Do you experience this too?
HTH, cheers.
I personally use libfaac? let me know
It works fine with libfaac.
i tried it and no, libfaac does not support 8hz
For what regards the libamr_nb attempt I get this:
[...]
Starting program: /home/sds/src/ffmpeg-svn/ffmpeg_g -i aikido.3gp -acodec libamr_nb -ar 8k -y aikido2.3gp FFmpeg version SVN-r10017, Copyright (c) 2000-2007 Fabrice Bellard, et al. [...] seems it gets stuck in av_build_filter.
patience, resampling to 8hz is slow, the code isnt designed to handle that at reasonable speed [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Opposition brings concord. Out of discord comes the fairest harmony. -- Heraclitus
On date Wednesday 2007-08-22 13:15:43 +0200, Michael Niedermayer encoded:
Hi
On Thu, Aug 09, 2007 at 06:34:19PM +0200, Stefano Sabatini wrote:
On date Thursday 2007-08-09 11:44:40 -0400, Frederic Belleudy encoded:
Stefano Sabatini wrote: [...]
In this case you should try to explicitly set the audio encoder, for example with: ffmpeg -i /home/bish/1234567.3gp -acodec mp2 -y /home/bish/new_bish.3gp-vcodec
BTW: I also tried with -acodec libamr_wb and libamr_nb getting ffmpeg hang. Do you experience this too?
HTH, cheers.
I personally use libfaac? let me know
It works fine with libfaac.
i tried it and no, libfaac does not support 8hz
For what regards the libamr_nb attempt I get this:
[...]
Starting program: /home/sds/src/ffmpeg-svn/ffmpeg_g -i aikido.3gp -acodec libamr_nb -ar 8k -y aikido2.3gp ^^^^^^ FFmpeg version SVN-r10017, Copyright (c) 2000-2007 Fabrice Bellard, et al. [...] seems it gets stuck in av_build_filter.
patience, resampling to 8hz is slow, the code isnt designed to handle that at reasonable speed
Yes indeed it works (although is slow). But I was wrong with -ar 8k, ffmpeg uses atoi to parse the audio rate string "8k", which returns "8" rather than what I was expecting, that is 8000. Cheers. -- ffmpeg-user random tip #7 If you're asking about problems with an ffmpeg tool, *always* post the command you're using and the complete output.
participants (4)
-
fredericb@pwideas.com -
heal25@gmail.com -
michaelni@gmx.at -
stefano.sabatini-lala@poste.it