PDA

View Full Version : about ffmpeg vhook? thank you!


smilesoul
19th August 2008, 05:20
[root@testDB www]# /usr/bin/ffmpeg -i '/opt/www/phpvideotoolkit/examples/to-be-processed/cat.mpeg' -s '128x96' -vhook '/usr/lib/vhook/watermark.so -f /opt/www/phpvideotoolkit/examples/watermark.png' /opt/www/phpvideotoolkit/examples/tmp/1219106637-48aa174d07c3f.3gp
FFmpeg version SVN-r14655, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --prefix=/usr --enable-gpl --enable-shared --enable-libmp3lame --enable-libvorbis --enable-libamr-nb --enable-libamr-wb --enable-libxvid --enable-libx264 --enable-liba52 --enable-liba52bin --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-pthreads --disable-ffserver --disable-ffplay --enable-nonfree --enable-vhook
libavutil version: 49.7.0
libavcodec version: 51.63.0
libavformat version: 52.19.0
libavdevice version: 52.0.0
built on Aug 18 2008 18:05:48, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
Input #0, mpeg, from '/opt/www/phpvideotoolkit/examples/to-be-processed/cat.mpeg':
Duration: 00:00:06.00, start: 0.367689, bitrate: 1114 kb/s
Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 384x284 [PAR 1:1 DAR 96:71], 950 kb/s, 25.00 tb(r)
Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16, 96 kb/s
Output #0, 3gp, to '/opt/www/phpvideotoolkit/examples/tmp/1219106637-48aa174d07c3f.3gp':
Stream #0.0: Video: h263, yuv420p, 128x96 [PAR 72:71 DAR 96:71], q=2-31, 200 kb/s, 25.00 tb(c)
Stream #0.1: Audio: libamr_nb, 44100 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[libamr_nb @ 0x9afba30]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

what's the problem? Any help will be appreciated! thank you!

Dark Shikari
19th August 2008, 05:26
-ar 8000

Also, wrong forum.

smilesoul
19th August 2008, 05:39
-ar 8000

Also, wrong forum.

thank you very much!
when i take with the -ar 8000,but

[root@testDB www]# /usr/bin/ffmpeg -i '/opt/www/phpvideotoolkit/examples/to-be-processed/cat.mpeg
' -s '128x96' -vhook '/usr/lib/vhook/watermark.so -f /opt/www/phpvideotoolkit/examples/watermark.png' -ar 8000 /opt/www/phpvideotoolkit/examples/tmp/1219106637-48aa174d07c3f.3gp
FFmpeg version SVN-r14655, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --prefix=/usr --enable-gpl --enable-shared --enable-libmp3lame --enable-libvorbis --enable-libamr-nb --enable-libamr-wb --enable-libxvid --enable-libx264 --enable-liba52 --enable-liba52bin --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-pthreads --disable-ffserver --disable-ffplay --enable-nonfree --enable-vhook
libavutil version: 49.7.0
libavcodec version: 51.63.0
libavformat version: 52.19.0
libavdevice version: 52.0.0
built on Aug 18 2008 18:05:48, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
Input #0, mpeg, from '/opt/www/phpvideotoolkit/examples/to-be-processed/cat.mpeg':
Duration: 00:00:06.00, start: 0.367689, bitrate: 1114 kb/s
Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 384x284 [PAR 1:1 DAR 96:71], 950 kb/s, 25.00 tb(r)
Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16, 96 kb/s
File '/opt/www/phpvideotoolkit/examples/tmp/1219106637-48aa174d07c3f.3gp' already exists. Overwrite ? [y/N] y
Output #0, 3gp, to '/opt/www/phpvideotoolkit/examples/tmp/1219106637-48aa174d07c3f.3gp':
Stream #0.0: Video: h263, yuv420p, 128x96 [PAR 72:71 DAR 96:71], q=2-31, 200 kb/s, 25.00 tb(c)
Stream #0.1: Audio: libamr_nb, 8000 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[libamr_nb @ 0x93e6a30]bitrate not supported: use one of 4.75k, 5.15k, 5.9k, 6.7k, 7.4k, 7.95k, 10.2k or 12.2k
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

thank you!

Dark Shikari
19th August 2008, 05:51
Again, wrong forum, and read the manual, the error message tells you exactly what you have to do. I'm not going to walk you through every single commandline option because you are incapable of reading the first page of the documentation.

smilesoul
19th August 2008, 05:54
Again, wrong forum, and read the manual, the error message tells you exactly what you have to do. I'm not going to walk you through every single commandline option because you are incapable of reading the first page of the documentation.


thank you! i know.thanks a lot!