i just would like to use this command:

for i in *.ts; do ffmpeg -i "$i" -c:a aac -b:a 128k -c:v copy -crf 20 "${i%.ts}.mp4"; done

but only for a specific files like: above 350 000KB size or created longer than 15mins ago and then delete that old (.ts) file

And put this whole command in a loop.

  • Probably you could use the find command instead of a for loop. – Bodo Mar 4 '19 at 13:28
  • this, or some [ condition ] || continue lines. – pLumo Mar 4 '19 at 13:30
  • Okey and about deleting the old once adding at the end && rm $i would work? – F O X Mar 4 '19 at 16:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.