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