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