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