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.

679 lines
20KB

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