[FFmpeg-user] ffmepg mipi csi video cpature
Nikhil
nikhil.jayakrishna at iwave-global.com
Thu May 23 07:16:20 EEST 2024
This is the command i used
ffmpeg -f v4l2 -i /dev/video0 -c:v libx264 -crf 23 -preset medium output.mp4
Also i used command suggested by ferdi, no progress
ffmpeg -pix_fmt bayer_bggr8 -f v4l2 -s 1280x960 -i /dev/video0 -c:v
libx264 -preset ultrafast output.mp4
Also i try to update the ffmpeg to latest version (v6.x and v7.x), i'm
facing the following error in configuration settings
./configure --enable-gpl --enable-libx264
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this
will help
solve the problem.
On 23/05/24 1:38 am, Paul B Mahol wrote:
>
>
> On Wed, May 22, 2024 at 2:09 PM Nikhil
> <nikhil.jayakrishna at iwave-global.com> wrote:
>
> i have updated from 4.x to 5.0 here is the output requested
>
>
> But what is full command line you use (the ffmpeg parameters to the
> device)? I do not see it being posted.
>
> ~# ffmpeg -devices
>
> ffmpeg version n5.0.3-18-gd6bec7f83e Copyright (c) 2000-2022 the
> FFmpeg developers
> built with gcc 11.3.0 (GCC)
> configuration: --enable-gpl --enable-libx264
> libavutil 57. 17.100 / 57. 17.100
> libavcodec 59. 18.100 / 59. 18.100
> libavformat 59. 16.100 / 59. 16.100
> libavdevice 59. 4.100 / 59. 4.100
> libavfilter 8. 24.100 / 8. 24.100
> libswscale 6. 4.100 / 6. 4.100
> libswresample 4. 3.100 / 4. 3.100
> libpostproc 56. 3.100 / 56. 3.100
> Devices:
> D. = Demuxing supported
> .E = Muxing supported
> --
> DE fbdev Linux framebuffer
> D lavfi Libavfilter virtual input device
> DE oss OSS (Open Sound System) playback
> DE video4linux2,v4l2 Video4Linux2 output device
> D x11grab X11 screen capture, using XCB
>
> On 22/05/24 12:38 pm, Paul B Mahol wrote:
>>
>>
>> On Wed, May 22, 2024 at 8:46 AM Nikhil
>> <nikhil.jayakrishna at iwave-global.com> wrote:
>>
>> I need to test video record using ov5640 camera with mipi-csi
>> interface, video record is working fine with usb wbcam with
>> the same ffmpeg version but not with mipi camera
>>
>>
>> FFmpeg 4.x is prehistoric version.
>> Current version is 7.0
>>
>> what ffmpeg -devices show ?:
>>
>> ffmpeg -devices
>>
>>
>> What is the full CLI command you use?
>>
>> On 22/05/24 12:22 pm, Paul B Mahol wrote:
>>>
>>>
>>> On Wed, May 22, 2024 at 6:34 AM Nikhil via ffmpeg-user
>>> <ffmpeg-user at ffmpeg.org> wrote:
>>>
>>> I need to capture mipi csi camera play, im facing the
>>> below errors
>>>
>>>
>>> ffmpeg version n4.2.9-106-g1076d3[ 7169.409991] unknown
>>> pixelformat:'YU12' 1485 Copyright (c) 2000-2023 the [
>>> 7169.414184]
>>> mx6s-csi 32e20000.csi1_bridge: Fourcc format
>>> (0x32315559) invalid.
>>> FFmpeg developers built with g[ 7169.424334] unknown
>>> pixelformat:'YU12'
>>> cc 11.3.0 (GCC) configuration:[ 7169.430910] mx6s-csi
>>> 32e20000.csi1_bridge: Fourcc format (0x32315559)
>>> invalid. --enable-gpl
>>> --enable-libx264 [ 7169.441024] unknown
>>> pixelformat:'YV12' libavutil 56.
>>> 31.100 / 56. [ 7169.447610] mx6s-csi
>>> 32e20000.csi1_bridge: Fourcc format
>>> (0x32315659) invalid. 31.100 libavcodec 58. 54.1[
>>> 7169.457747] unknown
>>> pixelformat:'422P' 00 / 58. 54.100 libavformat [
>>> 7169.464270] mx6s-csi
>>> 32e20000.csi1_bridge: Fourcc format (0x50323234)
>>> invalid. 58. 29.100 /
>>> 58. 29.100 libav[ 7169.474361] mx6s-csi
>>> 32e20000.csi1_bridge: width 0,
>>> height 0 is too small. device 58. 8.100 / 58. 8.100[
>>> 7169.484101]
>>> mx6s-csi 32e20000.csi1_bridge: width 0, height 0 is too
>>> small.
>>> libavfilter 7. 57.100 / [ 7169.493828] unknown
>>> pixelformat:'411P' 7.
>>> 57.100 libswscale 5. [ 7169.500424] mx6s-csi
>>> 32e20000.csi1_bridge:
>>> Fourcc format (0x50313134) invalid. 5.100 / 5. 5.100
>>> libswresamp[
>>> 7169.510508] unknown pixelformat:'YUV9' le 3. 5.100 / 3.
>>> 5.100 li[
>>> 7169.517109] mx6s-csi 32e20000.csi1_bridge: Fourcc
>>> format (0x39565559)
>>> invalid. bpostproc 55. 5.100 / 55. 5.[ 7169.527203] unknown
>>> pixelformat:'YVU9' 100 [ 7169.533796] mx6s-csi
>>> 32e20000.csi1_bridge:
>>> Fourcc format (0x39555659) invalid. [ 7169.541454] unknown
>>> pixelformat:'RGBO' [ 7169.545223] mx6s-csi
>>> 32e20000.csi1_bridge: Fourcc
>>> format (0x4f424752) invalid. [ 7169.552474] unknown
>>> pixelformat:'RGBQ' [
>>> 7169.556227] mx6s-csi 32e20000.csi1_bridge: Fourcc
>>> format (0x51424752)
>>> invalid. [ 7169.563503] unknown pixelformat:'RGBP' [
>>> 7169.567287]
>>> mx6s-csi 32e20000.csi1_bridge: Fourcc format
>>> (0x50424752) invalid. [
>>> 7169.574544] unknown pixelformat:'RGBR' [ 7169.578317]
>>> mx6s-csi
>>> 32e20000.csi1_bridge: Fourcc format (0x52424752)
>>> invalid. [ 7169.585569]
>>> unknown pixelformat:'BGR3' [ 7169.589341] mx6s-csi
>>> 32e20000.csi1_bridge:
>>> Fourcc format (0x33524742) invalid. [ 7169.596594] unknown
>>> pixelformat:'RGB3' [ 7169.600369] mx6s-csi
>>> 32e20000.csi1_bridge: Fourcc
>>> format (0x33424752) invalid. [ 7169.607619] unknown
>>> pixelformat:'XR24' [
>>> 7169.611390] mx6s-csi 32e20000.csi1_bridge: Fourcc
>>> format (0x34325258)
>>> invalid. [ 7169.618644] unknown pixelformat:'BX24' [
>>> 7169.622414]
>>> mx6s-csi 32e20000.csi1_bridge: Fourcc format
>>> (0x34325842) invalid. [
>>> 7169.629666] unknown pixelformat:'AR24' [ 7169.633435]
>>> mx6s-csi
>>> 32e20000.csi1_bridge: Fourcc format (0x34325241)
>>> invalid. [ 7169.640688]
>>> unknown pixelformat:'BA24' [ 7169.644461] mx6s-csi
>>> 32e20000.csi1_bridge:
>>> Fourcc format (0x34324142) invalid. [ 7169.651720] unknown
>>> pixelformat:'BGR4' [ 7169.655494] mx6s-csi
>>> 32e20000.csi1_bridge: Fourcc
>>> format (0x34524742) invalid. [ 7169.662744] unknown
>>> pixelformat:'RGB4' [
>>> 7169.666514] mx6s-csi 32e20000.csi1_bridge: Fourcc
>>> format (0x34424752)
>>> invalid. [ 7169.673769] unknown pixelformat:'GREY' [
>>> 7169.677547]
>>> mx6s-csi 32e20000.csi1_bridge: Fourcc format
>>> (0x59455247) invalid. [
>>> 7169.684803] unknown pixelformat:'Y16 ' [ 7169.688575]
>>> mx6s-csi
>>> 32e20000.csi1_bridge: Fourcc format (0x20363159)
>>> invalid. [ 7169.695838]
>>> unknown pixelformat:'Z16 ' [ 7169.699612] mx6s-csi
>>> 32e20000.csi1_bridge:
>>> Fourcc format (0x2036315a) invalid. [ 7169.706896] unknown
>>> pixelformat:'NV12' [ 7169.710681] mx6s-csi
>>> 32e20000.csi1_bridge: Fourcc
>>> format (0x3231564e) invalid. [ 7169.717947] unknown
>>> pixelformat:'MJPG' [
>>> 7169.721719] mx6s-csi 32e20000.csi1_bridge: Fourcc
>>> format (0x47504a4d)
>>> invalid. [ 7169.728971] unknown pixelformat:'JPEG' [
>>> 7169.732740]
>>> mx6s-csi 32e20000.csi1_bridge: Fourcc format
>>> (0x4745504a) invalid. [
>>> 7169.739992] unknown pixelformat:'H264' [ 7169.743764]
>>> mx6s-csi
>>> 32e20000.csi1_bridge: Fourcc format (0x34363248)
>>> invalid. [ 7169.751016]
>>> unknown pixelformat:'MPG4' [ 7169.754787] mx6s-csi
>>> 32e20000.csi1_bridge:
>>> Fourcc format (0x3447504d) invalid. [ 7169.762041] unknown
>>> pixelformat:'CPIA' [ 7169.765810] mx6s-csi
>>> 32e20000.csi1_bridge: Fourcc
>>> format (0x41495043) invalid. [ 7169.773072] mx6s-csi
>>> 32e20000.csi1_bridge: width 0, height 0 is too small. [
>>> 7169.779984]
>>> unknown pixelformat:'GBRG' [ 7169.783751] mx6s-csi
>>> 32e20000.csi1_bridge:
>>> Fourcc format (0x47524247) invalid. [ 7169.791018] unknown
>>> pixelformat:'GRBG' [ 7169.794803] mx6s-csi
>>> 32e20000.csi1_bridge: Fourcc
>>> format (0x47425247) invalid. [ 7169.802067] unknown
>>> pixelformat:'RGGB' [
>>> 7169.805836] mx6s-csi 32e20000.csi1_bridge: Fourcc
>>> format (0x42474752)
>>> invalid. [video4linux2,v4l2 @ 0xaaa[ 7169.813351] audit:
>>> type=1701
>>> audit(1715857984.588:9): auid=4294967295 uid=0 gid=0
>>> ses=4294967295
>>> pid=11100 com m="ffmpeg" exe="/usr/local/bin/ffmpeg"
>>> sig=6 res=1
>>> b0262e600] Cannot find a proper format for codec 'none'
>>> (id 0), pixel
>>> format 'none' (id -1) Assertion *codec_id !=
>>> AV_CODEC_ID_NONE failed at
>>> libavdevice/v4l2.c:815 Aborted
>>>
>>> It seems like ffmpeg not supports mipi, is there any
>>> updates to support
>>> mipi..
>>>
>>>
>>> Not sure what you trying to say.
>>>
>>> Above text only shows that your ffmpeg is ultra old and also
>>> broken.
>>>
>>>
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> ffmpeg-user at ffmpeg.org
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 425998 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20240523/470e6ab3/attachment.bin>
More information about the ffmpeg-user
mailing list