ffmpeg | signalstats | path | variable

Questions and answers on how to get the most out of FFAStrans
Post Reply
taner
Posts: 204
Joined: Sun Jun 19, 2016 6:36 pm

ffmpeg | signalstats | path | variable

Post 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
emcodem
Posts: 1645
Joined: Wed Sep 19, 2018 8:11 am

Re: ffmpeg | signalstats | path | variable

Post by emcodem »

signalstats_emcodem.json
(3.86 KiB) Downloaded 168 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!
emcodem, wrapping since 2009 you got the rhyme?
taner
Posts: 204
Joined: Sun Jun 19, 2016 6:36 pm

Re: ffmpeg | signalstats | path | variable

Post by taner »

Works like a charm!
Many thanks emcodem!
Post Reply