Selur's Little Message Board

Full Version: Audio from dvd
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
When I load a DVD and select a chapter for rip it, hybrid put the audio from the start of the movie and not from the chapter...where I mistake?  Huh
Also with custom audio dont find a solution... Confused
Sounds like a bug.
Not sharing details I can't help.
-> read the sticky, provide the details asked for and share a debug output which includes at least the analysis of the source and the job creation

Cu Selur
Tried to reproduce this by:
  • starting Hybrid
  • settings default Paths under Config->Paths
  • enabling 'Base->DVD Input'
  • opening a DVD (got chapters 1-35)
  • selecting chapter 32-35
  • settings 'Base->Processing->Video to passthrough'
  • settings 'Base->Processing->Audio to passthrough all'
  • settings an output file with .mkv extension
  • creating the job for the settings with it's subjobs.
  • disabling 'Jobs->Queue->Minimize job command lines'
and then looking at the commands of the audio jobs:
Code:
mplayer -v -mc 0 -vc dummy -nocorrect-pts -noconsolecontrols -nocorrect-pts -vc null -vo null -nocache -hardframedrop -aid 128 dvd://1 -dvd-device "G:\TestClips&Co\discs\DVDs\TestDVD" -chapter 32-35 -dumpaudio -dumpfile "J:\tmp\2025-07-21@19_57_54_1610\iId_1_aid_128_lang_en_2025-07-21@19_57_54_1610_01.ac3" mplayer -v -mc 0 -vc dummy -nocorrect-pts -noconsolecontrols -nocorrect-pts -vc null -vo null -nocache -hardframedrop -aid 129 dvd://1 -dvd-device "G:\TestClips&Co\discs\DVDs\TestDVD" -chapter 32-35 -dumpaudio -dumpfile "J:\tmp\2025-07-21@19_57_54_1610\iId_2_aid_129_lang_de_2025-07-21@19_57_54_1610_02.ac3" mplayer -v -mc 0 -vc dummy -nocorrect-pts -noconsolecontrols -nocorrect-pts -vc null -vo null -nocache -hardframedrop -aid 130 dvd://1 -dvd-device "G:\TestClips&Co\discs\DVDs\TestDVD" -chapter 32-35 -dumpaudio -dumpfile "J:\tmp\2025-07-21@19_57_54_1610\iId_3_aid_130_lang_nl_2025-07-21@19_57_54_1610_03.ac3"
They all contained "-chapter START-END" and seemed correct.
Then I started the job and looked at the output.
The audio was properly cut.

I also tried 'selecting chapter 32-33' and again the "-chapter START-END" info was correctly set and after processing everything was as expected.

=> Can't reproduce the problem with the given information.

Cu Selur

Ps.: Moved the thread to 'Problems & Questions'.
Ok try that debug
According to the debug output Hybrid does not detect the chapter matching, which is strange.
The audio queue entries: ('matchesChapter: false')
Code:
2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: extractAudioFromDVDWithMplayer: E:\VIDEO_TS 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: shortFileName for: E:\VIDEO_TS 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: -> shortened name: E:\VIDEO_TS 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: set mencoder/mplayer selection,... 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: cut: false 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: getChaperUsed,... 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: startChapter: 52 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: endChapter: 66 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: chapterCount: 82 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: -> chapterUsed: true 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: getStartAndEnd(cutStartTime: 7740.71, cutEndTime: 9293.5, selectionStartTime: 7740.7, selectionEndTime: 9293.5, ...) 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: startTime: 7740.70737404 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: endTime: 9293.50000000 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: -> startTime: 7740.71, endTime: 9293.5 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: matchesChapter: false 2025.07.21 - 21:11:03_Windows 11 Version 24H2 (64bit)_2025.05.18.2 - level 9: chapter(2): -ss 7740.71 -endpos 1552.79
it uses '-ss 7740.71 -endpos 1552.79'
When I do it here I see:
Code:
2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: extractAudioFromDVDWithMplayer: G:\TestClips&Co\discs\DVDs\TestDVD 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: shortFileName for: G:\TestClips&Co\discs\DVDs\TestDVD 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: -> shortened name: G:\TestClips&Co\discs\DVDs\TestDVD 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: set mencoder/mplayer selection,... 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: cut: false 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: getChaperUsed,... 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: startChapter: 32 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: endChapter: 35 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: chapterCount: 35 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: -> chapterUsed: true 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: getStartAndEnd(cutStartTime: 7728.48, cutEndTime: 8767.12, selectionStartTime: 7728.48, selectionEndTime: 8767.12, ...) 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: startTime: 7728.48000000 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: endTime: 8767.12000000 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: -> startTime: 7728.48, endTime: 8767.12 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: matchesChapter: true 2025.07.22 - 04:30:39_Windows 11 Version 24H2 (64bit)_2025.07.21.1 - level 9: chapter(1): -chapter 32-35

This should not really be a problem, since both should work.
The generated audio call is:
Code:
mplayer -v -mc 0 -vc dummy -nocorrect-pts -noconsolecontrols -nocorrect-pts -vc null -vo null -nocache -hardframedrop -aid 129 dvd://2 -dvd-device "E:\VIDEO_TS" -ss 7740.71 -endpos 1552.79 -dumpaudio -dumpfile "D:\Nuova cartella\iId_2_aid_129_lang_und_2025-07-21@21_11_03_4010_02.ac3"
which does contain the start&end info (' -ss 7740.71 -endpos 1552.79 ').

