25f97bdc831670921f16383e8a88126320b5e002
[ffmpeg.git] / tests / ref / fate / ffprobe_json
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": "647",
15             "flags": "K_"
16         },
17         {
18             "type": "frame",
19             "media_type": "audio",
20             "stream_index": 0,
21             "key_frame": 1,
22             "pkt_pts": 0,
23             "pkt_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": "647",
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": "2722",
48             "flags": "K_"
49         },
50         {
51             "type": "frame",
52             "media_type": "video",
53             "stream_index": 1,
54             "key_frame": 1,
55             "pkt_pts": 0,
56             "pkt_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": "2722",
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": "233143",
88             "flags": "K_"
89         },
90         {
91             "type": "frame",
92             "media_type": "video",
93             "stream_index": 2,
94             "key_frame": 1,
95             "pkt_pts": 0,
96             "pkt_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": "233143",
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": "263148",
128             "flags": "K_"
129         },
130         {
131             "type": "frame",
132             "media_type": "audio",
133             "stream_index": 0,
134             "key_frame": 1,
135             "pkt_pts": 1024,
136             "pkt_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": "263148",
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": "265226",
161             "flags": "K_"
162         },
163         {
164             "type": "frame",
165             "media_type": "video",
166             "stream_index": 1,
167             "key_frame": 1,
168             "pkt_pts": 2048,
169             "pkt_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": "265226",
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": "495650",
201             "flags": "K_"
202         },
203         {
204             "type": "frame",
205             "media_type": "video",
206             "stream_index": 2,
207             "key_frame": 1,
208             "pkt_pts": 2048,
209             "pkt_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": "495650",
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": "525655",
241             "flags": "K_"
242         },
243         {
244             "type": "frame",
245             "media_type": "audio",
246             "stream_index": 0,
247             "key_frame": 1,
248             "pkt_pts": 2048,
249             "pkt_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": "525655",
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": "527726",
274             "flags": "K_"
275         },
276         {
277             "type": "frame",
278             "media_type": "audio",
279             "stream_index": 0,
280             "key_frame": 1,
281             "pkt_pts": 3072,
282             "pkt_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": "527726",
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": "529804",
307             "flags": "K_"
308         },
309         {
310             "type": "frame",
311             "media_type": "video",
312             "stream_index": 1,
313             "key_frame": 1,
314             "pkt_pts": 4096,
315             "pkt_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": "529804",
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": "760228",
347             "flags": "K_"
348         },
349         {
350             "type": "frame",
351             "media_type": "video",
352             "stream_index": 2,
353             "key_frame": 1,
354             "pkt_pts": 4096,
355             "pkt_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": "760228",
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": "790233",
387             "flags": "K_"
388         },
389         {
390             "type": "frame",
391             "media_type": "audio",
392             "stream_index": 0,
393             "key_frame": 1,
394             "pkt_pts": 4096,
395             "pkt_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": "790233",
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": 1024,
417             "duration_time": "0.023220",
418             "size": "2048",
419             "pos": "792304",
420             "flags": "K_"
421         },
422         {
423             "type": "frame",
424             "media_type": "audio",
425             "stream_index": 0,
426             "key_frame": 1,
427             "pkt_pts": 5120,
428             "pkt_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": 1024,
434             "pkt_duration_time": "0.023220",
435             "pkt_pos": "792304",
436             "pkt_size": "2048",
437             "sample_fmt": "s16",
438             "nb_samples": 1024,
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": "794382",
453             "flags": "K_"
454         },
455         {
456             "type": "frame",
457             "media_type": "video",
458             "stream_index": 1,
459             "key_frame": 1,
460             "pkt_pts": 6144,
461             "pkt_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": "794382",
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": "1024806",
493             "flags": "K_"
494         },
495         {
496             "type": "frame",
497             "media_type": "video",
498             "stream_index": 2,
499             "key_frame": 1,
500             "pkt_pts": 6144,
501             "pkt_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": "1024806",
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_time_base": "1/44100",
528             "codec_tag_string": "PSD[16]",
529             "codec_tag": "0x10445350",
530             "sample_fmt": "s16",
531             "sample_rate": "44100",
532             "channels": 1,
533             "bits_per_sample": 16,
534             "r_frame_rate": "0/0",
535             "avg_frame_rate": "0/0",
536             "time_base": "1/44100",
537             "start_pts": 0,
538             "start_time": "0.000000",
539             "bit_rate": "705600",
540             "nb_read_frames": "6",
541             "nb_read_packets": "6",
542             "disposition": {
543                 "default": 0,
544                 "dub": 0,
545                 "original": 0,
546                 "comment": 0,
547                 "lyrics": 0,
548                 "karaoke": 0,
549                 "forced": 0,
550                 "hearing_impaired": 0,
551                 "visual_impaired": 0,
552                 "clean_effects": 0,
553                 "attached_pic": 0,
554                 "timed_thumbnails": 0
555             },
556             "tags": {
557                 "E": "mc²",
558                 "encoder": "Lavc pcm_s16le"
559             }
560         },
561         {
562             "index": 1,
563             "codec_name": "rawvideo",
564             "codec_type": "video",
565             "codec_time_base": "1/25",
566             "codec_tag_string": "RGB[24]",
567             "codec_tag": "0x18424752",
568             "width": 320,
569             "height": 240,
570             "coded_width": 320,
571             "coded_height": 240,
572             "has_b_frames": 0,
573             "sample_aspect_ratio": "1:1",
574             "display_aspect_ratio": "4:3",
575             "pix_fmt": "rgb24",
576             "level": -99,
577             "refs": 1,
578             "r_frame_rate": "25/1",
579             "avg_frame_rate": "25/1",
580             "time_base": "1/51200",
581             "start_pts": 0,
582             "start_time": "0.000000",
583             "nb_read_frames": "4",
584             "nb_read_packets": "4",
585             "disposition": {
586                 "default": 0,
587                 "dub": 0,
588                 "original": 0,
589                 "comment": 0,
590                 "lyrics": 0,
591                 "karaoke": 0,
592                 "forced": 0,
593                 "hearing_impaired": 0,
594                 "visual_impaired": 0,
595                 "clean_effects": 0,
596                 "attached_pic": 0,
597                 "timed_thumbnails": 0
598             },
599             "tags": {
600                 "title": "foobar",
601                 "duration_ts": "field-and-tags-conflict-attempt",
602                 "encoder": "Lavc rawvideo"
603             }
604         },
605         {
606             "index": 2,
607             "codec_name": "rawvideo",
608             "codec_type": "video",
609             "codec_time_base": "1/25",
610             "codec_tag_string": "RGB[24]",
611             "codec_tag": "0x18424752",
612             "width": 100,
613             "height": 100,
614             "coded_width": 100,
615             "coded_height": 100,
616             "has_b_frames": 0,
617             "sample_aspect_ratio": "1:1",
618             "display_aspect_ratio": "1:1",
619             "pix_fmt": "rgb24",
620             "level": -99,
621             "refs": 1,
622             "r_frame_rate": "25/1",
623             "avg_frame_rate": "25/1",
624             "time_base": "1/51200",
625             "start_pts": 0,
626             "start_time": "0.000000",
627             "nb_read_frames": "4",
628             "nb_read_packets": "4",
629             "disposition": {
630                 "default": 0,
631                 "dub": 0,
632                 "original": 0,
633                 "comment": 0,
634                 "lyrics": 0,
635                 "karaoke": 0,
636                 "forced": 0,
637                 "hearing_impaired": 0,
638                 "visual_impaired": 0,
639                 "clean_effects": 0,
640                 "attached_pic": 0,
641                 "timed_thumbnails": 0
642             },
643             "tags": {
644                 "encoder": "Lavc rawvideo"
645             }
646         }
647     ],
648     "format": {
649         "filename": "tests/data/ffprobe-test.nut",
650         "nb_streams": 3,
651         "nb_programs": 0,
652         "format_name": "nut",
653         "start_time": "0.000000",
654         "duration": "0.120000",
655         "size": "1054887",
656         "bit_rate": "70325800",
657         "probe_score": 100,
658         "tags": {
659             "title": "ffprobe test file",
660             "comment": "'A comment with CSV, XML & JSON special chars': <tag value=\"x\">",
661             "comment2": "I ♥ Üñîçød€"
662         }
663     }
664 }