Hello!<br><br>I try to mux an mpeg-ts file into an rtp context for a unicast / multicast (is this possible?) video stream. <br>What I did so far is the following: <br>1) I opened the mpeg-ts file into a common AVFormatContext (ts context) and detected the streams<br>
2) I created an AVFormatContext for rtp<br>3) I added the same streams to the rtp context which were detected in 1)<br>4) I wrote the headers into the rtp context (avformat_write_header)<br>5) I read the packages of the ts context and wrote them directly into the rtp context (I tried av_write_frame and <br>
av_interleaved_write_frame)<br>6) I wrote the trailers into the rtp context (av_write_trailer)<br><br>When I try to receive the rtp stream with ffmpeg -i rtp://xx.xx.xx.xx.:1234 I get the message "Invalid data found when processing input".<br>
When I try to receive the rtp stream with ffmpeg -i udp://xx.xx.xx:1234 I receive just one video stream, no audio.<br>When I try to receive with vlc, I get nothing.<br><br>Does anybody have an idea how this could work? Or where I make the mistake?<br>
<br>Thank you very much for your help!<br><br>Best regards,<br>Sabine<br><br>