Command Executer output to variable etc.
Posted: Thu Dec 14, 2017 9:31 am
Hi,
does anyone know if it is possible to make use of the output of a command execution as variable.
As background:
I noticed that ffmpeg sometimes renders the video shorter than the audio (in nvenc & x264) and I have no direct solution for this. The difference in duration is more than a second and leads to files being rejected by our partners. I now want to automatically compare audio & video duration, but ffastrans has only an output option for duration of the whole file not for separate streams.
I thought I could read out the separate duration with ffprobe and store them in variables to compare them.
Does anyone has an idea to this?
Best,
silverline
(I tried searching the forum for this, but the word "command" always leads to no search results, because it is "too common"...)
does anyone know if it is possible to make use of the output of a command execution as variable.
As background:
I noticed that ffmpeg sometimes renders the video shorter than the audio (in nvenc & x264) and I have no direct solution for this. The difference in duration is more than a second and leads to files being rejected by our partners. I now want to automatically compare audio & video duration, but ffastrans has only an output option for duration of the whole file not for separate streams.
I thought I could read out the separate duration with ffprobe and store them in variables to compare them.
Does anyone has an idea to this?
Best,
silverline
(I tried searching the forum for this, but the word "command" always leads to no search results, because it is "too common"...)