title: What are supported ffmpeg rtp_mpegts Muxer options? (mpegts Muxer options are ignored)
body: <p>I created a UDP stream with <code>-f mpegts</code> and some options like <code>-mpegts_transport_stream_id</code>.</p>
  
  <p>I received the stream with "<em>StreamXpert - Real-time stream analyzer</em>" that shows all options are in the output. See my ffmpeg parameters and the StreamXpert at the end.</p>
  
  <p>The same Muxer options seem to be <strong>ignored</strong> with <code>-f rtp_mpegts</code>.</p>
  
  <p>I have tried to use <code>-f mpegts</code> and pipe it to <code>-f rtp_mpegts</code> like so:</p>
  
  <p><code>ffmpeg -i ... -f mpegts pipe: | ffmpeg pipe: -c copy -f rtp_mpegts "rtp://239.1.1.9:1234?pkt_size=1316"</code></p>
  
  <p>The options are still <strong>ignored</strong>.</p>
  
  <p>This ticket "<a href="https://trac.ffmpeg.org/ticket/5239" rel="nofollow noreferrer">support options for MPEGTS muxer when using RTP_MPEGTS</a>" also notices the ignored option. Furthermore in this <a href="https://trac.ffmpeg.org/ticket/5239#comment:4" rel="nofollow noreferrer">comment</a>, "<em>thovo</em>" gives an analysis and suggests a solution.</p>
  
  <p>Obviously the problem still exists. Anybody found a workaround for this?</p>
  
  <p>My additional question: I have not questioned if my project really needs rtp in the first place. Maybe my coworker didn't know better and requested rtp when udp would be sufficient as well.</p>
  
  <p>The aim was to receive the RTP stream with a TV using DVB via IP. This was successful an a Panasonic TV.</p>
  
  <p>The <a href="http://www.satip.info/sites/satip/files/resource/satip_specification_version_1_2_2.pdf" rel="nofollow noreferrer">SAT>IP Specification</a> on page 10 requires rtp for Media Transport:</p>
  
  <p>The SAT>IP protocol makes use of:</p>
  
  <ul>
  <li>UPnP for Addressing, Discovery and Description,</li>
  <li>RTSP or HTTP for Control,</li>
  <li><strong>RTP</strong> or HTTP for Media Transport.</li>
  </ul>
  
  <p>Is udp out of the equation?</p>
  
  <hr>
  
  <p>ffmpeg: (all options are in the output with <code>-f mpegts</code>)</p>
  
  <p>(HEX to decimal: <code>0x005A</code> = <code>90</code>, <code>0x005B</code> = <code>91</code> <code>0x005C</code> = <code>92</code>, <code>0x005D</code> = <code>93</code>, <code>0x005E</code>= <code>94</code>)</p>
  
  <pre><code>ffmpeg -f lavfi -i testsrc \
  -r 25 \
  -c:v libx264 \
  -pix_fmt yuv420p \
  -profile:v main -level 3.1 \
  -preset veryfast \
  -vf scale=1280:720,setdar=dar=16/9 \
  -an \
  -bsf:v h264_mp4toannexb \
  -flush_packets 0 \
  -b:v 4M \
  -muxrate 8M \
  -pcr_period 20 \
  -pat_period 0.10 \
  -sdt_period 0.25 \
  -metadata:s:a:0 language=nya \
  -mpegts_flags +pat_pmt_at_frames \
  -mpegts_transport_stream_id 0x005A \
  -mpegts_original_network_id 0x005B \
  -mpegts_service_id 0x005C \
  -mpegts_pmt_start_pid 0x005D \
  -mpegts_start_pid 0x005E \
  -mpegts_service_type advanced_codec_digital_hdtv \
  -metadata service_provider='WI' \ 
  -metadata service_name='W' \
  -mpegts_flags system_b -flush_packets 0 \
  -f mpegts "udp://239.1.1.10:1234?pkt_size=1316"
  </code></pre>
  
  <p><em>StreamXpert</em> Output:</p>
  
  <p><code>-mpegts_transport_stream_id</code> = <code>Transport Stream ID</code> (yellow text highlight)</p>
  
  <p><code>-mpegts_original_network_id</code> = <code>Original Network ID</code>, <code>onw</code> (green text highlight)</p>
  
  <p><code>-mpegts_service_id</code> = <code>Program</code>, <code>service</code> (pink text highlight)</p>
  
  <p><code>-mpegts_pmt_start_pid</code> = <code>PMT PID</code>, <code>Table PID</code> (turquoise text highlight)</p>
  
  <p><code>-mpegts_start_pid</code> = <code>PID</code>, <code>PCR PID</code> (red text highlight)</p>
  
  <p><code>-mpegts_service_type</code> = <code>service type</code> (blue text)</p>
  
  <p><code>service_name</code> = <code>Service name</code> (orange text)</p>
  
  <p><code>service_provider</code> = <code>Service provider</code> (pink text)</p>
  
  <p><a href="https://i.stack.imgur.com/Zxatj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zxatj.jpg" alt="enter image description here"></a></p>