-
Notifications
You must be signed in to change notification settings - Fork 1.7k
SPDIF IEC61937 encapsulated AAC(adts stream) through D2VOX device(hw:1,0) using ALSA outputs noise data. #222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
aplay only knows to play raw audio and not AAC or anything else. mplayer will detect the file format and properly decode it before playback. |
Try adding: Also see #183 for how to correctly produce a IEC61937 formatted wav file. |
@GrayShade : Thank u for the above information. I want to play IEC61937 encoded AAC data through the D2VOX device without decoding. So, [ 72 f8 1f 4e 07 00 68 00 ff f8 50 40 01 a2 44 d5 8b 00 c8 00 07.... ] complete data need to be sent to D2VOX. Is it possible using ALSA directly to pass out IEC AAC data out to D2VOX.???? Below is the code i used as an application using ALSA API's to send IEC AAC data to D2VOX :
This above code play out noise. I recorded the output and checked the HEX values but no spdif header is seen.... |
@shamyavani: Right. I doubt any of these will help, but can you check the following:
|
@popcornmix : can u pls tell where will be the config.txt. I am new to linux and ALSA |
It's in /boot. |
@GrayShade : Please check below outputs for above queries
But still i can hear only noise as output. |
I was worried about things like read() not filling the whole buffer, which could lead to some of the header bytes missing from the output. If you use aplay you should be fine.
But maybe the decoder doesn't like that 32 KHz, 1 channel stream? Can you try with something more common (like 44100 Hz)? |
Yes, HDMI PCM output always uses at least 44.1kHz (and will resample lower frequencies), so 32kHz won't work as passthrough. It would be possible to add 32kHz PCM, but open a new github issue if that is required. @shamyavani Is it working if you follow the procedure in #183. |
@popcornmix there has been any response to your requestion for 2 years, I think the issue can be closed |
Yes. I'm not convinced there exist any devices that support AAC passthrough. |
D2VOX device is USB based device used as second card to play the output.
I have played wav file using below command through D2VOX device ,
aplay -D plughw:1,0 filename1.wav
similar way, i tried to play IEC61937 encapsulated adts(aac) stream named as IEC61937_data.aac in which the contents are as [ 72 f8 1f 4e 07 00 68 00 ff f8 50 40 01 a2 44 d5 8b 00 c8 00 07.... ]
here :
72 f8 1f 4e 07 00 68 00 : are spdif header.
ff f8 50 40 01 a2 44 d5 8b 00 c8 00 07... : ADTS stream
Playing raw data 'IEC61937_data.bin' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
It outputs only noise ( kkrrr sound ) and not the audio data.
If i use mplayer as below ::
2. mplayer -ao alsa:device=hw=1,0 IEC61937_data.bin
through D2VOX device, audio output works fine. Audi o data can be listened.
I want to know the difference of above 2 commands( 1 and 2 ) .
does IEC61937 encapsulated AAC data cant pass through ALSA directly without using mplayer????
If can be played what are the steps... please reply......
The text was updated successfully, but these errors were encountered: