transmit video

gst-launch-1.0 -v filesrc location = ./test.mp4 ! qtdemux ! rtph264pay ! udpsink host=127.0.0.1 port=9001

rtph264pay—Payload-encode H264 video into RTP packets

see see

command line script

gst-launch-1.0 -v udpsrc port=9001 caps = “application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96” ! decodebin ! videoconvert ! autovideosink

gcc Send.c -o Send $(pkg-config --cflags --libs gstreamer-1.0)


gst_server gst-launch-1.0 playbin uri=rtsp://127.0.0.1:8554/test 抄袭地址


1\change deepstream_sink_bin.c host “127.0.0.1”
2\ cd deepstream_test5 file , sudo make,sudo make install
3\ test5_config_file_src_infer_tiler_demux.txt if source is rtsp, [source ]use type=4
4\ ./deepstream-test5-app -c configs/test5_config_file_src_infer_tiler_demux.txt -p 0

----------------------FFmpeg
1\ffplay -loglevel trace -rtsp_transport udp rtsp://121.167.43.161/chosun -loglevel trace是打印日志和跟踪
http://trac.ffmpeg.org/ticket/6807
2、ffmpeg.exe -loglevel trace -rtsp_transport udp -i rtsp://121.167.43.161/chosun test.mp4 保存成mp4

3、JSMpeg only supports playback of MPEG-TS containers with the MPEG1 Video Codec and the MP2 Audio Codec. The Video Decoder does not handle B-Frames correctly (though no modern encoder seems to use these by default anyway) and the width of the video has to be a multiple of 2.

You can encode a suitable video using ffmpeg like this:

ffmpeg -i in.mp4 -f mpegts -codec:v mpeg1video -codec:a mp2 -b 0 out.ts
原产地

猜你喜欢

转载自blog.csdn.net/qq_41834780/article/details/111203840
今日推荐