Guest User

MPEGTS Video not detected in FFMPEG while it works in MPC-HC

a guest
Dec 24th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.89 KB | None | 0 0
  1. One of the hard erroring MPEGTS files, all of them start out broken for the first few packets particularly video
  2. MPC-HC is able to run it okay, never got one that didn't play. But at the beginning only audio starts and video is black
  3. for a few seconds for all these files including this one.
  4.  
  5. I have used ffmpeg to compress around 20 files yesterday, today's batch of 3 files won't work, nothing has really changed
  6. other than what I'm suspecting is because the device was simultaneously recording and reading other files which I forgot to
  7. avoid, I was downloading files from the same HDD that was used to write this MPEGTS
  8.  
  9. THese files usually get errors at the beginning such as:
  10.  
  11. [mpegts @ 0000000000562900] parser not found for codec dvb_teletext, packets or times may be invalid.
  12. Last message repeated 1 times
  13. [h264 @ 0000000000567e20] SPS unavailable in decode_picture_timing
  14. [h264 @ 0000000000567e20] non-existing PPS 0 referenced
  15. [h264 @ 0000000000567e20] SPS unavailable in decode_picture_timing
  16. [h264 @ 0000000000567e20] non-existing PPS 0 referenced
  17. [h264 @ 0000000000567e20] decode_slice_header error
  18. [h264 @ 0000000000567e20] no frame!
  19. [h264 @ 0000000000567e20] SPS unavailable in decode_picture_timing
  20. [h264 @ 0000000000567e20] non-existing PPS 0 referenced
  21. [h264 @ 0000000000567e20] SPS unavailable in decode_picture_timing
  22. [h264 @ 0000000000567e20] non-existing PPS 0 referenced
  23. [h264 @ 0000000000567e20] decode_slice_header error
  24. [h264 @ 0000000000567e20] no frame!
  25. [h264 @ 0000000000567e20] SPS unavailable in decode_picture_timing
  26. [h264 @ 0000000000567e20] non-existing PPS 0 referenced
  27. [h264 @ 0000000000567e20] SPS unavailable in decode_picture_timing
  28. [h264 @ 0000000000567e20] non-existing PPS 0 referenced
  29. [h264 @ 0000000000567e20] decode_slice_header error
  30. [h264 @ 0000000000567e20] no frame!
  31. [h264 @ 0000000000567e20] SPS unavailable in decode_picture_timing
  32. [h264 @ 0000000000567e20] non-existing PPS 0 referenced
  33. [h264 @ 0000000000567e20] SPS unavailable in decode_picture_timing
  34. [h264 @ 0000000000567e20] non-existing PPS 0 referenced
  35. [h264 @ 0000000000567e20] decode_slice_header error
  36. [h264 @ 0000000000567e20] no frame!
  37. [h264 @ 0000000000567e20] SPS unavailable in decode_picture_timing
  38. [h264 @ 0000000000567e20] non-existing PPS 0 referenced
  39. [h264 @ 0000000000567e20] SPS unavailable in decode_picture_timing
  40. [h264 @ 0000000000567e20] non-existing PPS 0 referenced
  41. [h264 @ 0000000000567e20] decode_slice_header error
  42. [h264 @ 0000000000567e20] no frame!
  43. [h264 @ 0000000000567e20] SPS unavailable in decode_picture_timing
  44. [h264 @ 0000000000567e20] non-existing PPS 0 referenced
  45. [h264 @ 0000000000567e20] SPS unavailable in decode_picture_timing
  46. [h264 @ 0000000000567e20] non-existing PPS 0 referenced
  47. [h264 @ 0000000000567e20] decode_slice_header error
  48. [h264 @ 0000000000567e20] no frame!
  49. [h264 @ 0000000000567e20] Reinit context to 1280x720, pix_fmt: yuv420p
  50. [h264 @ 0000000000567e20] mmco: unref short failure
  51. [h264 @ 0000000000567e20] Increasing reorder buffer to 2
  52. [h264 @ 0000000000567e20] Increasing reorder buffer to 3
  53. [h264 @ 0000000000567e20] mmco: unref short failure
  54. [mpegts @ 0000000000562900] start time for stream 2 is not set in estimate_timings_from_pts
  55. [mpegts @ 0000000000562900] start time for stream 3 is not set in estimate_timings_from_pts
  56. [mpegts @ 0000000000562900] start time for stream 5 is not set in estimate_timings_from_pts
  57. [mpegts @ 0000000000562900] start time for stream 6 is not set in estimate_timings_from_pts
  58. [mpegts @ 0000000000562900] start time for stream 8 is not set in estimate_timings_from_pts
  59. [mpegts @ 0000000000562900] PES packet size mismatch
  60. [mpegts @ 0000000000562900] Ignoring outlier non primary stream endtime 90757.523438
  61.  
  62. -----------------------------------------------------------
  63.  
  64. [mpegts @ 0000000000562900] Correcting start time by 9633
  65. [h264 @ 0000000000596aa0] Reinit context to 1280x720, pix_fmt: yuv420p
  66. [h264 @ 0000000000596aa0] co located POCs unavailable
  67. [h264 @ 0000000000597340] co located POCs unavailable
  68. [h264 @ 00000000005977a0] co located POCs unavailable
  69. [h264 @ 0000000000598040] co located POCs unavailable
  70. [h264 @ 00000000005988e0] mmco: unref short failure
  71. [h264 @ 0000000000598480] mmco: unref short failure
  72.  
  73. ------------------------------------------------------------------------------------------
  74.  
  75. During the transcoding, which is to H264, I get various error like these:
  76. Not every file has same kind of errors, it's kinda random:
  77.  
  78. [h264 @ 0000000000598040] concealing 309 DC, 309 AC, 309 MV errors in B frames/s speed= 3.7x
  79. [mpegts @ 0000000000562900] PES packet size mismatch:59.12 bitrate=4849.3kbits/s speed=3.79x
  80. [h264 @ 0000000000596f00] error while decoding MB 43 1, bytestream -6
  81. [h264 @ 0000000000596f00] concealing 3526 DC, 3526 AC, 3526 MV errors in P frame
  82. No more output streams to write to, finishing.
  83.  
  84. -------
  85.  
  86. [mpegts @ 00000000004e2920] parser not found for codec dvb_teletext, packets or times may be invalid.
  87. Last message repeated 1 times
  88. [mpeg2video @ 00000000004ea860] Invalid frame dimensions 0x0.
  89. Last message repeated 14 times
  90. [mpegts @ 00000000004e2920] max_analyze_duration 7000000 reached at 7008000 microseconds st:1
  91. [mpegts @ 00000000004e2920] start time for stream 2 is not set in estimate_timings_from_pts
  92. [mpegts @ 00000000004e2920] start time for stream 3 is not set in estimate_timings_from_pts
  93. [mpegts @ 00000000004e2920] PES packet size mismatch
  94. [mpegts @ 00000000004e2920] Could not find codec parameters for stream 2 (Audio: mp3 ([3][0][0][0] / 0x0003), 0 channels, s16p): u
  95. nspecified frame size
  96. Consider increasing the value for the 'analyzeduration' and 'probesize' options
  97. [mpegts @ 00000000004e2920] Could not find codec parameters for stream 3 (Audio: mp3 ([3][0][0][0] / 0x0003), 0 channels, s16p): u
  98. nspecified frame size
  99. Consider increasing the value for the 'analyzeduration' and 'probesize' options
  100.  
  101. (thank goodness I only need first audio stream and not the rest, this is common scenario, all are suppose to be mp2, not mp3, that's misleading detection)
  102.  
  103. -------
  104.  
  105. [mpegts @ 00000000004e2920] PES packet size mismatch:55.96 bitrate=7000.3kbits/s speed=10.5x
  106. [mpeg2video @ 0000000002e0a140] ac-tex damaged at 7 0
  107. [mpeg2video @ 0000000002e0a140] Warning MVs not available
  108. [mpeg2video @ 0000000002e0a140] concealing 1620 DC, 1620 AC, 1620 MV errors in I frame
  109. No more output streams to write to, finishing.
  110.  
  111. -------
  112.  
  113. [h264 @ 00000000005d73e0] concealing 2982 DC, 2982 AC, 2982 MV errors in B frame speed=3.84x
  114. [h264 @ 00000000005d80e0] Reference 2 >= 2time=00:28:15.67 bitrate=6529.7kbits/s speed=3.85x
  115. [h264 @ 00000000005d80e0] error while decoding MB 44 36, bytestream 12547
  116. [h264 @ 00000000005d80e0] concealing 725 DC, 725 AC, 725 MV errors in P frame
  117. [h264 @ 00000000005d7c80] Reference 3 >= 2time=00:51:01.48 bitrate=6639.6kbits/s speed=3.83x
  118. [h264 @ 00000000005d7c80] error while decoding MB 67 21, bytestream 20465
  119. [h264 @ 00000000005d7c80] concealing 1902 DC, 1902 AC, 1902 MV errors in P frame
  120. [mpegts @ 00000000005a2960] PES packet size mismatch:02.33 bitrate=6650.4kbits/s speed=3.83x
  121. [h264 @ 00000000005d7c80] error while decoding MB 23 3, bytestream -8
  122. [h264 @ 00000000005d7c80] concealing 3386 DC, 3386 AC, 3386 MV errors in B frame
  123. No more output streams to write to, finishing.
  124.  
  125. ------
  126.  
  127. [h264 @ 00000000005b8980] concealing 1739 DC, 1739 AC, 1739 MV errors in P frame speed=3.95x
  128. [h264 @ 00000000005b8dc0] concealing 1163 DC, 1163 AC, 1163 MV errors in B frame speed=3.95x
  129. [h264 @ 00000000005b80e0] concealing 3270 DC, 3270 AC, 3270 MV errors in P frame speed=3.94x
  130. [h264 @ 00000000005b8980] concealing 3547 DC, 3547 AC, 3547 MV errors in B frame speed=3.88x
  131. [h264 @ 00000000005b80e0] cabac decode of qscale diff failed at 40 10
  132. [h264 @ 00000000005b80e0] error while decoding MB 40 10, bytestream 58973
  133. [h264 @ 00000000005b80e0] concealing 2809 DC, 2809 AC, 2809 MV errors in P frame
  134. [h264 @ 00000000005b7840] left block unavailable for requested intra4x4 mode -1
  135. [h264 @ 00000000005b7840] error while decoding MB 0 30, bytestream 49441
  136. [h264 @ 00000000005b7840] concealing 1249 DC, 1249 AC, 1249 MV errors in I frame
  137. [mpegts @ 0000000000582960] PES packet size mismatch
  138. [h264 @ 00000000005b73e0] left block unavailable for requested intra4x4 mode -1
  139. [h264 @ 00000000005b73e0] error while decoding MB 0 18, bytestream 47322
  140. [h264 @ 00000000005b73e0] concealing 2209 DC, 2209 AC, 2209 MV errors in P frame
  141. [h264 @ 00000000005b7840] error while decoding MB 24 14, bytestream -81.8kbits/s speed=3.86x
  142. [h264 @ 00000000005b7840] concealing 2505 DC, 2505 AC, 2505 MV errors in B frame
  143. No more output streams to write to, finishing.
  144.  
  145. -------------------------------------------------------------------------------------------
  146. -------------------------------------------------------------------------------------------
  147.  
  148. And now finally the file that completely doesn't work:
  149.  
  150.  
  151. ////////////////////////////////////////////////////////////////
  152. ****************** Probing *************************************
  153. ////////////////////////////////////////////////////////////////
  154. ffprobe version git-2017-12-19-c94b094 Copyright (c) 2007-2017 the FFmpeg developers
  155. built with gcc 7.2.0 (GCC)
  156. configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --
  157. enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --
  158. enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame -
  159. -enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-l
  160. zma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-amf --en
  161. able-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
  162. libavutil 56. 6.100 / 56. 6.100
  163. libavcodec 58. 8.100 / 58. 8.100
  164. libavformat 58. 3.100 / 58. 3.100
  165. libavdevice 58. 0.100 / 58. 0.100
  166. libavfilter 7. 7.100 / 7. 7.100
  167. libswscale 5. 0.101 / 5. 0.101
  168. libswresample 3. 0.101 / 3. 0.101
  169. libpostproc 55. 0.100 / 55. 0.100
  170. [NULL @ 0000000000403fa0] Opening 'Kdo_bi_vedel_2017.12.23_19.00.ts' for reading
  171. [file @ 0000000000405800] Setting default whitelist 'file,crypto'
  172. [mpegts @ 0000000000403fa0] Format mpegts probed with size=2048 and score=50
  173. [mpegts @ 0000000000403fa0] stream=0 stream_type=5 pid=191 prog_reg_desc=
  174. [mpegts @ 0000000000403fa0] stream=1 stream_type=2 pid=44d prog_reg_desc=
  175. [mpegts @ 0000000000403fa0] stream=2 stream_type=4 pid=44e prog_reg_desc=
  176. [mpegts @ 0000000000403fa0] stream=3 stream_type=6 pid=460 prog_reg_desc=
  177. [mpegts @ 0000000000403fa0] Before avformat_find_stream_info() pos: 0 bytes read:262144 seeks:1 nb_streams:4
  178. [mpegts @ 0000000000403fa0] parser not found for codec none, packets or times may be invalid.
  179. [mpegts @ 0000000000403fa0] parser not found for codec dvb_teletext, packets or times may be invalid.
  180. Last message repeated 1 times
  181. [mpeg2video @ 00000000004301a0] Invalid frame dimensions 0x0.
  182. Last message repeated 1 times
  183. [mpegts @ 0000000000403fa0] probing stream 2 pp:2500
  184. [mpegts @ 0000000000403fa0] Probe with size=3456, packets=1 detected mp3 with score=25
  185. [mpegts @ 0000000000403fa0] probed stream 2
  186. [mpeg2video @ 00000000004301a0] Invalid frame dimensions 0x0.
  187. Last message repeated 7 times
  188. [mpeg2video @ 00000000004301a0] Format yuv420p chosen by get_format().
  189. [mpegts @ 0000000000403fa0] Probe buffer size limit of 293554432 bytes reached
  190. [mpegts @ 0000000000403fa0] rfps: 25.000000 0.000015
  191. Last message repeated 1 times
  192. [mpegts @ 0000000000403fa0] rfps: 50.000000 0.000061
  193. Last message repeated 1 times
  194. [mpegts @ 0000000000403fa0] PES packet size mismatch
  195. Last message repeated 1 times
  196. [mpegts @ 0000000000403fa0] Could not find codec parameters for stream 0 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
  197. Consider increasing the value for the 'analyzeduration' and 'probesize' options
  198. [mpegts @ 0000000000403fa0] After avformat_find_stream_info() pos: 0 bytes read:333664400 seeks:3 frames:39799
  199. Input #0, mpegts, from 'Kdo_bi_vedel_2017.12.23_19.00.ts':
  200. Duration: 01:19:59.79, start: 11309.753578, bitrate: 6136 kb/s
  201. Program 10601
  202. Stream #0:0[0x191], 0, 1/90000: Unknown: none ([5][0][0][0] / 0x0005)
  203. Stream #0:1[0x44d], 10854, 1/90000: Video: mpeg2video (Main), 1 reference frame ([2][0][0][0] / 0x0002), yuv420p(tv, top first
  204. , left), 720x576 [SAR 64:45 DAR 16:9], 0/1, 25 fps, 25 tbr, 90k tbn, 50 tbc
  205. Stream #0:2[0x44e](slv), 18090, 1/90000: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s
  206. Stream #0:3[0x460](slv), 10855, 1/90000: Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
  207. Program 10602
  208. Program 10603
  209. Program 10604
  210. Program 10605
  211. Program 10606
  212. Program 10620
  213. Program 10621
  214. Program 10622
  215. Program 10623
  216. Program 10624
  217. Program 10625
  218. Program 10626
  219. Program 10627
  220. Program 10628
  221. Program 10629
  222. Program 10630
  223. Program 10632
  224. Unsupported codec with id 0 for input stream 0
  225. Unsupported codec with id 94215 for input stream 3
  226. [STREAM]
  227. index=0
  228. codec_name=unknown
  229. codec_long_name=unknown
  230. profile=unknown
  231. codec_type=unknown
  232. codec_tag_string=[5][0][0][0]
  233. codec_tag=0x0005
  234. id=0x191
  235. r_frame_rate=0/0
  236. avg_frame_rate=0/0
  237. time_base=1/90000
  238. start_pts=1017877822
  239. start_time=11309.753578
  240. duration_ts=431981485
  241. duration=4799.794278
  242. bit_rate=N/A
  243. max_bit_rate=N/A
  244. bits_per_raw_sample=N/A
  245. nb_frames=N/A
  246. nb_read_frames=N/A
  247. nb_read_packets=N/A
  248. DISPOSITION:default=0
  249. DISPOSITION:dub=0
  250. DISPOSITION:original=0
  251. DISPOSITION:comment=0
  252. DISPOSITION:lyrics=0
  253. DISPOSITION:karaoke=0
  254. DISPOSITION:forced=0
  255. DISPOSITION:hearing_impaired=0
  256. DISPOSITION:visual_impaired=0
  257. DISPOSITION:clean_effects=0
  258. DISPOSITION:attached_pic=0
  259. DISPOSITION:timed_thumbnails=0
  260. [/STREAM]
  261. [STREAM]
  262. index=1
  263. codec_name=mpeg2video
  264. codec_long_name=MPEG-2 video
  265. profile=Main
  266. codec_type=video
  267. codec_time_base=1/25
  268. codec_tag_string=[2][0][0][0]
  269. codec_tag=0x0002
  270. width=720
  271. height=576
  272. coded_width=0
  273. coded_height=0
  274. has_b_frames=1
  275. sample_aspect_ratio=64:45
  276. display_aspect_ratio=16:9
  277. pix_fmt=yuv420p
  278. level=8
  279. color_range=tv
  280. color_space=unknown
  281. color_transfer=unknown
  282. color_primaries=unknown
  283. chroma_location=left
  284. field_order=tt
  285. timecode=N/A
  286. refs=1
  287. id=0x44d
  288. r_frame_rate=25/1
  289. avg_frame_rate=25/1
  290. time_base=1/90000
  291. start_pts=1017892235
  292. start_time=11309.913722
  293. duration_ts=431967072
  294. duration=4799.634133
  295. bit_rate=N/A
  296. max_bit_rate=N/A
  297. bits_per_raw_sample=N/A
  298. nb_frames=N/A
  299. nb_read_frames=N/A
  300. nb_read_packets=N/A
  301. DISPOSITION:default=0
  302. DISPOSITION:dub=0
  303. DISPOSITION:original=0
  304. DISPOSITION:comment=0
  305. DISPOSITION:lyrics=0
  306. DISPOSITION:karaoke=0
  307. DISPOSITION:forced=0
  308. DISPOSITION:hearing_impaired=0
  309. DISPOSITION:visual_impaired=0
  310. DISPOSITION:clean_effects=0
  311. DISPOSITION:attached_pic=0
  312. DISPOSITION:timed_thumbnails=0
  313. [/STREAM]
  314. [STREAM]
  315. index=2
  316. codec_name=mp2
  317. codec_long_name=MP2 (MPEG audio layer 2)
  318. profile=unknown
  319. codec_type=audio
  320. codec_time_base=1/48000
  321. codec_tag_string=[4][0][0][0]
  322. codec_tag=0x0004
  323. sample_fmt=s16p
  324. sample_rate=48000
  325. channels=2
  326. channel_layout=stereo
  327. bits_per_sample=0
  328. id=0x44e
  329. r_frame_rate=0/0
  330. avg_frame_rate=0/0
  331. time_base=1/90000
  332. start_pts=1017884081
  333. start_time=11309.823122
  334. duration_ts=431945472
  335. duration=4799.394133
  336. bit_rate=192000
  337. max_bit_rate=N/A
  338. bits_per_raw_sample=N/A
  339. nb_frames=N/A
  340. nb_read_frames=N/A
  341. nb_read_packets=N/A
  342. DISPOSITION:default=0
  343. DISPOSITION:dub=0
  344. DISPOSITION:original=0
  345. DISPOSITION:comment=0
  346. DISPOSITION:lyrics=0
  347. DISPOSITION:karaoke=0
  348. DISPOSITION:forced=0
  349. DISPOSITION:hearing_impaired=0
  350. DISPOSITION:visual_impaired=0
  351. DISPOSITION:clean_effects=0
  352. DISPOSITION:attached_pic=0
  353. DISPOSITION:timed_thumbnails=0
  354. TAG:language=slv
  355. [/STREAM]
  356. [STREAM]
  357. index=3
  358. codec_name=dvb_teletext
  359. codec_long_name=DVB teletext
  360. profile=unknown
  361. codec_type=subtitle
  362. codec_tag_string=[6][0][0][0]
  363. codec_tag=0x0006
  364. width=N/A
  365. height=N/A
  366. id=0x460
  367. r_frame_rate=0/0
  368. avg_frame_rate=0/0
  369. time_base=1/90000
  370. start_pts=1017877822
  371. start_time=11309.753578
  372. duration_ts=431949072
  373. duration=4799.434133
  374. bit_rate=N/A
  375. max_bit_rate=N/A
  376. bits_per_raw_sample=N/A
  377. nb_frames=N/A
  378. nb_read_frames=N/A
  379. nb_read_packets=N/A
  380. DISPOSITION:default=0
  381. DISPOSITION:dub=0
  382. DISPOSITION:original=0
  383. DISPOSITION:comment=0
  384. DISPOSITION:lyrics=0
  385. DISPOSITION:karaoke=0
  386. DISPOSITION:forced=0
  387. DISPOSITION:hearing_impaired=0
  388. DISPOSITION:visual_impaired=0
  389. DISPOSITION:clean_effects=0
  390. DISPOSITION:attached_pic=0
  391. DISPOSITION:timed_thumbnails=0
  392. TAG:language=slv
  393. [/STREAM]
  394. [FORMAT]
  395. filename=Kdo_bi_vedel_2017.12.23_19.00.ts
  396. nb_streams=4
  397. nb_programs=18
  398. format_name=mpegts
  399. format_long_name=MPEG-TS (MPEG-2 Transport Stream)
  400. start_time=11309.753578
  401. duration=4799.794277
  402. size=3681996732
  403. bit_rate=6136924
  404. probe_score=50
  405. [/FORMAT]
  406. [AVIOContext @ 000000000040e8e0] Statistics: 333664400 bytes read, 3 seeks
  407. Press any key to continue . . .
Add Comment
Please, Sign In to add comment