ffprobe_json 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  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. "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": 2048,
  41. "duration_time": "0.040000",
  42. "size": "230400",
  43. "pos": "2647",
  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": 2048,
  55. "pkt_duration_time": "0.040000",
  56. "pkt_pos": "2647",
  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": 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. "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": "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. "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. "reference": 0
  171. },
  172. {
  173. "type": "packet",
  174. "codec_type": "video",
  175. "stream_index": 2,
  176. "pts": 2048,
  177. "pts_time": "0.040000",
  178. "dts": 2048,
  179. "dts_time": "0.040000",
  180. "duration": 2048,
  181. "duration_time": "0.040000",
  182. "size": "30000",
  183. "pos": "495575",
  184. "flags": "K"
  185. },
  186. {
  187. "type": "frame",
  188. "media_type": "video",
  189. "key_frame": 1,
  190. "pkt_pts": 2048,
  191. "pkt_pts_time": "0.040000",
  192. "pkt_dts": 2048,
  193. "pkt_dts_time": "0.040000",
  194. "pkt_duration": 2048,
  195. "pkt_duration_time": "0.040000",
  196. "pkt_pos": "495575",
  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": "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. "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": "527651",
  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": "527651",
  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. "reference": 0
  303. },
  304. {
  305. "type": "packet",
  306. "codec_type": "video",
  307. "stream_index": 2,
  308. "pts": 4096,
  309. "pts_time": "0.080000",
  310. "dts": 4096,
  311. "dts_time": "0.080000",
  312. "duration": 2048,
  313. "duration_time": "0.040000",
  314. "size": "30000",
  315. "pos": "760153",
  316. "flags": "K"
  317. },
  318. {
  319. "type": "frame",
  320. "media_type": "video",
  321. "key_frame": 1,
  322. "pkt_pts": 4096,
  323. "pkt_pts_time": "0.080000",
  324. "pkt_dts": 4096,
  325. "pkt_dts_time": "0.080000",
  326. "pkt_duration": 2048,
  327. "pkt_duration_time": "0.040000",
  328. "pkt_pos": "760153",
  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": "790158",
  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": "790158",
  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": "792229",
  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": "792229",
  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. "reference": 0
  435. },
  436. {
  437. "type": "packet",
  438. "codec_type": "video",
  439. "stream_index": 2,
  440. "pts": 6144,
  441. "pts_time": "0.120000",
  442. "dts": 6144,
  443. "dts_time": "0.120000",
  444. "duration": 2048,
  445. "duration_time": "0.040000",
  446. "size": "30000",
  447. "pos": "1024731",
  448. "flags": "K"
  449. },
  450. {
  451. "type": "frame",
  452. "media_type": "video",
  453. "key_frame": 1,
  454. "pkt_pts": 6144,
  455. "pkt_pts_time": "0.120000",
  456. "pkt_dts": 6144,
  457. "pkt_dts_time": "0.120000",
  458. "pkt_duration": 2048,
  459. "pkt_duration_time": "0.040000",
  460. "pkt_pos": "1024731",
  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_type": "audio",
  479. "codec_time_base": "1/44100",
  480. "codec_tag_string": "[1][0][0][0]",
  481. "codec_tag": "0x0001",
  482. "sample_fmt": "s16",
  483. "sample_rate": "44100",
  484. "channels": 1,
  485. "bits_per_sample": 16,
  486. "r_frame_rate": "0/0",
  487. "avg_frame_rate": "0/0",
  488. "time_base": "1/44100",
  489. "start_pts": 0,
  490. "start_time": "0.000000",
  491. "duration_ts": 527406,
  492. "duration": "11.959320",
  493. "bit_rate": "705600",
  494. "nb_read_frames": "6",
  495. "nb_read_packets": "6",
  496. "disposition": {
  497. "default": 0,
  498. "dub": 0,
  499. "original": 0,
  500. "comment": 0,
  501. "lyrics": 0,
  502. "karaoke": 0,
  503. "forced": 0,
  504. "hearing_impaired": 0,
  505. "visual_impaired": 0,
  506. "clean_effects": 0,
  507. "attached_pic": 0
  508. },
  509. "tags": {
  510. "E": "mc²"
  511. }
  512. },
  513. {
  514. "index": 1,
  515. "codec_name": "rawvideo",
  516. "codec_type": "video",
  517. "codec_time_base": "1/51200",
  518. "codec_tag_string": "RGB[24]",
  519. "codec_tag": "0x18424752",
  520. "width": 320,
  521. "height": 240,
  522. "has_b_frames": 0,
  523. "sample_aspect_ratio": "1:1",
  524. "display_aspect_ratio": "4:3",
  525. "pix_fmt": "rgb24",
  526. "level": -99,
  527. "r_frame_rate": "25/1",
  528. "avg_frame_rate": "25/1",
  529. "time_base": "1/51200",
  530. "start_pts": 0,
  531. "start_time": "0.000000",
  532. "duration_ts": 612317,
  533. "duration": "11.959316",
  534. "nb_read_frames": "4",
  535. "nb_read_packets": "4",
  536. "disposition": {
  537. "default": 0,
  538. "dub": 0,
  539. "original": 0,
  540. "comment": 0,
  541. "lyrics": 0,
  542. "karaoke": 0,
  543. "forced": 0,
  544. "hearing_impaired": 0,
  545. "visual_impaired": 0,
  546. "clean_effects": 0,
  547. "attached_pic": 0
  548. },
  549. "tags": {
  550. "title": "foobar",
  551. "duration_ts": "field-and-tags-conflict-attempt"
  552. }
  553. },
  554. {
  555. "index": 2,
  556. "codec_name": "rawvideo",
  557. "codec_type": "video",
  558. "codec_time_base": "1/51200",
  559. "codec_tag_string": "RGB[24]",
  560. "codec_tag": "0x18424752",
  561. "width": 100,
  562. "height": 100,
  563. "has_b_frames": 0,
  564. "sample_aspect_ratio": "1:1",
  565. "display_aspect_ratio": "1:1",
  566. "pix_fmt": "rgb24",
  567. "level": -99,
  568. "r_frame_rate": "25/1",
  569. "avg_frame_rate": "25/1",
  570. "time_base": "1/51200",
  571. "start_pts": 0,
  572. "start_time": "0.000000",
  573. "duration_ts": 612317,
  574. "duration": "11.959316",
  575. "nb_read_frames": "4",
  576. "nb_read_packets": "4",
  577. "disposition": {
  578. "default": 0,
  579. "dub": 0,
  580. "original": 0,
  581. "comment": 0,
  582. "lyrics": 0,
  583. "karaoke": 0,
  584. "forced": 0,
  585. "hearing_impaired": 0,
  586. "visual_impaired": 0,
  587. "clean_effects": 0,
  588. "attached_pic": 0
  589. }
  590. }
  591. ],
  592. "format": {
  593. "filename": "tests/data/ffprobe-test.nut",
  594. "nb_streams": 3,
  595. "format_name": "nut",
  596. "start_time": "0.000000",
  597. "duration": "11.959320",
  598. "size": "1054812",
  599. "bit_rate": "705599",
  600. "tags": {
  601. "title": "ffprobe test file",
  602. "comment": "'A comment with CSV, XML & JSON special chars': <tag value=\"x\">",
  603. "comment2": "I ♥ Üñîçød€"
  604. }
  605. }
  606. }