[FFmpeg-user] trying to convert raw yuv

Stefano Sabatini stefano.sabatini-lala at poste.it
Tue Jun 7 16:47:57 CEST 2011


On date Tuesday 2011-06-07 10:44:07 -0400, Jim Shupert encoded:
> Friends,
> 
> I have some video that i captured via a BlackMagic decklink card
> the files are : raw yuv video & 2 wav files
> 
> i am unsuccessful it fails with : jimbo.yuv: could not find codec parameters
> 
> here is my command:
> 
> D:\0>c:\ffmbc\ffmbc -i jimbo.yuv -f yuv420p -acodec -i audio1.wav -i
> audio2.wav libfaac -aq 100 -vcodec libx264 -b 900k -s 720x486 -r
> 29.97 -preset slow -crf 22 -threads 0 muxed.mp4
> FFmpeg version FFmbc-0.5, Copyright (c) 2000-2010 the FFmpeg developers
>   built on Nov 22 2010 01:04:07 with gcc 4.4.2
>   configuration: --enable-gpl --enable-version3 --enable-libgsm
> --enable-pthreads --enable-libvorbis --enable-libtheora
> --enable-libspeex --enable-libmp3lame --enable-libopenjpeg
> --enable-libschroedinger --enable-libopencore_amrwb
> --enable-libopencore_amrnb --
> enable-libvpx --disable-decoder=libvpx --arch=x86
> --enable-runtime-cpudetect --enable-libxvid --enable-libx264
> --extra-libs='-lx264 -lpthread' --enable-librtmp
> --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm'
> --target-os=mingw32 --enable-avisynth --cross-pref
> ix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack
>   libavutil     50.31. 0 / 50.31. 0
>   libavcore      0. 9. 0 /  0. 9. 0
>   libavcodec    52.91. 1 / 52.91. 1
>   libavformat   52.78. 5 / 52.78. 5
>   libavdevice   52. 2. 2 / 52. 2. 2
>   libavfilter    1.47. 1 /  1.47. 1
>   libswscale     0.12. 0 /  0.12. 0
> [IMGUTILS @ 002130c4] Picture size 0x0 is invalid
> [rawvideo @ 01b7d4e0] Could not find codec parameters (Video:
> rawvideo, yuv420p)
> [rawvideo @ 01b7d4e0] Estimating duration from bitrate, this may be
> inaccurate
> jimbo.yuv: could not find codec parameters
> 
> ( i have tried ffmpeg & ffmbc )

You need to specify input size with -s WxH.
-- 
ffmpeg-user random tip #2
The -y option will force the overwrite of the output, without to prompt you
for your confirmation. Example:
ffmpeg -i movie.avi -y movie.mp4


More information about the ffmpeg-user mailing list