[FFmpeg-trac] #5239(ffmpeg:new): MPEGTS options ignored by RTP_MPEGTS muxer
FFmpeg
trac at avcodec.org
Tue Feb 16 17:03:08 CET 2016
#5239: MPEGTS options ignored by RTP_MPEGTS muxer
------------------------------------+----------------------------------
Reporter: mattdicken | Type: defect
Status: new | Priority: normal
Component: ffmpeg | Version: 2.8.3
Keywords: rtp_mpegts | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+----------------------------------
I'm trying to produce a MPEG TS over RTP with a constant muxrate. I am
able produce a MPEG TS with constant muxrate over UDP using the "mpegts"
output format (as shown in the first pasted console output below), but
after changing the command to use "rtp_mpegts" and a RTP:// address, the
output bit rate simply follows the A/V rate. I.E the -muxrate option is
ignored and the null packets are not inserted. Having compared the outputs
using a TS analyzer, I've also noticed that the -streamid and -metadata
options are also ignored because the PIDs and service names are different.
Perhaps all options are being ignored in that case?
COMMAND 1: MPEGTS over UDP
c:\ffmpeg-2-8-3\bin\ffmpeg -loop 1 -re -i //HOLPGKO01/bars/NFLbars%03d.jpg
-f lavfi -i "amovie=//holpgko01/tone/tone.wav:loop=0,
asetpts=N/(FRAME_RATE*TB)" -c:v libx264 -profile:v high -pix_fmt yuvj420p
-g 5 -b:v 1M -minrate 1M -maxrate 1M -bufsize 512k -b:a 384k -map 0:0 -map
1:0 -map 1:0 -map 1:0 -map 1:0 -f mpegts -streamid 0:31 -streamid 1:32
-streamid 2:33 -streamid 3:34 -streamid 4:35 -muxrate 8M
-mpegts_pmt_start_pid 0x001E -metadata service_provider="Provider"
-metadata service_name="Service 1" udp://239.118.0.20:11820?pkt_size=1316
ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-
libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm
--enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-
librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
--ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-
amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma
--ena
ble-decklink --enable-zlib
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[mjpeg @ 0000000000328100] Changeing bps to 8
Input #0, image2, from '//HOLPGKO01/bars/NFLbars%03d.jpg':
Duration: 00:00:12.60, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown),
1920x1080
[SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
[Parsed_amovie_0 @ 00000000056cf0a0] Channel layout is not set in output
stream
0, guessed channel layout is 'stereo'
Input #1, lavfi, from 'amovie=//holpgko01/tone/tone.wav:loop=0,
asetpts=N/(FRAME
_RATE*TB)':
Duration: N/A, bitrate: 1536 kb/s
Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[libx264 @ 0000000000335ba0] using SAR=1/1
[libx264 @ 0000000000335ba0] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2
AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0000000000335ba0] profile High, level 4.0
Output #0, mpegts, to 'udp://239.118.0.20:11820?pkt_size=1316':
Metadata:
service_provider: Provider
service_name : Service 1
encoder : Lavf56.40.101
Stream #0:0: Video: h264 (libx264), yuvj420p(pc), 1920x1080 [SAR 1:1
DAR 16:
9], q=-1--1, 1000 kb/s, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc56.60.100 libx264
Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
Metadata:
encoder : Lavc56.60.100 mp2
Stream #0:2: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
Metadata:
encoder : Lavc56.60.100 mp2
Stream #0:3: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
Metadata:
encoder : Lavc56.60.100 mp2
Stream #0:4: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
Metadata:
encoder : Lavc56.60.100 mp2
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> mp2 (native))
Stream #1:0 -> #0:2 (pcm_s16le (native) -> mp2 (native))
Stream #1:0 -> #0:3 (pcm_s16le (native) -> mp2 (native))
Stream #1:0 -> #0:4 (pcm_s16le (native) -> mp2 (native))
Press [q] to stop, [?] for help
[image2 @ 00000000003251e0] Thread message queue blocking; consider
raising the
thread_queue_size option (current value: 8)
frame= 37 fps= 36 q=33.0 size= 509kB time=00:00:00.52
bitrate=8011.7kbits/
frame= 49 fps= 32 q=33.0 size= 1017kB time=00:00:01.00
bitrate=8330.7kbits/
frame= 62 fps= 30 q=33.0 size= 1485kB time=00:00:01.52
bitrate=8004.8kbits/
frame= 74 fps= 29 q=33.0 size= 1994kB time=00:00:02.00
bitrate=8142.4kbits/
frame= 87 fps= 29 q=33.0 size= 2501kB time=00:00:02.52
bitrate=8128.8kbits/
frame= 100 fps= 28 q=32.0 size= 2973kB time=00:00:03.04
bitrate=8012.3kbits/
frame= 112 fps= 28 q=32.0 size= 3478kB time=00:00:03.52
bitrate=8093.4kbits/
frame= 125 fps= 27 q=33.0 size= 3950kB time=00:00:04.04
bitrate=8008.8kbits/
frame= 137 fps= 27 q=33.0 size= 4454kB time=00:00:04.52
bitrate=8061.4kbits/
frame= 150 fps= 27 q=32.0 size= 4962kB time=00:00:05.04
bitrate=8064.6kbits/
frame= 163 fps= 27 q=30.0 size= 5430kB time=00:00:05.56
bitrate=8001.0kbits/
frame= 175 fps= 27 q=31.0 size= 5938kB time=00:00:06.04
bitrate=8053.9kbits/
frame= 188 fps= 27 q=30.0 size= 6407kB time=00:00:06.56
bitrate=8001.0kbits/
frame= 200 fps= 26 q=31.0 size= 6915kB time=00:00:07.04
bitrate=8039.4kbits/
frame= 213 fps= 26 q=33.0 size= 7439kB time=00:00:07.56
bitrate=8061.3kbits/
frame= 226 fps= 26 q=32.0 size= 7894kB time=00:00:08.08
bitrate=8003.2kbits/
frame= 238 fps= 26 q=32.0 size= 8415kB time=00:00:08.56
bitrate=8053.4kbits/
frame= 251 fps= 26 q=32.0 size= 8870kB time=00:00:09.08
bitrate=8002.8kbits/
frame= 263 fps= 26 q=30.0 size= 9390kB time=00:00:09.56
bitrate=8041.7kbits/
frame= 276 fps= 26 q=33.0 size= 9884kB time=00:00:10.08
bitrate=8032.4kbits/
frame= 288 fps= 26 q=31.0 size= 10368kB time=00:00:10.56
bitrate=8042.7kbits/
frame= 301 fps= 26 q=33.0 size= 10860kB time=00:00:11.08
bitrate=8029.3kbits/
frame= 314 fps= 26 q=32.0 size= 11345kB time=00:00:11.60
bitrate=8012.0kbits/
frame= 326 fps= 26 q=32.0 size= 11836kB time=00:00:12.08
bitrate=8022.9kbits/
frame= 339 fps= 26 q=31.0 size= 12322kB time=00:00:12.60
bitrate=8011.2kbits/
frame= 351 fps= 26 q=31.0 size= 12813kB time=00:00:13.08
bitrate=8024.9kbits/
frame= 364 fps= 26 q=31.0 size= 13300kB time=00:00:13.60
bitrate=8011.5kbits/
frame= 376 fps= 26 q=32.0 size= 13790kB time=00:00:14.08
bitrate=8023.2kbits/
frame= 389 fps= 26 q=32.0 size= 14299kB time=00:00:14.60
bitrate=8019.7kbits/
frame= 402 fps= 26 q=32.0 size= 14769kB time=00:00:15.12
bitrate=8001.6kbits/
frame= 408 fps= 25 q=-1.0 Lsize= 15900kB time=00:00:16.24
bitrate=8020.5kbits
/s
video:1574kB audio:2880kB subtitle:0kB other streams:0kB global
headers:0kB muxi
ng overhead: 256.951935%
[libx264 @ 0000000000335ba0] frame I:82 Avg QP:20.83 size: 16417
[libx264 @ 0000000000335ba0] frame P:102 Avg QP:25.24 size: 1420
[libx264 @ 0000000000335ba0] frame B:224 Avg QP:38.17 size: 541
[libx264 @ 0000000000335ba0] consecutive B-frames: 25.2% 2.5% 6.6% 65.7%
[libx264 @ 0000000000335ba0] mb I I16..4: 62.6% 29.7% 7.7%
[libx264 @ 0000000000335ba0] mb P I16..4: 1.5% 0.7% 0.0% P16..4:
3.6% 0.6
% 0.2% 0.0% 0.0% skip:93.4%
[libx264 @ 0000000000335ba0] mb B I16..4: 0.1% 0.1% 0.0% B16..8:
3.9% 0.3
% 0.0% direct: 0.0% skip:95.6% L0:39.1% L1:60.7% BI: 0.2%
[libx264 @ 0000000000335ba0] 8x8 transform intra:29.7% inter:53.3%
[libx264 @ 0000000000335ba0] coded y,uvDC,uvAC intra: 6.4% 2.1% 1.1%
inter: 0.2%
0.1% 0.1%
[libx264 @ 0000000000335ba0] i16 v,h,dc,p: 82% 15% 2% 0%
[libx264 @ 0000000000335ba0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 19% 42%
1% 0%
0% 0% 0% 1%
[libx264 @ 0000000000335ba0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 26% 11%
8% 3%
3% 3% 4% 3%
[libx264 @ 0000000000335ba0] i8c dc,h,v,p: 83% 11% 6% 0%
[libx264 @ 0000000000335ba0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000000000335ba0] ref P L0: 94.9% 2.7% 1.7% 0.6%
[libx264 @ 0000000000335ba0] ref B L0: 89.7% 10.3%
[libx264 @ 0000000000335ba0] ref B L1: 91.2% 8.8%
[libx264 @ 0000000000335ba0] kb/s:790.27
Exiting normally, received signal 2.
COMMAND 2: MPEGTS over RTP
c:\ffmpeg-2-8-3\bin\ffmpeg -loop 1 -re -i //HOLPGKO01/bars/NFLbars%03d.jpg
-f lavfi -i "amovie=//holpgko01/tone/tone.wav:loop=0,
asetpts=N/(FRAME_RATE*TB)" -c:v libx264 -profile:v high -pix_fmt yuvj420p
-g 5 -b:v 1M -minrate 1M -maxrate 1M -bufsize 512k -b:a 384k -map 0:0 -map
1:0 -map 1:0 -map 1:0 -map 1:0 -f rtp_mpegts -streamid 0:31 -streamid 1:32
-streamid 2:33 -streamid 3:34 -streamid 4:35 -muxrate 8M
-mpegts_pmt_start_pid 0x001E -metadata service_provider="Provider"
-metadata service_name="Service 1" rtp://239.118.0.20:11820?pkt_size=1316
ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-
libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm
--enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-
librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
--ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-
amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma
--ena
ble-decklink --enable-zlib
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[mjpeg @ 0000000000328100] Changeing bps to 8
Input #0, image2, from '//HOLPGKO01/bars/NFLbars%03d.jpg':
Duration: 00:00:12.60, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown),
1920x1080
[SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
[Parsed_amovie_0 @ 00000000057bf0a0] Channel layout is not set in output
stream
0, guessed channel layout is 'stereo'
Input #1, lavfi, from 'amovie=//holpgko01/tone/tone.wav:loop=0,
asetpts=N/(FRAME
_RATE*TB)':
Duration: N/A, bitrate: 1536 kb/s
Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[libx264 @ 0000000000335ba0] using SAR=1/1
[libx264 @ 0000000000335ba0] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2
AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0000000000335ba0] profile High, level 4.0
Output #0, rtp_mpegts, to 'rtp://239.118.0.20:11820?pkt_size=1316':
Metadata:
service_provider: Provider
service_name : Service 1
encoder : Lavf56.40.101
Stream #0:0: Video: h264 (libx264), yuvj420p(pc), 1920x1080 [SAR 1:1
DAR 16:
9], q=-1--1, 1000 kb/s, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc56.60.100 libx264
Stream #0:1: Audio: aac (libvo_aacenc), 48000 Hz, stereo, s16, 384
kb/s
Metadata:
encoder : Lavc56.60.100 libvo_aacenc
Stream #0:2: Audio: aac (libvo_aacenc), 48000 Hz, stereo, s16, 384
kb/s
Metadata:
encoder : Lavc56.60.100 libvo_aacenc
Stream #0:3: Audio: aac (libvo_aacenc), 48000 Hz, stereo, s16, 384
kb/s
Metadata:
encoder : Lavc56.60.100 libvo_aacenc
Stream #0:4: Audio: aac (libvo_aacenc), 48000 Hz, stereo, s16, 384
kb/s
Metadata:
encoder : Lavc56.60.100 libvo_aacenc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (libvo_aacenc))
Stream #1:0 -> #0:2 (pcm_s16le (native) -> aac (libvo_aacenc))
Stream #1:0 -> #0:3 (pcm_s16le (native) -> aac (libvo_aacenc))
Stream #1:0 -> #0:4 (pcm_s16le (native) -> aac (libvo_aacenc))
Press [q] to stop, [?] for help
[image2 @ 00000000003251e0] Thread message queue blocking; consider
raising the
thread_queue_size option (current value: 8)
frame= 36 fps= 35 q=33.0 size= 75kB time=00:00:00.48
bitrate=1273.5kbits/
frame= 48 fps= 31 q=31.0 size= 169kB time=00:00:00.96
bitrate=1444.2kbits/
frame= 61 fps= 30 q=33.0 size= 252kB time=00:00:01.48
bitrate=1392.8kbits/
frame= 74 fps= 29 q=33.0 size= 351kB time=00:00:02.00
bitrate=1436.5kbits/
frame= 86 fps= 28 q=33.0 size= 435kB time=00:00:02.48
bitrate=1438.0kbits/
frame= 99 fps= 28 q=33.0 size= 532kB time=00:00:03.00
bitrate=1453.2kbits/
frame= 111 fps= 27 q=32.0 size= 615kB time=00:00:03.48
bitrate=1446.7kbits/
frame= 124 fps= 27 q=33.0 size= 716kB time=00:00:04.00
bitrate=1466.1kbits/
frame= 137 fps= 27 q=33.0 size= 797kB time=00:00:04.52
bitrate=1444.7kbits/
frame= 149 fps= 27 q=32.0 size= 896kB time=00:00:05.00
bitrate=1468.0kbits/
frame= 162 fps= 27 q=32.0 size= 974kB time=00:00:05.52
bitrate=1445.7kbits/
frame= 174 fps= 26 q=31.0 size= 1070kB time=00:00:06.00
bitrate=1460.8kbits/
frame= 187 fps= 26 q=31.0 size= 1151kB time=00:00:06.52
bitrate=1446.4kbits/
frame= 200 fps= 26 q=31.0 size= 1242kB time=00:00:07.04
bitrate=1445.8kbits/
frame= 212 fps= 26 q=32.0 size= 1334kB time=00:00:07.52
bitrate=1453.0kbits/
frame= 225 fps= 26 q=32.0 size= 1422kB time=00:00:08.04
bitrate=1448.6kbits/
frame= 237 fps= 26 q=32.0 size= 1503kB time=00:00:08.52
bitrate=1444.9kbits/
frame= 250 fps= 26 q=32.0 size= 1603kB time=00:00:09.04
bitrate=1452.8kbits/
frame= 263 fps= 26 q=31.0 size= 1689kB time=00:00:09.56
bitrate=1447.2kbits/
frame= 275 fps= 26 q=33.0 size= 1787kB time=00:00:10.04
bitrate=1458.0kbits/
frame= 288 fps= 26 q=31.0 size= 1868kB time=00:00:10.56
bitrate=1449.2kbits/
frame= 300 fps= 26 q=33.0 size= 1967kB time=00:00:11.04
bitrate=1459.8kbits/
frame= 313 fps= 26 q=30.0 size= 2047kB time=00:00:11.56
bitrate=1450.9kbits/
frame= 325 fps= 26 q=32.0 size= 2142kB time=00:00:12.04
bitrate=1457.3kbits/
frame= 338 fps= 26 q=30.0 size= 2240kB time=00:00:12.56
bitrate=1461.0kbits/
frame= 350 fps= 26 q=31.0 size= 2321kB time=00:00:13.04
bitrate=1458.3kbits/
frame= 363 fps= 26 q=30.0 size= 2420kB time=00:00:13.56
bitrate=1462.2kbits/
frame= 376 fps= 26 q=32.0 size= 2503kB time=00:00:14.08
bitrate=1456.1kbits/
frame= 388 fps= 26 q=30.0 size= 2584kB time=00:00:14.56
bitrate=1453.9kbits/
frame= 401 fps= 26 q=32.0 size= 2686kB time=00:00:15.08
bitrate=1459.4kbits/
frame= 413 fps= 26 q=31.0 size= 2784kB time=00:00:15.56
bitrate=1465.8kbits/
frame= 415 fps= 25 q=-1.0 Lsize= 2889kB time=00:00:16.52
bitrate=1432.6kbits
/s
video:1595kB audio:982kB subtitle:0kB other streams:0kB global headers:0kB
muxin
g overhead: 12.116439%
[libx264 @ 0000000000335ba0] frame I:83 Avg QP:20.79 size: 16442
[libx264 @ 0000000000335ba0] frame P:105 Avg QP:25.40 size: 1400
[libx264 @ 0000000000335ba0] frame B:227 Avg QP:38.45 size: 537
[libx264 @ 0000000000335ba0] consecutive B-frames: 25.3% 2.9% 7.2% 64.6%
[libx264 @ 0000000000335ba0] mb I I16..4: 63.3% 29.0% 7.7%
[libx264 @ 0000000000335ba0] mb P I16..4: 1.5% 0.6% 0.0% P16..4:
3.6% 0.5
% 0.2% 0.0% 0.0% skip:93.5%
[libx264 @ 0000000000335ba0] mb B I16..4: 0.1% 0.0% 0.0% B16..8:
3.9% 0.2
% 0.0% direct: 0.0% skip:95.7% L0:39.0% L1:60.8% BI: 0.2%
[libx264 @ 0000000000335ba0] 8x8 transform intra:29.1% inter:51.0%
[libx264 @ 0000000000335ba0] coded y,uvDC,uvAC intra: 6.4% 2.0% 1.1%
inter: 0.2%
0.1% 0.1%
[libx264 @ 0000000000335ba0] i16 v,h,dc,p: 82% 15% 2% 0%
[libx264 @ 0000000000335ba0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 18% 44%
1% 0%
0% 0% 0% 1%
[libx264 @ 0000000000335ba0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 26% 11%
8% 3%
3% 3% 4% 3%
[libx264 @ 0000000000335ba0] i8c dc,h,v,p: 83% 11% 5% 0%
[libx264 @ 0000000000335ba0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000000000335ba0] ref P L0: 95.1% 2.6% 1.7% 0.6%
[libx264 @ 0000000000335ba0] ref B L0: 89.4% 10.6%
[libx264 @ 0000000000335ba0] ref B L1: 91.4% 8.6%
[libx264 @ 0000000000335ba0] kb/s:787.29
Exiting normally, received signal 2.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5239>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list