You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

611 lines
18KB

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