dubhater / D2VWitch

Cross-platform D2V creator
36 stars 6 forks source link

--info not reporting audio streams properly,.. #7

Closed Selur closed 3 years ago

Selur commented 3 years ago

using

D2V Witch version: 5
libavformat version: 58.29.100
libavcodec version: 58.54.100
libavutil version: 56.31.100

libavformat configuration:
--prefix=/usr/x86_64-w64-mingw32 --enable-cross-compile --cross-prefix=x86_64-w64-mingw32- --target-os=mingw32 --arch=x86_64 --disable-debug --enable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-zlib --enable-shared --enable-version3 --disable-doc --x86asmexe=yasm

libavcodec configuration:
--prefix=/usr/x86_64-w64-mingw32 --enable-cross-compile --cross-prefix=x86_64-w64-mingw32- --target-os=mingw32 --arch=x86_64 --disable-debug --enable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-zlib --enable-shared --enable-version3 --disable-doc --x86asmexe=yasm

libavutil configuration:
--prefix=/usr/x86_64-w64-mingw32 --enable-cross-compile --cross-prefix=x86_64-w64-mingw32- --target-os=mingw32 --arch=x86_64 --disable-debug --enable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-zlib --enable-shared --enable-version3 --disable-doc --x86asmexe=yasm

using:

d2vwitch --info --single-input "F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_1.VOB" "F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_2.VOB" "F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_3.VOB" "F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_4.VOB" "F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_5.VOB" "F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_6.VOB" "F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_7.VOB" "F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_8.VOB"

it reports

Input file(s):
    F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_1.VOB
    F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_2.VOB
    F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_3.VOB
    F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_4.VOB
    F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_5.VOB
    F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_6.VOB
    F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_7.VOB
    F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_8.VOB

    Type: MPEG-PS (MPEG-2 Program Stream)

Video tracks:
    Id: 1e0, type: MPEG-2 video, 720x576, yuv420p

Audio tracks:
    Id: 80, type: ATSC A/52A (AC-3), 448 kbps, 5.1(side), 48000 Hz
    Id: 83, type: ATSC A/52A (AC-3), 0 kbps, 0 channels, 0 Hz

MediaInfo using

mediainfo.exe "F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_1.VOB"

reports for the first vob:

General
Complete name                            : F:\TestClips&Co\discs\DVDs\TestDVD\VTS_01_1.VOB
Format                                   : MPEG-PS
File size                                : 1 024 MiB
Duration                                 : 21 min 9 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 6 765 kb/s

Video
ID                                       : 224 (0xE0)
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                     : M=3, N=15
Format settings, picture structure       : Frame
Duration                                 : 21 min 9 s
Bit rate mode                            : Variable
Bit rate                                 : 5 286 kb/s
Maximum bit rate                         : 7 500 kb/s
Width                                    : 720 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 FPS
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.510
Time code of first frame                 : 00:59:58:00
Time code source                         : Group of pictures header
GOP, Open/Closed                         : Open
GOP, Open/Closed of first frame          : Closed
Stream size                              : 800 MiB (78%)

Audio #1
ID                                       : 189 (0xBD)-128 (0x80)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Muxing mode                              : DVD-Video
Duration                                 : 21 min 9 s
Bit rate mode                            : Constant
Bit rate                                 : 448 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 67.8 MiB (7%)
Service kind                             : Complete Main

Audio #2
ID                                       : 189 (0xBD)-129 (0x81)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Muxing mode                              : DVD-Video
Duration                                 : 5 s 376 ms
Bit rate mode                            : Constant
Bit rate                                 : 448 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 294 KiB (0%)
Service kind                             : Complete Main

Audio #3
ID                                       : 189 (0xBD)-130 (0x82)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Muxing mode                              : DVD-Video
Duration                                 : 5 s 376 ms
Bit rate mode                            : Constant
Bit rate                                 : 448 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 294 KiB (0%)
Service kind                             : Complete Main

mplayer using

mplayer.exe -identify -vc null -ac null -vo null -ao null -frames 0 dvd://1 -dvd-device "F:\TESTCL~1\discs\DVDs\TestDVD"

reports:

MPlayer SVN-r38203-10.2.0 (C) 2000-2020 MPlayer Team
getch2: 6 can't get number of input events  [disabling console input]

Playing dvd://1.

