Advertisement
ptr727

mkvmerge no audio track

Jan 9th, 2022
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.66 KB | None | 0 0
  1. #### Steps ####
  2. mkvmerge.exe --disable-track-statistics-tags --no-global-tags --no-track-tags --flush-on-close --output "D:\Test\AVI Trouble.tmp" "D:\Test\AVI Trouble.avi"
  3.  
  4. mediainfo.exe --Output=XML "D:\Test\AVI Trouble.mkv"
  5. mkvmerge.exe --identify "D:\Test\AVI Trouble.mkv" --identification-format json
  6. ffprobe.exe -loglevel quiet -show_streams -print_format json "D:\Test\AVI Trouble.mkv"
  7.  
  8. ffmpeg.exe -analyzeduration 2147483647 -probesize 2147483647 -i "D:\Test\AVI Trouble.mkv" -xerror -abort_on empty_output -map 0:0 -map 0:1 -c:v:0 libx265 -crf 20 -preset medium -c:a:0 ac3 -f matroska "D:\Test\AVI Trouble.tmp"
  9.  
  10. mediainfo.exe --Output=XML "D:\Test\AVI Trouble.mkv"
  11. mkvmerge.exe --identify "D:\Test\AVI Trouble.mkv" --identification-format json
  12. ffprobe.exe -loglevel quiet -show_streams -print_format json "D:\Test\AVI Trouble.mkv"
  13.  
  14.  
  15. #### Remuxed from AVI to MKV using mkvmerge ####
  16. PS C:\Users\piete\source\repos\ptr727\PlexCleaner\PlexCleaner\bin\Debug\net6.0\Tools\MKVToolNix> ./mkvmerge.exe --identify "D:\Test\AVI Trouble.mkv" --identification-format json
  17. {
  18. "attachments": [],
  19. "chapters": [],
  20. "container": {
  21. "properties": {
  22. "container_type": 17,
  23. "date_local": "2022-01-09T15:48:11-08:00",
  24. "date_utc": "2022-01-09T23:48:11Z",
  25. "duration": 30000000000,
  26. "is_providing_timestamps": true,
  27. "muxing_application": "libebml v1.4.2 + libmatroska v1.6.4",
  28. "segment_uid": "c6200a89fa7b50cecab66205412756d9",
  29. "writing_application": "mkvmerge v64.0.0 ('Willows') 64-bit"
  30. },
  31. "recognized": true,
  32. "supported": true,
  33. "type": "Matroska"
  34. },
  35. "errors": [],
  36. "file_name": "D:\\Test\\AVI Trouble.mkv",
  37. "global_tags": [],
  38. "identification_format_version": 14,
  39. "track_tags": [],
  40. "tracks": [
  41. {
  42. "codec": "0x4d4a5047 \"MJPG\"",
  43. "id": 0,
  44. "properties": {
  45. "codec_id": "V_MS/VFW/FOURCC",
  46. "codec_private_data": "2800000040010000f0000000010018004d4a50470084000000000000000000000000000000000000",
  47. "codec_private_length": 40,
  48. "default_duration": 90909000,
  49. "default_track": true,
  50. "display_dimensions": "320x240",
  51. "display_unit": 0,
  52. "enabled_track": true,
  53. "forced_track": false,
  54. "language": "eng",
  55. "language_ietf": "en",
  56. "minimum_timestamp": 0,
  57. "number": 1,
  58. "pixel_dimensions": "320x240",
  59. "uid": 11013166198120238917
  60. },
  61. "type": "video"
  62. },
  63. {
  64. "codec": "PCM",
  65. "id": 1,
  66. "properties": {
  67. "audio_bits_per_sample": 8,
  68. "audio_channels": 1,
  69. "audio_sampling_frequency": 8000,
  70. "codec_id": "A_PCM/INT/LIT",
  71. "codec_private_length": 0,
  72. "default_duration": 40000000,
  73. "default_track": true,
  74. "enabled_track": true,
  75. "forced_track": false,
  76. "language": "eng",
  77. "language_ietf": "en",
  78. "minimum_timestamp": 0,
  79. "number": 2,
  80. "uid": 18245853339182613567
  81. },
  82. "type": "audio"
  83. }
  84. ],
  85. "warnings": []
  86. }
  87.  
  88. #### Reencoded using FFmpeg ####
  89. PS C:\Users\piete\source\repos\ptr727\PlexCleaner\PlexCleaner\bin\Debug\net6.0\Tools\MKVToolNix> ./mkvmerge.exe --identify "D:\Test\AVI Trouble.mkv" --identification-format json
  90. {
  91. "attachments": [],
  92. "chapters": [],
  93. "container": {
  94. "properties": {
  95. "container_type": 17,
  96. "duration": 30000000000,
  97. "is_providing_timestamps": true,
  98. "muxing_application": "Lavf58.76.100",
  99. "segment_uid": "4b84247d932d3e7e976ef3369ad1ef71",
  100. "writing_application": "Lavf58.76.100"
  101. },
  102. "recognized": true,
  103. "supported": true,
  104. "type": "Matroska"
  105. },
  106. "errors": [],
  107. "file_name": "D:\\Test\\AVI Trouble.mkv",
  108. "global_tags": [
  109. {
  110. "num_entries": 1
  111. }
  112. ],
  113. "identification_format_version": 14,
  114. "track_tags": [
  115. {
  116. "num_entries": 2,
  117. "track_id": 0
  118. }
  119. ],
  120. "tracks": [
  121. {
  122. "codec": "HEVC/H.265/MPEG-H",
  123. "id": 0,
  124. "properties": {
  125. "codec_id": "V_MPEGH/ISO/HEVC",
  126. "codec_private_data": "0101600000009000000000003cf000fcfdf8f800000f04200001001840010c01ffff01600000030090000003000003003c959809210001002d42010101600000030090000003000003003ca00a080f165959a4932bc05b81010282000003000200000300161022000100074401c172b4624027000109154e0105ffffffffffffffffff102ca2de09b51747dbbb55a4fe7fc2fc4e7832363520286275696c642032303329202d20332e352b31392d3830303365343338323a5b57696e646f77735d5b4743432031312e322e305d5b3634206269745d20386269742b31306269742b3132626974202d20482e3236352f4845564320636f646563202d20436f7079726967687420323031332d3230313820286329204d756c7469636f7265776172652c20496e63202d20687474703a2f2f783236352e6f7267202d206f7074696f6e733a2063707569643d31313131303339206672616d652d746872656164733d33206e756d612d706f6f6c733d3820777070206e6f2d706d6f6465206e6f2d706d65206e6f2d70736e72206e6f2d7373696d206c6f672d6c6576656c3d322062697464657074683d3820696e7075742d6373703d31206670733d31312f3120696e7075742d7265733d3332307832343020696e7465726c6163653d3020746f74616c2d6672616d65733d30206c6576656c2d6964633d3020686967682d746965723d31207568642d62643d30207265663d33206e6f2d616c6c6f772d6e6f6e2d636f6e666f726d616e6365206e6f2d7265706561742d6865616465727320616e6e657862206e6f2d617564206e6f2d656f62206e6f2d656f73206e6f2d68726420696e666f20686173683d30206e6f2d74656d706f72616c2d6c6179657273206f70656e2d676f70206d696e2d6b6579696e743d3131206b6579696e743d32353020676f702d6c6f6f6b61686561643d3020626672616d65733d3420622d61646170743d3220622d707972616d696420626672616d652d626961733d302072632d6c6f6f6b61686561643d3230206c6f6f6b61686561642d736c696365733d30207363656e656375743d3430206e6f2d686973742d7363656e65637574207261646c3d30206e6f2d73706c696365206e6f2d696e7472612d72656672657368206374753d3634206d696e2d63752d73697a653d38206e6f2d72656374206e6f2d616d70206d61782d74752d73697a653d33322074752d696e7465722d64657074683d312074752d696e7472612d64657074683d31206c696d69742d74753d302072646f712d6c6576656c3d302064796e616d69632d72643d302e3030206e6f2d7373696d2d7264207369676e68696465206e6f2d74736b6970206e722d696e7472613d30206e722d696e7465723d30206e6f2d636f6e73747261696e65642d696e747261207374726f6e672d696e7472612d736d6f6f7468696e67206d61782d6d657267653d33206c696d69742d726566733d31206e6f2d6c696d69742d6d6f646573206d653d31207375626d653d32206d6572616e67653d35372074656d706f72616c2d6d7670206e6f2d6672616d652d647570206e6f2d686d652077656967687470206e6f2d77656967687462206e6f2d616e616c797a652d7372632d70696373206465626c6f636b3d303a302073616f206e6f2d73616f2d6e6f6e2d6465626c6f636b2072643d332073656c6563746976652d73616f3d34206561726c792d736b69702072736b6970206e6f2d666173742d696e747261206e6f2d74736b69702d66617374206e6f2d63752d6c6f73736c65737320622d696e747261206e6f2d73706c697472642d736b697020726470656e616c74793d30207073792d72643d322e3030207073792d72646f713d302e3030206e6f2d72642d726566696e65206e6f2d6c6f73736c65737320636271706f6666733d3020637271706f6666733d302072633d637266206372663d32302e302071636f6d703d302e3630207170737465703d342073746174732d77726974653d302073746174732d726561643d30206970726174696f3d312e3430207062726174696f3d312e33302061712d6d6f64653d322061712d737472656e6774683d312e303020637574726565207a6f6e652d636f756e743d30206e6f2d7374726963742d6362722071672d73697a653d3332206e6f2d72632d677261696e2071706d61783d36392071706d696e3d30206e6f2d636f6e73742d766276207361723d31206f7665727363616e3d3020766964656f666f726d61743d352072616e67653d3120636f6c6f727072696d3d32207472616e736665723d3220636f6c6f726d61747269783d35206368726f6d616c6f633d3020646973706c61792d77696e646f773d3020636c6c3d302c30206d696e2d6c756d613d30206d61782d6c756d613d323535206c6f67322d6d61782d706f632d6c73623d38207675692d74696d696e672d696e666f207675692d6872642d696e666f20736c696365733d31206e6f2d6f70742d71702d707073206e6f2d6f70742d7265662d6c6973742d6c656e6774682d707073206e6f2d6d756c74692d706173732d6f70742d727073207363656e656375742d626961733d302e303520686973742d7468726573686f6c643d302e3033206e6f2d6f70742d63752d64656c74612d7170206e6f2d61712d6d6f74696f6e206e6f2d6864723130206e6f2d68647231302d6f7074206e6f2d6468647231302d6f7074206e6f2d6964722d7265636f766572792d73656920616e616c797369732d72657573652d6c6576656c3d3020616e616c797369732d736176652d72657573652d6c6576656c3d3020616e616c797369732d6c6f61642d72657573652d6c6576656c3d30207363616c652d666163746f723d3020726566696e652d696e7472613d3020726566696e652d696e7465723d3020726566696e652d6d763d3120726566696e652d6374752d646973746f7274696f6e3d30206e6f2d6c696d69742d73616f206374752d696e666f3d30206e6f2d6c6f77706173732d64637420726566696e652d616e616c797369732d747970653d3020636f70792d7069633d31206d61782d617573697a652d666163746f723d312e30206e6f2d64796e616d69632d726566696e65206e6f2d73696e676c652d736569206e6f2d686576632d6171206e6f2d737674206e6f2d6669656c642071702d61646170746174696f6e2d72616e67653d312e3030207363656e656375742d61776172652d71703d30636f6e666f726d616e63652d77696e646f772d6f6666736574732072696768743d3020626f74746f6d3d30206465636f6465722d6d61782d726174653d30206e6f2d7662762d6c6976652d6d756c74692d7061737380",
  127. "codec_private_length": 2444,
  128. "default_duration": 90909090,
  129. "default_track": true,
  130. "display_dimensions": "320x240",
  131. "display_unit": 0,
  132. "enabled_track": true,
  133. "forced_track": false,
  134. "language": "eng",
  135. "minimum_timestamp": 0,
  136. "number": 1,
  137. "packetizer": "mpegh_p2_video",
  138. "pixel_dimensions": "320x240",
  139. "tag_duration": "00:00:30.000000000",
  140. "tag_encoder": "Lavc58.134.100 libx265",
  141. "uid": 18143615255235293069
  142. },
  143. "type": "video"
  144. }
  145. ],
  146. "warnings": []
  147. }
  148.  
  149. PS C:\Users\piete\source\repos\ptr727\PlexCleaner\PlexCleaner\bin\Debug\net6.0\Tools\FfMpeg\bin> ./ffprobe.exe -loglevel quiet -show_streams -print_format json "D:\Test\AVI Trouble.mkv"
  150. {
  151. "streams": [
  152. {
  153. "index": 0,
  154. "codec_name": "hevc",
  155. "codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)",
  156. "profile": "Main",
  157. "codec_type": "video",
  158. "codec_tag_string": "[0][0][0][0]",
  159. "codec_tag": "0x0000",
  160. "width": 320,
  161. "height": 240,
  162. "coded_width": 320,
  163. "coded_height": 240,
  164. "closed_captions": 0,
  165. "has_b_frames": 2,
  166. "sample_aspect_ratio": "1:1",
  167. "display_aspect_ratio": "4:3",
  168. "pix_fmt": "yuvj420p",
  169. "level": 60,
  170. "color_range": "pc",
  171. "color_space": "bt470bg",
  172. "chroma_location": "left",
  173. "field_order": "progressive",
  174. "refs": 1,
  175. "r_frame_rate": "11/1",
  176. "avg_frame_rate": "11/1",
  177. "time_base": "1/1000",
  178. "start_pts": 0,
  179. "start_time": "0.000000",
  180. "disposition": {
  181. "default": 1,
  182. "dub": 0,
  183. "original": 0,
  184. "comment": 0,
  185. "lyrics": 0,
  186. "karaoke": 0,
  187. "forced": 0,
  188. "hearing_impaired": 0,
  189. "visual_impaired": 0,
  190. "clean_effects": 0,
  191. "attached_pic": 0,
  192. "timed_thumbnails": 0
  193. },
  194. "tags": {
  195. "language": "eng",
  196. "ENCODER": "Lavc58.134.100 libx265",
  197. "DURATION": "00:00:30.000000000"
  198. }
  199. },
  200. {
  201. "index": 1,
  202. "codec_name": "ac3",
  203. "codec_long_name": "ATSC A/52A (AC-3)",
  204. "codec_type": "audio",
  205. "codec_tag_string": "[0][0][0][0]",
  206. "codec_tag": "0x0000",
  207. "sample_fmt": "fltp",
  208. "sample_rate": "32000",
  209. "channels": 1,
  210. "bits_per_sample": 0,
  211. "dmix_mode": "-1",
  212. "ltrt_cmixlev": "-1.000000",
  213. "ltrt_surmixlev": "-1.000000",
  214. "loro_cmixlev": "-1.000000",
  215. "loro_surmixlev": "-1.000000",
  216. "r_frame_rate": "0/0",
  217. "avg_frame_rate": "0/0",
  218. "time_base": "1/1000",
  219. "start_pts": 0,
  220. "start_time": "0.000000",
  221. "duration_ts": 30000,
  222. "duration": "30.000000",
  223. "disposition": {
  224. "default": 1,
  225. "dub": 0,
  226. "original": 0,
  227. "comment": 0,
  228. "lyrics": 0,
  229. "karaoke": 0,
  230. "forced": 0,
  231. "hearing_impaired": 0,
  232. "visual_impaired": 0,
  233. "clean_effects": 0,
  234. "attached_pic": 0,
  235. "timed_thumbnails": 0
  236. },
  237. "tags": {
  238. "language": "eng",
  239. "ENCODER": "Lavc58.134.100 ac3",
  240. "DURATION": "00:00:00.000000000"
  241. }
  242. }
  243. ]
  244. }
  245.  
  246. PS C:\Users\piete\source\repos\ptr727\PlexCleaner\PlexCleaner\bin\Debug\net6.0\Tools\MediaInfo> ./mediainfo.exe --Output=XML "D:\Test\AVI Trouble.mkv"
  247. <?xml version="1.0" encoding="UTF-8"?>
  248. <MediaInfo
  249. xmlns="https://mediaarea.net/mediainfo"
  250. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  251. xsi:schemaLocation="https://mediaarea.net/mediainfo https://mediaarea.net/mediainfo/mediainfo_2_0.xsd"
  252. version="2.0">
  253. <creatingLibrary version="21.09" url="https://mediaarea.net/MediaInfo">MediaInfoLib</creatingLibrary>
  254. <media ref="D:\Test\AVI Trouble.mkv">
  255. <track type="General">
  256. <UniqueID>100378222985010326685473017314350854001</UniqueID>
  257. <VideoCount>1</VideoCount>
  258. <AudioCount>1</AudioCount>
  259. <FileExtension>mkv</FileExtension>
  260. <Format>Matroska</Format>
  261. <Format_Version>4</Format_Version>
  262. <FileSize>2918371</FileSize>
  263. <Duration>30.000</Duration>
  264. <OverallBitRate>778232</OverallBitRate>
  265. <FrameRate>11.000</FrameRate>
  266. <FrameCount>330</FrameCount>
  267. <IsStreamable>Yes</IsStreamable>
  268. <File_Created_Date>UTC 2022-01-09 23:54:50.978</File_Created_Date>
  269. <File_Created_Date_Local>2022-01-09 15:54:50.978</File_Created_Date_Local>
  270. <File_Modified_Date>UTC 2022-01-09 23:54:53.424</File_Modified_Date>
  271. <File_Modified_Date_Local>2022-01-09 15:54:53.424</File_Modified_Date_Local>
  272. <Encoded_Application>Lavf58.76.100</Encoded_Application>
  273. <Encoded_Library>Lavf58.76.100</Encoded_Library>
  274. <extra>
  275. <ErrorDetectionType>Per level 1</ErrorDetectionType>
  276. </extra>
  277. </track>
  278. <track type="Video">
  279. <StreamOrder>0</StreamOrder>
  280. <ID>1</ID>
  281. <UniqueID>18143615255235293069</UniqueID>
  282. <Format>HEVC</Format>
  283. <Format_Profile>Main</Format_Profile>
  284. <Format_Level>2</Format_Level>
  285. <Format_Tier>Main</Format_Tier>
  286. <CodecID>V_MPEGH/ISO/HEVC</CodecID>
  287. <Duration>30.000000000</Duration>
  288. <Width>320</Width>
  289. <Height>240</Height>
  290. <Sampled_Width>320</Sampled_Width>
  291. <Sampled_Height>240</Sampled_Height>
  292. <PixelAspectRatio>1.000</PixelAspectRatio>
  293. <DisplayAspectRatio>1.333</DisplayAspectRatio>
  294. <FrameRate_Mode>CFR</FrameRate_Mode>
  295. <FrameRate>11.000</FrameRate>
  296. <FrameCount>330</FrameCount>
  297. <ColorSpace>YUV</ColorSpace>
  298. <ChromaSubsampling>4:2:0</ChromaSubsampling>
  299. <BitDepth>8</BitDepth>
  300. <Delay>0.000</Delay>
  301. <Encoded_Library>x265 - 3.5+19-8003e4382:[Windows][GCC 11.2.0][64 bit] 8bit+10bit+12bit</Encoded_Library>
  302. <Encoded_Library_Name>x265</Encoded_Library_Name>
  303. <Encoded_Library_Version>3.5+19-8003e4382:[Windows][GCC 11.2.0][64 bit] 8bit+10bit+12bit</Encoded_Library_Version>
  304. <Encoded_Library_Settings>cpuid=1111039 / frame-threads=3 / numa-pools=8 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=320x240 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-eob / no-eos / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=11 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=0 / scenecut=40 / no-hist-scenecut / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=3 / limit-refs=1 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=3 / selective-sao=4 / early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=20.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=1 / colorprim=2 / transfer=2 / colormatrix=5 / chromaloc=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=255 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist-threshold=0.03 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / scenecut-aware-qp=0conformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass</Encoded_Library_Settings>
  305. <Language>en</Language>
  306. <Default>Yes</Default>
  307. <Forced>No</Forced>
  308. <colour_description_present>Yes</colour_description_present>
  309. <colour_description_present_Source>Container / Stream</colour_description_present_Source>
  310. <colour_range>Full</colour_range>
  311. <colour_range_Source>Container / Stream</colour_range_Source>
  312. <colour_primaries_Source>Stream</colour_primaries_Source>
  313. <transfer_characteristics_Source>Stream</transfer_characteristics_Source>
  314. <matrix_coefficients>BT.470 System B/G</matrix_coefficients>
  315. <matrix_coefficients_Source>Container / Stream</matrix_coefficients_Source>
  316. </track>
  317. <track type="Audio">
  318. <StreamOrder>1</StreamOrder>
  319. <ID>2</ID>
  320. <UniqueID>8567037298377329942</UniqueID>
  321. <Format>AC-3</Format>
  322. <CodecID>A_AC3</CodecID>
  323. <Duration>0.000000000</Duration>
  324. <Channels>1</Channels>
  325. <SamplingRate>32000</SamplingRate>
  326. <SamplingCount>960000</SamplingCount>
  327. <BitDepth>32</BitDepth>
  328. <Compression_Mode>Lossy</Compression_Mode>
  329. <Encoded_Library>Lavc58.134.100 ac3</Encoded_Library>
  330. <Language>en</Language>
  331. <Default>Yes</Default>
  332. <Forced>No</Forced>
  333. </track>
  334. </media>
  335. </MediaInfo>
  336.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement