Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VLC can't connect to server, no errors in log #297

Open
Drizzt321 opened this issue Jan 10, 2023 · 7 comments
Open

VLC can't connect to server, no errors in log #297

Drizzt321 opened this issue Jan 10, 2023 · 7 comments

Comments

@Drizzt321
Copy link

Describe the bug
I'm trying to run v4l2rtspserver to use my RPi Zero W as a small security camera. Got the latest raspbian, updated all packages to latest, then installed v4l2rtspserver from the git repo. Was initially having some trouble getting it started, then found the LD_PRELOAD tip on #283 for the new libcamera v4l2-compat support.

I started it up using LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/v4l2-compat.so v4l2rtspserver /dev/video0 as root (just to get initial settings right, then run as daemon as regular user).

Starts up with this output

log level:500

[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/main.cpp:269
        Version: 0.3.7-19-g9029be3 live555 version:2022.12.01
[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/src/V4l2RTSPServer.cpp:37
        Create V4L2 Source.../dev/video0[0:03:10.497192926] [607]  INFO Camera camera_manager.cpp:299 libcamera v0.0.2+55-5df5b72c
[0:03:10.585622458] [608]  INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media3 and ISP device /dev/media0

[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:133
        driver:libcamera capabilities:84200001 mandatory:4000001
[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:136
        /dev/video0 support capture
[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:139
        /dev/video0 support streaming[0:03:10.587015220] [607]  WARN V4L2 v4l2_pixelformat.cpp:312 Unsupported V4L2 pixel format H264
[0:03:10.587700064] [607]  WARN Formats formats.cpp:838 Unsupported pixel format 0x00000000
[0:03:10.588187982] [607]  INFO Camera camera.cpp:1026 configuring streams: (0) 800x600-NV12
[0:03:10.588775430] [608]  INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC

[ERROR] /root/v4l2rtspserver/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:212
        /dev/video0: Cannot set pixelformat to:H264 format is:NV12[0:03:10.592964810] [607]  INFO Camera camera.cpp:1026 configuring streams: (0) 800x600-NV12
[0:03:10.593863405] [608]  INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC

[ERROR] /root/v4l2rtspserver/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:212
        /dev/video0: Cannot set pixelformat to:MJPG format is:NV12[0:03:10.596960388] [607]  INFO Camera camera.cpp:1026 configuring streams: (0) 800x600-NV12
[0:03:10.597838358] [608]  INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC

[ERROR] /root/v4l2rtspserver/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:212
        /dev/video0: Cannot set pixelformat to:JPEG format is:NV12[0:03:10.601019143] [607]  INFO Camera camera.cpp:1026 configuring streams: (0) 800x600-NV12
[0:03:10.601709039] [608]  INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC

[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:225
        /dev/video0:NV12 size:800x600 bufferSize:720000
[WARN] /root/v4l2rtspserver/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:243
        Cannot set param for device:/dev/video0 Inappropriate ioctl for device
[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:246
        fps:1/25
[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:247
        nbBuffer:0
[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:49
        Device /dev/video0[0:03:10.604888887] [607]  INFO Camera camera.cpp:1026 configuring streams: (0) 800x600-NV12
[0:03:10.605762325] [608]  INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC

[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:73
        Device /dev/video0 nb buffer:10
[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/src/V4l2RTSPServer.cpp:62
        Create Source .../dev/video0
[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/src/V4L2DeviceSource.cpp:96
        begin thread
[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/inc/BaseServerMediaSubsession.h:49
        format:video/RAW
[NOTICE] /root/v4l2rtspserver/v4l2rtspserver/inc/V4l2RTSPServer.h:237

I then try and connect from VLC on my desktop to rtsp://192.168.10.70:8554/unicast, and get an error in VLC

Your input can't be opened:
VLC is unable to open the MRL 'rtsp://192.168.10.70:8554/unicast'. Check the log for details.

On the Pi, I get this output

handleCmd_SETUP:SETUP rtsp://192.168.10.70:8554/unicast RTSP/1.0
CSeq: 0
Transport: RTP/AVP;unicast;client_port=9284-9285

Can't see anything specific in the output, any ideas? Any tips on directions I could go in to try and figure out the issue?

@mpromonet
Copy link
Owner

Hi,

Last time I tried VLC doesnot support NV12 format. You could use ffplay that support it.

Best Regards,
Michel.

@Drizzt321
Copy link
Author

Hm, so how do I change the format? I've tried using the -f option, but that doesn't seem to work. Would using the v4l2loopback and having the loopback provide the correct h264/whatever format work, assuming I use the -f with no options to tell v4l2rtspserver to use whatever the current v4l2 format is set to?

@mpromonet
Copy link
Owner

Hi,

-f options has 2 usage without argument (it keep actual format) with argument (for instance -fH264, it set the format, and if format is not supported by device, it fails)

Best Regards,
Michel.

@azsde
Copy link
Contributor

azsde commented Jan 20, 2023

I have the same issue as @Drizzt321 , I used libcamerify instead of the LD_PRELOAD method, but I can't get the stream to be played neither by VLC (which is normal according to your previous answer) nor by ffplay.

azsde@azsdepi:~ $ libcamerify -d v4l2rtspserver -v
log level:600

[NOTICE] /home/azsde/v4l2rtspserver/main.cpp:269
	Version: 0.3.7-19-g9029be3 live555 version:2023.01.19
[NOTICE] /home/azsde/v4l2rtspserver/src/V4l2RTSPServer.cpp:37
	Create V4L2 Source.../dev/video0[0:25:35.077752681] [909]  INFO Camera camera_manager.cpp:299 libcamera v0.0.2+55-5df5b72c
[0:25:35.295452294] [910]  INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media3 and ISP device /dev/media0
[0:25:35.295979480] [909] DEBUG V4L2Compat v4l2_compat_manager.cpp:79 Started camera manager
[0:25:35.296492083] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:50 [] open()
[0:25:35.297818486] [909] DEBUG V4L2Compat v4l2_compat_manager.cpp:163 Opened /dev/video0 -> fd 5
[0:25:35.297937339] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:251 [/dev/video0 (fd:5)] vidioc_querycap()

[NOTICE] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:133
	driver:libcamera capabilities:84200001 mandatory:4000001
[NOTICE] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:136
	/dev/video0 support capture
[NOTICE] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:139
	/dev/video0 support streaming[0:25:35.298334266] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:307 [/dev/video0 (fd:5)] vidioc_g_fmt()
[0:25:35.298462963] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:307 [/dev/video0 (fd:5)] vidioc_g_fmt()
[0:25:35.298661921] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:351 [/dev/video0 (fd:5)] vidioc_s_fmt()
[0:25:35.298750567] [909]  WARN V4L2 v4l2_pixelformat.cpp:312 Unsupported V4L2 pixel format H264
[0:25:35.300440042] [909]  WARN Formats formats.cpp:838 Unsupported pixel format 0x00000000
[0:25:35.301179467] [909] DEBUG V4L2Compat v4l2_camera.cpp:127 Validated configuration is: 800x600-NV12
[0:25:35.301871236] [909]  INFO Camera camera.cpp:1026 configuring streams: (0) 800x600-NV12
[0:25:35.302844515] [910]  INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 1536x864-SBGGR10_1X10 - Selected unicam format: 1536x864-pBAA

[ERROR] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:212
	/dev/video0: Cannot set pixelformat to:H264 format is:NV12[0:25:35.308144710] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:307 [/dev/video0 (fd:5)] vidioc_g_fmt()
[0:25:35.308305699] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:351 [/dev/video0 (fd:5)] vidioc_s_fmt()
[0:25:35.310449183] [909] DEBUG V4L2Compat v4l2_camera.cpp:127 Validated configuration is: 800x600-NV12
[0:25:35.311084494] [909]  INFO Camera camera.cpp:1026 configuring streams: (0) 800x600-NV12
[0:25:35.312114596] [910]  INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 1536x864-SBGGR10_1X10 - Selected unicam format: 1536x864-pBAA

[ERROR] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:212
	/dev/video0: Cannot set pixelformat to:MJPG format is:NV12[0:25:35.315462244] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:307 [/dev/video0 (fd:5)] vidioc_g_fmt()
[0:25:35.315631774] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:351 [/dev/video0 (fd:5)] vidioc_s_fmt()
[0:25:35.317980050] [909] DEBUG V4L2Compat v4l2_camera.cpp:127 Validated configuration is: 800x600-NV12
[0:25:35.318596611] [909]  INFO Camera camera.cpp:1026 configuring streams: (0) 800x600-NV12
[0:25:35.319543379] [910]  INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 1536x864-SBGGR10_1X10 - Selected unicam format: 1536x864-pBAA

[ERROR] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:212
	/dev/video0: Cannot set pixelformat to:JPEG format is:NV12[0:25:35.323085089] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:307 [/dev/video0 (fd:5)] vidioc_g_fmt()
[0:25:35.323240349] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:351 [/dev/video0 (fd:5)] vidioc_s_fmt()
[0:25:35.325589041] [909] DEBUG V4L2Compat v4l2_camera.cpp:127 Validated configuration is: 800x600-NV12
[0:25:35.326211592] [909]  INFO Camera camera.cpp:1026 configuring streams: (0) 800x600-NV12
[0:25:35.327151798] [910]  INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 1536x864-SBGGR10_1X10 - Selected unicam format: 1536x864-pBAA

[NOTICE] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:225
	/dev/video0:NV12 size:800x600 bufferSize:720000[0:25:35.330701737] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:307 [/dev/video0 (fd:5)] vidioc_g_fmt()

[WARN] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:243
	Cannot set param for device:/dev/video0 Inappropriate ioctl for device
[NOTICE] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:246
	fps:1/25
[NOTICE] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2Device.cpp:247
	nbBuffer:0
[NOTICE] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:49
	Device /dev/video0[0:25:35.331294912] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:478 [/dev/video0 (fd:5)] vidioc_reqbufs()
[0:25:35.331425797] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:485 10 buffers requested 
[0:25:35.332222983] [909] DEBUG V4L2Compat v4l2_camera.cpp:127 Validated configuration is: 800x600-NV12
[0:25:35.332938554] [909]  INFO Camera camera.cpp:1026 configuring streams: (0) 800x600-NV12
[0:25:35.333870010] [910]  INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 1536x864-SBGGR10_1X10 - Selected unicam format: 1536x864-pBAA
[0:25:35.359321509] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:545 Allocated 10 buffers

[NOTICE] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:73
	Device /dev/video0 nb buffer:10[0:25:35.359575935] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:554 [/dev/video0 (fd:5)] vidioc_querybuf()

[INFO] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:92
	Device /dev/video0 buffer idx:0 size:720000 offset:0[0:25:35.359834476] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:103 [/dev/video0 (fd:5)] mmap()
[0:25:35.360153747] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:554 [/dev/video0 (fd:5)] vidioc_querybuf()

[INFO] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:92
	Device /dev/video0 buffer idx:1 size:720000 offset:720000[0:25:35.360337496] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:103 [/dev/video0 (fd:5)] mmap()
[0:25:35.360526766] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:554 [/dev/video0 (fd:5)] vidioc_querybuf()

[INFO] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:92
	Device /dev/video0 buffer idx:2 size:720000 offset:1440000[0:25:35.360713589] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:103 [/dev/video0 (fd:5)] mmap()
[0:25:35.360962390] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:554 [/dev/video0 (fd:5)] vidioc_querybuf()

[INFO] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:92
	Device /dev/video0 buffer idx:3 size:720000 offset:2160000[0:25:35.361228431] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:103 [/dev/video0 (fd:5)] mmap()
[0:25:35.361385879] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:554 [/dev/video0 (fd:5)] vidioc_querybuf()

[INFO] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:92
	Device /dev/video0 buffer idx:4 size:720000 offset:2880000[0:25:35.361567076] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:103 [/dev/video0 (fd:5)] mmap()
[0:25:35.361816972] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:554 [/dev/video0 (fd:5)] vidioc_querybuf()

[INFO] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:92
	Device /dev/video0 buffer idx:5 size:720000 offset:3600000[0:25:35.361995565] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:103 [/dev/video0 (fd:5)] mmap()
[0:25:35.362163846] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:554 [/dev/video0 (fd:5)] vidioc_querybuf()

[INFO] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:92
	Device /dev/video0 buffer idx:6 size:720000 offset:4320000[0:25:35.362335772] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:103 [/dev/video0 (fd:5)] mmap()
[0:25:35.362512855] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:554 [/dev/video0 (fd:5)] vidioc_querybuf()

[INFO] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:92
	Device /dev/video0 buffer idx:7 size:720000 offset:5040000[0:25:35.362670928] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:103 [/dev/video0 (fd:5)] mmap()
[0:25:35.362849625] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:554 [/dev/video0 (fd:5)] vidioc_querybuf()

[INFO] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:92
	Device /dev/video0 buffer idx:8 size:720000 offset:5760000[0:25:35.363044677] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:103 [/dev/video0 (fd:5)] mmap()
[0:25:35.363202437] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:554 [/dev/video0 (fd:5)] vidioc_querybuf()

[INFO] /home/azsde/v4l2rtspserver/libv4l2cpp/src/V4l2MmapDevice.cpp:92
	Device /dev/video0 buffer idx:9 size:720000 offset:6480000[0:25:35.363380405] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:103 [/dev/video0 (fd:5)] mmap()
[0:25:35.363547644] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=0)
[0:25:35.363667279] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=1)
[0:25:35.363776290] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=2)
[0:25:35.363884362] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=3)
[0:25:35.363981341] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=4)
[0:25:35.364137070] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=5)
[0:25:35.364233372] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=6)
[0:25:35.364413996] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=7)
[0:25:35.364512329] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=8)
[0:25:35.364610090] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=9)
[0:25:35.364745610] [909] DEBUG V4L2Compat v4l2_camera_proxy.cpp:714 [/dev/video0 (fd:5)] vidioc_streamon()

[NOTICE] /home/azsde/v4l2rtspserver/src/V4l2RTSPServer.cpp:62
	Create Source .../dev/video0
[NOTICE] /home/azsde/v4l2rtspserver/inc/BaseServerMediaSubsession.h:49
	format:video/RAW
[NOTICE] /home/azsde/v4l2rtspserver/src/V4L2DeviceSource.cpp:96
	begin thread
[NOTICE] /home/azsde/v4l2rtspserver/inc/V4l2RTSPServer.h:237
	Play this stream using the URL "rtsp://10.11.74.125:8554/unicast"[0:25:35.851315072] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:35.862801241] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=0)

[INFO] /home/azsde/v4l2rtspserver/src/V4L2DeviceSource.cpp:29
	intv_sec:1674211127 fps:1 bandwidth:5625kbps[0:25:35.882977493] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:35.894899182] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=1)
[0:25:35.915863556] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:35.927771704] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=2)
[0:25:35.949059567] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:35.960775267] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=3)
[0:25:35.982242505] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:35.993473883] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=4)
[0:25:36.015545339] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:36.026668123] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=5)
[0:25:36.048354215] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:36.059616062] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=6)
[0:25:36.082298141] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:36.093394988] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=7)
[0:25:36.114790455] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:36.125815584] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=8)
[0:25:36.149704587] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:36.160943621] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=9)
[0:25:36.181448362] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:36.192553595] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=0)
[0:25:36.215028070] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:36.226191844] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=1)
[0:25:36.247935123] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:36.255884374] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=2)
[0:25:36.281391862] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:36.289574446] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=3)
[0:25:36.314981153] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
[0:25:36.324498578] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:605 [/dev/video0 (fd:5)] vidioc_qbuf(index=4)
[0:25:36.347834249] [914] DEBUG V4L2Compat v4l2_camera_proxy.cpp:637 [/dev/video0 (fd:5)] vidioc_dqbuf()
VIDIOC_DQBUF: Resource temporarily unavailable

[NOTICE] /home/azsde/v4l2rtspserver/src/V4L2DeviceSource.cpp:203
	V4L2DeviceSource::getNextFrame errno:11 Resource temporarily unavailable
