Page 1 of 1

ffmpeg | signalstats | path | variable

Posted: Mon May 03, 2021 3:30 pm
by taner
Hi Admin-Team,

I have a question.
I'm trying to use ffmpeg-filter "signalstats".
Concerning the path to the av-file I have to specify the command as below:

"movie=\'driveletter:/path.to.file_level1/path.to.file_level2/path.to.file_level3/path.to.file_level4/filename.extension\'"

Is there a way to populate a variable where the path of the source file could adapt the format above?
Files are located on NAS.
The path-depths to the files are different.
In addition there are different paths.
Driveletter is always the same.
At the moment I have to set the path manually for each file.
I could copy the files to the local drive (e.g. c:\work\) which would make it much easier to grab them automatically because of the always same path but I would prefer to leave the files where they are.

Thanks
Taner

Re: ffmpeg | signalstats | path | variable

Posted: Mon May 03, 2021 4:56 pm
by emcodem
signalstats_emcodem.json
(3.86 KiB) Downloaded 227 times
Hey Taner,
this should work for local and NAS at once. There should be no need to copy the file just to make it easier to build the filterstring. For a normal filter like you have, it is enough to escape : by \: and \ by \\

Lemme know if it works for you!

Re: ffmpeg | signalstats | path | variable

Posted: Tue May 04, 2021 6:19 am
by taner
Works like a charm!
Many thanks emcodem!