lavc: do not init frame with guessed layout.
[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": "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             "pkt_duration": 1024,
26             "pkt_duration_time": "0.023220",
27             "pkt_pos": "572",
28             "pkt_size": "2048",
29             "sample_fmt": "s16",
30             "nb_samples": 1024,
31             "channels": 1
32         },
33         {
34             "type": "packet",
35             "codec_type": "video",
36             "stream_index": 1,
37             "pts": 0,
38             "pts_time": "0.000000",
39             "dts": 0,
40             "dts_time": "0.000000",
41             "duration": 2048,
42             "duration_time": "0.040000",
43             "size": "230400",
44             "pos": "2647",
45             "flags": "K"
46         },
47         {
48             "type": "frame",
49             "media_type": "video",
50             "key_frame": 1,
51             "pkt_pts": 0,
52             "pkt_pts_time": "0.000000",
53             "pkt_dts": 0,
54             "pkt_dts_time": "0.000000",
55             "pkt_duration": 2048,
56             "pkt_duration_time": "0.040000",
57             "pkt_pos": "2647",
58             "width": 320,
59             "height": 240,
60             "pix_fmt": "rgb24",
61             "sample_aspect_ratio": "1:1",
62             "pict_type": "I",
63             "coded_picture_number": 0,
64             "display_picture_number": 0,
65             "interlaced_frame": 0,
66             "top_field_first": 0,
67             "repeat_pict": 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": 2048,
78             "duration_time": "0.040000",
79             "size": "30000",
80             "pos": "233068",
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": 2048,
92             "pkt_duration_time": "0.040000",
93             "pkt_pos": "233068",
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         },
105         {
106             "type": "packet",
107             "codec_type": "audio",
108             "stream_index": 0,
109             "pts": 1024,
110             "pts_time": "0.023220",
111             "dts": 1024,
112             "dts_time": "0.023220",
113             "duration": 1024,
114             "duration_time": "0.023220",
115             "size": "2048",
116             "pos": "263073",
117             "flags": "K"
118         },
119         {
120             "type": "frame",
121             "media_type": "audio",
122             "key_frame": 1,
123             "pkt_pts": 1024,
124             "pkt_pts_time": "0.023220",
125             "pkt_dts": 1024,
126             "pkt_dts_time": "0.023220",
127             "pkt_duration": 1024,
128             "pkt_duration_time": "0.023220",
129             "pkt_pos": "263073",
130             "pkt_size": "2048",
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": 2048,
140             "pts_time": "0.040000",
141             "dts": 2048,
142             "dts_time": "0.040000",
143             "duration": 2048,
144             "duration_time": "0.040000",
145             "size": "230400",
146             "pos": "265151",
147             "flags": "K"
148         },
149         {
150             "type": "frame",
151             "media_type": "video",
152             "key_frame": 1,
153             "pkt_pts": 2048,
154             "pkt_pts_time": "0.040000",
155             "pkt_dts": 2048,
156             "pkt_dts_time": "0.040000",
157             "pkt_duration": 2048,
158             "pkt_duration_time": "0.040000",
159             "pkt_pos": "265151",
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         },
171         {
172             "type": "packet",
173             "codec_type": "video",
174             "stream_index": 2,
175             "pts": 2048,
176             "pts_time": "0.040000",
177             "dts": 2048,
178             "dts_time": "0.040000",
179             "duration": 2048,
180             "duration_time": "0.040000",
181             "size": "30000",
182             "pos": "495575",
183             "flags": "K"
184         },
185         {
186             "type": "frame",
187             "media_type": "video",
188             "key_frame": 1,
189             "pkt_pts": 2048,
190             "pkt_pts_time": "0.040000",
191             "pkt_dts": 2048,
192             "pkt_dts_time": "0.040000",
193             "pkt_duration": 2048,
194             "pkt_duration_time": "0.040000",
195             "pkt_pos": "495575",
196             "width": 100,
197             "height": 100,
198             "pix_fmt": "rgb24",
199             "sample_aspect_ratio": "1:1",
200             "pict_type": "I",
201             "coded_picture_number": 0,
202             "display_picture_number": 0,
203             "interlaced_frame": 0,
204             "top_field_first": 0,
205             "repeat_pict": 0
206         },
207         {
208             "type": "packet",
209             "codec_type": "audio",
210             "stream_index": 0,
211             "pts": 2048,
212             "pts_time": "0.046440",
213             "dts": 2048,
214             "dts_time": "0.046440",
215             "duration": 1024,
216             "duration_time": "0.023220",
217             "size": "2048",
218             "pos": "525580",
219             "flags": "K"
220         },
221         {
222             "type": "frame",
223             "media_type": "audio",
224             "key_frame": 1,
225             "pkt_pts": 2048,
226             "pkt_pts_time": "0.046440",
227             "pkt_dts": 2048,
228             "pkt_dts_time": "0.046440",
229             "pkt_duration": 1024,
230             "pkt_duration_time": "0.023220",
231             "pkt_pos": "525580",
232             "pkt_size": "2048",
233             "sample_fmt": "s16",
234             "nb_samples": 1024,
235             "channels": 1
236         },
237         {
238             "type": "packet",
239             "codec_type": "audio",
240             "stream_index": 0,
241             "pts": 3072,
242             "pts_time": "0.069660",
243             "dts": 3072,
244             "dts_time": "0.069660",
245             "duration": 1024,
246             "duration_time": "0.023220",
247             "size": "2048",
248             "pos": "527651",
249             "flags": "K"
250         },
251         {
252             "type": "frame",
253             "media_type": "audio",
254             "key_frame": 1,
255             "pkt_pts": 3072,
256             "pkt_pts_time": "0.069660",
257             "pkt_dts": 3072,
258             "pkt_dts_time": "0.069660",
259             "pkt_duration": 1024,
260             "pkt_duration_time": "0.023220",
261             "pkt_pos": "527651",
262             "pkt_size": "2048",
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": 4096,
272             "pts_time": "0.080000",
273             "dts": 4096,
274             "dts_time": "0.080000",
275             "duration": 2048,
276             "duration_time": "0.040000",
277             "size": "230400",
278             "pos": "529729",
279             "flags": "K"
280         },
281         {
282             "type": "frame",
283             "media_type": "video",
284             "key_frame": 1,
285             "pkt_pts": 4096,
286             "pkt_pts_time": "0.080000",
287             "pkt_dts": 4096,
288             "pkt_dts_time": "0.080000",
289             "pkt_duration": 2048,
290             "pkt_duration_time": "0.040000",
291             "pkt_pos": "529729",
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         },
303         {
304             "type": "packet",
305             "codec_type": "video",
306             "stream_index": 2,
307             "pts": 4096,
308             "pts_time": "0.080000",
309             "dts": 4096,
310             "dts_time": "0.080000",
311             "duration": 2048,
312             "duration_time": "0.040000",
313             "size": "30000",
314             "pos": "760153",
315             "flags": "K"
316         },
317         {
318             "type": "frame",
319             "media_type": "video",
320             "key_frame": 1,
321             "pkt_pts": 4096,
322             "pkt_pts_time": "0.080000",
323             "pkt_dts": 4096,
324             "pkt_dts_time": "0.080000",
325             "pkt_duration": 2048,
326             "pkt_duration_time": "0.040000",
327             "pkt_pos": "760153",
328             "width": 100,
329             "height": 100,
330             "pix_fmt": "rgb24",
331             "sample_aspect_ratio": "1:1",
332             "pict_type": "I",
333             "coded_picture_number": 0,
334             "display_picture_number": 0,
335             "interlaced_frame": 0,
336             "top_field_first": 0,
337             "repeat_pict": 0
338         },
339         {
340             "type": "packet",
341             "codec_type": "audio",
342             "stream_index": 0,
343             "pts": 4096,
344             "pts_time": "0.092880",
345             "dts": 4096,
346             "dts_time": "0.092880",
347             "duration": 1024,
348             "duration_time": "0.023220",
349             "size": "2048",
350             "pos": "790158",
351             "flags": "K"
352         },
353         {
354             "type": "frame",
355             "media_type": "audio",
356             "key_frame": 1,
357             "pkt_pts": 4096,
358             "pkt_pts_time": "0.092880",
359             "pkt_dts": 4096,
360             "pkt_dts_time": "0.092880",
361             "pkt_duration": 1024,
362             "pkt_duration_time": "0.023220",
363             "pkt_pos": "790158",
364             "pkt_size": "2048",
365             "sample_fmt": "s16",
366             "nb_samples": 1024,
367             "channels": 1
368         },
369         {
370             "type": "packet",
371             "codec_type": "audio",
372             "stream_index": 0,
373             "pts": 5120,
374             "pts_time": "0.116100",
375             "dts": 5120,
376             "dts_time": "0.116100",
377             "duration": 1024,
378             "duration_time": "0.023220",
379             "size": "2048",
380             "pos": "792229",
381             "flags": "K"
382         },
383         {
384             "type": "frame",
385             "media_type": "audio",
386             "key_frame": 1,
387             "pkt_pts": 5120,
388             "pkt_pts_time": "0.116100",
389             "pkt_dts": 5120,
390             "pkt_dts_time": "0.116100",
391             "pkt_duration": 1024,
392             "pkt_duration_time": "0.023220",
393             "pkt_pos": "792229",
394             "pkt_size": "2048",
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": 6144,
404             "pts_time": "0.120000",
405             "dts": 6144,
406             "dts_time": "0.120000",
407             "duration": 2048,
408             "duration_time": "0.040000",
409             "size": "230400",
410             "pos": "794307",
411             "flags": "K"
412         },
413         {
414             "type": "frame",
415             "media_type": "video",
416             "key_frame": 1,
417             "pkt_pts": 6144,
418             "pkt_pts_time": "0.120000",
419             "pkt_dts": 6144,
420             "pkt_dts_time": "0.120000",
421             "pkt_duration": 2048,
422             "pkt_duration_time": "0.040000",
423             "pkt_pos": "794307",
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         },
435         {
436             "type": "packet",
437             "codec_type": "video",
438             "stream_index": 2,
439             "pts": 6144,
440             "pts_time": "0.120000",
441             "dts": 6144,
442             "dts_time": "0.120000",
443             "duration": 2048,
444             "duration_time": "0.040000",
445             "size": "30000",
446             "pos": "1024731",
447             "flags": "K"
448         },
449         {
450             "type": "frame",
451             "media_type": "video",
452             "key_frame": 1,
453             "pkt_pts": 6144,
454             "pkt_pts_time": "0.120000",
455             "pkt_dts": 6144,
456             "pkt_dts_time": "0.120000",
457             "pkt_duration": 2048,
458             "pkt_duration_time": "0.040000",
459             "pkt_pos": "1024731",
460             "width": 100,
461             "height": 100,
462             "pix_fmt": "rgb24",
463             "sample_aspect_ratio": "1:1",
464             "pict_type": "I",
465             "coded_picture_number": 0,
466             "display_picture_number": 0,
467             "interlaced_frame": 0,
468             "top_field_first": 0,
469             "repeat_pict": 0
470         }
471     ],
472     "streams": [
473         {
474             "index": 0,
475             "codec_name": "pcm_s16le",
476             "codec_type": "audio",
477             "codec_time_base": "1/44100",
478             "codec_tag_string": "PSD[16]",
479             "codec_tag": "0x10445350",
480             "sample_fmt": "s16",
481             "sample_rate": "44100",
482             "channels": 1,
483             "bits_per_sample": 16,
484             "r_frame_rate": "0/0",
485             "avg_frame_rate": "0/0",
486             "time_base": "1/44100",
487             "start_pts": 0,
488             "start_time": "0.000000",
489             "duration_ts": 527406,
490             "duration": "11.959320",
491             "bit_rate": "705600",
492             "nb_read_frames": "6",
493             "nb_read_packets": "6",
494             "disposition": {
495                 "default": 0,
496                 "dub": 0,
497                 "original": 0,
498                 "comment": 0,
499                 "lyrics": 0,
500                 "karaoke": 0,
501                 "forced": 0,
502                 "hearing_impaired": 0,
503                 "visual_impaired": 0,
504                 "clean_effects": 0,
505                 "attached_pic": 0
506             },
507             "tags": {
508                 "E": "mc²"
509             }
510         },
511         {
512             "index": 1,
513             "codec_name": "rawvideo",
514             "codec_type": "video",
515             "codec_time_base": "1/51200",
516             "codec_tag_string": "RGB[24]",
517             "codec_tag": "0x18424752",
518             "width": 320,
519             "height": 240,
520             "has_b_frames": 0,
521             "sample_aspect_ratio": "1:1",
522             "display_aspect_ratio": "4:3",
523             "pix_fmt": "rgb24",
524             "level": -99,
525             "r_frame_rate": "25/1",
526             "avg_frame_rate": "25/1",
527             "time_base": "1/51200",
528             "start_pts": 0,
529             "start_time": "0.000000",
530             "duration_ts": 612317,
531             "duration": "11.959316",
532             "nb_read_frames": "4",
533             "nb_read_packets": "4",
534             "disposition": {
535                 "default": 0,
536                 "dub": 0,
537                 "original": 0,
538                 "comment": 0,
539                 "lyrics": 0,
540                 "karaoke": 0,
541                 "forced": 0,
542                 "hearing_impaired": 0,
543                 "visual_impaired": 0,
544                 "clean_effects": 0,
545                 "attached_pic": 0
546             },
547             "tags": {
548                 "title": "foobar",
549                 "duration_ts": "field-and-tags-conflict-attempt"
550             }
551         },
552         {
553             "index": 2,
554             "codec_name": "rawvideo",
555             "codec_type": "video",
556             "codec_time_base": "1/51200",
557             "codec_tag_string": "RGB[24]",
558             "codec_tag": "0x18424752",
559             "width": 100,
560             "height": 100,
561             "has_b_frames": 0,
562             "sample_aspect_ratio": "1:1",
563             "display_aspect_ratio": "1:1",
564             "pix_fmt": "rgb24",
565             "level": -99,
566             "r_frame_rate": "25/1",
567             "avg_frame_rate": "25/1",
568             "time_base": "1/51200",
569             "start_pts": 0,
570             "start_time": "0.000000",
571             "duration_ts": 612317,
572             "duration": "11.959316",
573             "nb_read_frames": "4",
574             "nb_read_packets": "4",
575             "disposition": {
576                 "default": 0,
577                 "dub": 0,
578                 "original": 0,
579                 "comment": 0,
580                 "lyrics": 0,
581                 "karaoke": 0,
582                 "forced": 0,
583                 "hearing_impaired": 0,
584                 "visual_impaired": 0,
585                 "clean_effects": 0,
586                 "attached_pic": 0
587             }
588         }
589     ],
590     "format": {
591         "filename": "tests/data/ffprobe-test.nut",
592         "nb_streams": 3,
593         "format_name": "nut",
594         "start_time": "0.000000",
595         "duration": "11.959320",
596         "size": "1054812",
597         "bit_rate": "705599",
598         "tags": {
599             "title": "ffprobe test file",
600             "comment": "'A comment with CSV, XML & JSON special chars': <tag value=\"x\">",
601             "comment2": "I ♥ Üñîçød€"
602         }
603     }
604 }