| | 130 | |
| | 131 | work with: |
| | 132 | ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers |
| | 133 | |
| | 134 | but decoder can't read that stream: |
| | 135 | {{{ |
| | 136 | General |
| | 137 | ID : 1 (0x1) |
| | 138 | Complete name : /root/1.ts |
| | 139 | Format : MPEG-TS |
| | 140 | File size : 6.02 MiB |
| | 141 | Duration : 12 s 76 ms |
| | 142 | Overall bit rate mode : Constant |
| | 143 | Overall bit rate : 3 670 kb/s |
| | 144 | |
| | 145 | Video |
| | 146 | ID : 256 (0x100) |
| | 147 | Menu ID : 1 (0x1) |
| | 148 | Format : MPEG Video |
| | 149 | Format version : Version 2 |
| | 150 | Format profile : Main@Main |
| | 151 | Format settings, BVOP : Yes |
| | 152 | Format settings, Matrix : Default |
| | 153 | Format settings, GOP : M=4, N=13 |
| | 154 | Codec ID : 2 |
| | 155 | Duration : 11 s 520 ms |
| | 156 | Bit rate mode : Constant |
| | 157 | Bit rate : 3 359 kb/s |
| | 158 | Maximum bit rate : 3 300 kb/s |
| | 159 | Width : 720 pixels |
| | 160 | Height : 576 pixels |
| | 161 | Display aspect ratio : 16:9 |
| | 162 | Frame rate : 25.000 FPS |
| | 163 | Standard : PAL |
| | 164 | Color space : YUV |
| | 165 | Chroma subsampling : 4:2:0 |
| | 166 | Bit depth : 8 bits |
| | 167 | Scan type : Progressive |
| | 168 | Compression mode : Lossy |
| | 169 | Bits/(Pixel*Frame) : 0.324 |
| | 170 | Time code of first frame : 00:00:00:00 |
| | 171 | Time code source : Group of pictures header |
| | 172 | GOP, Open/Closed : Closed |
| | 173 | Stream size : 4.61 MiB (77%) |
| | 174 | |
| | 175 | Audio |
| | 176 | ID : 257 (0x101) |
| | 177 | Menu ID : 1 (0x1) |
| | 178 | Format : MPEG Audio |
| | 179 | Format version : Version 1 |
| | 180 | Format profile : Layer 2 |
| | 181 | Codec ID : 3 |
| | 182 | Duration : 13 s 128 ms |
| | 183 | Bit rate mode : Constant |
| | 184 | Bit rate : 128 kb/s |
| | 185 | Channel(s) : 2 channels |
| | 186 | Sampling rate : 48.0 kHz |
| | 187 | Compression mode : Lossy |
| | 188 | Delay relative to video : -2 s 50 ms |
| | 189 | Stream size : 205 KiB (3%) |
| | 190 | |
| | 191 | Menu |
| | 192 | ID : 4096 (0x1000) |
| | 193 | Menu ID : 1 (0x1) |
| | 194 | Duration : 12 s 76 ms |
| | 195 | List : 256 (0x100) (MPEG Video) / 257 (0x101) (MPEG Audio) |
| | 196 | Service name : Service01 |
| | 197 | Service provider : FFmpeg |
| | 198 | Service type : digital television |
| | 199 | }}} |
| | 200 | |
| | 201 | {{{ |
| | 202 | Parsing a group of options: output url udp://239.255.5.2:1234?pkt_size=1316&reuse=1&buffer_size=131070&fifo_size=1000000&bitrate=3700000&overrun_nonfatal=1. |
| | 203 | Applying option s (set frame size (WxH or abbreviation)) with argument 720x576. |
| | 204 | Applying option c:v (codec name) with argument mpeg2_qsv. |
| | 205 | Applying option profile:v (set profile) with argument main. |
| | 206 | Applying option b:v (video bitrate (please use -b:v)) with argument 3300k. |
| | 207 | Applying option c:a (codec name) with argument mp2. |
| | 208 | Applying option ac (set number of audio channels) with argument 2. |
| | 209 | Applying option b:a (video bitrate (please use -b:v)) with argument 128k. |
| | 210 | Applying option ar (set audio sampling rate (in Hz)) with argument 48000. |
| | 211 | Applying option af (set audio filters) with argument aresample=async=1000. |
| | 212 | Applying option f (force format) with argument mpegts. |
| | 213 | Successfully parsed a group of options. |
| | 214 | Opening an output file: udp://239.255.5.2:1234?pkt_size=1316&reuse=1&buffer_size=131070&fifo_size=1000000&bitrate=3700000&overrun_nonfatal=1. |
| | 215 | [udp @ 0x3cce5c0] No default whitelist set |
| | 216 | Successfully opened the file. |
| | 217 | detected 4 logical cores |
| | 218 | [graph 0 input from stream 0:0 @ 0x3bd1580] Setting 'video_size' to value '1920x1080' |
| | 219 | [graph 0 input from stream 0:0 @ 0x3bd1580] Setting 'pix_fmt' to value '0' |
| | 220 | [graph 0 input from stream 0:0 @ 0x3bd1580] Setting 'time_base' to value '1/90000' |
| | 221 | [graph 0 input from stream 0:0 @ 0x3bd1580] Setting 'pixel_aspect' to value '1/1' |
| | 222 | [graph 0 input from stream 0:0 @ 0x3bd1580] Setting 'sws_param' to value 'flags=2' |
| | 223 | [graph 0 input from stream 0:0 @ 0x3bd1580] Setting 'frame_rate' to value '25/1' |
| | 224 | [graph 0 input from stream 0:0 @ 0x3bd1580] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:1/1 sws_param:flags=2 |
| | 225 | [scaler for output stream 0:0 @ 0x3fc3900] Setting 'w' to value '720' |
| | 226 | [scaler for output stream 0:0 @ 0x3fc3900] Setting 'h' to value '576' |
| | 227 | [scaler for output stream 0:0 @ 0x3fc3900] Setting 'flags' to value 'bicubic' |
| | 228 | [scaler for output stream 0:0 @ 0x3fc3900] w:720 h:576 flags:'bicubic' interl:0 |
| | 229 | [format @ 0x3fc51e0] compat: called with args=[nv12|qsv] |
| | 230 | [format @ 0x3fc51e0] Setting 'pix_fmts' to value 'nv12|qsv' |
| | 231 | [AVFilterGraph @ 0x3e127c0] query_formats: 5 queried, 4 merged, 0 already done, 0 delayed |
| | 232 | [scaler for output stream 0:0 @ 0x3fc3900] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:720 h:576 fmt:nv12 sar:64/45 flags:0x4 |
| | 233 | [Parsed_aresample_0 @ 0x3e12320] Setting 'async' to value '1000' |
| | 234 | [graph 1 input from stream 0:1 @ 0x3c13e20] Setting 'time_base' to value '1/48000' |
| | 235 | [graph 1 input from stream 0:1 @ 0x3c13e20] Setting 'sample_rate' to value '48000' |
| | 236 | [graph 1 input from stream 0:1 @ 0x3c13e20] Setting 'sample_fmt' to value 's16p' |
| | 237 | [graph 1 input from stream 0:1 @ 0x3c13e20] Setting 'channel_layout' to value '0x3' |
| | 238 | [graph 1 input from stream 0:1 @ 0x3c13e20] tb:1/48000 samplefmt:s16p samplerate:48000 chlayout:0x3 |
| | 239 | [audio format for output stream 0:1 @ 0x3bfc740] Setting 'sample_fmts' to value 's16' |
| | 240 | [audio format for output stream 0:1 @ 0x3bfc740] Setting 'sample_rates' to value '48000' |
| | 241 | [audio format for output stream 0:1 @ 0x3bfc740] Setting 'channel_layouts' to value '0x3' |
| | 242 | [AVFilterGraph @ 0x3ccec60] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed |
| | 243 | [Parsed_aresample_0 @ 0x3e12320] [SWR @ 0x3d128c0] Using s16p internally between filters |
| | 244 | [Parsed_aresample_0 @ 0x3e12320] ch:2 chl:stereo fmt:s16p r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz |
| | 245 | [h264 @ 0x3bfd740] nal_unit_type: 9, nal_ref_idc: 0 |
| | 246 | [h264 @ 0x3bfd740] nal_unit_type: 7, nal_ref_idc: 1 |
| | 247 | [h264 @ 0x3bfd740] nal_unit_type: 8, nal_ref_idc: 1 |
| | 248 | [h264 @ 0x3bfd740] Ignoring NAL type 9 in extradata |
| | 249 | libva info: VA-API version 0.99.0 |
| | 250 | libva info: va_getDriverName() returns 0 |
| | 251 | libva info: User requested driver 'iHD' |
| | 252 | libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so |
| | 253 | libva info: Found init function __vaDriverInit_0_32 |
| | 254 | libva info: va_openDriver() returns 0 |
| | 255 | [mpeg2_qsv @ 0x3bd9040] mfx initialization: /dev/dri/renderD128 vaInitialize successful |
| | 256 | [mpeg2_qsv @ 0x3bd9040] Initialized an internal MFX session using hardware accelerated implementation |
| | 257 | [mpeg2_qsv @ 0x3bd9040] Using the constant bitrate (CBR) ratecontrol method |
| | 258 | [mpeg2_qsv @ 0x3bd9040] profile: main; level: 8 |
| | 259 | [mpeg2_qsv @ 0x3bd9040] GopPicSize: 13; GopRefDist: 4; GopOptFlag: closed ; IdrInterval: 0 |
| | 260 | [mpeg2_qsv @ 0x3bd9040] TargetUsage: 4; RateControlMethod: CBR |
| | 261 | [mpeg2_qsv @ 0x3bd9040] InitialDelayInKB: 300; TargetKbps: 3300; MaxKbps: 3300 |
| | 262 | [mpeg2_qsv @ 0x3bd9040] NumSlice: 36; NumRefFrame: 0 |
| | 263 | [mpeg2_qsv @ 0x3bd9040] RateDistortionOpt: unknown |
| | 264 | [mpeg2_qsv @ 0x3bd9040] RecoveryPointSEI: unknown IntRefType: 0; IntRefCycleSize: 0; IntRefQPDelta: 0 |
| | 265 | [mpeg2_qsv @ 0x3bd9040] MaxFrameSize: 0; MaxSliceSize: 0; |
| | 266 | [mpeg2_qsv @ 0x3bd9040] BitrateLimit: unknown; MBBRC: unknown; ExtBRC: unknown |
| | 267 | [mpeg2_qsv @ 0x3bd9040] Trellis: auto |
| | 268 | [mpeg2_qsv @ 0x3bd9040] RepeatPPS: unknown; NumMbPerSlice: 0; LookAheadDS: unknown |
| | 269 | [mpeg2_qsv @ 0x3bd9040] AdaptiveI: unknown; AdaptiveB: unknown; BRefType: auto |
| | 270 | [mpeg2_qsv @ 0x3bd9040] MinQPI: 0; MaxQPI: 0; MinQPP: 0; MaxQPP: 0; MinQPB: 0; MaxQPB: 0 |
| | 271 | [mpegts @ 0x3c1f2a0] muxrate 3670000, pcr every 48 pkts, sdt every 1220, pat/pmt every 244 pkts |
| | 272 | Output #0, mpegts, to 'udp://239.255.5.2:1234?pkt_size=1316&reuse=1&buffer_size=131070&fifo_size=1000000&bitrate=3700000&overrun_nonfatal=1': |
| | 273 | Metadata: |
| | 274 | encoder : Lavf57.56.100 |
| | 275 | Stream #0:0, 0, 1/90000: Video: mpeg2video (mpeg2_qsv), 1 reference frame, nv12(left), 720x576 [SAR 64:45 DAR 16:9], 0/1, q=2-31, 3300 kb/s, 25 fps, 90k tbn, 25 tbc |
| | 276 | Metadata: |
| | 277 | encoder : Lavc57.64.101 mpeg2_qsv |
| | 278 | Side data: |
| | 279 | cpb: bitrate max/min/avg: 3300000/3300000/3300000 buffer size: 1625000 vbv_delay: -1 |
| | 280 | Stream #0:1, 0, 1/90000: Audio: mp2, 48000 Hz, stereo, s16, delay 481, 128 kb/s |
| | 281 | Metadata: |
| | 282 | encoder : Lavc57.64.101 mp2 |
| | 283 | Stream mapping: |
| | 284 | Stream #0:0 -> #0:0 (h264 (native) -> mpeg2video (mpeg2_qsv)) |
| | 285 | Stream #0:1 -> #0:1 (mp2 (native) -> mp2 (native)) |
| | 286 | |
| | 287 | .... |
| | 288 | Last message repeated 1 times |
| | 289 | [h264 @ 0x3c04080] nal_unit_type: 9, nal_ref_idc: 0 |
| | 290 | [h264 @ 0x3c04080] nal_unit_type: 6, nal_ref_idc: 0 |
| | 291 | [h264 @ 0x3c04080] nal_unit_type: 1, nal_ref_idc: 1 |
| | 292 | [h264 @ 0x3c04080] ct_type:0 pic_struct:1 |
| | 293 | [h264 @ 0x3e5e220] mmco: unref short failure |
| | 294 | cur_dts is invalid (this is harmless if it occurs once at the start per stream) |
| | 295 | Last message repeated 1 times |
| | 296 | [h264 @ 0x3e5e220] nal_unit_type: 9, nal_ref_idc: 0 |
| | 297 | [h264 @ 0x3e5e220] nal_unit_type: 6, nal_ref_idc: 0 |
| | 298 | [h264 @ 0x3e5e220] nal_unit_type: 1, nal_ref_idc: 1 |
| | 299 | [h264 @ 0x3e5e220] ct_type:0 pic_struct:2 |
| | 300 | [h264 @ 0x3e5e220] no picture |
| | 301 | cur_dts is invalid (this is harmless if it occurs once at the start per stream) |
| | 302 | |
| | 303 | }}} |
| | 304 | |
| | 305 | |
| | 306 | {{{ |
| | 307 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 308 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 309 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 310 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 311 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 312 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 313 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 314 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 315 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 316 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 317 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 318 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 319 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 320 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 321 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 322 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 323 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 324 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 325 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 326 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 327 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 328 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 329 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 330 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 331 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 332 | GOP: IBBPBBPBBPBBP 13 CLOSED |
| | 333 | |
| | 334 | }}} |