Here you may need to resize the buffer of the sink before starting the server incase of 4k frames. We are using a H264VideoRTPSink which holds the all the encoded packets extracted from the encoder before being served to the client. The other aspect described by the Sub-session is the RTPSink that it will use to serve the client. So basically what we do in the encoder, we remove the first 4 bytes from the packet and then we enqueue it in the output queue before reaching the server buffer. Because we are using H264VideoStreamDiscreteFramer it assumes the packets without the start code. Each NALU has a start code of 4 bytes (in the case of x264 used by FFmpeg) marking the beginning of new frame in a video file. The documentation mentions Darwin Streaming Server and revmischa/rtsp-server. So you need a server which supports it running on 8888. When you use it for output it sends the stream with a RTSP ANNOUNCE. If we take a packet extracted by FFmpeg we can see that is composed of a NALU. ffmpeg doesn’t substitute a RTSP server, the rtsp is just a muxer/demuxer. ffmpeg -re -i input -f rtsp -rtsptransport tcp rtsp://localhost:8888/live.sdp ffplay -rtspflags listen rtsp://localhost:8888/live. I have tried this temporary command but I cannot get it working i.e. Basically, my computer will work as a relay-server using FFMpeg. was running: ffmpeg -i rtsp://localhost:8554/preview -acodec copy -vcodec. The only issue here is that FFmpeg is adding extra information to the packet related to the location of the frame in the video file. I want to capture a Rtsp-stream from a Live-CAM which I then want to re-stream to another Rtsp-server. The gen2-rtsp-streaming demo runs with a lot of garbage in the result stream. Because FFmpeg by default needs to output the packets to be saved in a file, we creates a dummy video file at the beginning to fool FFmpeg then we ignore the writing part and direct the packets to the server buffer. H264VideoStreamDiscreteFramer means that we will provide the RTSP server with discrete single frames in each call of GetFrame invoked by doGetNextFrame.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |