--pitch-shift command line option doesn't appear to work

This forum is about all development around libVLC.
andyws
New Cone
New Cone
Posts: 2
Joined: 19 Feb 2018 01:48

--pitch-shift command line option doesn't appear to work

Postby andyws » 19 Feb 2018 02:03

Hi,

I am attempting to use the --pitch-shift command line option when running VLC, but no matter what option I attempt or order I use I can't get it to work. I think this is a fairly new feature, has it been fully implemented into the command line?

The command line I am using is as follows:

C:\Program Files (x86)\VideoLAN\VLC>vlc --vout-filter=transform --transform-type=270 --video-filter "transform{true}" --no-audio-time-stretch --pitch-shift=12 --audio-filter=scaletempo_pitch{true} file:///"c:/Karaoke/Songs/0243 - Be My Baby.mp3"

The video transformations are working fine and the file loads and plays correctly, it's just the audio pitch-shift I can't get to work. I have tried setting --pitch-shift to values of various positive ints, 12.0, 12.000000, {12} as I'm not entirely sure on the syntax required. I have also tried --audio-filter=scaletempo_pitch (without the {true}), and --audio-filter=scaletempo:scaletempo_pitch. I have also tried it with and without --no-audio-time-stretch, and with the options in various orders.

Please can you check if this is working as expected, and/or give me some guidance on the correct command line options to be using if I'm not using it correctly?

Thanks,

Andy

andyws
New Cone
New Cone
Posts: 2
Joined: 19 Feb 2018 01:48

Re: --pitch-shift command line option doesn't appear to work

Postby andyws » 21 Feb 2018 10:56

I am using the latest 3.0.0 version (http://download.videolan.org/pub/videolan/vlc/3.0.0/). Has anyone tried this? Am I missing a setting or getting the command wrong, or is this not working as expected?

phillord
New Cone
New Cone
Posts: 2
Joined: 28 Nov 2019 15:57

Re: --pitch-shift command line option doesn't appear to work

Postby phillord » 28 Nov 2019 16:08

Sorry for zombie post, and I don't know if it has been fixed since you have tried this, but this works for me now. I found that `--pitch-shift` on it's own set the pitch shift value (as visible in the GUI) but didn't switch it on. The full command line that works for me is:

Code: Select all

vlc --pitch-shift 10 --audio-filter=scaletempo_pitch blah.mp3


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 31 guests