amiaopensource / vrecord

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

input/output error #741

Open BleakleyMcD opened 1 year ago

BleakleyMcD commented 1 year ago

Hi I'm getting this error from vrecord: [Parsed_amovie_0 @ 0x7fa342007080] Failed to avformat_open_input 'pipe:0' [lavfi @ 0x7fa3421204c0] Error initializing filter 'amovie' with args 'pipe\:0:streams=dv+da' amovie='pipe\:0':streams=dv+da[vid][aud], [aud]asplit=2[aud1][out1]; [aud1]showvolume=t=0:dm=5400:rate=30000/1001[aud2]; [vid]split=5[a][b][c][d][e]; [a]copy[a1]; [b]field=top, format=yuv422p, waveform=scale=digital:intensity=0.1:mode=column:mirror=1:c=1:f=lowpass:e=instant:graticule=green:flags=numbers+dots[b1]; [c]field=bottom, format=yuv422p, waveform=scale=digital:intensity=0.1:mode=column:mirror=1:c=1:f=lowpass:e=instant:graticule=green:flags=numbers+dots[c1]; [d] format=yuv422p, vectorscope=i=0.04:mode=color2:c=1:envelope=instant:graticule=green:flags=name, scale=512:512, drawbox=w=9:h=9:t=1:x=128-3:y=512-452-5:c=sienna@0.8, drawbox=w=9:h=9:t=1:x=160-3:y=512-404-5:c=sienna@0.8, drawbox=w=9:h=9:t=1:x=192-3:y=512-354-5:c=sienna@0.8, drawbox=w=9:h=9:t=1:x=224-3:y=512-304-5:c=sienna@0.8, drawgrid=w=32:h=32:t=1:c=white@0.1, drawgrid=w=256:h=256:t=1:c=white@0.2[d1]; [e]scale=512:ih,signalstats=out=brng[e1]; [a1][b1][c1][e1][d1]xstack=inputs=5:layout=0_0|0_h0|0_h0+h1|w0_0|w0_h0[vidstack]; [vidstack][aud2]overlay=10:10[out0]: Invalid data found when processing input

2023-03-10T12:10:08 - vrecord exited a form in an unexpected way (P1_ERR=1), please report this error to https://github.com/amiaopensource/vrecord/issues 2023-03-10T12:10:08 - Error details: /usr/local/opt/ffmpegdecklink/bin/ffmpeg-dl

Not sure what's going on as it was working earlier.

privatezero commented 1 year ago

Hi @BleakleyMcD - that's an error that usually comes up when there is some kind of issue with ffmpeg upstream of the filter chain. So basically if FFmpeg errors upstream it will throw that error about the 'Error initializing filter' as the filter isn't getting any data.

What mode were you running in - was this a live capture from an analog source? If you change your playback view settings to something simpler like 'Unfiltered' do you still get an error?

BleakleyMcD commented 1 year ago

Yes I'm running a live capture from a VHS source. Here's the error when I ran it in Unfiltered: ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers built with Apple clang version 14.0.0 (clang-1400.0.29.202) configuration: --prefix=/usr/local/Cellar/ffmpegdecklink/5.1.2 --disable-shared --enable-version3 --cc=clang --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/usr/local/include --extra-ldflags=-L/usr/local/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 [decklink @ 0x7fe1fdc04480] Found Decklink mode 720 x 486 with rate 29.97(i) [decklink @ 0x7fe1fdc04480] Cannot enable video input UltraStudio 4K: Input/output error pipe:: Invalid data found when processing input qcli dev build, Feb 16 2022 21:38:49 filters selected: signalstats aphasemeter astats ssim

analyzing input file... - invalid input, analyzing stopped..

BleakleyMcD commented 1 year ago

It is also crashing on passthrough mode

privatezero commented 1 year ago

Looks like an issue with the capture card not talking correctly with ffmpeg/vrecord This looks like the problem to me [decklink @ 0x7fe1fdc04480] Cannot enable video input

Been a while since I troubleshooted this on a mac, but do your settings in the Blackmagic Desktop Video Setup match your vrecord settings exactly in terms of formats? Any chance that permissions for the card could have gotten scrambled?