I have been looking a simple way to convert my *.mkv
TV series collections to *.mp4
so I can watch it on my TV. Luckily, I stumbled upon a post in stackoverflow about it. So I took the code and modified it a bit so it can automatically find all *.mkv
files in a directory (recursively), convert them to *.mp4
and place it the same directory. The only dependency you need is avconv
which can be installed easily on Debian/Ubuntu by sudo apt-get install libav-tools
and you are ready to run the script:
#!/bin/sh findpath=$1 : ${findpath:="."} find "$findpath" -name '*.mkv' | while read f ; do dir=$(dirname "$f"); file=$(basename "$f"); # ext="${filename##*.}"; name="${file%.*}"; # echo "avconv -i \"$f\" -codec copy \"$dir/$name.mp4\""; avconv -i "$f" -codec copy "$dir/$name.mp4" </dev/null; # rm -f "$f"; done
Getting verified SSL information with Python (3.x) is very easy. Code examples for it are…
By default, Spring Data Couchbase implements single-bucket configuration. In this default implementation, all POJO (Plain…
Last year, Google released Firebase Auth Emulator as a new component in Firebase Emulator. In…
One of the authentication protocol that is supported by most of Google Cloud services is…
If you need to to add a spatial information querying in your application, PostGIS is…
Amazon Web Service Transcribe provides API to automatically convert an audio speech file (mp3/wav) into…