ffprobe_json 17.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
{
    "packets_and_frames": [
        {
            "type": "packet",
            "codec_type": "audio",
            "stream_index": 0,
            "pts": 0,
            "pts_time": "0.000000",
            "dts": 0,
            "dts_time": "0.000000",
            "duration": 1024,
            "duration_time": "0.023220",
            "size": "2048",
14
            "pos": "572",
15 16 17 18 19 20 21 22 23 24 25 26
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "audio",
            "key_frame": 1,
            "pkt_pts": 0,
            "pkt_pts_time": "0.000000",
            "pkt_dts": 0,
            "pkt_dts_time": "0.000000",
            "pkt_duration": 1024,
            "pkt_duration_time": "0.023220",
27
            "pkt_pos": "572",
28
            "pkt_size": "2048",
29 30
            "sample_fmt": "s16",
            "nb_samples": 1024,
31
            "channels": 1
32 33 34 35 36 37 38 39 40
        },
        {
            "type": "packet",
            "codec_type": "video",
            "stream_index": 1,
            "pts": 0,
            "pts_time": "0.000000",
            "dts": 0,
            "dts_time": "0.000000",
41
            "duration": 2048,
42 43
            "duration_time": "0.040000",
            "size": "230400",
44
            "pos": "2647",
45 46 47 48 49 50 51 52 53 54
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "video",
            "key_frame": 1,
            "pkt_pts": 0,
            "pkt_pts_time": "0.000000",
            "pkt_dts": 0,
            "pkt_dts_time": "0.000000",
55
            "pkt_duration": 2048,
56
            "pkt_duration_time": "0.040000",
57
            "pkt_pos": "2647",
58 59 60 61 62 63 64 65 66
            "width": 320,
            "height": 240,
            "pix_fmt": "rgb24",
            "sample_aspect_ratio": "1:1",
            "pict_type": "I",
            "coded_picture_number": 0,
            "display_picture_number": 0,
            "interlaced_frame": 0,
            "top_field_first": 0,
67
            "repeat_pict": 0
68 69 70 71 72 73 74 75 76
        },
        {
            "type": "packet",
            "codec_type": "video",
            "stream_index": 2,
            "pts": 0,
            "pts_time": "0.000000",
            "dts": 0,
            "dts_time": "0.000000",
77
            "duration": 2048,
78 79
            "duration_time": "0.040000",
            "size": "30000",
80
            "pos": "233068",
81 82 83 84 85 86 87 88 89 90
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "video",
            "key_frame": 1,
            "pkt_pts": 0,
            "pkt_pts_time": "0.000000",
            "pkt_dts": 0,
            "pkt_dts_time": "0.000000",
91
            "pkt_duration": 2048,
92
            "pkt_duration_time": "0.040000",
93
            "pkt_pos": "233068",
94 95 96 97 98 99 100 101 102
            "width": 100,
            "height": 100,
            "pix_fmt": "rgb24",
            "sample_aspect_ratio": "1:1",
            "pict_type": "I",
            "coded_picture_number": 0,
            "display_picture_number": 0,
            "interlaced_frame": 0,
            "top_field_first": 0,
103
            "repeat_pict": 0
104 105 106 107 108 109 110 111 112 113 114 115
        },
        {
            "type": "packet",
            "codec_type": "audio",
            "stream_index": 0,
            "pts": 1024,
            "pts_time": "0.023220",
            "dts": 1024,
            "dts_time": "0.023220",
            "duration": 1024,
            "duration_time": "0.023220",
            "size": "2048",
116
            "pos": "263073",
117 118 119 120 121 122 123 124 125 126 127 128
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "audio",
            "key_frame": 1,
            "pkt_pts": 1024,
            "pkt_pts_time": "0.023220",
            "pkt_dts": 1024,
            "pkt_dts_time": "0.023220",
            "pkt_duration": 1024,
            "pkt_duration_time": "0.023220",
129
            "pkt_pos": "263073",
130
            "pkt_size": "2048",
131 132
            "sample_fmt": "s16",
            "nb_samples": 1024,
133
            "channels": 1
134 135 136 137 138
        },
        {
            "type": "packet",
            "codec_type": "video",
            "stream_index": 1,
139
            "pts": 2048,
140
            "pts_time": "0.040000",
141
            "dts": 2048,
142
            "dts_time": "0.040000",
143
            "duration": 2048,
144 145
            "duration_time": "0.040000",
            "size": "230400",
146
            "pos": "265151",
147 148 149 150 151 152
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "video",
            "key_frame": 1,
153
            "pkt_pts": 2048,
154
            "pkt_pts_time": "0.040000",
155
            "pkt_dts": 2048,
156
            "pkt_dts_time": "0.040000",
157
            "pkt_duration": 2048,
158
            "pkt_duration_time": "0.040000",
159
            "pkt_pos": "265151",
160 161 162 163 164 165 166 167 168
            "width": 320,
            "height": 240,
            "pix_fmt": "rgb24",
            "sample_aspect_ratio": "1:1",
            "pict_type": "I",
            "coded_picture_number": 0,
            "display_picture_number": 0,
            "interlaced_frame": 0,
            "top_field_first": 0,
169
            "repeat_pict": 0
170 171 172 173 174
        },
        {
            "type": "packet",
            "codec_type": "video",
            "stream_index": 2,
175
            "pts": 2048,
176
            "pts_time": "0.040000",
177
            "dts": 2048,
178
            "dts_time": "0.040000",
179
            "duration": 2048,
180 181
            "duration_time": "0.040000",
            "size": "30000",
182
            "pos": "495575",
183 184 185 186 187 188
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "video",
            "key_frame": 1,
189
            "pkt_pts": 2048,
190
            "pkt_pts_time": "0.040000",
191
            "pkt_dts": 2048,
192
            "pkt_dts_time": "0.040000",
193
            "pkt_duration": 2048,
194
            "pkt_duration_time": "0.040000",
195
            "pkt_pos": "495575",
196 197 198 199 200 201 202 203 204
            "width": 100,
            "height": 100,
            "pix_fmt": "rgb24",
            "sample_aspect_ratio": "1:1",
            "pict_type": "I",
            "coded_picture_number": 0,
            "display_picture_number": 0,
            "interlaced_frame": 0,
            "top_field_first": 0,
205
            "repeat_pict": 0
206 207 208 209 210 211 212 213 214 215 216 217
        },
        {
            "type": "packet",
            "codec_type": "audio",
            "stream_index": 0,
            "pts": 2048,
            "pts_time": "0.046440",
            "dts": 2048,
            "dts_time": "0.046440",
            "duration": 1024,
            "duration_time": "0.023220",
            "size": "2048",
218
            "pos": "525580",
219 220 221 222 223 224 225 226 227 228 229 230
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "audio",
            "key_frame": 1,
            "pkt_pts": 2048,
            "pkt_pts_time": "0.046440",
            "pkt_dts": 2048,
            "pkt_dts_time": "0.046440",
            "pkt_duration": 1024,
            "pkt_duration_time": "0.023220",
231
            "pkt_pos": "525580",
232
            "pkt_size": "2048",
233 234
            "sample_fmt": "s16",
            "nb_samples": 1024,
235
            "channels": 1
236 237 238 239 240 241 242 243 244 245 246 247
        },
        {
            "type": "packet",
            "codec_type": "audio",
            "stream_index": 0,
            "pts": 3072,
            "pts_time": "0.069660",
            "dts": 3072,
            "dts_time": "0.069660",
            "duration": 1024,
            "duration_time": "0.023220",
            "size": "2048",
248
            "pos": "527651",
249 250 251 252 253 254 255 256 257 258 259 260
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "audio",
            "key_frame": 1,
            "pkt_pts": 3072,
            "pkt_pts_time": "0.069660",
            "pkt_dts": 3072,
            "pkt_dts_time": "0.069660",
            "pkt_duration": 1024,
            "pkt_duration_time": "0.023220",
261
            "pkt_pos": "527651",
262
            "pkt_size": "2048",
263 264
            "sample_fmt": "s16",
            "nb_samples": 1024,
265
            "channels": 1
266 267 268 269 270
        },
        {
            "type": "packet",
            "codec_type": "video",
            "stream_index": 1,
271
            "pts": 4096,
272
            "pts_time": "0.080000",
273
            "dts": 4096,
274
            "dts_time": "0.080000",
275
            "duration": 2048,
276 277
            "duration_time": "0.040000",
            "size": "230400",
278
            "pos": "529729",
279 280 281 282 283 284
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "video",
            "key_frame": 1,
285
            "pkt_pts": 4096,
286
            "pkt_pts_time": "0.080000",
287
            "pkt_dts": 4096,
288
            "pkt_dts_time": "0.080000",
289
            "pkt_duration": 2048,
290
            "pkt_duration_time": "0.040000",
291
            "pkt_pos": "529729",
292 293 294 295 296 297 298 299 300
            "width": 320,
            "height": 240,
            "pix_fmt": "rgb24",
            "sample_aspect_ratio": "1:1",
            "pict_type": "I",
            "coded_picture_number": 0,
            "display_picture_number": 0,
            "interlaced_frame": 0,
            "top_field_first": 0,
301
            "repeat_pict": 0
302 303 304 305 306
        },
        {
            "type": "packet",
            "codec_type": "video",
            "stream_index": 2,
307
            "pts": 4096,
308
            "pts_time": "0.080000",
309
            "dts": 4096,
310
            "dts_time": "0.080000",
311
            "duration": 2048,
312 313
            "duration_time": "0.040000",
            "size": "30000",
314
            "pos": "760153",
315 316 317 318 319 320
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "video",
            "key_frame": 1,
321
            "pkt_pts": 4096,
322
            "pkt_pts_time": "0.080000",
323
            "pkt_dts": 4096,
324
            "pkt_dts_time": "0.080000",
325
            "pkt_duration": 2048,
326
            "pkt_duration_time": "0.040000",
327
            "pkt_pos": "760153",
328 329 330 331 332 333 334 335 336
            "width": 100,
            "height": 100,
            "pix_fmt": "rgb24",
            "sample_aspect_ratio": "1:1",
            "pict_type": "I",
            "coded_picture_number": 0,
            "display_picture_number": 0,
            "interlaced_frame": 0,
            "top_field_first": 0,
337
            "repeat_pict": 0
338 339 340 341 342 343 344 345 346 347 348 349
        },
        {
            "type": "packet",
            "codec_type": "audio",
            "stream_index": 0,
            "pts": 4096,
            "pts_time": "0.092880",
            "dts": 4096,
            "dts_time": "0.092880",
            "duration": 1024,
            "duration_time": "0.023220",
            "size": "2048",
350
            "pos": "790158",
351 352 353 354 355 356 357 358 359 360 361 362
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "audio",
            "key_frame": 1,
            "pkt_pts": 4096,
            "pkt_pts_time": "0.092880",
            "pkt_dts": 4096,
            "pkt_dts_time": "0.092880",
            "pkt_duration": 1024,
            "pkt_duration_time": "0.023220",
363
            "pkt_pos": "790158",
364
            "pkt_size": "2048",
365 366
            "sample_fmt": "s16",
            "nb_samples": 1024,
367
            "channels": 1
368 369 370 371 372 373 374 375 376 377 378 379
        },
        {
            "type": "packet",
            "codec_type": "audio",
            "stream_index": 0,
            "pts": 5120,
            "pts_time": "0.116100",
            "dts": 5120,
            "dts_time": "0.116100",
            "duration": 1024,
            "duration_time": "0.023220",
            "size": "2048",
380
            "pos": "792229",
381 382 383 384 385 386 387 388 389 390 391 392
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "audio",
            "key_frame": 1,
            "pkt_pts": 5120,
            "pkt_pts_time": "0.116100",
            "pkt_dts": 5120,
            "pkt_dts_time": "0.116100",
            "pkt_duration": 1024,
            "pkt_duration_time": "0.023220",
393
            "pkt_pos": "792229",
394
            "pkt_size": "2048",
395 396
            "sample_fmt": "s16",
            "nb_samples": 1024,
397
            "channels": 1
398 399 400 401 402
        },
        {
            "type": "packet",
            "codec_type": "video",
            "stream_index": 1,
403
            "pts": 6144,
404
            "pts_time": "0.120000",
405
            "dts": 6144,
406
            "dts_time": "0.120000",
407
            "duration": 2048,
408 409
            "duration_time": "0.040000",
            "size": "230400",
410
            "pos": "794307",
411 412 413 414 415 416
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "video",
            "key_frame": 1,
417
            "pkt_pts": 6144,
418
            "pkt_pts_time": "0.120000",
419
            "pkt_dts": 6144,
420
            "pkt_dts_time": "0.120000",
421
            "pkt_duration": 2048,
422
            "pkt_duration_time": "0.040000",
423
            "pkt_pos": "794307",
424 425 426 427 428 429 430 431 432
            "width": 320,
            "height": 240,
            "pix_fmt": "rgb24",
            "sample_aspect_ratio": "1:1",
            "pict_type": "I",
            "coded_picture_number": 0,
            "display_picture_number": 0,
            "interlaced_frame": 0,
            "top_field_first": 0,
433
            "repeat_pict": 0
434 435 436 437 438
        },
        {
            "type": "packet",
            "codec_type": "video",
            "stream_index": 2,
439
            "pts": 6144,
440
            "pts_time": "0.120000",
441
            "dts": 6144,
442
            "dts_time": "0.120000",
443
            "duration": 2048,
444 445
            "duration_time": "0.040000",
            "size": "30000",
446
            "pos": "1024731",
447 448 449 450 451 452
            "flags": "K"
        },
        {
            "type": "frame",
            "media_type": "video",
            "key_frame": 1,
453
            "pkt_pts": 6144,
454
            "pkt_pts_time": "0.120000",
455
            "pkt_dts": 6144,
456
            "pkt_dts_time": "0.120000",
457
            "pkt_duration": 2048,
458
            "pkt_duration_time": "0.040000",
459
            "pkt_pos": "1024731",
460 461 462 463 464 465 466 467 468
            "width": 100,
            "height": 100,
            "pix_fmt": "rgb24",
            "sample_aspect_ratio": "1:1",
            "pict_type": "I",
            "coded_picture_number": 0,
            "display_picture_number": 0,
            "interlaced_frame": 0,
            "top_field_first": 0,
469
            "repeat_pict": 0
470 471 472 473 474 475 476 477
        }
    ],
    "streams": [
        {
            "index": 0,
            "codec_name": "pcm_s16le",
            "codec_type": "audio",
            "codec_time_base": "1/44100",
478 479
            "codec_tag_string": "PSD[16]",
            "codec_tag": "0x10445350",
480 481 482 483 484 485 486 487 488 489 490
            "sample_fmt": "s16",
            "sample_rate": "44100",
            "channels": 1,
            "bits_per_sample": 16,
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/44100",
            "start_pts": 0,
            "start_time": "0.000000",
            "bit_rate": "705600",
            "nb_read_frames": "6",
491 492 493 494 495 496 497 498 499 500 501 502 503
            "nb_read_packets": "6",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
504 505 506
            },
            "tags": {
                "E": "mc²"
507
            }
508 509 510 511 512
        },
        {
            "index": 1,
            "codec_name": "rawvideo",
            "codec_type": "video",
513
            "codec_time_base": "1/51200",
514 515 516 517 518 519 520 521 522 523
            "codec_tag_string": "RGB[24]",
            "codec_tag": "0x18424752",
            "width": 320,
            "height": 240,
            "has_b_frames": 0,
            "sample_aspect_ratio": "1:1",
            "display_aspect_ratio": "4:3",
            "pix_fmt": "rgb24",
            "level": -99,
            "r_frame_rate": "25/1",
524 525
            "avg_frame_rate": "25/1",
            "time_base": "1/51200",
526 527 528
            "start_pts": 0,
            "start_time": "0.000000",
            "nb_read_frames": "4",
529 530 531 532 533 534 535 536 537 538 539 540 541
            "nb_read_packets": "4",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
542 543 544 545
            },
            "tags": {
                "title": "foobar",
                "duration_ts": "field-and-tags-conflict-attempt"
546
            }
547 548 549 550 551
        },
        {
            "index": 2,
            "codec_name": "rawvideo",
            "codec_type": "video",
552
            "codec_time_base": "1/51200",
553 554 555 556 557 558 559 560 561 562
            "codec_tag_string": "RGB[24]",
            "codec_tag": "0x18424752",
            "width": 100,
            "height": 100,
            "has_b_frames": 0,
            "sample_aspect_ratio": "1:1",
            "display_aspect_ratio": "1:1",
            "pix_fmt": "rgb24",
            "level": -99,
            "r_frame_rate": "25/1",
563 564
            "avg_frame_rate": "25/1",
            "time_base": "1/51200",
565 566 567
            "start_pts": 0,
            "start_time": "0.000000",
            "nb_read_frames": "4",
568 569 570 571 572 573 574 575 576 577 578 579 580 581
            "nb_read_packets": "4",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            }
582 583 584 585 586 587 588
        }
    ],
    "format": {
        "filename": "tests/data/ffprobe-test.nut",
        "nb_streams": 3,
        "format_name": "nut",
        "start_time": "0.000000",
589
        "duration": "0.120000",
590
        "size": "1054812",
591
        "bit_rate": "70320800",
592 593
        "tags": {
            "title": "ffprobe test file",
594
            "comment": "'A comment with CSV, XML & JSON special chars': <tag value=\"x\">",
595 596 597 598
            "comment2": "I ♥ Üñîçød€"
        }
    }
}