qctools icon indicating copy to clipboard operation
qctools copied to clipboard

crash on piped input

Open dericed opened this issue 1 year ago • 2 comments

ffmpeg -y -v 0 -nostdin -re -f lavfi -i testsrc -f matroska -c:v ffv1 -t 5 - | qcli -i - -o test.qctools.mkv
qcli dev build, Apr  9 2024 21:24:45
filters selected: signalstats psnr aphasemeter astats ssim entropy entropy-diff blockdetect blurdetect 

analyzing input file... -
                                                   0 of 100 %Segmentation fault: 11


$ qcli -v
qcli dev build, Apr  9 2024 21:24:45

FFMpeg version: 6.1.1
FFMpeg configuration: not available
FFMpeg libraries:         <library_version name="libavutil" major="58" minor="29" micro="100" version="3808612" ident="Lavu58.29.100"/>
        <library_version name="libavcodec" major="60" minor="31" micro="102" version="3940198" ident="Lavc60.31.102"/>
        <library_version name="libavformat" major="60" minor="16" micro="100" version="3936356" ident="Lavf60.16.100"/>
        <library_version name="libavfilter" major="9" minor="12" micro="100" version="592996" ident="Lavfi9.12.100"/>
        <library_version name="libswscale" major="7" minor="5" micro="100" version="460132" ident="SwS7.5.100"/>

dericed avatar Aug 21 '24 20:08 dericed

The QCTools core isn't designed for piped content. I can add an error message to prevent the crash.

If the feature is wanted I can also implement it, but it would be a significant change.

g-maxime avatar Sep 17 '24 09:09 g-maxime

I am very interested in piped input as well. It would be game changing to be able to generate QC information in real time during an analog capture. I already capture with ffmpeg, so it would be easy for me to add a second piped output directly to qcli for real time *.qctools.mkv file creation.

briandwagner avatar Oct 16 '24 18:10 briandwagner

fixed in https://github.com/bavc/qctools/pull/849

dericed avatar Dec 23 '24 22:12 dericed