[FFmpeg-user] How to terminate cleanly a recording on Windows
Verachten Bruno
gounthar at gmail.com
Fri Jun 19 13:05:44 EEST 2020
Hi there,
I'm trying to record lots of small wav files to give to PocketSphinx for
adaptation.
My command looks like this:
ffmpeg.exe -f dshow -i audio="Microphone sur casque (2- Plant" -acodec
pcm_s16le -ac 1 -ar 16000 1.wav
I haven't tried this particular command under Linux, but usually hitting
"q" ends the recording properly.
On Windows, "q" seems to do nothing, and CTRL+C ends the process, but not
at the right time. Most of the time, I miss the end of the recording. My
recordings are just a few seconds long.
Would there be any clever way to end properly the recording on Windows?
ffmpeg version git-2020-06-08-d29aaf1 Copyright (c) 2000-2020 the FFmpeg
developers
built with gcc 9.3.1 (GCC) 20200523
configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libdav1d --enable-libbluray --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma
--enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf
--enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
--enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads
--enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth --enable-libopenmpt --enable-amf
libavutil 56. 50.100 / 56. 50.100
libavcodec 58. 90.100 / 58. 90.100
libavformat 58. 44.100 / 58. 44.100
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 84.100 / 7. 84.100
libswscale 5. 6.101 / 5. 6.101
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, dshow, from 'audio=Microphone sur casque (2- Plant':
Duration: N/A, start: 99694.804000, bitrate: 1411 kb/s
Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
File '1.wav' already exists. Overwrite? [y/N] Y
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to '1.wav':
Metadata:
ISFT : Lavf58.44.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono,
s16, 256 kb/s
Metadata:
encoder : Lavc58.90.100 pcm_s16le
size= 512kB time=00:00:16.49 bitrate= 254.3kbits/s speed= 1.1x
Thanks.
--
Bruno Verachten
More information about the ffmpeg-user
mailing list