You are not logged in.
I was wondering what would be the best way to go about making a watch directory routine in bash. Essentially i want a bash script to watch a directory and when a file is added it will automatically encode using ffmpeg and x264? Are there any external utilities to help with this function?
Offline
Use inotify?
Offline
Indeed. Personally, I use incron, because it's an elegant way of using inotify.
Also, I use mencoder instead of ffmpeg, but each to their own.
Offline
I just found mencoder doesn't utilise the cores properly when deinterlacing and piping to x264 I got better performance. I'll look into incron tomk, thank you so much.
Last edited by z1lt0id (2013-12-05 00:15:43)
Offline
Slightly O/T but do people prefer mencoder to handbrake?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I prefer piping ffmpeg into x264. I use ffmpeg for filtering and resizing options and push it out to x264. Handbrake is good though
Offline
Slightly O/T but do people prefer mencoder to handbrake?
People might, but I don't, simply because handbrake doesn't do what I want.
Offline