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