Skip to content

Instantly share code, notes, and snippets.

/- Secret

Created October 25, 2017 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/027f62604319cf19f819c287343df9f1 to your computer and use it in GitHub Desktop.
Save anonymous/027f62604319cf19f819c287343df9f1 to your computer and use it in GitHub Desktop.
-
[root@Shoofly alarm]# ffmpeg -f v4l2 -input_format mjpeg -video_size 1920x1080 -i /dev/video0 -c:v h264_omx out.mp4
ffmpeg version git-2017-10-23-acf7063 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-nonfree --enable-mmal --enable-omx --enable-omx-rpi
libavutil 56. 0.100 / 56. 0.100
libavcodec 58. 0.100 / 58. 0.100
libavformat 58. 0.100 / 58. 0.100
libavdevice 58. 0.100 / 58. 0.100
libavfilter 7. 0.100 / 7. 0.100
libswscale 5. 0.100 / 5. 0.100
libswresample 3. 0.100 / 3. 0.100
libpostproc 55. 0.100 / 55. 0.100
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 68949.601961, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1920x1080, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (h264_omx))
Press [q] to stop, [?] for help
[swscaler @ 0x3421060] deprecated pixel format used, make sure you did set range correctly
[h264_omx @ 0x33f0220] Using OMX.broadcom.video_encode
[h264_omx @ 0x33f0220] OMX error 80001000
[h264_omx @ 0x33f0220] err 80001018 (-2147479528) on line 561
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment