An error occurs when a Ffmpeg+mediamtx.exe stream is pushed to the network port VLC based on the MIP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

An error occurs when a Ffmpeg+mediamtx.exe stream is pushed to the network port VLC based on the MIP

1,990 Views
ximenbingmeng
Contributor IV

We are using the Ffmpeg(FFmpeg5.1.2)+mediamtx.exe stream push to the network port solution, in which the USB camera can push the stream to VLC, but the MIPI camera pushes the following error:

ximenbingmeng_0-1724814143575.png

 


The ingest command is as follows:
#MIPI camera
ffmpeg -re -i /dev/video0 -vcodec libx264 -preset:v ultrafast -tune:v zerolatency -rtsp_transport tcp -f rtsp rtsp://192.168.1.12:8554/stream
#USB camera
ffmpeg -re -i /dev/video1 -vcodec libx264 -preset:v ultrafast -tune:v zerolatency -rtsp_transport tcp -f rtsp rtsp://192.168.1.12:8554/stream


The OV5640 camera on the MIPI-CSI interface can be previewed, and the MIPI-CSI interface can be called through the gst-rtsp-server solution to push streams to the network port. Please help to divide the reason for the error, thank you!

0 Kudos
Reply
2 Replies

1,200 Views
Vijay_hegde
Contributor II

@ximenbingmeng 

Can I know what how you are streaming. I am stuck with GStreamer and mediamtx.
if possible can you say the setup made

 

0 Kudos
Reply

1,948 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

Here is the supported format in csi bridge.

static struct mx6s_fmt formats[] = {
	{
		.name		= "UYVY-16",
		.fourcc		= V4L2_PIX_FMT_UYVY,
		.pixelformat	= V4L2_PIX_FMT_UYVY,
		.mbus_code	= MEDIA_BUS_FMT_UYVY8_2X8,
		.bpp		= 2,
	}, {
		.name		= "YUYV-16",
		.fourcc		= V4L2_PIX_FMT_YUYV,
		.pixelformat	= V4L2_PIX_FMT_YUYV,
		.mbus_code	= MEDIA_BUS_FMT_YUYV8_2X8,
		.bpp		= 2,
	}, {
		.name		= "YUV32 (X-Y-U-V)",
		.fourcc		= V4L2_PIX_FMT_YUV32,
		.pixelformat	= V4L2_PIX_FMT_YUV32,
		.mbus_code	= MEDIA_BUS_FMT_AYUV8_1X32,
		.bpp		= 4,
	}, {
		.name		= "RAWRGB8 (SBGGR8)",
		.fourcc		= V4L2_PIX_FMT_SBGGR8,
		.pixelformat	= V4L2_PIX_FMT_SBGGR8,
		.mbus_code	= MEDIA_BUS_FMT_SBGGR8_1X8,
		.bpp		= 1,
	}
};



Best Regards
Zhiming

0 Kudos
Reply