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.

613 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. },
  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. "reference": 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. "reference": 0
  106. },
  107. {
  108. "type": "packet",
  109. "codec_type": "audio",
  110. "stream_index": 0,
  111. "pts": 1024,
  112. "pts_time": "0.023220",
  113. "dts": 1024,
  114. "dts_time": "0.023220",
  115. "duration": 1024,
  116. "duration_time": "0.023220",
  117. "size": "2048",
  118. "pos": "263073",
  119. "flags": "K"
  120. },
  121. {
  122. "type": "frame",
  123. "media_type": "audio",
  124. "key_frame": 1,
  125. "pkt_pts": 1024,
  126. "pkt_pts_time": "0.023220",
  127. "pkt_dts": 1024,
  128. "pkt_dts_time": "0.023220",
  129. "pkt_duration": 1024,
  130. "pkt_duration_time": "0.023220",
  131. "pkt_pos": "263073",
  132. "pkt_size": "2048",
  133. "sample_fmt": "s16",
  134. "nb_samples": 1024,
  135. "channels": 1
  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. "reference": 0
  173. },
  174. {
  175. "type": "packet",
  176. "codec_type": "video",
  177. "stream_index": 2,
  178. "pts": 2048,
  179. "pts_time": "0.040000",
  180. "dts": 2048,
  181. "dts_time": "0.040000",
  182. "duration": 2048,
  183. "duration_time": "0.040000",
  184. "size": "30000",
  185. "pos": "495575",
  186. "flags": "K"
  187. },
  188. {
  189. "type": "frame",
  190. "media_type": "video",
  191. "key_frame": 1,
  192. "pkt_pts": 2048,
  193. "pkt_pts_time": "0.040000",
  194. "pkt_dts": 2048,
  195. "pkt_dts_time": "0.040000",
  196. "pkt_duration": 2048,
  197. "pkt_duration_time": "0.040000",
  198. "pkt_pos": "495575",
  199. "width": 100,
  200. "height": 100,
  201. "pix_fmt": "rgb24",
  202. "sample_aspect_ratio": "1:1",
  203. "pict_type": "I",
  204. "coded_picture_number": 0,
  205. "display_picture_number": 0,
  206. "interlaced_frame": 0,
  207. "top_field_first": 0,
  208. "repeat_pict": 0,
  209. "reference": 0
  210. },
  211. {
  212. "type": "packet",
  213. "codec_type": "audio",
  214. "stream_index": 0,
  215. "pts": 2048,
  216. "pts_time": "0.046440",
  217. "dts": 2048,
  218. "dts_time": "0.046440",
  219. "duration": 1024,
  220. "duration_time": "0.023220",
  221. "size": "2048",
  222. "pos": "525580",
  223. "flags": "K"
  224. },
  225. {
  226. "type": "frame",
  227. "media_type": "audio",
  228. "key_frame": 1,
  229. "pkt_pts": 2048,
  230. "pkt_pts_time": "0.046440",
  231. "pkt_dts": 2048,
  232. "pkt_dts_time": "0.046440",
  233. "pkt_duration": 1024,
  234. "pkt_duration_time": "0.023220",
  235. "pkt_pos": "525580",
  236. "pkt_size": "2048",
  237. "sample_fmt": "s16",
  238. "nb_samples": 1024,
  239. "channels": 1
  240. },
  241. {
  242. "type": "packet",
  243. "codec_type": "audio",
  244. "stream_index": 0,
  245. "pts": 3072,
  246. "pts_time": "0.069660",
  247. "dts": 3072,
  248. "dts_time": "0.069660",
  249. "duration": 1024,
  250. "duration_time": "0.023220",
  251. "size": "2048",
  252. "pos": "527651",
  253. "flags": "K"
  254. },
  255. {
  256. "type": "frame",
  257. "media_type": "audio",
  258. "key_frame": 1,
  259. "pkt_pts": 3072,
  260. "pkt_pts_time": "0.069660",
  261. "pkt_dts": 3072,
  262. "pkt_dts_time": "0.069660",
  263. "pkt_duration": 1024,
  264. "pkt_duration_time": "0.023220",
  265. "pkt_pos": "527651",
  266. "pkt_size": "2048",
  267. "sample_fmt": "s16",
  268. "nb_samples": 1024,
  269. "channels": 1
  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. "reference": 0
  307. },
  308. {
  309. "type": "packet",
  310. "codec_type": "video",
  311. "stream_index": 2,
  312. "pts": 4096,
  313. "pts_time": "0.080000",
  314. "dts": 4096,
  315. "dts_time": "0.080000",
  316. "duration": 2048,
  317. "duration_time": "0.040000",
  318. "size": "30000",
  319. "pos": "760153",
  320. "flags": "K"
  321. },
  322. {
  323. "type": "frame",
  324. "media_type": "video",
  325. "key_frame": 1,
  326. "pkt_pts": 4096,
  327. "pkt_pts_time": "0.080000",
  328. "pkt_dts": 4096,
  329. "pkt_dts_time": "0.080000",
  330. "pkt_duration": 2048,
  331. "pkt_duration_time": "0.040000",
  332. "pkt_pos": "760153",
  333. "width": 100,
  334. "height": 100,
  335. "pix_fmt": "rgb24",
  336. "sample_aspect_ratio": "1:1",
  337. "pict_type": "I",
  338. "coded_picture_number": 0,
  339. "display_picture_number": 0,
  340. "interlaced_frame": 0,
  341. "top_field_first": 0,
  342. "repeat_pict": 0,
  343. "reference": 0
  344. },
  345. {
  346. "type": "packet",
  347. "codec_type": "audio",
  348. "stream_index": 0,
  349. "pts": 4096,
  350. "pts_time": "0.092880",
  351. "dts": 4096,
  352. "dts_time": "0.092880",
  353. "duration": 1024,
  354. "duration_time": "0.023220",
  355. "size": "2048",
  356. "pos": "790158",
  357. "flags": "K"
  358. },
  359. {
  360. "type": "frame",
  361. "media_type": "audio",
  362. "key_frame": 1,
  363. "pkt_pts": 4096,
  364. "pkt_pts_time": "0.092880",
  365. "pkt_dts": 4096,
  366. "pkt_dts_time": "0.092880",
  367. "pkt_duration": 1024,
  368. "pkt_duration_time": "0.023220",
  369. "pkt_pos": "790158",
  370. "pkt_size": "2048",
  371. "sample_fmt": "s16",
  372. "nb_samples": 1024,
  373. "channels": 1
  374. },
  375. {
  376. "type": "packet",
  377. "codec_type": "audio",
  378. "stream_index": 0,
  379. "pts": 5120,
  380. "pts_time": "0.116100",
  381. "dts": 5120,
  382. "dts_time": "0.116100",
  383. "duration": 1024,
  384. "duration_time": "0.023220",
  385. "size": "2048",
  386. "pos": "792229",
  387. "flags": "K"
  388. },
  389. {
  390. "type": "frame",
  391. "media_type": "audio",
  392. "key_frame": 1,
  393. "pkt_pts": 5120,
  394. "pkt_pts_time": "0.116100",
  395. "pkt_dts": 5120,
  396. "pkt_dts_time": "0.116100",
  397. "pkt_duration": 1024,
  398. "pkt_duration_time": "0.023220",
  399. "pkt_pos": "792229",
  400. "pkt_size": "2048",
  401. "sample_fmt": "s16",
  402. "nb_samples": 1024,
  403. "channels": 1
  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. "reference": 0
  441. },
  442. {
  443. "type": "packet",
  444. "codec_type": "video",
  445. "stream_index": 2,
  446. "pts": 6144,
  447. "pts_time": "0.120000",
  448. "dts": 6144,
  449. "dts_time": "0.120000",
  450. "duration": 2048,
  451. "duration_time": "0.040000",
  452. "size": "30000",
  453. "pos": "1024731",
  454. "flags": "K"
  455. },
  456. {
  457. "type": "frame",
  458. "media_type": "video",
  459. "key_frame": 1,
  460. "pkt_pts": 6144,
  461. "pkt_pts_time": "0.120000",
  462. "pkt_dts": 6144,
  463. "pkt_dts_time": "0.120000",
  464. "pkt_duration": 2048,
  465. "pkt_duration_time": "0.040000",
  466. "pkt_pos": "1024731",
  467. "width": 100,
  468. "height": 100,
  469. "pix_fmt": "rgb24",
  470. "sample_aspect_ratio": "1:1",
  471. "pict_type": "I",
  472. "coded_picture_number": 0,
  473. "display_picture_number": 0,
  474. "interlaced_frame": 0,
  475. "top_field_first": 0,
  476. "repeat_pict": 0,
  477. "reference": 0
  478. }
  479. ],
  480. "streams": [
  481. {
  482. "index": 0,
  483. "codec_name": "pcm_s16le",
  484. "codec_type": "audio",
  485. "codec_time_base": "1/44100",
  486. "codec_tag_string": "PSD[16]",
  487. "codec_tag": "0x10445350",
  488. "sample_fmt": "s16",
  489. "sample_rate": "44100",
  490. "channels": 1,
  491. "bits_per_sample": 16,
  492. "r_frame_rate": "0/0",
  493. "avg_frame_rate": "0/0",
  494. "time_base": "1/44100",
  495. "start_pts": 0,
  496. "start_time": "0.000000",
  497. "duration_ts": 527406,
  498. "duration": "11.959320",
  499. "bit_rate": "705600",
  500. "nb_read_frames": "6",
  501. "nb_read_packets": "6",
  502. "disposition": {
  503. "default": 0,
  504. "dub": 0,
  505. "original": 0,
  506. "comment": 0,
  507. "lyrics": 0,
  508. "karaoke": 0,
  509. "forced": 0,
  510. "hearing_impaired": 0,
  511. "visual_impaired": 0,
  512. "clean_effects": 0,
  513. "attached_pic": 0
  514. },
  515. "tags": {
  516. "E": "mc²"
  517. }
  518. },
  519. {
  520. "index": 1,
  521. "codec_name": "rawvideo",
  522. "codec_type": "video",
  523. "codec_time_base": "1/51200",
  524. "codec_tag_string": "RGB[24]",
  525. "codec_tag": "0x18424752",
  526. "width": 320,
  527. "height": 240,
  528. "has_b_frames": 0,
  529. "sample_aspect_ratio": "1:1",
  530. "display_aspect_ratio": "4:3",
  531. "pix_fmt": "rgb24",
  532. "level": -99,
  533. "r_frame_rate": "25/1",
  534. "avg_frame_rate": "25/1",
  535. "time_base": "1/51200",
  536. "start_pts": 0,
  537. "start_time": "0.000000",
  538. "duration_ts": 612317,
  539. "duration": "11.959316",
  540. "nb_read_frames": "4",
  541. "nb_read_packets": "4",
  542. "disposition": {
  543. "default": 0,
  544. "dub": 0,
  545. "original": 0,
  546. "comment": 0,
  547. "lyrics": 0,
  548. "karaoke": 0,
  549. "forced": 0,
  550. "hearing_impaired": 0,
  551. "visual_impaired": 0,
  552. "clean_effects": 0,
  553. "attached_pic": 0
  554. },
  555. "tags": {
  556. "title": "foobar",
  557. "duration_ts": "field-and-tags-conflict-attempt"
  558. }
  559. },
  560. {
  561. "index": 2,
  562. "codec_name": "rawvideo",
  563. "codec_type": "video",
  564. "codec_time_base": "1/51200",
  565. "codec_tag_string": "RGB[24]",
  566. "codec_tag": "0x18424752",
  567. "width": 100,
  568. "height": 100,
  569. "has_b_frames": 0,
  570. "sample_aspect_ratio": "1:1",
  571. "display_aspect_ratio": "1:1",
  572. "pix_fmt": "rgb24",
  573. "level": -99,
  574. "r_frame_rate": "25/1",
  575. "avg_frame_rate": "25/1",
  576. "time_base": "1/51200",
  577. "start_pts": 0,
  578. "start_time": "0.000000",
  579. "duration_ts": 612317,
  580. "duration": "11.959316",
  581. "nb_read_frames": "4",
  582. "nb_read_packets": "4",
  583. "disposition": {
  584. "default": 0,
  585. "dub": 0,
  586. "original": 0,
  587. "comment": 0,
  588. "lyrics": 0,
  589. "karaoke": 0,
  590. "forced": 0,
  591. "hearing_impaired": 0,
  592. "visual_impaired": 0,
  593. "clean_effects": 0,
  594. "attached_pic": 0
  595. }
  596. }
  597. ],
  598. "format": {
  599. "filename": "tests/data/ffprobe-test.nut",
  600. "nb_streams": 3,
  601. "format_name": "nut",
  602. "start_time": "0.000000",
  603. "duration": "11.959320",
  604. "size": "1054812",
  605. "bit_rate": "705599",
  606. "tags": {
  607. "title": "ffprobe test file",
  608. "comment": "'A comment with CSV, XML & JSON special chars': <tag value=\"x\">",
  609. "comment2": "I ♥ Üñîçød€"
  610. }
  611. }
  612. }