[FFmpeg-user] External UVC Camera Video Streaming/Image Capturing using ffmpeg

s.rawat imsaurabhrawat at gmail.com
Sat Dec 10 10:47:52 CET 2011


Hi,
I am trying to perform the image /video capturing using ffmpeg for an
external uvc camera connected to my arm device/board.I have compiled the
source code using ndk5 and i have got ffmpeg lib whcih I have placed in the
system/lib folder and issuing the following command

ffmpeg -y -t 25 -f video4linux2 -r 15 -s 320*240 -pix_fmt yuyv422 -i
 /dev/video1 -an -f avi Test_QVGA1.avi

But I am the following output/error(see in *Bold* at last) -->


FFmpeg version UNKNOWN, Copyright (c) 2000-2010 the FFmpeg developers
  built on Dec  8 2011 17:46:40 with gcc 4.4.3
  configuration: --target-os=linux --cross-prefix=arm-linux-androideabi-
--arch=arm
--sysroot=/home/nexbits/Downloads/marvel_Android/android-ndk-r6//platforms/android-3/arch-arm
--soname-prefix=/system/lib/ --enable-shared --disable-symver
--enable-small --optimization-flags=-O2 --disable-everything
--enable-indevs --enable-protocol=file --enable-encoder=mpeg1video
--enable-encoder=nellymoser --enable-avfilter --enable-avfilter
--enable-vdpau --enable-bzlib --enable-decoder=rawvideo --enable-pthreads
--enable-muxer=mpeg1video --enable-zlib --enable-libvpx
--enable-filter=scale --disable-stripping --enable-runtime-cpudetect
--enable-vaapi --enable-gpl --enable-muxer=m4v --enable-postproc
--enable-swscale --enable-x11grab --enable-demuxer=m4v
--enable-demuxer=mpegvideo --enable-shared --disable-static
--prefix=../build/ffmpeg/armeabi --extra-cflags= --extra-ldflags=
  WARNING: library configuration mismatch
  avutil      configuration: --target-os=linux
--cross-prefix=arm-linux-androideabi- --arch=arm
--sysroot=/home/nexbits/Downloads/marvel_Android/android-ndk-r6//platforms/android-3/arch-arm
--soname-prefix=/system/lib/ --enable-shared --disable-symver
--enable-small --optimization-flags=-O2 --disable-everything
--enable-indevs --enable-protocol=file --enable-encoder=mpeg1video
--enable-encoder=nellymoser --enable-avfilter --enable-avfilter
--enable-vdpau --enable-bzlib --enable-pthreads --enable-muxer=mpeg1video
--enable-zlib --enable-libvpx --disable-stripping
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-muxer=m4v
--enable-postproc --enable-swscale --enable-x11grab --enable-demuxer=m4v
--enable-demuxer=mpegvideo --enable-shared --disable-static
--prefix=../build/ffmpeg/armeabi-v7a --extra-cflags='-march=armv7-a
-mfloat-abi=softfp' --extra-ldflags=
  avcore      configuration: --target-os=linux
--cross-prefix=arm-linux-androideabi- --arch=arm
--sysroot=/home/nexbits/Downloads/marvel_Android/android-ndk-r6//platforms/android-3/arch-arm
--soname-prefix=/system/lib/ --enable-shared --disable-symver
--enable-small --optimization-flags=-O2 --disable-everything
--enable-indevs --enable-protocol=file --enable-encoder=mpeg1video
--enable-encoder=nellymoser --enable-avfilter --enable-avfilter
--enable-vdpau --enable-bzlib --enable-pthreads --enable-muxer=mpeg1video
--enable-zlib --enable-libvpx --disable-stripping
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-muxer=m4v
--enable-postproc --enable-swscale --enable-x11grab --enable-demuxer=m4v
--enable-demuxer=mpegvideo --enable-shared --disable-static
--prefix=../build/ffmpeg/armeabi-v7a --extra-cflags='-march=armv7-a
-mfloat-abi=softfp' --extra-ldflags=
  avcodec     configuration: --target-os=linux
--cross-prefix=arm-linux-androideabi- --arch=arm
--sysroot=/home/nexbits/Downloads/marvel_Android/android-ndk-r6//platforms/android-3/arch-arm
--soname-prefix=/system/lib/ --enable-shared --disable-symver
--enable-small --optimization-flags=-O2 --disable-everything
--enable-indevs --enable-protocol=file --enable-encoder=mpeg1video
--enable-encoder=nellymoser --enable-avfilter --enable-avfilter
--enable-vdpau --enable-bzlib --enable-decoder=rawvideo --enable-pthreads
--enable-muxer=mpeg1video --enable-zlib --enable-libvpx
--enable-filter=scale --disable-stripping --enable-runtime-cpudetect
--enable-vaapi --enable-gpl --enable-muxer=m4v --enable-postproc
--enable-swscale --enable-x11grab --enable-demuxer=m4v
--enable-demuxer=mpegvideo --enable-shared --disable-static
--prefix=../build/ffmpeg/armeabi-v7a --extra-cflags='-march=armv7-a
-mfloat-abi=softfp' --extra-ldflags=
  avformat    configuration: --target-os=linux
