J
J
JRBRO2022-03-21 16:51:11
Command line
JRBRO, 2022-03-21 16:51:11

How to run several command lines in turn and then export the resulting one?

Hello. The bottom line is that I use ffmpeg to record and post-process video, but then I use another library that gives me audio data.

Question 1) How can I implement sequential launch (for example):
1)

ffmpeg -i output.mp4 -vn -acodec copy output-audio.aac

2)
ffmpeg -i output.mp4 -vf fps=1 where-to-save\out%d.png

3) sox foo.wav -e stat
Where is the last script giving me such information
Samples read: 3528000
Length (seconds): 40.000000
Scaled by: 2147483647.0
Maximum amplitude: 0.999969
Minimum amplitude: -1.000000
Midline amplitude: -0.000015
Mean norm: 0.217511
Mean amplitude: 0.003408
RMS amplitude: 0.283895
Maximum delta: 1.478455
Minimum delta: 0.000000
Mean delta: 0.115616
RMS delta: 0.161088
Rough frequency: 3982
Volume adjustment: 1.000


Question 2) how to export the received data?
Question 3) is it possible to add a python script there to let's sort files (there is a script)?

The solution can be both on Windows and MacOS, and if it is on both, a low bow

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question