Skip to content

Merge Multiple M2V files and OGG.... problably found a good way to do....  #30

@DjDiabolik

Description

@DjDiabolik

I have DL2 M2V and OGG in multiple m2v files............ i have tryed manually to join and merge whit various app but all fail.
Until today......... one my friends has presented to my this app:
LossLessCut available here on GitHUB:
https://github.com/mifi/lossless-cut/releases

I have add all my DL2 M2V on Batch merge and it's found an issue......... so strange two files have a different FPS..... 30 FPS instead 23.976.
I have re-encoded that whit FFMPEG and after that i have JOINED ALL M2V and all file OGG files in two different files.....
dl2-full.m2v and dl2-full.ogg... here the info:

General
Complete name               : D:\Temp\N_m3u8DL-RE_Beta_win-x64\dl2-full.m2v
Format                      : MPEG Video
Format version              : Version 2
File size                   : 724 MiB
Overall bit rate mode       : Variable
Frame rate                  : 23.976 FPS
Writing library             : TMPGEnc 2.521.58.169

Video
Format                      : MPEG Video
Format version              : Version 2
Format profile              : Main@Main
Format settings             : BVOP
Format settings, BVOP       : Yes
Format settings, Matrix     : Default
Format settings, GOP        : Variable
Bit rate mode               : Variable
Width                       : 640 pixels
Height                      : 480 pixels
Display aspect ratio        : 4:3
Frame rate                  : 23.976 (24000/1001) FPS
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Progressive
Compression mode            : Lossy
Writing library             : TMPGEnc 2.521.58.169
Color primaries             : BT.601 PAL
Transfer characteristics    : BT.470 System B/G
Matrix coefficients         : FCC 73.682


And here:

General
Complete name               : D:\Temp\N_m3u8DL-RE_Beta_win-x64\dl2-full.ogg
Format                      : Ogg
File size                   : 28.0 MiB
Duration                    : 27 h 24 min
Overall bit rate mode       : Variable
Overall bit rate            : 2 379 b/s
Writing application         : Lavf60.3.100

Audio
ID                          : 632965050 (0x25BA47BA)
Format                      : Vorbis
Format settings, Floor      : 1
Duration                    : 27 h 24 min
Bit rate mode               : Variable
Bit rate                    : 160 kb/s
Channel(s)                  : 2 channels
Sampling rate               : 44.1 kHz
Compression mode            : Lossy
Stream size                 : 1.84 GiB
Writing library             : Lavf60.3.100

After that i have tryed to convert, also here with FFMPEG to obtain this:

General
Complete name               : D:\Temp\N_m3u8DL-RE_Beta_win-x64\dl2.ogv
Format                      : Ogg
File size                   : 298 MiB
Duration                    : 26 min 2 s
Overall bit rate mode       : Variable
Overall bit rate            : 1 601 kb/s
Frame rate                  : 23.976 FPS
Writing application         : Lavc61.11.100 libvorbis

Video
ID                          : 691305448 (0x29347BE8)
Format                      : Theora
Duration                    : 26 min 2 s
Bit rate                    : 1 368 kb/s
Width                       : 640 pixels
Height                      : 480 pixels
Display aspect ratio        : 4:3
Frame rate                  : 23.976 (24000/1001) FPS
Compression mode            : Lossy
Bits/(Pixel*Frame)          : 0.186
Stream size                 : 255 MiB (85%)
Writing library             : Lavf61.5.101

Audio
ID                          : 2929853478 (0xAEA20426)
Format                      : Vorbis
Format settings, Floor      : 1
Duration                    : 26 min 2 s
Bit rate mode               : Variable
Bit rate                    : 160 kb/s
Channel(s)                  : 2 channels
Sampling rate               : 44.1 kHz
Compression mode            : Lossy
Stream size                 : 29.8 MiB (10%)
Writing library             : Lavf61.5.101


Ok... Dragon's Lair 2 Time Warp it's not supported at right now.............. but the output of files it's completely unusable because it's present so many glitch.....
During all converting procedure it's appears so many errors...... i can post some parts of log:

D:\Temp\N_m3u8DL-RE_Beta_win-x64>ffmpeg -i dl2-full.m2v -i dl2-full.ogg -codec:v libtheora -qscale:v 7 -codec:a libvorbis -qscale:a 5 -pix_fmt yuv420p dl2.ogv
ffmpeg version N-116468-g0e09f6d690-20240730 Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 14.1.0 (crosstool-NG 1.26.0.93_a87bf7f)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-libxml2 --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --enable-libdvdread --enable-libdvdnav --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-libs=-lgomp --extra-ldflags=-pthread --extra-ldexeflags= --cc=x86_64-w64-mingw32-gcc --cxx=x86_64-w64-mingw32-g++ --ar=x86_64-w64-mingw32-gcc-ar --ranlib=x86_64-w64-mingw32-gcc-ranlib --nm=x86_64-w64-mingw32-gcc-nm --extra-version=20240730
  libavutil      59. 31.100 / 59. 31.100
  libavcodec     61. 11.100 / 61. 11.100
  libavformat    61.  5.101 / 61.  5.101
  libavdevice    61.  2.100 / 61.  2.100
  libavfilter    10.  2.102 / 10.  2.102
  libswscale      8.  2.100 /  8.  2.100
  libswresample   5.  2.100 /  5.  2.100
  libpostproc    58.  2.100 / 58.  2.100