Looking at the processing of the audio call:
Code:
MPlayer SVN-r38359-11.2.0 (C) 2000-2022 MPlayer Team CPU vendor name: GenuineIntel max cpuid level: 32 CPU: Intel(R) Core(TM) i7-14700F (Family: 6, Model: 183, Stepping: 1) extended cpuid-level: 8 extended cache-info: 134246464 Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSE3: 1 SSSE3: 1 SSE4: 1 SSE4.2: 1 AVX: 1 Compiled with runtime CPU detection. get_path('codecs.conf') -> 'C:/Program Files/Hybrid/64bit/mplayer/codecs.conf' Reading optional codecs config file C:/Program Files/Hybrid/64bit/mplayer/codecs.conf: No such file or directory Reading optional codecs config file /local64/etc/mplayer/codecs.conf: No such file or directory Using built-in default codecs.conf. init_freetype Using SSE2 Optimized OnScreenDisplay get_path('fonts') -> 'C:/Program Files/Hybrid/64bit/mplayer/fonts' Configuration: --prefix=/local64 --bindir=/local64/bin-video --extra-cflags=-fpermissive -DPTW32_STATIC_LIB -O3 -DMODPLUG_STATIC --extra-libs=-llzma -liconv -lws2_32 -lpthread -lwinpthread -lpng -lwinmm -LI:/media-autobuild_suite/local64/lib -lilbc -lstdc++ --extra-ldflags=-Wl,--allow-multiple-definition --enable-static --enable-runtime-cpudetection --disable-gif --disable-cddb --disable-faac --with-dvdread-config=/mingw64/bin/pkgconf --keep-system-libs --keep-system-cflags --static dvdread --with-freetype-config=/mingw64/bin/pkgconf --keep-system-libs --keep-system-cflags --static freetype2 --with-dvdnav-config=/mingw64/bin/pkgconf --keep-system-libs --keep-system-cflags --static dvdnav CommandLine: '-v' '-mc' '0' '-vc' 'dummy' '-nocorrect-pts' '-noconsolecontrols' '-nocorrect-pts' '-vc' 'null' '-vo' 'null' '-nocache' '-hardframedrop' '-aid' '128' 'dvd://2' '-dvd-device' 'E:\VIDEO_TS' '-ss' '7740.71' '-endpos' '1552.79' '-dumpaudio' '-dumpfile' 'D:\Nuova cartella\iId_1_aid_128_lang_und_2025-07-21@21_11_03_4010_01.ac3' Using Windows native timing get_path('input.conf') -> 'C:/Program Files/Hybrid/64bit/mplayer/input.conf' Parsing input config file C:/Program Files/Hybrid/64bit/mplayer/input.conf Input config file C:/Program Files/Hybrid/64bit/mplayer/input.conf parsed: 92 binds get_path('2.conf') -> 'C:/Program Files/Hybrid/64bit/mplayer/2.conf' Playing dvd://2. get_path('sub/') -> 'C:/Program Files/Hybrid/64bit/mplayer/sub/' WINSOCK2 init: 0 URL: dvd://2 Reading disc structure, please wait... There are 7 titles on this DVD. There are 1 angles in this DVD title. MPlayer output: DVD successfully opened. audio stream: 0 format: ac3 (mono) language: aid: 128. audio stream: 1 format: ac3 (mono) language: aid: 129. number of audio channels on disk: 2. number of subtitles on disk: 0 DVD start cell: 0 pack: 0x0-0xEDB2 DVD start=0 end=3998383 STREAM: [null] dvd://2 STREAM: Description: DVD stream STREAM: Author: STREAM: Comment: system stream synced at 0xD (13)! ==> Found video stream: 0 DVD Seek! lba=0x0 cell=0 packs: 0x0-0xEDB2 Angle-seek synced by cell/vob IDN search! MPEG-PS file format detected. ==> Found audio stream: 128 WINSOCK2 init: 0 WINSOCK2 init: 0 [file] File size is 0 bytes STREAM: [file] D:\Nuova cartella\iId_1_aid_128_lang_und_2025-07-21@21_11_03_4010_01.ac3 STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) ==> Found audio stream: 129 --- END OF CELL !!! --- DVD next cell: 1 pack: 0xEDB3-0x21994 --- END OF CELL !!! --- DVD next cell: 2 pack: 0x21995-0x333A3 --- END OF CELL !!! --- DVD next cell: 3 pack: 0x333A4-0x44322 --- END OF CELL !!! --- DVD next cell: 4 pack: 0x44323-0x558B0 --- END OF CELL !!! --- DVD next cell: 5 pack: 0x558B1-0x73863 --- END OF CELL !!! --- DVD next cell: 6 pack: 0x73864-0x84411 dump: 28677597 bytes written (~12.2%) --- END OF CELL !!! --- DVD next cell: 7 pack: 0x84412-0x928AB --- END OF CELL !!! --- DVD next cell: 8 pack: 0x928AC-0x9E615 WINSOCK2 uninit dump: 37259709 bytes written to 'D:\Nuova cartella\iId_1_aid_128_lang_und_2025-07-21@21_11_03_4010_01.ac3'. Core dumped ;) WINSOCK2 uninit Exiting... (End of file)
It looks like title 2 ('dvd://2') has only 7 chapters.
So seems like there is a title mix-up.
Not sure why or where this happened, since the debug output did not contain the analysis of the source, but starts at the job generation.
(this would explain the 'matchesChapter: false')

Cu Selur
And so what can I do?
I try other dvds and same problem, but some other work, for example this
Create a debug output which also includes the analysis of the source too, since the issue seems to be there.
The second attached debug output also only includes the job creation.

Cu Selur

Ps.: Alternatively you could use something like MakeMKV if your only goal is extracting of some chapters.
Maybe this can help
Take a look at makemkv
That again, is just the job creation. Sad
Ok after some setting maybe I find a fix, with default container raw instead of mkv it work 
Setting custom audio i notice there are dual audio, maybe thats the problem  Rolleyes
Pages: 1 2