--cross-prefix=arm-linux-androideabi- --arch=arm
--sysroot=/home/nexbits/Downloads/marvel_Android/android-ndk-r6//platforms/android-3/arch-arm
--soname-prefix=/system/lib/ --enable-shared --disable-symver
--enable-small --optimization-flags=-O2 --disable-everything
--enable-indevs --enable-protocol=file --enable-encoder=mpeg1video
--enable-encoder=nellymoser --enable-avfilter --enable-avfilter
--enable-vdpau --enable-bzlib --enable-pthreads --enable-muxer=mpeg1video
--enable-zlib --enable-libvpx --disable-stripping
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-muxer=m4v
--enable-postproc --enable-swscale --enable-x11grab --enable-demuxer=m4v
--enable-demuxer=mpegvideo --enable-shared --disable-static
--prefix=../build/ffmpeg/armeabi-v7a --extra-cflags='-march=armv7-a
-mfloat-abi=softfp' --extra-ldflags=
  avfilter    configuration: --target-os=linux
--cross-prefix=arm-linux-androideabi- --arch=arm
--sysroot=/home/nexbits/Downloads/marvel_Android/android-ndk-r6//platforms/android-3/arch-arm
--soname-prefix=/system/lib/ --enable-shared --disable-symver
--enable-small --optimization-flags=-O2 --disable-everything
--enable-indevs --enable-protocol=file --enable-encoder=mpeg1video
--enable-encoder=nellymoser --enable-avfilter --enable-avfilter
--enable-vdpau --enable-bzlib --enable-pthreads --enable-muxer=mpeg1video
--enable-zlib --enable-libvpx --enable-filter=scale --disable-stripping
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-muxer=m4v
--enable-postproc --enable-swscale --enable-x11grab --enable-demuxer=m4v
--enable-demuxer=mpegvideo --enable-shared --disable-static
--prefix=../build/ffmpeg/armeabi-v7a --extra-cflags='-march=armv7-a
-mfloat-abi=softfp' --extra-ldflags=
  swscale     configuration: --target-os=linux
--cross-prefix=arm-linux-androideabi- --arch=arm
--sysroot=/home/nexbits/Downloads/marvel_Android/android-ndk-r6//platforms/android-3/arch-arm
--soname-prefix=/system/lib/ --enable-shared --disable-symver
--enable-small --optimization-flags=-O2 --disable-everything
--enable-indevs --enable-protocol=file --enable-encoder=mpeg1video
--enable-encoder=nellymoser --enable-avfilter --enable-avfilter
--enable-vdpau --enable-bzlib --enable-pthreads --enable-muxer=mpeg1video
--enable-zlib --enable-libvpx --disable-stripping
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-muxer=m4v
--enable-postproc --enable-swscale --enable-x11grab --enable-demuxer=m4v
--enable-demuxer=mpegvideo --enable-shared --disable-static
--prefix=../build/ffmpeg/armeabi-v7a --extra-cflags='-march=armv7-a
-mfloat-abi=softfp' --extra-ldflags=
  postproc    configuration: --target-os=linux
--cross-prefix=arm-linux-androideabi- --arch=arm
--sysroot=/home/nexbits/Downloads/marvel_Android/android-ndk-r6//platforms/android-3/arch-arm
--soname-prefix=/system/lib/ --enable-shared --disable-symver
--enable-small --optimization-flags=-O2 --disable-everything
--enable-indevs --enable-protocol=file --enable-encoder=mpeg1video
--enable-encoder=nellymoser --enable-avfilter --enable-avfilter
--enable-vdpau --enable-bzlib --enable-pthreads --enable-muxer=mpeg1video
--enable-zlib --enable-libvpx --disable-stripping
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-muxer=m4v
--enable-postproc --enable-swscale --enable-x11grab --enable-demuxer=m4v
--enable-demuxer=mpegvideo --enable-shared --disable-static
--prefix=../build/ffmpeg/armeabi-v7a --extra-cflags='-march=armv7-a
-mfloat-abi=softfp' --extra-ldflags=
  libavutil     50.34. 0 / 50.34. 0
  libavcore      0.16. 0 /  0.16. 0
  libavcodec    52.99. 1 / 52.99. 1
  libavformat   52.88. 0 / 52.88. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.69. 0 /  1.69. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[video4linux2 @ 0x27d00] open video device 3
[video4linux2 @ 0x27d00] Estimating duration from bitrate, this may be
inaccurate
Input #0, video4linux2, from '/dev/video1':
  Duration: N/A, start: 23216.101269, bitrate: 18432 kb/s
    Stream #0.0: Video: rawvideo, yuyv422, 320x240, 18432 kb/s, 15 tbr,
1000k tbn, 15 tbc
*Requested output format 'avi' is not a suitable output format
ioctl(VIDIOC_QBUF)
*
My aim is to stream the video up to the Android UI and display it using the
android media player.
It would be great  if some one could guide me some direction towards this.
Thanking you with great faith and hope in this community.
Rgds,
Saurabh


More information about the ffmpeg-user mailing list