Genymobile / Genymobile/scrcpy
Decoding AAC Audio from Server
- Dominant language
- C
- Stars
- 150k
- Forks
- 13.7k
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 2
Description
Hi, I'm trying to decode audio from server in ffmpeg, if possible I'd like to ask assistance on how to decode aac audio.
Below are what I type in the terminal
```adb shell CLASSPATH=/data/local/tmp/vlc-scrcpy-server.jar app_process / com.genymobile.scrcpy.Server 2.0 max_fps=30 crop=340:340:1:251 log_level=debug tunnel_forward=true control=false raw_video_stream=true audio_codec=aac audio_codec_options=channel-count=2,sample-rate=44100 cleanup=false```
with has the following output while accessing via netcat
```
[server] INFO: Device: Xiaomi Mi 9T (Android 13)
[server] DEBUG: Using encoder: 'OMX.qcom.video.encoder.avc'
[server] DEBUG: Using audio encoder: 'c2.android.aac.encoder'
[server] DEBUG: Audio codec option set: channel-count (Integer) = 2
[server] DEBUG: Audio codec option set: sample-rate (Integer) = 48000
[server] DEBUG: Audio encoder stopped
```
1st socket for video
```nc localhost 8002 | ffplay -hide_banner -loglevel verbose -```
2nd socket for audio
```nc localhost 8002 | ffplay -hide_banner -loglevel verbose -ac 2 -ar 44100 -strict 1 -f aac -```
I'm getting the following from ffplay
```aac @ 0x7fbccd15bd80] More than one AAC RDB per ADTS frame is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7fbccd15bd80] channel element 2.13 is not allocated
[aac @ 0x7fbccbf05480] Packet corrupt (stream = 0, dts = NOPTS).0
Input #0, aac, from 'pipe:':
Duration: N/A, bitrate: 428 kb/s
Stream #0:0: Audio: aac (Main), 44100 Hz, mono, fltp, 428 kb/s
[ffplay_abuffer @ 0x7fbccd15ed40] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:mono
[ffplay_abuffersink @ 0x7fbccd15fd40] auto-inserting filter 'auto_aresample_0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[auto_aresample_0 @ 0x7fbccd171e00] ch:1 chl:mono fmt:fltp r:44100Hz -> ch:1 chl:mono fmt:s16 r:44100Hz
[aac @ 0x7fbccd15d900] More than one AAC RDB per ADTS frame is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7fbccd15d900] channel element 2.13 is not allocated
Last message repeated 1 times
[aac @ 0x7fbccd15d900] Error decoding AAC frame header.
[aac @ 0x7fbccd15d900] Number of bands (30) exceeds limit (7).
[aac @ 0x7fbccd15d900] Reserved bit set.
[aac @ 0x7fbccd15d900] Number of bands (13) exceeds limit (10).
[aac @ 0x7fbccd15d900] channel element 2.8 is not allocated
[aac @ 0x7fbccd15d900] Reserved bit set.
[aac @ 0x7fbccd15d900] invalid band type
[aac @ 0x7fbccd15d900] channel element 1.7 is not allocated
[aac @ 0x7fbccd15d900] ChannelElement 3.0 missing
[aac @ 0x7fbccd15d900] ChannelElement 1.1 missing
[aac @ 0x7fbccd15d900] Multiple frames in a packet.
[aac @ 0x7fbccd15d900] channel element 3.12 is not allocated
[aac @ 0x7fbccd15d900] channel element 2.13 is not allocated
[aac @ 0x7fbccd15d900] ChannelElement 3.0 missing
[aac @ 0x7fbccd15d900] ChannelElement 1.0 missing
[aac @ 0x7fbccd15d900] ChannelElement 1.1 missing
[aac @ 0x7fbccd15d900] ChannelElement 0.0 missing
[aac @ 0x7fbccd15d900] Sample rate index in program config element does not match the sample rate index configured by the container.
Created 640x480 texture with SDL_PIXELFORMAT_ARGB8888.
[aac @ 0x7fbccd15d900] channel element 0.4 is not allocated
[aac @ 0x7fbccd15d900] Prediction is not allowed in AAC-LC.
[aac @ 0x7fbccd15d900] ChannelElement 3.0 missing
[aac @ 0x7fbccd15d900] ChannelElement 3.1 missing
[aac @ 0x7fbccd15d900] ChannelElement 2.0 missing
[aac @ 0x7fbccd15d900] ChannelElement 2.2 missing
[aac @ 0x7fbccd15d900] ChannelElement 2.4 missing
[aac @ 0x7fbccd15d900] ChannelElement 2.6 missing
[aac @ 0x7fbccd15d900] ChannelElement 2.7 missing
[aac @ 0x7fbccd15d900] ChannelElement 2.8 missing
[aac @ 0x7fbccd15d900] ChannelElement 2.9 missing```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.