Re: [FFmpeg-user] ffmpeg cannot capture audio from capture card
I did not get a valid wav file. The duration here is 0. $ ffprobe test.wav Input #0, wav, from 'test.wav': Metadata: encoder : Lavf58.12.100 Duration: 00:00:00.00, bitrate: 1688 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s Using arecord, I was able to get a valid wav file. For example here, I managed to get a 10 seconds wav file - but the recording is a complete silent. Please refer to my logs below. On target: $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4] Subdevices: 1/1 Subdevice #0: subdevice #0 $ sudo aplay -Dplughw:CARD=PCH,DEV=3 beep.wav Playing WAVE 'beep.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono On host - which was where I ran the ffmpeg command last time: $ arecord -v hw:CARD=nuc-03i,DEV=0 -d 10 arecord.wav Recording WAVE 'hw:CARD=nuc-03i,DEV=0' : Unsigned 8 bit, Rate 8000 Hz, Mono ALSA <-> PulseAudio PCM I/O Plugin Its setup is: stream : CAPTURE access : RW_INTERLEAVED format : U8 subformat : STD channels : 1 rate : 8000 exact rate : 8000 (8000/1) msbits : 8 buffer_size : 4000 period_size : 1000 period_time : 125000 tstamp_mode : NONE tstamp_type : GETTIMEOFDAY period_step : 1 avail_min : 1000 period_event : 0 start_threshold : 1 stop_threshold : 4000 silence_threshold: 0 silence_size : 0 boundary : 9007199254740992000 Recording WAVE 'arecord.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono ALSA <-> PulseAudio PCM I/O Plugin Its setup is: stream : CAPTURE access : RW_INTERLEAVED format : U8 subformat : STD channels : 1 rate : 8000 exact rate : 8000 (8000/1) msbits : 8 buffer_size : 4000 period_size : 1000 period_time : 125000 tstamp_mode : NONE tstamp_type : GETTIMEOFDAY period_step : 1 avail_min : 1000 period_event : 0 start_threshold : 1 stop_threshold : 4000 silence_threshold: 0 silence_size : 0 boundary : 9007199254740992000 Is there anything that I'm missing here? Am I supposed do some configurations?
participants (1)
-
Md Ismail, Zakiah