{"action":"created","issue":{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1538","labels_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1538/labels{/name}","comments_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1538/comments","events_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1538/events","html_url":"https://github.com/mbunkus/mkvtoolnix/issues/1538","id":122440138,"number":1538,"title":"JSON identification output adds duplicate chapter count to \"tags\" section.","user":{"login":"ndjamena","id":8167616,"avatar_url":"https://avatars.githubusercontent.com/u/8167616?v=3","gravatar_id":"","url":"https://api.github.com/users/ndjamena","html_url":"https://github.com/ndjamena","followers_url":"https://api.github.com/users/ndjamena/followers","following_url":"https://api.github.com/users/ndjamena/following{/other_user}","gists_url":"https://api.github.com/users/ndjamena/gists{/gist_id}","starred_url":"https://api.github.com/users/ndjamena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndjamena/subscriptions","organizations_url":"https://api.github.com/users/ndjamena/orgs","repos_url":"https://api.github.com/users/ndjamena/repos","events_url":"https://api.github.com/users/ndjamena/events{/privacy}","received_events_url":"https://api.github.com/users/ndjamena/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/labels/app:mkvmerge","name":"app:mkvmerge","color":"fbca04"},{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/labels/os:all","name":"os:all","color":"444444"},{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/labels/type:bug","name":"type:bug","color":"fc2929"},{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/labels/v8.6.1","name":"v8.6.1","color":"330099"}],"state":"open","locked":false,"assignee":{"login":"mbunkus","id":414282,"avatar_url":"https://avatars.githubusercontent.com/u/414282?v=3","gravatar_id":"","url":"https://api.github.com/users/mbunkus","html_url":"https://github.com/mbunkus","followers_url":"https://api.github.com/users/mbunkus/followers","following_url":"https://api.github.com/users/mbunkus/following{/other_user}","gists_url":"https://api.github.com/users/mbunkus/gists{/gist_id}","starred_url":"https://api.github.com/users/mbunkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbunkus/subscriptions","organizations_url":"https://api.github.com/users/mbunkus/orgs","repos_url":"https://api.github.com/users/mbunkus/repos","events_url":"https://api.github.com/users/mbunkus/events{/privacy}","received_events_url":"https://api.github.com/users/mbunkus/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/milestones/34","html_url":"https://github.com/mbunkus/mkvtoolnix/milestones/8.7.0","labels_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/milestones/34/labels","id":1361331,"number":34,"title":"8.7.0","description":"","creator":{"login":"mbunkus","id":414282,"avatar_url":"https://avatars.githubusercontent.com/u/414282?v=3","gravatar_id":"","url":"https://api.github.com/users/mbunkus","html_url":"https://github.com/mbunkus","followers_url":"https://api.github.com/users/mbunkus/followers","following_url":"https://api.github.com/users/mbunkus/following{/other_user}","gists_url":"https://api.github.com/users/mbunkus/gists{/gist_id}","starred_url":"https://api.github.com/users/mbunkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbunkus/subscriptions","organizations_url":"https://api.github.com/users/mbunkus/orgs","repos_url":"https://api.github.com/users/mbunkus/repos","events_url":"https://api.github.com/users/mbunkus/events{/privacy}","received_events_url":"https://api.github.com/users/mbunkus/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":6,"state":"open","created_at":"2015-10-17T11:21:52Z","updated_at":"2015-12-16T19:26:50Z","due_on":"2016-01-08T23:00:00Z","closed_at":null},"comments":2,"created_at":"2015-12-16T06:36:07Z","updated_at":"2015-12-16T20:58:48Z","closed_at":null,"body":"As well as listing a track id.\r\n\r\n```\r\n \"track_tags\": [\r\n    {\r\n      \"num_entries\": 22,\r\n      \"track_id\": 0\r\n    }\r\n  ]\r\n```"},"comment":{"url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/comments/165242265","html_url":"https://github.com/mbunkus/mkvtoolnix/issues/1538#issuecomment-165242265","issue_url":"https://api.github.com/repos/mbunkus/mkvtoolnix/issues/1538","id":165242265,"user":{"login":"mbunkus","id":414282,"avatar_url":"https://avatars.githubusercontent.com/u/414282?v=3","gravatar_id":"","url":"https://api.github.com/users/mbunkus","html_url":"https://github.com/mbunkus","followers_url":"https://api.github.com/users/mbunkus/followers","following_url":"https://api.github.com/users/mbunkus/following{/other_user}","gists_url":"https://api.github.com/users/mbunkus/gists{/gist_id}","starred_url":"https://api.github.com/users/mbunkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbunkus/subscriptions","organizations_url":"https://api.github.com/users/mbunkus/orgs","repos_url":"https://api.github.com/users/mbunkus/repos","events_url":"https://api.github.com/users/mbunkus/events{/privacy}","received_events_url":"https://api.github.com/users/mbunkus/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T20:58:48Z","updated_at":"2015-12-16T20:58:48Z","body":"Pasting info from #1537:\r\n\r\nJSON identification output:\r\n\r\n```\r\nC:\\Users\\user>mkvmerge -I -F json \"F:\\Videos\\Movies\\Transformers\\3 - Dark of the Moon.mkv\"\r\n{\r\n  \"attachments\": [],\r\n  \"chapters\": [\r\n    {\r\n      \"num_entries\": 22\r\n    }\r\n  ],\r\n  \"container\": {\r\n    \"properties\": {\r\n      \"container_type\": 17,\r\n      \"duration\": 9263296000000,\r\n      \"is_providing_timecodes\": true,\r\n      \"segment_uid\": \"8c1ad8f60c2104d3859ca6b232a3e78b\",\r\n      \"title\": \"Transformers: Dark of the Moon\"\r\n    },\r\n    \"recognized\": true,\r\n    \"supported\": true,\r\n    \"type\": \"Matroska\"\r\n  },\r\n  \"file_name\": \"F:\\\\Videos\\\\Movies\\\\Transformers\\\\3 - Dark of the Moon.mkv\",\r\n  \"global_tags\": [],\r\n  \"identification_format_version\": 1,\r\n  \"track_tags\": [\r\n    {\r\n      \"num_entries\": 22,\r\n      \"track_id\": 0\r\n    }\r\n  ],\r\n  \"tracks\": [\r\n    {\r\n      \"codec\": \"MPEG-4p10/AVC/h.264\",\r\n      \"id\": 0,\r\n      \"properties\": {\r\n        \"codec_id\": \"V_MPEG4/ISO/AVC\",\r\n        \"codec_private_data\": \"01640029ffe1003567640029ac1b1a501e0089f9701100000303e90000bb80e26000040d9800007270e8c4b8c4c000081b300000e4e1d18970f8e1852c01004268ea8dce51d1d84388c54548223311cd9a2128e8ec21c462a2a4111988e6cd109444c521b93c57c9f93f93f27c9e6e4c9250890a4272793ebf27f5f93ebc9c9a91c0fdf8f800\",\r\n        \"codec_private_length\": 134,\r\n        \"default_duration\": 41708333,\r\n        \"default_track\": true,\r\n        \"display_dimensions\": \"1920x1080\",\r\n        \"enabled_track\": true,\r\n        \"forced_track\": false,\r\n        \"language\": \"eng\",\r\n        \"number\": 1,\r\n        \"packetizer\": \"mpeg4_p10_video\",\r\n        \"pixel_dimensions\": \"1920x1080\",\r\n        \"track_name\": \"AVC/H.264/MPEG4 Part 10 (23.976 fps)\",\r\n        \"uid\": 1\r\n      },\r\n      \"type\": \"video\"\r\n    },\r\n    {\r\n      \"codec\": \"FLAC\",\r\n      \"id\": 1,\r\n      \"properties\": {\r\n        \"audio_bits_per_sample\": 16,\r\n        \"audio_channels\": 8,\r\n        \"audio_sampling_frequency\": 48000,\r\n        \"codec_id\": \"A_FLAC\",\r\n        \"codec_private_data\": \"664c6143000000221200120000002000acd20bb80ef01a80a3f801a5ff69a05e437b85afc9aa0e6ada91040000731f0000004d616b654d4b562076312e392e372077696e287836342d72656c6561736529020000001d000000454e434f4445523d6c69626176636f646563207635362e34312e3130302700000057415645464f524d4154455854454e5349424c455f4348414e4e454c5f4d41534b3d3078363346810000204d616b654d4b562076312e392e372077696e287836342d72656c656173652900\",\r\n        \"codec_private_length\": 197,\r\n        \"default_duration\": 96000000,\r\n        \"default_track\": true,\r\n        \"enabled_track\": true,\r\n        \"forced_track\": false,\r\n        \"language\": \"eng\",\r\n        \"number\": 2,\r\n        \"track_name\": \"English Main - FLAC(5.1)\",\r\n        \"uid\": 2\r\n      },\r\n      \"type\": \"audio\"\r\n    },\r\n    {\r\n      \"codec\": \"HDMV PGS\",\r\n      \"id\": 2,\r\n      \"properties\": {\r\n        \"codec_id\": \"S_HDMV/PGS\",\r\n        \"codec_private_length\": 0,\r\n        \"content_encoding_algorithms\": \"0\",\r\n        \"default_track\": false,\r\n        \"enabled_track\": true,\r\n        \"forced_track\": false,\r\n        \"language\": \"eng\",\r\n        \"number\": 3,\r\n        \"track_name\": \"English Main - PGS\",\r\n        \"uid\": 3\r\n      },\r\n      \"type\": \"subtitles\"\r\n    },\r\n    {\r\n      \"codec\": \"HDMV PGS\",\r\n      \"id\": 3,\r\n      \"properties\": {\r\n        \"codec_id\": \"S_HDMV/PGS\",\r\n        \"codec_private_length\": 0,\r\n        \"content_encoding_algorithms\": \"0\",\r\n        \"default_track\": false,\r\n        \"enabled_track\": true,\r\n        \"forced_track\": false,\r\n        \"language\": \"eng\",\r\n        \"number\": 4,\r\n        \"track_name\": \"English SDH - PGS\",\r\n        \"uid\": 4\r\n      },\r\n      \"type\": \"subtitles\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nRegular identification output:\r\n\r\n```\r\nC:\\Users\\user>mkvmerge -I \"F:\\Videos\\Movies\\Transformers\\3 - Dark of the Moon.mkv\"\r\nFile 'F:\\Videos\\Movies\\Transformers\\3 - Dark of the Moon.mkv': container: Matroska [container_type:17 duration:9263296000000 is_providing_timecodes:1 segment_uid:8c1ad8f60c2104d3859ca6b232a3e78b title:Transformers\\c\\sDark\\sof\\sthe\\sMoon]\r\nTrack ID 0: video (MPEG-4p10/AVC/h.264) [codec_id:V_MPEG4/ISO/AVC codec_private_data:01640029ffe1003567640029ac1b1a501e0089f9701100000303e90000bb80e26000040d9800007270e8c4b8c4c000081b300000e4e1d18970f8e1852c01004268ea8dce51d1d84388c54548223311cd9a2128e8ec21c462a2a4111988e6cd109444c521b93c57c9f93f93f27c9e6e4c9250890a4272793ebf27f5f93ebc9c9a91c0fdf8f800 codec_private_length:134 default_duration:41708333 default_track:1 display_dimensions:1920x1080 enabled_track:1 forced_track:0 language:eng number:1 packetizer:mpeg4_p10_video pixel_dimensions:1920x1080 track_name:AVC/H.264/MPEG4\\sPart\\s10\\s(23.976\\sfps) uid:1]\r\nTrack ID 1: audio (FLAC) [audio_bits_per_sample:16 audio_channels:8 audio_sampling_frequency:48000 codec_id:A_FLAC codec_private_data:664c6143000000221200120000002000acd20bb80ef01a80a3f801a5ff69a05e437b85afc9aa0e6ada91040000731f0000004d616b654d4b562076312e392e372077696e287836342d72656c6561736529020000001d000000454e434f4445523d6c69626176636f646563207635362e34312e3130302700000057415645464f524d4154455854454e5349424c455f4348414e4e454c5f4d41534b3d3078363346810000204d616b654d4b562076312e392e372077696e287836342d72656c656173652900 codec_private_length:197 default_duration:96000000 default_track:1 enabled_track:1 forced_track:0 language:eng number:2 track_name:English\\sMain\\s-\\sFLAC(5.1) uid:2]\r\nTrack ID 2: subtitles (HDMV PGS) [codec_id:S_HDMV/PGS codec_private_length:0 content_encoding_algorithms:0 default_track:0 enabled_track:1 forced_track:0 language:eng number:3 track_name:English\\sMain\\s-\\sPGS uid:3]\r\nTrack ID 3: subtitles (HDMV PGS) [codec_id:S_HDMV/PGS codec_private_length:0 content_encoding_algorithms:0 default_track:0 enabled_track:1 forced_track:0 language:eng number:4 track_name:English\\sSDH\\s-\\sPGS uid:4]\r\nChapters: 22 entries\r\n```\r\n\r\nCorresponding tags extracted with `mkvextract`:\r\n```\r\n<?xml version=\"1.0\"?>\r\n<!-- <!DOCTYPE Tags SYSTEM \"matroskatags.dtd\"> -->\r\n<Tags>\r\n  <Tag>\r\n    <Targets>\r\n      <TargetTypeValue>50</TargetTypeValue>\r\n      <TrackUID>1</TrackUID>\r\n      <TargetType>MOVIE</TargetType>\r\n    </Targets>\r\n    <Simple>\r\n      <Name>BPS</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>27522979</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>DURATION</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>02:34:23.296000000</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>NUMBER_OF_FRAMES</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>222097</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>NUMBER_OF_BYTES</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>31869188496</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>_STATISTICS_WRITING_APP</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>mkvmerge v8.4.0 ('A better way to fly') 64bit</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>_STATISTICS_WRITING_DATE_UTC</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>2015-10-15 07:55:44</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>_STATISTICS_TAGS</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES</String>\r\n    </Simple>\r\n  </Tag>\r\n  <Tag>\r\n    <Targets>\r\n      <TargetTypeValue>50</TargetTypeValue>\r\n      <TrackUID>2</TrackUID>\r\n      <TargetType>MOVIE</TargetType>\r\n    </Targets>\r\n    <Simple>\r\n      <Name>BPS</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>1769194</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>DURATION</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>02:34:23.296000000</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>NUMBER_OF_FRAMES</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>96493</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>NUMBER_OF_BYTES</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>2048571501</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>_STATISTICS_WRITING_APP</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>mkvmerge v8.4.0 ('A better way to fly') 64bit</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>_STATISTICS_WRITING_DATE_UTC</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>2015-10-15 07:55:44</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>_STATISTICS_TAGS</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES</String>\r\n    </Simple>\r\n  </Tag>\r\n  <Tag>\r\n    <Targets>\r\n      <TargetTypeValue>50</TargetTypeValue>\r\n      <TrackUID>3</TrackUID>\r\n      <TargetType>MOVIE</TargetType>\r\n    </Targets>\r\n    <Simple>\r\n      <Name>BPS</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>12474</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>DURATION</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>02:25:52.765000000</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>NUMBER_OF_FRAMES</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>4136</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>NUMBER_OF_BYTES</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>13647769</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>_STATISTICS_WRITING_APP</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>mkvmerge v8.4.0 ('A better way to fly') 64bit</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>_STATISTICS_WRITING_DATE_UTC</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>2015-10-15 07:55:44</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>_STATISTICS_TAGS</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES</String>\r\n    </Simple>\r\n  </Tag>\r\n  <Tag>\r\n    <Targets>\r\n      <TargetTypeValue>50</TargetTypeValue>\r\n      <TrackUID>4</TrackUID>\r\n      <TargetType>MOVIE</TargetType>\r\n    </Targets>\r\n    <Simple>\r\n      <Name>BPS</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>13691</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>DURATION</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>02:29:43.370000000</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>NUMBER_OF_FRAMES</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>4658</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>NUMBER_OF_BYTES</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>15374969</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>_STATISTICS_WRITING_APP</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>mkvmerge v8.4.0 ('A better way to fly') 64bit</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>_STATISTICS_WRITING_DATE_UTC</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>2015-10-15 07:55:44</String>\r\n    </Simple>\r\n    <Simple>\r\n      <Name>_STATISTICS_TAGS</Name>\r\n      <TagLanguage>eng</TagLanguage>\r\n      <DefaultLanguage>1</DefaultLanguage>\r\n      <String>BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES</String>\r\n    </Simple>\r\n  </Tag>\r\n</Tags>\r\n```"}}