oop7 / Drm-video-recorder

A tool for recording DRM-protected videos. This application captures and saves high-quality video streams.
MIT License
3 stars 0 forks source link

record sound issue #1

Open lgs777 opened 5 days ago

lgs777 commented 5 days ago

Thank you for creating such a great program. The video records successfully, but the audio is not being captured. Is this a feature that is not originally provided? If there is a solution, please let me know. Thank you.

oop7 commented 5 days ago

Thank you for bringing up the audio recording feature! I’ve now updated the code to include audio capture, so you should be able to record both video and audio seamlessly. Please pull the latest changes from python file repository and test it out.

Let me know if it works for you, or if you run into any issues. Your feedback is appreciated!

lgs777 commented 4 days ago

Thank you for bringing up the audio recording feature! I’ve now updated the code to include audio capture, so you should be able to record both video and audio seamlessly. Please pull the latest changes from python file repository and test it out.

Let me know if it works for you, or if you run into any issues. Your feedback is appreciated!

Thank you very much for quickly implementing my suggestion. When I run the new code, recording doesn’t work, and I get the following error message. How can I resolve this?

Does the newly added audio recording feature allow recording of the sound output from the computer? I’m trying to capture both the video and audio of the clips I play.

#########################################

ffmpeg version 2023-02-19-git-2aec86695a-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers built with gcc 12.2.0 (Rev10, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 58. 3.100 / 58. 3.100 libavcodec 60. 4.100 / 60. 4.100 libavformat 60. 4.100 / 60. 4.100 libavdevice 60. 2.100 / 60. 2.100 libavfilter 9. 4.100 / 9. 4.100 libswscale 7. 2.100 / 7. 2.100 libswresample 4. 11.100 / 4. 11.100 libpostproc 57. 2.100 / 57. 2.100 [gdigrab @ 000001f65bfa07c0] Capturing whole desktop as 4480x1440x32 at (-1920,0) [gdigrab @ 000001f65bfa07c0] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, gdigrab, from 'desktop': Duration: N/A, start: 1731581885.791894, bitrate: 12386329 kb/s Stream #0:0: Video: bmp, bgra, 4480x1440, 12386329 kb/s, 60 fps, 1000k tbr, 1000k tbn [dshow @ 000001f65bfb5a40] Could not find audio only device with name [Microphone Array (Realtek(R) Audio)] among source devices of type audio. [dshow @ 000001f65bfb5a40] Searching for audio device within video devices for Microphone Array (Realtek(R) Audio) [dshow @ 000001f65bfb5a40] Could not find audio only device with name [Microphone Array (Realtek(R) Audio)] among source devices of type video. audio=Microphone Array (Realtek(R) Audio): I/O error

image