Extracting the audio track from a video faster

This forum is about all development around libVLC.
Nico6687
New Cone
New Cone
Posts: 5
Joined: 19 Sep 2020 08:25

Extracting the audio track from a video faster

Postby Nico6687 » 23 Oct 2020 15:19

Hello,

Is there a faster way to extract the audio from a video than playing the video and intercepting the PCM data in the audio play callback?
Basically, if I have a video which is 30 minutes long, how do I get the audio track without having to wait for 30 minutes?
For example, can I force the lib to send me the next audio buffer, then the next etc... or change the sample rate to be higher so I get more data per buffer?

(I am using libVLCSharp.WinForms in case it matters...)

Thank you!

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: Extracting the audio track from a video faster

Postby mfkl » 26 Oct 2020 08:41

Basically, if I have a video which is 30 minutes long, how do I get the audio track without having to wait for 30 minutes?
Good question.. guess we need some specific docs on that.

Code: Select all

--sout-smem-time-sync, --no-sout-smem-time-sync Time Synchronized output (default enabled) Time Synchronisation option for output. If true, stream will render as usual, else it will be rendered as fast as possible.
from https://wiki.videolan.org/VLC_command-line_help

I've never tried this though.
(I am using libVLCSharp.WinForms in case it matters...)
It doesn't matter at all, libvlc is the underneath library used.
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests