Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So I am trying to get the current frame of the conversion with this bash command:

ffmpeg -i fd.mp4 fd.avi < /dev/null 2>&1 | perl -015 -e 'print <STDIN>=~/frame=(\ {3})(\d+)/' | sed "s/ //g"

And it actually works quite well except for the fact that it stops after 1 second so it will only run through both pipes then stop the ffmpeg conversion. Is there any way to keep the pipe reoccurring every time a new line of data i put out by ffmpeg?

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.