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

mpv recording issue with v2021-01-25 #658

Closed bturkus closed 3 years ago

bturkus commented 3 years ago

Hi,

I'm really sorry I didn't notice this or test thoroughly last week, but I'm encountering some kind of lingering issue with decklink and mpv. Right now, as far as I can tell, everything is working as expected EXCEPt when combining decklink and mpv (qc view) for recording (preview is all good, and bmdcapture + mlv works for both).

No file results, with this error:

ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  configuration: --prefix=/usr/local/Cellar/ffmpegdecklink/4.3.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      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[decklink @ 0x7f8401804c00] Found Decklink mode 720 x 486 with rate 29.97(i)
Guessed Channel Layout for Input Stream #0.0 : 7.1
Input #0, decklink, from 'UltraStudio HD Mini':
  Duration: N/A, start: 0.000000, bitrate: 236013 kb/s
    Stream #0:0: Audio: pcm_s32le, 48000 Hz, 7.1, s32, 12288 kb/s
    Stream #0:1: Video: v210 (V210 / 0x30313256), yuv422p10le(bottom first), 720x486, 223725 kb/s, 29.97 fps, 29.97 tbr, 1000k tbn, 1000k tbc
Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified for stream 0, only the last option '-c:a pcm_s24le' will be used.
Stream mapping:
  Stream #0:0 (pcm_s32le) -> pan (graph 0)
  Stream #0:1 (v210) -> setdar (graph 0)
  setdar (graph 0) -> Stream #0:0 (ffv1)
  pan (graph 0) -> Stream #0:1 (flac)
  Stream #0:0 -> #1:0 (pcm_s32le (native) -> pcm_s24le (native))
  Stream #0:1 -> #1:1 (copy)
Output #1, matroska, to 'pipe:':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #1:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 7.1, s32, 9216 kb/s
    Metadata:
      encoder         : Lavc58.91.100 pcm_s24le
    Stream #1:1: Video: v210 (V210 / 0x30313256), yuv422p10le(bottom first), 720x486, q=2-31, 223725 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 1000k tbc
av_interleaved_write_frame(): Broken pipe
[Parsed_pan_1 @ 0x7f84115037c0] Pure channel mapping detected: 0 1
Finishing stream 0:0 without any data written to it.
[ffv1 @ 0x7f8401807000] bits_per_raw_sample > 8, forcing range coder
Finishing stream 0:1 without any data written to it.
[flac @ 0x7f8401808200] encoding as 24 bits-per-sample
Output #0, matroska, to '/Users/benjaminturkus/Desktop/vrecord_tests/mystery05_ffv1.mkv':
  Metadata:
    creation_time   : now
    encoder         : Lavf58.45.100
    Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p10le(tv, smpte170m/smpte170m/bt709), 720x486 [SAR 9:10 DAR 4:3], q=2-31, 200 kb/s, 29.97 fps, 1k tbn, 29.97 tbc (default)
    Metadata:
      encoder         : FFV1 version 3
    Stream #0:1: Audio: flac ([172][241][0][0] / 0xF1AC), 48000 Hz, stereo, s32 (24 bit), 128 kb/s (default)
    Metadata:
      encoder         : Lavc58.91.100 flac
Error writing trailer of pipe:: Broken pipe
frame=    0 fps=0.0 q=0.0 Lq=-1.0 size=       1kB time=00:00:00.03 bitrate= 252.1kbits/s speed=8.65x    
video:911kB audio:38kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!
cat: /Users/benjaminturkus/Desktop/vrecord_tests/mystery05_ffv1_ffmpeg_input.log: No such file or directory
cat: /Users/benjaminturkus/Desktop/vrecord_tests/mystery05_ffv1_ffmpeg_input.log: No such file or directory
Checking file conformance against FFV1 video policy...
 2021-02-03T14:49:04 - File did not pass vrecord policy check for FFV1 video and may not conform to digital preservation standards. Try another file?
 2021-02-03T14:49:04 - See /Users/benjaminturkus/Desktop/vrecord_tests/mystery05_ffv1_mediaconchreport.xml for a full MediaConch policy report.
Vrecord is attaching logs to your Matroska file:
The file is being analyzed.
The changes are written to the file.
Done.
The file is being analyzed.
The changes are written to the file.
Done.
Vrecord is done attaching logs to your Matroska file!
MY-LPAMI-056430:~ benjaminturkus$ 

Sorry again for not testing this out properly! I'm on Mojave and Desktop Video 11.6 (which I believe is the version I can use on this OS).

dericed commented 3 years ago

@bturkus, I think this is from testing before https://github.com/amiaopensource/vrecord/commit/7adbe8913a8bc6b4b77d3bc1aee944d389a2c87e. If still occurring with git-main, please reopen.