Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

chapters/menus list

Help
2011-07-25
2014-02-04
  • rodrigo polo
    rodrigo polo
    2011-07-25

    Is there any way to get ONLY the chapter/menu list using the CLI with "-Inform" or anything else?

    Something like:
    Menu
    00:00:00.000                     : Chapter 1
    00:03:59.113                     : Chapter 2
    00:13:39.819                     : Chapter 3
    00:14:20.860                     : Chapter 4
    00:28:48.143                     : Chapter 5
    00:29:49.996                     : Chapter 6
    00:39:36.373                     : Chapter 7
    00:42:42.560                     : Chapter 8
    01:05:23.920                     : Chapter 9
    01:08:45.538                     : Chapter 10
    01:12:12.536                     : Chapter 11
    01:13:52.845                     : Chapter 12
    01:36:10.765                     : Chapter 13
    01:37:01.816                     : Chapter 14
    01:49:20.971                     : Chapter 15
    01:50:27.621                     : Chapter 16
    01:58:25.098                     : Chapter 17
    02:04:27.501                     : Chapter 18

    ..and is possible change the format to:

    00:00:00.000 Chapter 1
    00:03:59.113 Chapter 2
    00:13:39.819 Chapter 3
    00:14:20.860 Chapter 4
    00:28:48.143 Chapter 5
    00:29:49.996 Chapter 6
    00:39:36.373 Chapter 7
    00:42:42.560 Chapter 8
    01:05:23.920 Chapter 9
    01:08:45.538 Chapter 10
    01:12:12.536 Chapter 11
    01:13:52.845 Chapter 12
    01:36:10.765 Chapter 13
    01:37:01.816 Chapter 14
    01:49:20.971 Chapter 15
    01:50:27.621 Chapter 16
    01:58:25.098 Chapter 17
    02:04:27.501 Chapter 18

     
  • This kind of modification is currently not possible, it must be externaly modified by a data extraction tool (awk and so on…)

     
    • rodrigo polo
      rodrigo polo
      2013-09-05

      :-/ 2 years, 1 month, 11 days later and no luck, how difficult could be to achieve this? the only way around this I have found is getting the results on XML and parsing the results but isn't perfect, why this is not included? it is not so hard!

       
      Last edit: rodrigo polo 2013-09-05
    • rodrigo polo
      rodrigo polo
      2013-09-05

      I'm willing to pay for something like this:

      mediainfo --Output=JSON c:\File.m4v
      

      And obtain a JSON object like this on the stdout:

      {
          "General": {
              "Completename": "C:\\File.m4v",
              "Format": "MPEG-4",
              "Format_profile": "Base Media / Version 2",
              "Codec_ID": "mp42",
              "File_size": "4.84 GiB",
              "File_size_Bytes": "5193575790",
              "Duration": "2h 4mn",
              "Duration_Secs": "7482.025",
              "Overall_bitrate_mode": "Variable",
              "Overall_bit_rate": "5553 Kbps",
              "Movie_name": "Movie Name",
              "Genre": "Action & Adventure",
              "Recorded_date": "UTC 2013-04-18 10:00:00",
              "Encoded_date": "UTC 2013-08-16 12:40:54",
              "Tagged_date": "UTC 2013-08-16 22:01:10",
              "Writing_application": "Some App",
              "Cover": "Yes",
              "Comment": "A random comment",
              "tvnn": "Radical Pictures",
              "desc": "A short description",
              "ldes": "A long description",
              "hdvd": "2",
              "stik": "9",
              "rtng": "0",
              "cnID": "8403241",
              "iTunEXTC": "mpaa|PG-13|300|",
              "iTunMOVI": "<?xml version=\"1.0\" encoding=\"UTF-8\"?> / <!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"> / <plist version=\"1.0\"> /   <dict> /     <key>cast</key> /     <array> /       <dict> /         <key>name</key> /         <string>Some Name</string> /       </dict> /       <dict> /         <key>name</key> /         <string>Some other name</string> /       </dict> /     </array> /     <key>directors</key> /     <array> /       <dict> /         <key>name</key> /         <string>Some Director</string> /       </dict> /     </array> /     <key>producers</key> /     <array> /       <dict> /         <key>name</key> /         <string>Jesse Berger</string> /       </dict> /       <dict> /         <key>name</key> /         <string>Some Producer</string> /       </dict> /       <dict> /         <key>name</key> /         <string>Other Producer</string> /       </dict> /     </array> /     <key>screenwriters</key> /     <array> /       <dict> /         <key>name</key> /         <string>Some Writer</string> /       </dict> /       <dict> /         <key>name</key> /         <string>Other Writer</string> /       </dict> /     </array> /   </dict> / </plist>"
          },
          "Video": [
              {
                  "Format": "AVC",
                  "Format_Info": "Advanced Video Codec",
                  "Format_profile": "High@L4.0",
                  "Format_settings_CABAC": "Yes",
                  "Format_settings_ReFrames": "5 frames",
                  "Codec_ID": "avc1",
                  "Codec_ID_Info": "Advanced Video Coding",
                  "Duration": "2h 4mn",
                  "Duration_Secs": "7482.025",
                  "Bit_rate_mode": "Variable",
                  "Bit_rate": "4328 Kbps",
                  "Width": "1920",
                  "Height": "804",
                  "Display_aspect_ratio": "2.40:1",
                  "Frame_rate_mode": "Variable",
                  "Frame_rate": "23.976",
                  "Minimum_frame_rate": "23.974",
                  "Maximum_frame_rate": "90000.000",
                  "Color_space": "YUV",
                  "Chroma_subsampling": "4:2:0",
                  "Bit_depth": "8",
                  "Scan_type": "Progressive",
                  "Bits_Pixel_Frame": "0.117",
                  "Stream_size": "3.77 GiB (78%)",
                  "Stream_size_Bytes": "4048085739",
                  "Writing_library": "x264 core 130 r2273 b3065e6",
                  "Encoding_settings": "cabac=1 / ref=5 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=25000 / vbv_bufsize=31250 / crf_max=0.0 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00",
                  "Encoded_date": "UTC 2013-08-16 12:40:54",
                  "Tagged_date": "UTC 2013-08-16 17:58:30",
                  "Color_primaries": "BT.709",
                  "Transfer_characteristics": "BT.709",
                  "Matrix_coefficients": "BT.709"
              }
          ],
          "Audio": [
              {
                  "Format": "AAC",
                  "Format/Info": "Advanced Audio Codec",
                  "Format_profile": "LC",
                  "Codec_ID": "40",
                  "Duration": "2h 4mn",
                  "Duration_Secs": "7482.025",
                  "Bit_rate_mode": "Variable",
                  "Bit_rate": "160",
                  "Maximum_bit_rate": "251",
                  "Channels": "2",
                  "Channel_positions": "Front: L R",
                  "Sampling_rate": "48.0 KHz",
                  "Compression_mode": "Lossy",
                  "Delay_relative_to_video": "83ms",
                  "Stream_size": "142 MiB (3%)",
                  "Stream_size_Bytes": "148897792",
                  "Language": "English",
                  "Encoded_date": "UTC 2013-08-16 12:40:54",
                  "Tagged_date": "UTC 2013-08-16 17:58:29"
              },{
                  "Format": "AC-3",
                  "Format_Info": "Audio Coding 3",
                  "Mode_extension": "CM (complete main)",
                  "Format_settings_Endianness": "Big",
                  "Codec_ID": "ac-3",
                  "Duration": "2h 4mn",
                  "Duration_Secs": "7482.025",
                  "Bit_rate_mode": "Constant",
                  "Bit_rate": "448",
                  "Channels": "6",
                  "Channel_positions": "Front: L C R, Side: L R, LFE",
                  "Sampling_rate": "48.0 KHz",
                  "Bit_depth": "16 bits",
                  "Compression_mode": "Lossy",
                  "Delay_relative_to_video": "83ms",
                  "Stream_size": "400 MiB (8%)",
                  "Stream_size_Bytes": "419430400",
                  "Language": "English",
                  "Encoded_date": "UTC 2013-08-16 12:40:54",
                  "Tagged_date": "UTC 2013-08-16 17:58:29"
              }
          ],
          "Text":[
              {
                  "Format": "Timed Text",
                  "Codec_ID": "tx3g",
                  "Duration": "1h 33mn",
                  "Bit_rate_mode": "Variable",
                  "Bit_rate": "69 bps",
                  "Stream_size": "47.5 KiB (0%)",
                  "Language": "English",
                  "Encoded_date": "UTC 2011-05-30 03:37:03",
                  "Tagged_date": "UTC 2011-05-30 03:37:03"
              },{
                  "Format": "Timed Text",
                  "Codec_ID": "tx3g",
                  "Duration": "1h 30mn",
                  "Bit_rate_mode": "Variable",
                  "Bit_rate": "68 bps",
                  "Stream_size": "45.4 KiB (0%)",
                  "Language": "Spanish",
                  "Encoded_date": "UTC 2011-05-30 03:37:03",
                  "Tagged_date": "UTC 2011-05-30 03:37:03"
              }
          ],
          "Menu": [
              [
                  {name: "Chapter 1", time: "00:00:00.000"},
                  {name: "Chapter 2", time: "00:05:00.000"},
                  {name: "Chapter 3", time: "00:10:00.000"},
                  {name: "Chapter 4", time: "00:15:00.000"},
                  {name: "Chapter 5", time: "00:20:00.000"},
                  {name: "Chapter 6", time: "00:25:00.000"},
                  {name: "Chapter 7", time: "00:30:00.000"},
                  {name: "Chapter 8", time: "00:35:00.000"},
                  {name: "Chapter 9", time: "00:40:00.000"},
                  {name: "Chapter 10", time: "00:45:00.000"},
                  {name: "Chapter 11", time: "00:50:00.000"},
                  {name: "Chapter 12", time: "00:55:00.000"},
                  {name: "Chapter 13", time: "01:00:00.000"},
                  {name: "Chapter 14", time: "01:05:00.000"},
                  {name: "Chapter 15", time: "01:10:00.000"},
                  {name: "Chapter 16", time: "01:15:00.000"},
                  {name: "Chapter 17", time: "01:20:00.000"},
                  {name: "Chapter 18", time: "01:25:00.000"},
                  {name: "Chapter 19", time: "01:30:00.000"}
              ],{
                  "Codec_ID": "text",
                  "Duration": "1h 35mn",
                  "Language": "English",
                  "Encoded_date": "UTC 2011-05-30 08:20:44",
                  "Tagged_date": "UTC 2011-05-30 08:20:44",
                  "Bit_rate_mode": "VBR",
                  "Duration_LastFrame": "4573"
              }
          ]
      }
      
       
    • rodrigo polo
      rodrigo polo
      2014-02-04

      I created a node module for this purpose, GPL:
      https://npmjs.org/package/mimovie

      Thanks a lot for your work!