Advertisement
Guest User

ffmpeg bug

a guest
Feb 1st, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. What I am trying to achieve:
  2. I'm trying to record audio with option "-i hw:3,0" which fails. "-i default" works, which is surprising, since I would expect same behaviour. arecord -l shows there is an 3,0 audio input device (see 'arecord -l' output end of this file).
  3.  
  4. This works:
  5. ffmpeg -f pulse -ac 2 -i default -acodec pcm_s16le output.wav
  6.  
  7. This fails:
  8. ffmpeg -f pulse -ac 2 -i hw:3,0 -acodec pcm_s16le output.wav
  9.  
  10. *********************************************** OTHER SECTION *****************************************************
  11.  
  12. Output of the failed command:
  13.  
  14. ffmpeg version 3.3.6 Copyright (c) 2000-2017 the FFmpeg developers
  15. built with gcc 7 (GCC)
  16. configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags='-I/usr/include/nvenc ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  17. libavutil 55. 58.100 / 55. 58.100
  18. libavcodec 57. 89.100 / 57. 89.100
  19. libavformat 57. 71.100 / 57. 71.100
  20. libavdevice 57. 6.100 / 57. 6.100
  21. libavfilter 6. 82.100 / 6. 82.100
  22. libavresample 3. 5. 0 / 3. 5. 0
  23. libswscale 4. 6.100 / 4. 6.100
  24. libswresample 2. 7.100 / 2. 7.100
  25. libpostproc 54. 5.100 / 54. 5.100
  26. hw:3,0: No such process
  27.  
  28. *********************************************** OTHER SECTION *****************************************************
  29.  
  30. Using hw:3,0 as a switch *should* work in my setup, since it is an input audio device listed in `arecord -l`:
  31.  
  32. **** List of CAPTURE Hardware Devices ****
  33. card 0: SB [HDA ATI SB], device 0: ALC887-VD Analog [ALC887-VD Analog]
  34. Subdevices: 1/1
  35. Subdevice #0: subdevice #0
  36. card 0: SB [HDA ATI SB], device 2: ALC887-VD Alt Analog [ALC887-VD Alt Analog]
  37. Subdevices: 1/1
  38. Subdevice #0: subdevice #0
  39. card 3: usbtv [usbtv], device 0: USBTV Audio [USBTV Audio Input]
  40. Subdevices: 1/1
  41. Subdevice #0: subdevice #0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement