I use this script to detect a shot in ffmpeg.
ffprobe -show_frames -of compact=p=0 -f lavfi "movie=test.mp4,select=gt(scene\,0.3)"
I need to write the output to a text file in order to read the result from a c-program. How can i do this? Any help is appreciated.
You redirect the output to a file:
ffprobe -show_frames -of compact=p=0 -f lavfi "movie=test.mp4,select=gt(scene\,0.3)" > output.txt 2>&1
If you need separate files for stdout and stderr , you can do:
stdout
stderr
[..] > out.txt 2> err.txt
Source: https://habr.com/ru/post/985282/More articles:Unable to resize properly nested JavaFX panel - javaFrequency-based array sorting in Ruby on Rails - arraysC - Unwanted output characters - cbrowserify-shim does not export implicit global values ββwhen they have a var variable - javascriptWhy does not a segmentation error occur when strcpy () causes a buffer overflow? - cJNI DETECTED ERROR IN APPLICATION - androidgetting java.lang.IllegalStateException: the current thread must have a looper - performanceSegmentation Error - cHow to "Retweet with comment" via Twitter API - twitterMark markdown from yaml multi-line string in Jekyll data file - yamlAll Articles