[ERROR] /home/azsde/v4l2rtspserver/src/V4L2DeviceSource.cpp:111
	error:Resource temporarily unavailable
[NOTICE] /home/azsde/v4l2rtspserver/src/V4L2DeviceSource.cpp:122
handleCmd_SETUP:SETUP rtsp://10.11.74.125:8554/unicast/track1 RTSP/1.0
Transport: RTP/AVP/UDP;unicast;client_port=5846-5847
CSeq: 3
User-Agent: Lavf58.76.100

	end thread
[INFO] /home/azsde/v4l2rtspserver/src/V4L2DeviceSource.cpp:29
	outtv_sec:1674211184 fps:1 bandwidth:5625kbps
[INFO] /home/azsde/v4l2rtspserver/src/V4L2DeviceSource.cpp:29

On my laptop side:

ffplay -max_delay 500000 -rtsp_transport udp rtsp://10.11.74.125:8554/unicast
ffplay version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2003-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[bitpacked @ 0x7ff238006480] The decoder 'bitpacked' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
[rtsp @ 0x7ff238000cc0] Failed to open codec in avformat_find_stream_info
Floating point exception (core dumped)

@mpromonet
Copy link
Owner

Hi,

Did you try to add '-strict -2' ? as proposed in :
[bitpacked @ 0x7ff238006480] The decoder 'bitpacked' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.

Best Regards,
Michel.

@azsde
Copy link
Contributor

azsde commented Jan 23, 2023

Hi Michel,

I struggled quite a bit and finally got a video stream, it seems that there are two different issues, I opened the following issue : #299

When things are working, I can get a video feed on ffplay, but it seems it is not picked properly:

image

My guess is that the format provided by the camera is not compatible ?

@azsde
Copy link
Contributor

azsde commented Jan 25, 2023

Update: going back to the V2 camera has the same behavior, I'm not quite sure what is going wrong here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants