Transcode on the fly using Python binding

This forum is about all development around libVLC.
peppy.player
Blank Cone
Blank Cone
Posts: 38
Joined: 10 Nov 2017 00:07

Transcode on the fly using Python binding

Postby peppy.player » 10 Nov 2017 00:15

Hi,

For my Peppy Player project I need to detect sample rate of the stream and if it's 22kHz then convert it into 44kHz.
Is it possible to implement this functionality using VLC Python binding?

That's necessary because the hardware which I use for the project doesn't support sample rate 22kHz. It supports
only 44kHz.

Any code samples would be very helpful.

Thanks in advance!

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: Transcode on the fly using Python binding

Postby Jean-Baptiste Kempf » 11 Nov 2017 14:40

VLC should automatically resample.
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.

peppy.player
Blank Cone
Blank Cone
Posts: 38
Joined: 10 Nov 2017 00:07

Re: Transcode on the fly using Python binding

Postby peppy.player » 11 Nov 2017 18:44

Should I set any parameter for that? Right now I start VLC instance using these parameters:
--aout=alsa --alsa-audio-device=hw --verbose=-1


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 20 guests