Audio Format change 16 to 24 bit.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Audio Format change 16 to 24 bit.

1,117 Views
srinivasanshanm
Contributor III

Dear Support Team

We are using ltib L2.6.35_1.1.0_130130_source.

How to change audio format from 16 bit  44.1Khz to 24 bit 44.1Khz in gstreamer & fslplayer in imx 28 board ?

Since we want 24bit PCM audio output to drive our audio codec chip.

Thanks

Srinivas

Labels (2)
0 Kudos
2 Replies

634 Views
Yuri
NXP Employee
NXP Employee

You may vary such parameters as sample rate, width as following (example) :

gst-launch-0.10 -e alsasrc device-name=hw:0,0 ! audio/x-raw-int, width=16, depth=16, rate=44100, channels=2 ! queue !  filesink location= /mnt/nfs/sound.raw

0 Kudos

634 Views
srinivasanshanm
Contributor III

Hi, 


We used below  command to configure 24bit PCM output:


gst-launch filesrc location=HugeWAV.wav ! wavparse ! audioconvert ! audioresample ! alsasink ,width=24, depth=24, rate=44100

this command will play song,

It is 16bit wav file but format is not changing to 24bit format.


Please correct the command if iam wrong.


Or is there any option to change the bit format in fslplayer???


Rgds

Srinivas



0 Kudos