amiaopensource / vrecord

Vrecord is open-source software for capturing a video signal and turning it into a digital file.
https://github.com/amiaopensource/vrecord
151 stars 45 forks source link

error when select Audio capture #753

Open a7med12h opened 1 year ago

a7med12h commented 1 year ago

Screenshot from 2023-07-30 20-51-40 I got this error when I want to capture Audio cassette. setup was like this pic Screenshot from 2023-07-30 20-53-34 any one know what is going on

privatezero commented 1 year ago

Hi @a7med12h - thanks for reporting this problem! This error usually occurs when something has gone wrong with either device detection or mapping. I've taken a look and found a way where sometimes the way vrecord maps an input device can have some issues - I'll get a quick fix done and that should resolve this issue.

privatezero commented 1 year ago

Hi @a7med12h, a new version of Vrecord has just been released that might help clear up this issue - try updating vrecord and hopefully this will sort itself out!

a7med12h commented 1 year ago

Hi @a7med12h, a new version of Vrecord has just been released that might help clear up this issue - try updating vrecord and hopefully this will sort itself out!

I did " brew install vrecord " and it updated every thing . When I want to run it give error masseggeimage

retokromer commented 1 year ago

https://github.com/amiaopensource/vrecord/blob/0831f7cea2091bb938ba3934bfda49507aef7265/vrecord#L401

retokromer commented 1 year ago

Please copy and paste the full command and its response rather than taking a screen shot.

privatezero commented 1 year ago

@a7med12h - it looks like something isn't working correctly on your system with compiling FFmpeg with Alsa support - do you have libasound2-dev installed?

a7med12h commented 1 year ago

@privatezero no I did not. is it mandatory! if yes I will try to download it . how I can install libasound-dev?

retokromer commented 1 year ago

The following two commands

sudo apt-get update
sudo apt-get install libasound2-dev

should do the trick.

a7med12h commented 1 year ago

@retokromer @privatezero last question, I have big issue, I use linux system Ubunto, and when ever I close Terminal I loss all packages and I have to download again all packages and vrecord . and also when I do reboot for PC . is it normal ? how I can save all packages So when ever I reboot or restart terminal all things not loss

retokromer commented 1 year ago

@a7med12h No, this is not normal at all. How and where did you install which Ubuntu version? Have you installed Ubuntu onto a HDD or SSD? Only then it will save changes.

privatezero commented 1 year ago

@a7med12h - seconding @retokromer's comment that that is not normal. Are you still running Ubuntu in its trial mode from a USB stick?

a7med12h commented 1 year ago

@retokromer @privatezero I run ubunto as normal. I installed it form usb stick and then I remove it. I run system on SSD. I do not know why this is happened. Application there but only packages that will be not exist any more .

retokromer commented 1 year ago

@a7med12h I presume that the Ubuntu installation is not correct on your end. On our end dozens of work stations are currently running under Ubuntu 22.04.3 LTS on SSD (as well as Windows 11 with Terminal and Ubuntu 23.04 at clients’) and we never ever encountered the problem you described. Did you change any system parameter after installing Ubuntu? Did you try to reinstall Ubuntu from scratch following the official instructions?

a7med12h commented 1 year ago

@retokromer I have never change any parameter or option in system

a7med12h commented 1 year ago

