iizukanao/picam

sound problem

cl84 opened this issue · 0 comments

cl84 commented

when I start picam with the command -c 2 the recording of the file via picam happens correctly in stereo, while in tcpout I have a mono audio

picam --time --timeformat "%d/%m/%Y %T" --alsadev hw:3 -c 2 --tcpout tcp://127.0.0.1:8181

ffmpeg -i tcp://127.0.0.1:8181?listen -c copy out.mp4

Input #0, mpegts, from 'tcp://127.0.0.1:8181?listen':
Duration: N/A, start: 0.021333, bitrate: N/A
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080, 30 fps, 30 tbr, 90k tbn
Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, mono, fltp, 40 kb/s
File 'out.mp4' already exists. Overwrite? [y/N] y
Output #0, mp4, to 'out.mp4':
Metadata:
encoder : Lavf59.34.102
Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, q=2-31, 30 fps, 30 tbr, 90k tbn
Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 40 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)