amietn / vcsi

Create video contact sheets, thumbnails
MIT License
491 stars 57 forks source link

Does not worth with mkv video files #110

Open Spedwards opened 1 year ago

Spedwards commented 1 year ago

I've been using vcsi for a while and always with mp4 files. I recently switched to using mkv files and immediately noticed that vcsi does not work with them at all. I converted one of these files to an mp4 (not changing codecs or anything) and it worked.

Here's the ffprobe output of a short mkv file I tested with:

Input #0, matroska,webm, from 'T:\test_video.mkv':
  Metadata:
    title           : Movie_BD
    ENCODER         : Lavf58.45.100
  Duration: 00:00:53.77, start: 0.000000, bitrate: 3428 kb/s
    Chapter #0:0: start 0.000000, end 53.261541
    Metadata:
      title           : Chapter 19
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS-eng         : 19998603
      DURATION-eng    : 01:37:55.035833333
      NUMBER_OF_FRAMES-eng: 140860
      NUMBER_OF_BYTES-eng: 14686561810
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-01-07 02:52:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      DURATION        : 00:00:53.761000000
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 448000
      DURATION-eng    : 01:37:55.040000000
      NUMBER_OF_FRAMES-eng: 183595
      NUMBER_OF_BYTES-eng: 329002240
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-01-07 02:52:52
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      DURATION        : 00:00:53.766000000

Here's the ffprobe output for the same file after converted to mp4:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'T:\test_video.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Movie_BD
    encoder         : Lavf58.45.100
  Duration: 00:00:53.76, start: 0.000000, bitrate: 3431 kb/s
    Chapter #0:0: start 0.000000, end 53.262000
    Metadata:
      title           : Chapter 19
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 2977 kb/s, 23.98 fps, 23.98 tbr, 16k tbn, 47.95 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Side data:
      audio service type: main
    Stream #0:2(eng): Data: bin_data (text / 0x74786574), 0 kb/s
    Metadata:
      handler_name    : SubtitleHandler
Unsupported codec with id 100359 for input stream 2

That mp4 output has an error and still vcsi works on it.

benpollinger commented 1 year ago

I just started using vcsi, using some MKVs from last year to get set up and it works fine for me:

Input #0, matroska,webm, from 'birdbox_2022-02-07_15-30.mkv':
  Metadata:
    title           : RTSP Session
    ENCODER         : Lavf58.20.100
  Duration: 00:10:00.00, start: 0.000000, bitrate: 1979 kb/s
    Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
    Metadata:
      DURATION        : 00:10:00.000000000
    Stream #0:1: Audio: pcm_alaw ([6][0][0][0] / 0x0006), 8000 Hz, 1 channels, s16, 64 kb/s (default)
    Metadata:
      DURATION        : 00:10:00.000000000