Docker image which watches a folder for new MP4 files, converts them to MP3, and drops them in an output location.
This Docker image performs only one simple task. It converts all MP4s which are placed in one directory to MP3s and places them with the same name into another directory. This container uses a process called Watchman to run only whenever a new file is added to the input directory, and it immediately kicks off the conversion process.
The setup process is simple:
- Mount a folder on your host to the container path located at
/drop/in
. This is the input directory which is watched for new MP4 files. - Mount another folder on your host to the path located
/drop/out
. This is the output directory where all converted MP3s show up. - Run the container
- Place an MP4 file into the input directory on your host
- Wait a few moments
- Observe that the output directory has an MP3 file with the same name as the MP4 file
Note: This container does not perform any other kind of conversion except from MP4 to MP3. All other input file types are ignored.