@retokromer still after updaating have this error `vrecord Starting the vrecord GUI. To bypass the GUI, run like 'vrecord FILENAME'. Summary: Recording audio from card 0: PCH [HDA Intel PCH], device 2. Technician=ahmed. Inputs recorded to /home/ahmed/Videos/1aa.flac and Auxiliary Files created in /home/ahmed/Videos. Tape duration set to: 60 minutes. Hit enter to start recording

Close the playback window to stop recording. ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 11 (Ubuntu 11.3.0-1ubuntu1~22.04.1) configuration: --prefix=/home/linuxbrew/.linuxbrew/Cellar/ffmpegdecklink/5.1.2 --disable-shared --enable-version3 --cc=gcc-11 --host-cflags= --host-ldflags= --enable-gpl --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libfontconfig --disable-libjack --disable-indev=jack --enable-nonfree --enable-decklink --extra-cflags=-I/home/linuxbrew/.linuxbrew/include --extra-ldflags=-L/home/linuxbrew/.linuxbrew/include libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 Unknown input format: 'alsa' [Parsed_amovie_0 @ 0x7fa400005900] Failed to avformat_open_input 'pipe:0' [lavfi @ 0x7fa400000c80] Error initializing filter 'amovie' with args 'pipe\:0' amovie='pipe\:0',pan=mono|c0=c0,asplit=4[c][e][f][out1],[e]astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.Min_level:m2=lavfi.astats.1.Max_level:size=700x160:bg=Black:fg1=0xFFFF0000:fg2=0xFFFF0000:slide=scroll:min=-32767:max=32767[wav1], [f]astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.2.Min_level:m2=lavfi.astats.2.Max_level:size=700x160:bg=Black:fg1=0xFF00FF00:fg2=0xFF00FF00:slide=scroll:min=-32767:max=32767[wav2],[c]showvolume=t=0:h=28:w=700[c1],[c1][wav1][wav2]xstack=inputs=3:layout=0_0|0_h0|0_h0+h1[out0]: Invalid data found when processing input

2023-08-19T13:00:51 - vrecord exited a form in an unexpected way (P1_ERR=1), please report this error to https://github.com/amiaopensource/vrecord/issues 2023-08-19T13:00:51 - Error details: /home/linuxbrew/.linuxbrew/opt/ffmpegdecklink/bin/ffmpeg-dl `

retokromer commented 1 year ago

Unknown input format: 'alsa'

It’s still the same error, which means that libasound2-dev is missing. See: https://github.com/amiaopensource/vrecord/issues/753#issuecomment-1678791040

a7med12h commented 1 year ago

@retokromer I update it . I wrote same command u sent it to me . I really do not know why this happened

a7med12h commented 1 year ago

how I can know if my Ubunto had installed right ?

retokromer commented 1 year ago

What is the output of brew config?

a7med12h commented 1 year ago

OMEBREW_VERSION: 4.1.4 ORIGIN: https://github.com/Homebrew/brew HEAD: 98f1be77f93a0d23fbc68629d0854522e9f0c1c3 Last commit: 12 days ago Core tap JSON: 12 Aug 10:59 UTC HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew HOMEBREW_CASK_OPTS: [] HOMEBREW_DISPLAY: :0 HOMEBREW_MAKE_JOBS: 24 Homebrew Ruby: 2.6.10 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.10_1/bin/ruby CPU: 24-core 64-bit unknown_0x6_0xb7 Clang: N/A Git: 2.34.1 => /bin/git Curl: 7.81.0 => /bin/curl Kernel: Linux 5.19.0-46-generic x86_64 GNU/Linux OS: Ubuntu 22.04.2 LTS (jammy) Host glibc: 2.35 /usr/bin/gcc: 11.4.0 /usr/bin/ruby: N/A glibc: N/A gcc@11: N/A gcc: N/A xorg: N/A

a7med12h commented 1 year ago

@retokromer this is output for command

retokromer commented 1 year ago

OS: Ubuntu 22.04.2 LTS (jammy)

You are using the same OS version we successfully used in production until very recently (we have upgraded to Ubuntu 22.04.3 LTS just a few days ago). I cannot reproduce your issue and I don’t know why on your end it is not working fine. Can you save onto the SSD now? For example the libasound2-dev?

a7med12h commented 1 year ago

to be honest , I am not familiar to linux. So, I did not understand how I can save this in SSD

retokromer commented 1 year ago

If your Ubuntu installation is correct, the commands I gave you will correctly install the missing libasound2-dev that vrecord needs.