Page 1 of 1

Help needed for Using the VLC command line for extracting audio.

Posted: 01 Dec 2017 14:11
by T_Sarastro
I want to extract portions (some chapters)of the audio on one of my DVD:s. (Being a newbie to VLC command line Interface I have read: VLC HowTo/Extract audio [https://wiki.videolan.org/VLC_HowTo/Ext ... _.28GUI.29], specially section 'Scripting extraction of multiple chapters using a batch file')

I have copied the DVD to my D-drive but most if the current tests have been made with the DVD inserted in drive E:

My problem is that I failed when I tried to build a command line using the proposals in the article above. The command line produced wave files but there is no sound in the files.

My System: VLC 2.2.6 Umbrella Win 10 64 bit VOX i5 8GB
Here my Command file: It is expected to deliver a command generating two wave file containing the sound from Title 2 Chapters 1 and 2.

Code: Select all

set DVDDrive=E:

Code: Select all

set DestPrefix=F:\

Code: Select all

set Title=2

Code: Select all

set FirstChapter=1

Code: Select all

set LastChapter=2

Code: Select all

for /L %%i in (%FirstChapter%,1,%LastChapter%) do "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -I dummy --no-sout-video --sout-audio --no-sout-rtp-sap --no-sout-standard-sap --ttl=1 --sout-keep --sout "#transcode{acodec=s16l,channels=2}:std{access=file,mux=wav,dst=%DestPrefix%_c%%i.wav}" dvdsimple:///%DVDDrive%\#%Title%:%%i-%Title%:%%i vlc://quit
Same command line but with line breaks for legibility:
  • for /L %%i in (%FirstChapter%,1,%LastChapter%) do "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
    -I dummy --no-sout-video --sout-audio --no-sout-rtp-sap --no-sout-standard-sap --ttl=1
    --sout-keep --sout "#transcode{acodec=s16l,channels=2}:std{access=file,mux=wav,dst=%DestPrefix%_c%%i.wav}"
    dvdsimple:///%DVDDrive%\#%Title%:%%i-%Title%:%%i vlc://quit

In APPENDIX :Logfiles

QUESTIONS:
1) Can you, dear reader, help me finding out what is wrong?

2) And where can I find explanation for following items:
dvdsimple: ?
CSS key?
ES_OUT_RESET_PCR?
PCR value ?

I hope You can help me a few steps forward in knowledge!
APPENDIX Output first command file and copy log on screen:

Code: Select all

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -I dummy --no-sout-video --sout-audio --no-sout-rtp-sap --no-sout-standard-sap --ttl=1 --sout-keep --sout "#transcode{acodec=s16l,channels=2}:std{access=file,mux=wav,dst=F:\_c1.wav}" dvdsimple:///E:\#2:1-2:1 vlc://quit
Coppy of log on screen
  • [00a0068c] dummy interface: VLC media player - 2.2.6 Umbrella
    [00a0068c] dummy interface: Copyright © 1996-2017 the VideoLAN team
    [00a0068c] dummy interface:
    Varning: Öppna ett kommandotolksfönster, gå till katalogen där du installerade VLC och kör "vlc -I qt" om du inte längre kan komma åt användargränssnittet.
    [00a0068c] dummy interface: using the dummy interface module...
    libdvdread: Attempting to retrieve all CSS keys
    libdvdread: This can take a _long_ time, please be patient
    libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000014b
    libdvdread: Elapsed time 0
    libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x000023e8
    libdvdread: Elapsed time 0
    libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x000024c0
    libdvdread: Elapsed time 0
    libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0037035e
    libdvdread: Elapsed time 0
    libdvdread: Found 3 VTS's
    libdvdread: Elapsed time 0
    [00928a7c] core input error: ES_OUT_RESET_PCR called
    [00928a7c] core input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
    [02861c1c] core decoder error: cannot continue streaming due to errors
    [00928a7c] core input error: ES_OUT_RESET_PCR called
    [00928a7c] core input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
    [009e75fc] core mux error: cannot add this stream
    [02861c1c] core decoder error: cannot create packetizer output (a52 )