Hi,
I was reading the FFMPEG manual and one function interest me. This function is
called “Signature”.
I downloaded the last FFMPEG build static and I read the doc inside the .rar.
There is two examples given, we have :
“To calculate the signature of an input video and store it in signature.bin:
ffmpeg -i input.mkv -vf signature=filename=signature.bin -map 0:v -f null -
To detect whether two videos match and store the signatures in XML format in
signature0.xml and signature1.xml:
ffmpeg -i input1.mkv -i input2.mkv -filter_complex "[0:v][1:v]
signature=nb_inputs=2:detectmode=full:format=xml:filename=signature%d.xml" -map
:v -f null –“
The first one currently works, I took one .mp4 video, and I got a signature.xml.
But the second one doesn’t work. I would like to know if this is normal or a
bug, if anyone has the answer.
This is the error generated :
‘[Parsed_signature_0 @ 00000000004a31c0] The filename must contain %d or %0nd,
if you have more than one input.
[AVFilterGraph @ 000000000273d340] Error initializing filter 'signature' with
args 'nb_inputs=2:detectmode=full:format=xml:filename=signaturev -f
nullÔÇôÔÇ£'
Error initializing complex filters.
Invalid argument’
There is the full log in the attachment.
Best regards,
/Nicolas
Briand Nicolas | Integration Engineer
+33 638831235
nicolas.bri...@ericsson.com<mailto:nicolas.bri...@ericsson.com>
www.redbeemedia.com<http://www.ericsson.com/broadcastandmedia/>
EMAIL DISCLAIMER:
This message contains confidential information solely for its intended
recipients; others shouldn’t distribute a copy or use it. If you received this
in error, please email or call us and delete it. We’ve taken steps to ensure
that this message (and any attachments or hyperlinks) are free from computer
viruses. However, the recipient is responsible for ensuring that it is virus
free before opening it.
C:\Users\ezbrini\Desktop>ffmpeg -i input1.mkv -i input2.mkv -filter_complex "[0:
v][1:v] signature=nb_inputs=2:detectmode=full:format=xml:filename=signaturev -f
null ÃÃôÃã
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --e
nable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libblur
ay --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libopu
s --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --ena
ble-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-lib
x264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-z
lib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-cuda --enable-c
uvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-l
ibmfx
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, matroska,webm, from 'input1.mkv':
Metadata:
COMPATIBLE_BRANDS: isommp42
MAJOR_BRAND : mp42
MINOR_VERSION : 0
ENCODER : Lavf58.9.100
Duration: 00:03:16.89, start: 0.000000, bitrate: 1324 kb/s
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR
16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
Metadata:
HANDLER_NAME : ISO Media file produced by Google Inc. Created on: 10/03
/2017.
ENCODER : Lavc58.11.101 libx264
DURATION : 00:03:16.883000000
Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp (default)
Metadata:
HANDLER_NAME : ISO Media file produced by Google Inc. Created on: 10/03
/2017.
ENCODER : Lavc58.11.101 libvorbis
DURATION : 00:03:16.885000000
Input #1, matroska,webm, from 'input2.mkv':
Metadata:
COMPATIBLE_BRANDS: isommp42
MAJOR_BRAND : mp42
MINOR_VERSION : 0
ENCODER : Lavf58.9.100
Duration: 00:03:16.89, start: 0.000000, bitrate: 1324 kb/s
Stream #1:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR
16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
Metadata:
HANDLER_NAME : ISO Media file produced by Google Inc. Created on: 10/03
/2017.
ENCODER : Lavc58.11.101 libx264
DURATION : 00:03:16.883000000
Stream #1:1: Audio: vorbis, 44100 Hz, stereo, fltp (default)
Metadata:
HANDLER_NAME : ISO Media file produced by Google Inc. Created on: 10/03
/2017.
ENCODER : Lavc58.11.101 libvorbis
DURATION : 00:03:16.885000000
[Parsed_signature_0 @ 00000000004a31c0] The filename must contain %d or %0nd, if
you have more than one input.
[AVFilterGraph @ 000000000273d340] Error initializing filter 'signature' with ar
gs 'nb_inputs=2:detectmode=full:format=xml:filename=signaturev -f null
âöâçââ¤âöâ
çâ¬Ãº'
Error initializing complex filters.
Invalid argument
C:\Users\ezbrini\Desktop>PAUSE
Press any key to continue . . .
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".