当我尝试使用ffmpeg(从命令提示符)转换文件时,它总是给我:
Segmentation fault (core dumped)
文件名为left_432x240.yuv
,我已从here下载。
我所做的命令是:
ffmpeg -f rawvideo -vcodec rawvideo -s 432x240 -r 25 -pix_fmt yuv420p -i left_432x240.yuv -c:v libx264 -preset ultrafast -qp 0 output.mp4
我尝试了各种选项组合,但结果总是一样。
做的: ffmpeg -i left_432x240.yuv
产生
ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Nov 28 2013 16:44:43 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
libavutil 52. 48.100 / 52. 48.100
libavcodec 55. 39.100 / 55. 39.100
libavformat 55. 19.104 / 55. 19.104
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
[IMGUTILS @ 0xbff1adc0] Picture size 0x0 is invalid
[IMGUTILS @ 0xbff1a8d0] Picture size 0x0 is invalid
[IMGUTILS @ 0xbff1a950] Picture size 0x0 is invalid
[rawvideo @ 0xa2aaee0] Could not find codec parameters for stream 0 (Video: rawvideo (I420 / 0x30323449), yuv420p, -4 kb/s): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
left_432x240.yuv: could not find codec parameters