Pitch Change; VLC Objects; Time Stretching

This forum is about all development around libVLC.
PlasmaGrass
New Cone
New Cone
Posts: 3
Joined: 13 Aug 2015 18:30

Pitch Change; VLC Objects; Time Stretching

Postby PlasmaGrass » 13 Aug 2015 18:36

Hi, guys, what's up? :)

I am a newcomer here, pleased to meet you.

I am currently working on making a simple karaoke player for my project, using libvlc. I am required to make some pitch changed to the now playing video / song. I can change the playback rate, so that it plays faster, however I do want the pitch to be altered. It is currently stays at the same pitch due to "Enable Time Stretching" is on. I want to turn it off, but I cannot find in the documentation anywhere that mention this. I cannot pass command line arguments to the libvlc, is there another way? Is it using the vlc_object_t ?

Another alternative, is it possible to change the pitch of the song without altering the tempo?

Finally, where can I find the documentation of libvlc? Is https://www.videolan.org/developers/vlc ... dules.html the most up to date reference? Because I believe there are some uncommented section here and there...

Thank you.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Pitch Change; VLC Objects; Time Stretching

Postby Jean-Baptiste Kempf » 18 Aug 2015 16:07

You need to disable the option in your libvlc_new parameters.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

PlasmaGrass
New Cone
New Cone
Posts: 3
Joined: 13 Aug 2015 18:30

Re: Pitch Change; VLC Objects; Time Stretching

Postby PlasmaGrass » 18 Aug 2015 16:24

Alright, it works!
Thank you!
Could someone please explain how to change pitch without the tempo? Thanks.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Pitch Change; VLC Objects; Time Stretching

Postby Jean-Baptiste Kempf » 08 Oct 2015 16:08

You cannot.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

PlasmaGrass
New Cone
New Cone
Posts: 3
Joined: 13 Aug 2015 18:30

Re: Pitch Change; VLC Objects; Time Stretching

Postby PlasmaGrass » 08 Oct 2015 17:57

You cannot.
Ah, what a bummer :(
Is it not possible to, say, tap the output from audio codec, before it's output to the speaker? I understand that if I can tap into it, I could do ring buffer to lower pitch in real time. How can I tap into it?

I appreciate any hints on it.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Pitch Change; VLC Objects; Time Stretching

Postby Jean-Baptiste Kempf » 30 Oct 2015 18:22

Use amem callbacks.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 16 guests