I am a happy user of minidlna
(version 1.0.24) on an old Mac Mini G4. It does work quite well in my environment. Since minidlna does not allow transcoding, I would like to rip a set of DVDs (mostly cartoons) for viewing. However I failed to understand how to properly encode them for sole purpose of serving them over UPnP.
- My DSL provider has a built-in client (Freebox ADSL, firmware 1.5.20), which simply refuse to serve
ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]
(*.mp4) files. - I have a Windows 8 tablet, which does not support
EBML file / Matroska
(*.mkv) containers.
Therefore I need to use an AVI
container for my setup. Now the complex part is what are the encoding options that I need to use to rip a DVD to an AVI container ?
Video: I've tested and both mpeg4 and x264 video stream works. As far as I understand x264 is not an option since I use AVI container. So what are the options for a good quality mpeg4 video stream ? Using trial and error I discovered that the video was a bit choppy using an mkv container with the following stream:
Stream #0.0(eng): Video: h264 (High), yuv420p, 1280x568 [PAR 1:1 DAR 160:71], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
Audio: I've had issue with a file containing:
Stream #0.1(fre): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s (default)
while any of these audio did work:
Stream #0.1(fre): Audio: aac, 48000 Hz, stereo, s16 (default)
Stream #0.1: Audio: mp3, 44100 Hz, mono, s16, 128 kb/s (default)
What audio option should I pick ?
bonus point: what is the complete avconv
(ffmpeg
) command line to convert directly from the dvd (*.vob) into such AVI ? I'd like to avoid using mencoder
, since it has recently been removed from Debian.
EDIT:
This is completely off-topic, but this may clarify the comments below. After multiples trials, I've diagnosed that the MPEG-4 container issue is really on the client side. I do not know why the client refuse to display it. I was able to take an *.mp4 container and transcode it using: mkvmerge -o out.mkv in.mp4
, and now the file properly appear (and can be played!) on the client side. The same *.mp4 does appear nicely from the default Windows 8 Media Player, so this is definitely not a server issue.
EDIT2:
The only trick used by minidlna
for the FreeBox client
can be seen here.
References: * Creating MP4 videos ready for HTTP streaming