Skip to content

Commit

Permalink
Merge pull request #120 from nianshao163/frame_drop
Browse files Browse the repository at this point in the history
Fixing the frame drop rate issue
  • Loading branch information
codingspirit authored Dec 18, 2023
2 parents 1e6a1ab + c906ac9 commit 5f7aee7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions 3rdparty/GSTREAMER/GSTREAMERGstCmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
#pragma once

// video:
// gst-launch-1.0 -e rtspsrc location=rtsp://192.168.0.60:554/stream0 latency=500 ! rtph264depay ! queue ! h264parse config-interval=1 ! mpegtsmux name=muxer ! tcpserversink host=127.0.0.1 port=8501 &
// "tcpclientsrc host=127.0.0.1 port=8502 ! tsdemux name=muxer ! h264parse ! appsink name=sink"
// gst-launch-1.0 -e rtspsrc location=rtsp://192.168.0.60:554/stream0 latency=500 ! rtph264depay ! queue ! h264parse config-interval=1 ! capsfilter caps=video/x-h264,stream-format=(string)byte-stream,alignment=(string)au ! mpegtsmux ! tcpserversink host=127.0.0.1 port=8501 &
// gst-launch-1.0 -e tcpclientsrc host=127.0.0.1 port=8501 ! tsdemux ! h264parse ! capsfilter caps="video/x-h264,stream-format=(string)byte-stream,alignment=(string)au" ! appsink name=sink
#define GST_LAUNCH_VIDEO_PIPELINE_CMD \
"tcpclientsrc host=%s port=%s ! tsdemux name=muxer ! h264parse ! appsink name=%s"
"tcpclientsrc host=%s port=%s ! tsdemux ! h264parse ! capsfilter caps=video/x-h264,stream-format=(string)byte-stream,alignment=(string)au ! appsink name=%s"

// audio:
// gst-launch-1.0 -e rtspsrc location=rtsp://192.168.0.60:554/stream0 latency=500 ! rtppcmadepay ! queue ! tcpserversink host=127.0.0.1 port=8503 &
Expand Down
12 changes: 6 additions & 6 deletions 3rdparty/QCS610/QCS610GstCmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
#pragma once

// camera0:
// gst-launch-1.0 -e qtiqmmfsrc name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=25/1 ! queue ! omxh264enc control-rate=max-bitrate target-bitrate=6000000 interval-intraframes=24 periodicity-idr=1 ! queue ! h264parse config-interval=1 ! mpegtsmux name=muxer ! tee name=t ! queue ! tcpserversink host=127.0.0.1 port=8501 t. ! queue ! tcpserversink host=127.0.0.1 port=8901
// "tcpclientsrc host=127.0.0.1 port=8501 ! tsdemux name=muxer ! h264parse ! appsink name=sink"
// gst-launch-1.0 -e qtiqmmfsrc name=camsrc ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=25/1 ! queue ! omxh264enc control-rate=max-bitrate target-bitrate=6000000 interval-intraframes=24 periodicity-idr=1 ! queue ! h264parse config-interval=1 ! mpegtsmux ! queue ! tcpserversink host=127.0.0.1 port=8501 &
// "tcpclientsrc host=127.0.0.1 port=8501 ! tsdemux ! h264parse ! capsfilter caps=video/x-h264,stream-format=(string)byte-stream,alignment=(string)au ! appsink name=sink"
// camera1:
// gst-launch-1.0 -e qtiqmmfsrc name=camsrc camera=1 ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=25/1 ! queue ! omxh264enc control-rate=max-bitrate target-bitrate=6000000 interval-intraframes=24 periodicity-idr=1 ! queue ! h264parse config-interval=1 ! mpegtsmux name=muxer ! tee name=t ! queue ! tcpserversink host=127.0.0.1 port=8502 t. ! queue ! tcpserversink host=127.0.0.1 port=8902
// "tcpclientsrc host=127.0.0.1 port=8502 ! tsdemux name=muxer ! h264parse ! appsink name=sink"
// gst-launch-1.0 -e qtiqmmfsrc name=camsrc camera=1 ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=25/1 ! queue ! omxh264enc control-rate=max-bitrate target-bitrate=6000000 interval-intraframes=24 periodicity-idr=1 ! queue ! h264parse config-interval=1 ! mpegtsmux ! queue ! tcpserversink host=127.0.0.1 port=8502 &
// "tcpclientsrc host=127.0.0.1 port=8502 ! tsdemux ! h264parse ! capsfilter caps=video/x-h264,stream-format=(string)byte-stream,alignment=(string)au ! appsink name=sink"
#define GST_LAUNCH_VIDEO_PIPELINE_CMD \
"tcpclientsrc host=%s port=%s ! tsdemux name=muxer ! h264parse ! appsink name=%s"
"tcpclientsrc host=%s port=%s ! tsdemux ! h264parse ! capsfilter caps=video/x-h264,stream-format=(string)byte-stream,alignment=(string)au ! appsink name=%s"

// audio:
// gst-launch-1.0 pulsesrc volume=100 ! capsfilter caps=audio/x-raw,format=S16LE,rate=8000,channels=2 ! audioconvert ! capsfilter caps=audio/x-raw,format=S16LE,rate=8000,channels=1 ! alawenc ! tee name=t ! queue ! tcpserversink host=127.0.0.1 port=8503 t. ! queue ! tcpserversink host=127.0.0.1 port=8903
// gst-launch-1.0 pulsesrc volume=100 ! capsfilter caps=audio/x-raw,format=S16LE,rate=8000,channels=2 ! audioconvert ! capsfilter caps=audio/x-raw,format=S16LE,rate=8000,channels=1 ! alawenc ! queue ! tcpserversink host=127.0.0.1 port=8503 &
// "tcpclientsrc host=127.0.0.1 port=8503 ! appsink name=sink"
#define GST_LAUNCH_AUDIO_PIPELINE_CMD \
"tcpclientsrc host=%s port=%s ! appsink name=%s"
Expand Down

0 comments on commit 5f7aee7

Please sign in to comment.