Input #0, mpegvideo, from 'dl2-full.m2v':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: mpeg2video (mpeg1video) (Main), yuv420p(tv, fcc/bt470bg/bt470bg, progressive), 640x480 [SAR 1:1 DAR 4:3], 25 fps, 23.98 tbr, 1200k tbn
      Side data:
        cpb: bitrate max/min/avg: 12000000/0/0 buffer size: 1835008 vbv_delay: N/A
Input #1, ogg, from 'dl2-full.ogg':
  Duration: 27:24:12.20, start: 0.000000, bitrate: 2 kb/s
  Stream #1:0: Audio: vorbis, 44100 Hz, stereo, fltp, 160 kb/s
      Metadata:
        encoder         : Lavf60.3.100
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> theora (libtheora))
  Stream #1:0 -> #0:1 (vorbis (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
Output #0, ogv, to 'dl2.ogv':
  Metadata:
    encoder         : Lavf61.5.101
  Stream #0:0: Video: theora, yuv420p(tv, fcc/bt470bg/bt470bg, progressive), 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn
      Metadata:
        encoder         : Lavc61.11.100 libtheora
  Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp
      Metadata:
        encoder         : Lavc61.11.100 libvorbis
[libvorbis @ 000001be6a56a280] Queue input is backward in time
[libvorbis @ 000001be6a56a280] Queue input is backward in timeitrate= 521.5kbits/s speed=3.91x
[libvorbis @ 000001be6a56a280] Queue input is backward in timeitrate= 544.1kbits/s speed=4.08x
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1035162, current: 1034973; changing to 1035162. This may result in incorrect timestamps in the output file.
[libvorbis @ 000001be6a56a280] Queue input is backward in time
    Last message repeated 1 times
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1080029, current: 1079709; changing to 1080029. This may result in incorrect timestamps in the output file.
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1080029, current: 1079837; changing to 1080029. This may result in incorrect timestamps in the output file.
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1080029, current: 1079965; changing to 1080029. This may result in incorrect timestamps in the output file.
[libvorbis @ 000001be6a56a280] Queue input is backward in timeitrate= 499.5kbits/s speed=4.08x
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1161949, current: 1161629; changing to 1161949. This may result in incorrect timestamps in the output file.
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1161949, current: 1161757; changing to 1161949. This may result in incorrect timestamps in the output file.
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1161949, current: 1161885; changing to 1161949. This may result in incorrect timestamps in the output file.
[libvorbis @ 000001be6a56a280] Queue input is backward in timeitrate= 547.4kbits/s speed=   4x
[libvorbis @ 000001be6a56a280] Queue input is backward in timeitrate= 588.9kbits/s speed=3.95x
    Last message repeated 1 times
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1292253, current: 1291933; changing to 1292253. This may result in incorrect timestamps in the output file.
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1292253, current: 1292061; changing to 1292253. This may result in incorrect timestamps in the output file.
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1292253, current: 1292189; changing to 1292253. This may result in incorrect timestamps in the output file.
[libvorbis @ 000001be6a56a280] Queue input is backward in time
[libvorbis @ 000001be6a56a280] Queue input is backward in timeitrate= 701.0kbits/s speed=3.87x
    Last message repeated 4 times
[libvorbis @ 000001be6a56a280] Queue input is backward in timeitrate= 737.2kbits/s speed= 3.8x
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1414109, current: 1413789; changing to 1414109. This may result in incorrect timestamps in the output file.
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1414109, current: 1413917; changing to 1414109. This may result in incorrect timestamps in the output file.
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1414109, current: 1414045; changing to 1414109. This may result in incorrect timestamps in the output file.
[libvorbis @ 000001be6a56a280] Queue input is backward in time
[libvorbis @ 000001be6a56a280] Queue input is backward in timeitrate= 713.6kbits/s speed=3.69x
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1440605, current: 1440285; changing to 1440605. This may result in incorrect timestamps in the output file.
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1440605, current: 1440413; changing to 1440605. This may result in incorrect timestamps in the output file.
[libvorbis @ 000001be6a56a280] Queue input is backward in time
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1440605, current: 1440541; changing to 1440605. This may result in incorrect timestamps in the output file.
[libvorbis @ 000001be6a56a280] Queue input is backward in time
    Last message repeated 1 times
[libvorbis @ 000001be6a56a280] Queue input is backward in timeitrate= 869.8kbits/s speed=3.64x
    Last message repeated 3 times
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1533149, current: 1532829; changing to 1533149. This may result in incorrect timestamps in the output file.
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1533149, current: 1532957; changing to 1533149. This may result in incorrect timestamps in the output file.
[libvorbis @ 000001be6a56a280] Queue input is backward in time
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1533149, current: 1533085; changing to 1533149. This may result in incorrect timestamps in the output file.
[libvorbis @ 000001be6a56a280] Queue input is backward in time
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1552221, current: 1551901; changing to 1552221. This may result in incorrect timestamps in the output file.
[libvorbis @ 000001be6a56a280] Queue input is backward in time
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1552221, current: 1552029; changing to 1552221. This may result in incorrect timestamps in the output file.
[aost#0:1/libvorbis @ 000001be6a5ded40] Non-monotonic DTS; previous: 1552221, current: 1552157; changing to 1552221. This may result in incorrect timestamps in the output file.

and etc etc etc..... Problably a different setting on encoding it's better result ? So.. Dl2 it's not supported for now......... i thinks this is a purpose test for moment.... lol.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions