Can't extract Audio-Track from any Video File

This forum is about all development around libVLC.
mjungwirth
New Cone
New Cone
Posts: 7
Joined: 25 Feb 2011 14:03
VLC version: 2.2 RC2
Operating System: Windows and Linux
Location: Austria

Can't extract Audio-Track from any Video File

Postby mjungwirth » 22 Dec 2014 12:20

Hello,

I have written a Program that extract an selected audio-track from any video-file with VLC.
But vlc can't select the audio-track. I have always all audio-tracks in mein destination file:

My Test-Video-File has 3 audio-tracks inside and 1 video and 1 spu track.

VLC-Config:
-Idummy
--no-osd
--ignore-config

MRL: file://myvideofile.mkv (or any other)

Media-Options:
:no-sout-spu
:no-sout-video
:sout=#standard{access=file,mux=ts{use-key-frames,alignment},dst=c:\\temp\\audio}

Tested Options:
:audio-track=1
:audio-track-id=2 (the number are from the mediainfo programm)
:audio-language=en (English, ....)

The extracted file "c:\temp\audio" contains only the audio-tracks with ts-encaps but not the selected audio-track.
I would like only the selected one in the file.

Has someone any information/tricks to select the audio?
I have testet vlc-versions: 2.15, 2.2 RC2, 3.0 from nightly at 22.12.2014

Thanks for any answer.

Rémi Denis-Courmont
Developer
Developer
Posts: 15271
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Can't extract Audio-Track from any Video File

Postby Rémi Denis-Courmont » 24 Dec 2014 09:46

You need to select the audio track in the sout chain string.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mjungwirth
New Cone
New Cone
Posts: 7
Joined: 25 Feb 2011 14:03
VLC version: 2.2 RC2
Operating System: Windows and Linux
Location: Austria

Re: Can't extract Audio-Track from any Video File

Postby mjungwirth » 24 Dec 2014 09:49

OK and how? what is the correct parameter/option?

mjungwirth
New Cone
New Cone
Posts: 7
Joined: 25 Feb 2011 14:03
VLC version: 2.2 RC2
Operating System: Windows and Linux
Location: Austria

Re: Can't extract Audio-Track from any Video File

Postby mjungwirth » 28 Dec 2014 10:27

I have found the es module. Thats ok for extract all elemantary streams.

BUT: With the 2.2-RC2 the video can't extracted.
If i start the extraction VLC writes 30MB /s into the file without ending (i stopped at 4GB), but the testvideo has only 70MB
On the nightly Build (3.0 22.12.2014) this was OK. But i can't use ist transcoding-fps dont work.

My TestVideo "http://www.fam-jungwirth.at/StarWarsThe ... railer.zip"

MRL:
file://StarWarsTheForceAwakensTrailer.mp4

Options:
:no-sout-spu
:no-sout-audio
:sout=#standard{access=file,mux=ts,dst=video.ts}

Options: TEST 2
:no-sout-spu
:no-sout-audio
:sout=#es{access-video=file,mux=ts,dst-video=audio-%n.ts}


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 13 guests