[FFmpeg-user] bgra to yuv

Josh long funkyirish at gmail.com
Wed Mar 14 04:54:02 CET 2012


On Sat, Mar 3, 2012 at 1:11 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Josh long <funkyirish <at> gmail.com> writes:
>
> > I've been given raw bgra files from a client in a school project
> > and want to compress them with dirac, so that I can later
> > parallelize the code.
>
> ffmpeg -i input -vcodec libschroedinger out.avi
>
> But please post the command line you tried together with complete,
> uncut console output and explain what goes wrong.
>
> Please do not top-post here, it is considered rude, Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


Sorry about the top post.  I think it may shed some light in this matter if
I briefly describe my setup and goals.  I'm trying to compress bgra format
avi files with dirac/schodinger. Some things, like the suggested command
above.  However, when I try to play any of the resulting files in VLC I get
garbage.

Here is my ffmpeg version and info:

ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1, Copyright (c) 2000-2011 the
Libav developers
  built on Jan  4 2012 16:21:50 with gcc 4.6.1
  configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=i386
--prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared
--disable-static
  WARNING: library configuration mismatch
  avutil      configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  avcodec     configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  avformat    configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  avdevice    configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  avfilter    configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  swscale     configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  postproc    configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  libavutil    51.  7. 0 / 51.  7. 0
  libavcodec   53.  6. 0 / 53.  6. 0
  libavformat  53.  3. 0 / 53.  3. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  4. 0 /  2.  4. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  52.  0. 0 / 52.  0. 0
ffmpeg 0.7.3-4:0.7.3-0ubuntu0.11.10.1
libavutil    51.  7. 0 / 51.  7. 0
libavcodec   53.  6. 0 / 53.  6. 0
libavformat  53.  3. 0 / 53.  3. 0
libavdevice  53.  0. 0 / 53.  0. 0
libavfilter   2.  4. 0 /  2.  4. 0
libswscale    2.  0. 0 /  2.  0. 0
libpostproc  52.  0. 0 / 52.  0. 0

I seem to have no problem using dirac_encoder to compress yuv files, so I
tried to convert my files first using this command:

bn408-3-2 at bn40832-Dimension-8200:~$ ffmpeg -i 0_10_sec.avi -vcodec rawvideo
-pix_fmt yuv444p test.nut
ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1, Copyright (c) 2000-2011 the
Libav developers
  built on Jan  4 2012 16:21:50 with gcc 4.6.1
  configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=i386
--prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared
--disable-static
  WARNING: library configuration mismatch
  avutil      configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  avcodec     configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  avformat    configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  avdevice    configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  avfilter    configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  swscale     configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  postproc    configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static
--disable-ffmpeg --disable-ffplay
  libavutil    51.  7. 0 / 51.  7. 0
  libavcodec   53.  6. 0 / 53.  6. 0
  libavformat  53.  3. 0 / 53.  3. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  4. 0 /  2.  4. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  52.  0. 0 / 52.  0. 0
Input #0, avi, from '0_10_sec.avi':
  Duration: 00:00:10.00, start: 0.000000, bitrate: 1990665 kb/s
    Stream #0.0: Video: rawvideo, bgra, 1920x1080, 30 tbr, 30 tbn, 30 tbc
File 'test.nut' already exists. Overwrite ? [y/N] y
[buffer @ 0x8d7b080] w:1920 h:1080 pixfmt:bgra
[ffsink @ 0x8d7a520] auto-inserting filter 'auto-inserted scaler 0' between
the filter 'src' and the filter 'out'
[scale @ 0x8d7a980] w:1920 h:1080 fmt:bgra -> w:1920 h:1080 fmt:yuv444p
flags:0x4
Output #0, nut, to 'test.nut':
  Metadata:
    encoder         : Lavf53.3.0
    Stream #0.0: Video: rawvideo, yuv444p, 1920x1080, q=2-31, 200 kb/s, 30
tbn, 30 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
frame=  300 fps=  2 q=0.0 Lsize= 1822509kB time=10.00
bitrate=1492999.0kbits/s
video:1822500kB audio:0kB global headers:0kB muxing overhead 0.000469%

this seems to work fine, but again VLC gives me garbage.  Now to be
truthful, the computer this has been run on so far is a pentium 4 with 1
gig of ram, so I'm not convinced that the encoding isn't working properly.

Any direction at this point would be wonderful, thanks in advance.


More information about the ffmpeg-user mailing list