libdvdread: Encrypted DVD support unavailable.
ID_DVD_TITLES=5
ID_DVD_TITLE_1_CHAPTERS=35
ID_DVD_TITLE_1_ANGLES=1
ID_DVD_TITLE_2_CHAPTERS=1
ID_DVD_TITLE_2_ANGLES=1
ID_DVD_TITLE_3_CHAPTERS=1
ID_DVD_TITLE_3_ANGLES=1
ID_DVD_TITLE_4_CHAPTERS=1
ID_DVD_TITLE_4_ANGLES=1
ID_DVD_TITLE_5_CHAPTERS=1
ID_DVD_TITLE_5_ANGLES=1
ID_DVD_TITLE_1_LENGTH=8767.120
ID_DVD_TITLE_2_LENGTH=12.800
ID_DVD_TITLE_3_LENGTH=137.200
ID_DVD_TITLE_4_LENGTH=2.000
ID_DVD_TITLE_5_LENGTH=106.240

ID_DVD_DISC_ID=...
There are 5 titles on this DVD.

ID_DVD_CURRENT_TITLE=1
There are 1 angles in this DVD title.

audio stream: 0 format: ac3 (5.1) language: en aid: 128.

ID_AUDIO_ID=128
ID_AID_128_LANG=en
audio stream: 1 format: ac3 (5.1) language: de aid: 129.

ID_AUDIO_ID=129
ID_AID_129_LANG=de
audio stream: 2 format: ac3 (5.1) language: nl aid: 130.

ID_AUDIO_ID=130
ID_AID_130_LANG=nl
number of audio channels on disk: 3.
subtitle ( sid ): 0 language: en

ID_SUBTITLE_ID=0
ID_SID_0_LANG=en
subtitle ( sid ): 1 language: de

ID_SUBTITLE_ID=1
ID_SID_1_LANG=de
subtitle ( sid ): 2 language: nl

ID_SUBTITLE_ID=2
ID_SID_2_LANG=nl
subtitle ( sid ): 3 language: de

ID_SUBTITLE_ID=3
ID_SID_3_LANG=de
number of subtitles on disk: 4

CHAPTERS: 00:00:00.000,00:03:55.240,00:07:50.840,00:11:47.000,00:17:39.720,00:20:50.040,00:23:40.760,00:27:38.440,00:29:48.520,00:32:41.560,00:36:16.440,00:39:47.280,00:44:19.640,00:48:24.760,00:52:48.760,00:58:25.600,01:01:07.040,01:05:01.280,01:10:47.600,01:17:00.320,01:20:28.120,01:24:54.640,01:27:56.840,01:32:44.720,01:38:22.520,01:44:36.680,01:48:42.720,01:53:19.080,01:58:40.440,02:01:43.920,02:05:33.360,02:08:48.480,02:11:51.440,02:15:56.080,02:18:17.320,

ID_VIDEO_ID=0
MPEG-PS file format detected.
ID_AUDIO_ID=130
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  7500.0 kbps (937.5 kbyte/s)
==========================================================================
Forced video codec: null
Opening video decoder: [null] Null video decoder
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7778
VO: [null] 720x576 => 1024x576 BGR 24-bit 
Selected video codec: [null] vfm: null (NULL codec (no decoding!))
==========================================================================
ID_VIDEO_CODEC=null
ID_FILENAME=dvd://1
ID_DEMUXER=mpegps
ID_VIDEO_FORMAT=0x10000002
ID_VIDEO_BITRATE=7500000
ID_VIDEO_WIDTH=720
ID_VIDEO_HEIGHT=576
ID_VIDEO_FPS=25.000
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_START_TIME=0.05
ID_LENGTH=8767.12
ID_SEEKABLE=1
ID_CHAPTERS=35
==========================================================================
Forced audio codec: null

DGIndex too finds all three streams 80,81,82.

No clue where the stream 83 comes from. All three audio tracks are full length and mplayer and dgindex can extract them all fine. Seems like there is a bug somewhere in the analysis of the source. If further info is needed let me know and I try to provide it.

Cu Selur

dubhater commented 3 years ago

That's weird. Is it the same if you use the graphical interface?

Selur commented 3 years ago

Yes, it's the same. GUI

dubhater commented 3 years ago

I guess it's a problem in ffmpeg then. You could try replacing the ffmpeg DLLs with newer ones. The current ones are from 4.2.2.

Selur commented 3 years ago

too much trouble, just wanted to let you know that there is a problem. (+ I doubt that updating ffmpeg will solve the problem. ;))

dubhater commented 3 years ago

Can I have the first 20 megabytes of VTS_01_1.VOB, please? Or however much of it is needed to reproduce the problem.

Selur commented 3 years ago

Sure, but due to copyright the question is: how can I share the link with you? Github has no private message function or similar. -> doh will send you a link via PM over at doom9

dubhater commented 3 years ago

Thanks. ffmpeg has a problem with this. It doesn't examine enough of the stream to find the information about those two tracks. I "fixed" it.