Gentoo Archives: gentoo-user

From: Andrey Moshbear <andrey.vul@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] DVD->mp4 - handbrake vs something else
Date: Sun, 30 Oct 2011 22:28:46
Message-Id: CAFnZeoRShvh4MUvsak=N_D5E=2x65cXLXBLcHGg5-L_V=SfuFQ@mail.gmail.com
In Reply to: Re: [gentoo-user] DVD->mp4 - handbrake vs something else by Mark Knecht
1 On Sun, Oct 30, 2011 at 11:28, Mark Knecht <markknecht@×××××.com> wrote:
2 > On Sun, Oct 30, 2011 at 4:39 AM, Andrey Moshbear <andrey.vul@×××××.com> wrote:
3 >> On Thu, Oct 27, 2011 at 16:09, Mark Knecht <markknecht@×××××.com> wrote:
4 >>> I'm getting a Kindle Fire in a few days. While I didn't get it
5 >>> specifically to watch movies looking at the specs it does apparently
6 >>> handle mp4 as a video format and they state online that you can watch
7 >>> streaming movies & TV shows from Amazon's servers. I do a lot of blood
8 >>> donations - roughly 20-25 times/year - that take 2-3 hours each so
9 >>> either being able to read or watch a movie would be a pleasant way to
10 >>> pass the time. Being able to hold it comfortably in one hand is
11 >>> important to me.
12 >>>
13 >>> I started looking around in Google for something to encode a few DVDs
14 >>> so that I could see how well it works. A program called handbrake was
15 >>> showing up in a lot of links, but it requires an overlay. While I have
16 >>> no problem adding yet another overlay (which on is best?) I wondered
17 >>> what might be in the normal portage database that others here use for
18 >>> this purpose?
19 >>>
20 >>
21 >> I use vobcopy to rip each title to a vob (instead of VTS_${TITLE}_$n)
22 >> then 2-pass ffmpeg the vob to transcode to mkv.
23 >>
24 >> Makes batch transcoding rather fast and painless.
25 >>
26 >>
27 >
28 > Thanks. Here's my progress so far using a Casablanca DVD as a test case.
29 >
30 > Again, my goal by the middle of next month is to run videos on the
31 > Kindle Fire. The spec sheets for the Fire says it's supports mp4. I
32 > don't see any other obvious video formats.
33 >
34 > 1) I tried vobcopy. I got 6GB of files. I assumed ffmpeg was the next
35 > step but didn't easily Google how to run it in this specific case so I
36 > set it aside for the moment.
37
38 Was your vobcopy line $vobcopy -i /path/to/mountpoint -n ${TITLE_NO}
39 -l -O ${MOVIE}_${TITLENO}.vob ?
40
41 My ffmpeg lines for dvd to mkv:
42
43 2.0 audio:
44 for a in 1 2; do schedtool -B -e nice ffmpeg -threads 4 -i $file.vob
45 -pass $a -vcodec libx264 -b 800k -deinterlace -acodec libfaac -ac 2
46 -ab 192k -y $file.mkv ;done
47
48 5.1:
49 for a in 1 2; do schedtool -B -e nice ffmpeg -threads 4 -i $1.vob
50 -pass $a -vcodec libx264 -x264opts preset=slower -b 800k -deinterlace
51 -acodec libfaac -ac 6 -ab 440k -y $1.mkv ;done
52
53 I use schedtool and nice to keep ffmpeg from hogging the cpu.
54
55 >
56 > My issue now (I think) is to learn to use ffmpeg to convert from m4v
57 > to mp4. I'd like to see about reducing the file size a bit if
58 > possible. At the same time the native resolution of the Fire is
59 > 1024x600 so I'm wondering about whether I can make the movies look
60 > better by making the mp4 file somehow know about that size.
61
62 Downscale hd to 480p and de-interlace DVDs and other 480i content.
63 720x480 will look pretty good on a 1024x600 (WSVGA) screen.