ying lcs | 1 Feb 01:21
Picon

Re: Use ffmpeg to convert video files

Thanks.

I tried you suggestion.  But i get an error:
Error while opening codec for output stream #0.1 - maybe incorrect
parameters such as bit_rate, rate, width or height

How can I find out the right parameters 'bit_rate', 'rate'?

Here is the detailed message:
]$ ./ffmpeg -i ~/videos/transformer.mov -b 64k -s 176x144 -r 24 transform.3gp
FFmpeg version SVN-r7736, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --enable-amr_nb
  libavutil version: 49.2.0
  libavcodec version: 51.29.0
  libavformat version: 51.8.0
  built on Jan 28 2007 21:56:17, gcc: 4.1.0 20060304 (Red Hat 4.1.0-3)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x845fe74]negative ctts, ignoring

Seems stream 1 codec frame rate differs from container frame rate:
8000.00 (8000/1) -> 23.98 (24000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/scheung/videos/transformer.mov':
  Duration: 00:02:08.7, start: 0.000000, bitrate: 6356 kb/s
  Stream #0.0(eng): Audio: mp4a / 0x6134706D, 48000 Hz, stereo
  Stream #0.1(eng): Video: h264, yuv420p, 1280x532, 23.98 fps(r)
File 'transform.3gp' already exists. Overwrite ? [y/N] y
Output #0, 3gp, to 'transform.3gp':
  Stream #0.0: Video: h263, yuv420p, 176x144, q=2-31, 64 kb/s, 24.00 fps(c)
  Stream #0.1: Audio: amr_nb, 48000 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
(Continue reading)

Oon Arfiandwi | 1 Feb 01:32
Picon

ffmpeg grab x11 on 8 bpp (X11 depth 8)


Hi All ffmpeg users,

I have problem capturing X11 (with x11grab) for 8 bit color.
(X11 with depth 8).
Does anyone have experience and successfully grab X11 with 8 bit color 
(256 color)?

note: the x11grab running well on 16 bit color.

please inform me (via mailinglist or private mail)..

thanks in advance.

--

-- 
regards,
Oon Arfiandwi
Dawn Song | 1 Feb 01:40
Picon

Re: How to grab exactly each frame from one movie file, such as one avi file? (all images' sequence number corresponding to their frame ordinal number)

Yeah, I didn't do 'make distclean'. Then I tried the command but the output
of ffmpeg still show unknown. My work directory is
ffmpeg-work
-----ffmpeg                  <--this is the directory of svn checkout
-----build                     <--this is my build directory
anything wrong?

I guess you didnt do 'make distclean' and 'configure' and 'make' after
> svn update.
>
>
> > Then you mean that if I want to depend on the movie to analysis out a
> > signal
> > depending on all the jpegs extracted, the solution is some wrong for I
> > can't
> > ensure the moive can sample the real world exactly. So I am puzzled.
>
> You will have to explain what it is you want to analyze 'in the real
> world'.
>
Oh, I use a camera to record a screen displaying the heart-beating signal.
Then I want ffmpeg could extract every frame to help me rebuilding the
signal exactly. So I want ffmpeg to do the job perfectly.

>> Yes, ffmpeg numbers the output images in a very straightforward way. But
>> think: suppose your input file is 25fps and you specify -r15 for the
>> output sequence. Then it is impossible to number the frames like you
>> wish, which is some numbering based on timestamps. Timestamps are rather
>> unreliable anyway. Your grabber may have 'lost' the frame in question
>> because of disagreement between the video sync and the system clock and
(Continue reading)

Axel Gunter | 1 Feb 02:15
Picon

Compiling with x264 support

Hi,

Trying to compile ffmpeg with x264 encoding support using the following 
configure command.

./configure --enable-gpl --enable-x264

I get the following error -
---------------------------------------
ERROR: x264 not found
If you think configure made a mistake, make sure you are using the latest
version from SVN.
---------------------------------------
*/
/*The last few lines from config.err
---------------------------------------
gcc -fomit-frame-pointer -c -o /tmp/ffmpeg-conf-7567-22158-30608.o 
/tmp/ffmpeg-conf-28883-22158-14258.c
gcc -Wl,--warn-common -o /tmp/ffmpeg-conf-8253-22158-27859 
/tmp/ffmpeg-conf-7567-22158-30608.o -lm
check_func localtime_r
check_ld
check_cc
BEGIN /tmp/ffmpeg-conf-28883-22158-14258.c
     1    extern int localtime_r();
     2    int main(){
     3        localtime_r();
     4    }
END /tmp/ffmpeg-conf-28883-22158-14258.c
gcc -fomit-frame-pointer -c -o /tmp/ffmpeg-conf-7567-22158-30608.o 
(Continue reading)

Eric Walker | 1 Feb 02:53
Picon
Favicon

ffmpeg compile error

I just downloaded the latest ffmpeg and I also upgraded kernel and debian kernel. Please anyone know whats
up with this compile error?       
walker <at> querida:~$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang
--prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr
--with-tune=i686 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
ewalker <at> querida:~$  

# ./configure
install prefix            /usr/local
source path               /home/ewalker/work/video_conversions/ffmpeg_compile/ff
mpeg-checkout-2007-01-30
C compiler                gcc
make                      make
.align is power-of-two    no
ARCH                      x86_32 (generic)
big-endian                no
MMX enabled               yes
CMOV enabled              no
CMOV is fast              no
gprof enabled             no
debug symbols             yes
strip symbols             yes
optimize                  yes
(Continue reading)

JCA | 1 Feb 04:15
Picon

Re: Problem with installation on Linux

> I am trying to install ffmepg on Linux but without success:
> Here is a procedure I use
>
> # ./configure --enable-gpl --enable-a52 --enable-xvid --enable-amr_nb --enable-amr_wb --
> enable-mp3lame --enable-libogg --enable-vorbis
> ...
> gcc -I"/home/src/ffmpeg"/libswscale   -DHAVE_AV_CONFIG_H
> -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/home/src/ffmpeg"
> -I"/home/src/ffmpeg"
> -I"/home/src/ffmpeg"/libavutil -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -
> Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -O3  -c -o
> mpegvideo.o mpegvideo.c
> In file included from /home/src/ffmpeg/libavutil/common.h:57,
>                from /home/src/ffmpeg/libavutil/avutil.h:44,
>                from avcodec.h:34,
>                from mpegvideo.c:30:
> /home/src/ffmpeg/libavutil/internal.h:305: warning: static declaration of 'lrintf' follows non-
> static declaration
> mpegvideo.c: In function `MPV_encode_picture':
> /home/src/ffmpeg/libavutil/internal.h:305: sorry, unimplemented: inlining failed in call to
> 'lrintf':
> redefined extern inline functions are not considered for inlining
> mpegvideo.c:2630: sorry, unimplemented: called from here
> make[1]: *** [mpegvideo.o] Error 1
> make[1]: Leaving directory `/home/src/ffmpeg/libavcodec'
> make: *** [lib] Error 2

   I asked exactly the same question a few days ago. Either nobody
knows the answer, or those who do can't be bothered to share their
(Continue reading)

Víctor Paesa | 1 Feb 08:29

Re: Use ffmpeg to convert video files

Hi,

> I tried you suggestion.  But i get an error:
> Error while opening codec for output stream #0.1 - maybe incorrect
> parameters such as bit_rate, rate, width or height
>
> How can I find out the right parameters 'bit_rate', 'rate'?
>
> Here is the detailed message:
> ]$ ./ffmpeg -i ~/videos/transformer.mov -b 64k -s 176x144 -r 24
> transform.3gp
> FFmpeg version SVN-r7736, Copyright (c) 2000-2006 Fabrice Bellard, et al.
>   configuration:  --enable-amr_nb
>   libavutil version: 49.2.0
>   libavcodec version: 51.29.0
>   libavformat version: 51.8.0
>   built on Jan 28 2007 21:56:17, gcc: 4.1.0 20060304 (Red Hat 4.1.0-3)
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x845fe74]negative ctts, ignoring
>
> Seems stream 1 codec frame rate differs from container frame rate:
> 8000.00 (8000/1) -> 23.98 (24000/1001)
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
> '/home/scheung/videos/transformer.mov':
>   Duration: 00:02:08.7, start: 0.000000, bitrate: 6356 kb/s
>   Stream #0.0(eng): Audio: mp4a / 0x6134706D, 48000 Hz, stereo
>   Stream #0.1(eng): Video: h264, yuv420p, 1280x532, 23.98 fps(r)
> File 'transform.3gp' already exists. Overwrite ? [y/N] y
> Output #0, 3gp, to 'transform.3gp':
>   Stream #0.0: Video: h263, yuv420p, 176x144, q=2-31, 64 kb/s, 24.00
> fps(c)
(Continue reading)

export | 1 Feb 09:12
Picon

Re: Re: Problem with installation on Linux

Thank you for your help
So I used
./configure --enable-gpl --enable-a52 --enable-xvid --enable-amr_nb --enable-amr_wb --
enable-mp3lame --enable-libogg --enable-vorbis --extra-cflags=-DHAVE_LRINTF

and then
make 

But now  I finished with the error like this:
...
...
gcc -I"/home/src/ffmpeg"/libswscale   -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/home/src/ffmpeg" -I"/home/src/ffmpeg" 
-I"/home/src/ffmpeg"/libavutil -DHAVE_LRINTF -fomit-frame-pointer -g -Wdeclaration-after-
statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -
O3  -c -o amr.o amr.c
amr.c:72:34: amr_float/interf_dec.h: No such file or directory
amr.c:73:34: amr_float/interf_enc.h: No such file or directory
amr.c:81: error: field `mode' has incomplete type
amr.c:87: error: return type is an incomplete type
amr.c: In function `getBitrateMode':
amr.c:90: error: `MR475' undeclared (first use in this function)
amr.c:90: error: (Each undeclared identifier is reported only once
amr.c:90: error: for each function it appears in.)
amr.c:91: error: `MR515' undeclared (first use in this function)
amr.c:92: error: `MR59' undeclared (first use in this function)
amr.c:93: error: `MR67' undeclared (first use in this function)
amr.c:94: error: `MR74' undeclared (first use in this function)
amr.c:95: error: `MR795' undeclared (first use in this function)
amr.c:96: error: `MR102' undeclared (first use in this function)
(Continue reading)

Martin | 1 Feb 09:37
Picon
Favicon

Relationship between quality ans bitrate

Hi,

I'm using ffmpeg to encode and decode h263+. In order to change the
average bitrate of the stream, I need to set the quality AVFrame. How is
the relationship between bitrate and quality? There must be some
mathematical relation, right? I want, for example, half the bitrate. A
suggestion that bitrate is approximately halfed if quality is doubled
wasn't reflected by my measurements. Any help is really appreciated!

Thanks,

Martin
Víctor Paesa | 1 Feb 09:41

Re: How to grab exactly each frame from one movie file, such as one avi file? (all images' sequence number corresponding totheir frame ordinal number)

Hi,

>> > Then you mean that if I want to depend on the movie to analysis out a
>> > signal
>> > depending on all the jpegs extracted, the solution is some wrong for I
>> > can't
>> > ensure the moive can sample the real world exactly. So I am puzzled.
>>
>> You will have to explain what it is you want to analyze 'in the real
>> world'.
>>
> Oh, I use a camera to record a screen displaying the heart-beating signal.
> Then I want ffmpeg could extract every frame to help me rebuilding the
> signal exactly. So I want ffmpeg to do the job perfectly.

So you are sampling with your camera at (let's say) 50Hz a signal
that is already being sampled at 50Hz by the screen. Nyquist–Shannon
sampling theorem says that you should sample at least twice as frecuently
to get good results.
Otherwise, part of you analyzing effort will need to go into reducing
banding artifacts.

[...]

> Above all, I understand that recording using camera can't exactly rebuild
> the heart-beating signal I want. Isn't it?

I'm afraid so.

> If so, then I must find another way out.
(Continue reading)


Gmane