|
楼主 |
发表于 2020-3-13 09:04:02
|
显示全部楼层
本帖最后由 kenzhang1031 于 2020-3-13 09:08 编辑
执行会有错误提示,然后出来的图像一直是那个画面,不是实际的变化的画面(比如摄像机照着一个秒表,一直是一个时间,没有秒表时间变化的视频)
/nfsroot/OpenSourceTools/FFmpeg-master/install/bin # ./ffmpeg -f video4linux2 -i
nput_format mjpeg -i /dev/video0 out.mpeg
ffmpeg version 4.2.git Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 4.9.4 (Hisilicon_v600_20180525) 20150629 (prerelease)
configuration: --prefix=/root/hisi/OpenSourceTools/FFmpeg-master/install/ --enable-filters --enable-asm --enable-ffmpeg --enable-ffplay --enable-ffprobe --enable-doc --enable-cross-compile --enable-shared --enable-filter=movie --enable-zlib --enable-avfilter --cc=arm-hisiv600-linux-gcc --cxx=arm-hisiv600-linux-g++ --cross-prefix=arm-hisiv600-linux- --arch=arm --target-os=linux --host-os=linux --enable-libx264 --enable-gpl --enable-version3 --enable-small --enable-shared --enable-static --enable-encoder=png --enable-encoder=libx264 --enable-encoder=mjpeg --enable-encoder=h264_vaapi --enable-encoder=h264_v4l2m2m --enable-encoder=jpeg2000 --enable-decoder=mjpeg --enable-decoder=h264 --enable-decoder=h264_v4l2m2m --enable-muxer=h264 --enable-muxer=mjpeg --enable-demuxer=h264 --enable-demuxer=mjpeg --enable-parser=mjpeg --enable-parser=h264 --enable-protocol=http --enable-protocol=rtp --enable-protocol=rtmpts --enable-protocol=https --enable-protocol=hls --enable-protocol=file --enable-protocol=data --enable-gray --enable-safe-bitstream-reader --extra-cflags='-I../ssh_work/install/HI3531D/zlib/include -I../x264-master/install/include' --extra-cxxflags='-I../ssh_work/install/HI3531D/zlib/include -I../x264-master/install/include' --extra-ldflags='-L../ssh_work/install/HI3531D/zlib/lib -L../x264-master/install/lib'
libavutil 56. 42.100 / 56. 42.100
libavcodec 58. 74.100 / 58. 74.100
libavformat 58. 40.100 / 58. 40.100
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 77.100 / 7. 77.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 585.576807, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
File 'out.mpeg' already exists. Overwrite? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg1video (native))
Press [q] to stop, [?] for help
[swscaler @ 0x2086610] deprecated pixel format used, make sure you did set range correctly
[mpeg @ 0x204bfb0] VBV buffer size not set, using default size of 230KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Output #0, mpeg, to 'out.mpeg':
Metadata:
encoder : Lavf58.40.100
Stream #0:0: Video: mpeg1video, yuv420p, 1920x1080, q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc
Metadata:
encoder : Lavc58.74.100 mpeg1video
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
More than 1000 frames duplicated
^Came= 3222 fps= 48 q=31.0 size= 19200kB time=00:01:47.30 bitrate=1465.9kbits/s dup=3218 drop=0 speed= 1.6x
/nfsroot/OpenSourceTools/FFmpeg-master/install/bin #
|
|