[FFmpeg-user] Cutdetection (dynamic threshold) and Fadedetection with ffmpeg

Dave Rice dave at dericed.com
Tue Jan 27 14:57:10 CET 2015


Hi Christoph,

> On Jan 23, 2015, at 8:39 AM, Christoph Gerstbauer <christophgerstbauer at gmail.com> wrote:
> Am 23.01.2015 um 13:57 schrieb Dave Rice:
>> On Jan 23, 2015, at 5:23 AM, Christoph Gerstbauer <christophgerstbauer at gmail.com> wrote:
>> 
>>>> The YDIF value in the signalstats filter could show this.
>>>> ffprobe -f lavfi movie=DETECT_CUTS.mov,signalstats -show_entries "frame_tags=lavfi.signalstats.YDIF” -of flat
>>>> 
>>>> Perhaps filter out lines where YDIF is higher than 10.
>>> Hi, that does not work on my machine. (Win7)
>>> 
>>> Command line output:
>>> 
>>> C:\Users\gersti>ffprobe -f lavfi movie=C:\ffmpeg\bin\DETECT_CUTS.mov,signalstats -show_entries "frame_tags=lavfi.signalstats.YDIF” -of flat
>>> ffprobe version N-64919-ga613257 Copyright (c) 2007-2014 the FFmpeg developers
>>>  built on Jul 23 2014 00:35:22 with gcc 4.8.3 (GCC)
>>>  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libblu
>>> ray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
>>> b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --
>>> enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
>>>  libavutil      52. 92.101 / 52. 92.101
>>>  libavcodec     55. 69.100 / 55. 69.100
>>>  libavformat    55. 48.101 / 55. 48.101
>>>  libavdevice    55. 13.102 / 55. 13.102
>>>  libavfilter     4. 11.102 /  4. 11.102
>>>  libswscale      2.  6.100 /  2.  6.100
>>>  libswresample   0. 19.100 /  0. 19.100
>>>  libpostproc    52.  3.100 / 52.  3.100
>>> [Parsed_movie_0 @ 0000000002b41ee0] Failed to avformat_open_input 'C'
>>> [lavfi @ 0000000002b34b20] Error initializing filter 'movie' with args 'C:ffmpegbinDETECT_CUTS.mov'
>>> movie=C:\ffmpeg\bin\DETECT_CUTS.mov,signalstats: No such file or directory
>> Is C:\ffmpeg\bin\DETECT_CUTS.mov an actual file on your machine?
> Hi Dave
> 
> yes: DETECT_CUTS.mov is an actual file on my workstation.
>> 
>> Also your build is old.
> I tried it with an new version. same here:
> 
> C:\Users\gersti>ffprobenew -f lavfi movie=C:\ffmpegneu\bin\DETECT_CUTS.mov,signalstats -show_entries "frame_tags=lavfi.signalstats.YDIF” -of flat
> ffprobe version N-69060-gcd960c8 Copyright (c) 2007-2015 the FFmpeg developers
>  built on Jan 14 2015 22:13:45 with gcc 4.9.2 (GCC)
>  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libblu
> ray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
> b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --
> enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enab
> le-zlib
>  libavutil      54. 16.100 / 54. 16.100
>  libavcodec     56. 20.100 / 56. 20.100
>  libavformat    56. 18.101 / 56. 18.101
>  libavdevice    56.  4.100 / 56.  4.100
>  libavfilter     5.  7.101 /  5.  7.101
>  libswscale      3.  1.101 /  3.  1.101
>  libswresample   1.  1.100 /  1.  1.100
>  libpostproc    53.  3.100 / 53.  3.100
> [Parsed_movie_0 @ 0000000002c6d960] Failed to avformat_open_input 'C'
> [lavfi @ 0000000002c6aec0] Error initializing filter 'movie' with args 'C:ffmpegneubinDETECT_CUTS.mov'
> movie=C:\ffmpegneu\bin\DETECT_CUTS.mov,signalstats: No such file or directory

I'm not so familiar with ffmpeg on Windows, but suspect that the error here relates to how the filepath is escaped. Could you try quoting the filterchain or escaping the colon.
Dave Rice



More information about the ffmpeg-user mailing list