This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for f in *.avi | |
do | |
echo "converting file - $f" | |
arista-transcode -p ipad -d apple "$f" | |
echo "created file ${f%.*}.m4v" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for f in *.avi | |
do | |
echo "converting file - $f" | |
ffmpeg -i "$f" "${f%.*}.mov" | |
echo "created file ${f%.*}.mov" | |
done |
First, get the audio track info so we know which one to keep.
mkvmerge -i input.mkv
Then copy only selected audio tracks to the new file with --atracks option. Here 2 is the Audio Track ID we need to keep.
mkvmerge -o output.mkv --atracks 3 input.mkv
My preferred Media Server is MediaTomb.
mediatomb -e wlan0
Here I have used the wireless network interface to bind to, so all the other devices on the Home WiFi can connect to this server.
It also supports transcoding to perform format conversion of your content on the fly allowing you to view media that is otherwise not supported by your player. If you like to go ahead with tinkering the configuration, find it here: ~/.mediatomb/config.xml and change 'no' to 'yes' on the '<transcoding enabled="no">' line. But for mediatomb and iOS devices it's hard to find the right configuration for live transcoding. So I'm sticking to the above manual conversion.
Sources:
http://superuser.com/a/77582/52620
http://www.videohelp.com/tools/MKVtoolnix
http://www.techradar.com/news/digital-home/media-servers/build-a-transcoding-upnp-media-server-923345
what do you use to view the content on ipad?
ReplyDeleteI use Media Link Player http://www.alpha.co.jp/biz/products/dlna/mlplayer/en/
ReplyDeleteand 8player https://itunes.apple.com/en/app/8player/id375860275?mt=8