public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] DVD->mp4 - handbrake vs something else
@ 2011-10-27 20:09 Mark Knecht
  2011-10-27 20:17 ` Neil Bothwick
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Mark Knecht @ 2011-10-27 20:09 UTC (permalink / raw
  To: Gentoo User

I'm getting a Kindle Fire in a few days. While I didn't get it
specifically to watch movies looking at the specs it does apparently
handle mp4 as a video format and they state online that you can watch
streaming movies & TV shows from Amazon's servers. I do a lot of blood
donations - roughly 20-25 times/year - that take 2-3 hours each so
either being able to read or watch a movie would be a pleasant way to
pass the time. Being able to hold it comfortably in one hand is
important to me.

I started looking around in Google for something to encode a few DVDs
so that I could see how well it works. A program called handbrake was
showing up in a lot of links, but it requires an overlay. While I have
no problem adding yet another overlay (which on is best?) I wondered
what might be in the normal portage database that others here use for
this purpose?

Thanks,
Mark

c2stable ~ # eix handbrake
* media-video/handbrake
     Available versions:  0.9.3!f[7] ~0.9.4[9] ~0.9.5[2] ~0.9.5[3]
~0.9.5[4] ~0.9.5_p4039[6] ~0.9.5_p4039[8] ~0.9.5_p4210[6]
~999-r3890[5] ~9999[1] ~9999[2] ~9999[4] ~9999[5] {(+)css doc (-)gtk
-qt4}
     Homepage:            http://handbrake.fr/
     Description:         Open-source DVD to MPEG-4 converter.

[1] "dottout" layman/dottout
[2] "flora" layman/flora
[3] "foo-overlay" layman/foo-overlay
[4] "init6" layman/init6
[5] "je_fro" layman/je_fro
[6] "multimedia" layman/multimedia
[7] "rubenqba" layman/rubenqba
[8] "sabayon" layman/sabayon
[9] "wish" layman/wish
c2stable ~ #



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] DVD->mp4 - handbrake vs something else
  2011-10-27 20:09 [gentoo-user] DVD->mp4 - handbrake vs something else Mark Knecht
@ 2011-10-27 20:17 ` Neil Bothwick
  2011-10-27 20:48   ` Mark Knecht
  2011-10-27 20:43 ` [gentoo-user] " Grant Edwards
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 16+ messages in thread
From: Neil Bothwick @ 2011-10-27 20:17 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 963 bytes --]

On Thu, 27 Oct 2011 13:09:24 -0700, Mark Knecht wrote:

> I'm getting a Kindle Fire in a few days. While I didn't get it
> specifically to watch movies looking at the specs it does apparently
> handle mp4 as a video format and they state online that you can watch
> streaming movies & TV shows from Amazon's servers.

You may not need to bother with transcoding. I looked at this for my Asus
Transformer and spent time with mencoder settings etc trying to get the
right format for the Android supported video formats. Then I discovered
Moboplayer in the android market, that uses software decoding to play
just about anything, so I just rip the DVD titles as MPEG2, no
transcoding needed at all. If the Fire's CPU can handle software
decoding, this is a much simpler, and higher quality, solution.


-- 
Neil Bothwick

Q: Why do PCs - even modern ones - have reset buttons on the front?
A: Because they come with Microsoft operating systems.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [gentoo-user] Re: DVD->mp4 - handbrake vs something else
  2011-10-27 20:09 [gentoo-user] DVD->mp4 - handbrake vs something else Mark Knecht
  2011-10-27 20:17 ` Neil Bothwick
@ 2011-10-27 20:43 ` Grant Edwards
  2011-10-27 20:44 ` [gentoo-user] " Paul Hartman
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 16+ messages in thread
From: Grant Edwards @ 2011-10-27 20:43 UTC (permalink / raw
  To: gentoo-user

On 2011-10-27, Mark Knecht <markknecht@gmail.com> wrote:

[regarding a kindle fire]

> I started looking around in Google for something to encode a few DVDs
> so that I could see how well it works. A program called handbrake was
> showing up in a lot of links, but it requires an overlay.

I've been using handbrake for about a year, and it's _very_
convenient. It has "presets" for many popular devices. If it knows
about your device, it's going to be hard to beat handbrake.  [Best of
all, you don't have to put up with some horrible GUI to use it.]

I have a 4th gen iPod touch, and handbrake knows the right settings to
use for that device, so it's a toddle to use.

> While I have no problem adding yet another overlay (which on is
> best?)

I just stuck the ebuild into /usr/local/portage/media-video and used
it from there.

> I wondered what might be in the normal portage database that others
> here use for this purpose?

You could just use mencoder or transcode, but figuring out all the
right options to get the best results for a given device is a
non-trivial excercise.  In the past, I've used both mencoder and
transcode to do stuff like this, but it took several evenings of
hacking together shell-scripts to drive them.

-- 
Grant Edwards               grant.b.edwards        Yow! Is it NOUVELLE
                                  at               CUISINE when 3 olives are
                              gmail.com            struggling with a scallop
                                                   in a plate of SAUCE MORNAY?




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] DVD->mp4 - handbrake vs something else
  2011-10-27 20:09 [gentoo-user] DVD->mp4 - handbrake vs something else Mark Knecht
  2011-10-27 20:17 ` Neil Bothwick
  2011-10-27 20:43 ` [gentoo-user] " Grant Edwards
@ 2011-10-27 20:44 ` Paul Hartman
  2011-10-28 20:13 ` [gentoo-user] " James
  2011-10-30 11:39 ` [gentoo-user] " Andrey Moshbear
  4 siblings, 0 replies; 16+ messages in thread
From: Paul Hartman @ 2011-10-27 20:44 UTC (permalink / raw
  To: gentoo-user

On Thu, Oct 27, 2011 at 3:09 PM, Mark Knecht <markknecht@gmail.com> wrote:
> I started looking around in Google for something to encode a few DVDs
> so that I could see how well it works. A program called handbrake was
> showing up in a lot of links, but it requires an overlay. While I have
> no problem adding yet another overlay (which on is best?) I wondered
> what might be in the normal portage database that others here use for
> this purpose?

I use dvd::rip (media-video/dvdrip) to rip DVDs in general.

You can use MP4box (media-video/gpac) to convert other container
formats to MP4 if the audio and video are already in the proper
format.

For transcoding files, ffmpeg can probably do everything.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] DVD->mp4 - handbrake vs something else
  2011-10-27 20:17 ` Neil Bothwick
@ 2011-10-27 20:48   ` Mark Knecht
  2011-10-27 20:53     ` Michael Mol
  2011-10-27 21:20     ` Neil Bothwick
  0 siblings, 2 replies; 16+ messages in thread
From: Mark Knecht @ 2011-10-27 20:48 UTC (permalink / raw
  To: gentoo-user

On Thu, Oct 27, 2011 at 1:17 PM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Thu, 27 Oct 2011 13:09:24 -0700, Mark Knecht wrote:
>
>> I'm getting a Kindle Fire in a few days. While I didn't get it
>> specifically to watch movies looking at the specs it does apparently
>> handle mp4 as a video format and they state online that you can watch
>> streaming movies & TV shows from Amazon's servers.
>
> You may not need to bother with transcoding. I looked at this for my Asus
> Transformer and spent time with mencoder settings etc trying to get the
> right format for the Android supported video formats. Then I discovered
> Moboplayer in the android market, that uses software decoding to play
> just about anything, so I just rip the DVD titles as MPEG2, no
> transcoding needed at all. If the Fire's CPU can handle software
> decoding, this is a much simpler, and higher quality, solution.
>
>
> --
> Neil Bothwick

Thanks for the ideas Neil. I'll keep it in mind. I'm not the least bit
clear whether there will be the equivalent of the Android market for
the Fire, at least early on. Long term I suspect there might be, but
at this point I don't know how open Amazon intends to make the device.

What do you use to rip DVDs to MPEG2? dvdrip? Some command line app?

Thanks,
Mark



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] DVD->mp4 - handbrake vs something else
  2011-10-27 20:48   ` Mark Knecht
@ 2011-10-27 20:53     ` Michael Mol
  2011-10-27 21:20     ` Neil Bothwick
  1 sibling, 0 replies; 16+ messages in thread
From: Michael Mol @ 2011-10-27 20:53 UTC (permalink / raw
  To: gentoo-user

On Thu, Oct 27, 2011 at 4:48 PM, Mark Knecht <markknecht@gmail.com> wrote:
> On Thu, Oct 27, 2011 at 1:17 PM, Neil Bothwick <neil@digimed.co.uk> wrote:
>> On Thu, 27 Oct 2011 13:09:24 -0700, Mark Knecht wrote:
>>
>>> I'm getting a Kindle Fire in a few days. While I didn't get it
>>> specifically to watch movies looking at the specs it does apparently
>>> handle mp4 as a video format and they state online that you can watch
>>> streaming movies & TV shows from Amazon's servers.
>>
>> You may not need to bother with transcoding. I looked at this for my Asus
>> Transformer and spent time with mencoder settings etc trying to get the
>> right format for the Android supported video formats. Then I discovered
>> Moboplayer in the android market, that uses software decoding to play
>> just about anything, so I just rip the DVD titles as MPEG2, no
>> transcoding needed at all. If the Fire's CPU can handle software
>> decoding, this is a much simpler, and higher quality, solution.
>>
>>
>> --
>> Neil Bothwick
>
> Thanks for the ideas Neil. I'll keep it in mind. I'm not the least bit
> clear whether there will be the equivalent of the Android market for
> the Fire, at least early on. Long term I suspect there might be, but
> at this point I don't know how open Amazon intends to make the device.
>
> What do you use to rip DVDs to MPEG2? dvdrip? Some command line app?

On Ubuntu, I used the dvdrip package, as I could run it under screen
and churn through five DVD-ROM drives, one to an instance. I don't
know where that sits on Gentoo, though.

-- 
:wq



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] DVD->mp4 - handbrake vs something else
  2011-10-27 20:48   ` Mark Knecht
  2011-10-27 20:53     ` Michael Mol
@ 2011-10-27 21:20     ` Neil Bothwick
  1 sibling, 0 replies; 16+ messages in thread
From: Neil Bothwick @ 2011-10-27 21:20 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

On Thu, 27 Oct 2011 13:48:02 -0700, Mark Knecht wrote:

> Thanks for the ideas Neil. I'll keep it in mind. I'm not the least bit
> clear whether there will be the equivalent of the Android market for
> the Fire, at least early on. Long term I suspect there might be, but
> at this point I don't know how open Amazon intends to make the device.
> 
> What do you use to rip DVDs to MPEG2? dvdrip? Some command line app?

Not DVD::Rip. because that also transcodes. DVD titles are already in
MPEG2 format, so vobcopy does the job quickly and simply, as the only
processing it needs to do is removing the lightweight encryption.


-- 
Neil Bothwick

"RAM DISK is NOT an installation procedure!"

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [gentoo-user] Re: DVD->mp4 - handbrake vs something else
  2011-10-27 20:09 [gentoo-user] DVD->mp4 - handbrake vs something else Mark Knecht
                   ` (2 preceding siblings ...)
  2011-10-27 20:44 ` [gentoo-user] " Paul Hartman
@ 2011-10-28 20:13 ` James
  2011-10-30 11:39 ` [gentoo-user] " Andrey Moshbear
  4 siblings, 0 replies; 16+ messages in thread
From: James @ 2011-10-28 20:13 UTC (permalink / raw
  To: gentoo-user

Mark Knecht <markknecht <at> gmail.com> writes:


> I started looking around in Google for something to encode a few DVDs
> A program called handbrake was showing up in a lot of links, but it 
> requires an overlay.  While I have  no problem adding yet another 
> overlay (which on is best?) I wondered what might be in the normal 
> portage database that others here use for this purpose?

This link might be of interest. 
Josh is an aficionado on audio 
and video like yourself. Good 
link for you, methinks......

https://github.com/nightmorph/overnight/tree/master/media-video/handbrake

hth,
James




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] DVD->mp4 - handbrake vs something else
  2011-10-27 20:09 [gentoo-user] DVD->mp4 - handbrake vs something else Mark Knecht
                   ` (3 preceding siblings ...)
  2011-10-28 20:13 ` [gentoo-user] " James
@ 2011-10-30 11:39 ` Andrey Moshbear
  2011-10-30 15:28   ` Mark Knecht
  4 siblings, 1 reply; 16+ messages in thread
From: Andrey Moshbear @ 2011-10-30 11:39 UTC (permalink / raw
  To: gentoo-user

On Thu, Oct 27, 2011 at 16:09, Mark Knecht <markknecht@gmail.com> wrote:
> I'm getting a Kindle Fire in a few days. While I didn't get it
> specifically to watch movies looking at the specs it does apparently
> handle mp4 as a video format and they state online that you can watch
> streaming movies & TV shows from Amazon's servers. I do a lot of blood
> donations - roughly 20-25 times/year - that take 2-3 hours each so
> either being able to read or watch a movie would be a pleasant way to
> pass the time. Being able to hold it comfortably in one hand is
> important to me.
>
> I started looking around in Google for something to encode a few DVDs
> so that I could see how well it works. A program called handbrake was
> showing up in a lot of links, but it requires an overlay. While I have
> no problem adding yet another overlay (which on is best?) I wondered
> what might be in the normal portage database that others here use for
> this purpose?
>

I use vobcopy to rip each title to a vob (instead of VTS_${TITLE}_$n)
then 2-pass ffmpeg the vob to transcode to mkv.

Makes batch transcoding rather fast and painless.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] DVD->mp4 - handbrake vs something else
  2011-10-30 11:39 ` [gentoo-user] " Andrey Moshbear
@ 2011-10-30 15:28   ` Mark Knecht
  2011-10-30 16:39     ` Mark Knecht
                       ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Mark Knecht @ 2011-10-30 15:28 UTC (permalink / raw
  To: gentoo-user

On Sun, Oct 30, 2011 at 4:39 AM, Andrey Moshbear <andrey.vul@gmail.com> wrote:
> On Thu, Oct 27, 2011 at 16:09, Mark Knecht <markknecht@gmail.com> wrote:
>> I'm getting a Kindle Fire in a few days. While I didn't get it
>> specifically to watch movies looking at the specs it does apparently
>> handle mp4 as a video format and they state online that you can watch
>> streaming movies & TV shows from Amazon's servers. I do a lot of blood
>> donations - roughly 20-25 times/year - that take 2-3 hours each so
>> either being able to read or watch a movie would be a pleasant way to
>> pass the time. Being able to hold it comfortably in one hand is
>> important to me.
>>
>> I started looking around in Google for something to encode a few DVDs
>> so that I could see how well it works. A program called handbrake was
>> showing up in a lot of links, but it requires an overlay. While I have
>> no problem adding yet another overlay (which on is best?) I wondered
>> what might be in the normal portage database that others here use for
>> this purpose?
>>
>
> I use vobcopy to rip each title to a vob (instead of VTS_${TITLE}_$n)
> then 2-pass ffmpeg the vob to transcode to mkv.
>
> Makes batch transcoding rather fast and painless.
>
>

Thanks. Here's my progress so far using a Casablanca DVD as a test case.

Again, my goal by the middle of next month is to run videos on the
Kindle Fire. The spec sheets for the Fire says it's supports mp4. I
don't see any other obvious video formats.

1) I tried vobcopy. I got 6GB of files. I assumed ffmpeg was the next
step but didn't easily Google how to run it in this specific case so I
set it aside for the moment.

2) Tried dvd::rip because it was in portage. It got through the rip
portion of the job but then apparently couldn't find it's own files to
do the encoding. I tried joining the dvd:rip email list but I'm still
waiting for the moderator to accept me 3 days later so there's no
where appropriate for me to ask questions on using dvd::rip.

3) I tried handbrake which requires using an overlay.

3a) Tried the sabayon overlay but it wants to change too many files on
my system so I dropped that.
3b) Tried the multimedia overlay because it had the most up to date
version of handbrake. Unfortunately that didn't build
3c) Tried the init6 overlay with provided handbrake-0.9.5 which built
correctly and runs fine.

Handbrake goes directly from DVD to a reasonably sized (1.3GB) m4v
file. That file plays fine in xine and looks very good. Being that the
Kindle Fire only has about 6GB available for user content that gives
me 4 movies at a time which is fine for me but I suspect I can do
better.

My issue now (I think) is to learn to use ffmpeg to convert from m4v
to mp4. I'd like to see about reducing the file size a bit if
possible. At the same time the native resolution of the Fire is
1024x600 so I'm wondering about whether I can make the movies look
better by making the mp4 file somehow know about that size.

Anyway, I'v made reasonable progress for a few days of sporadic
effort. Hopefully I'll be able to make more by Nov. 15th.

Cheers,
Mark



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] DVD->mp4 - handbrake vs something else
  2011-10-30 15:28   ` Mark Knecht
@ 2011-10-30 16:39     ` Mark Knecht
  2011-10-30 17:17       ` Mark Knecht
  2011-10-30 18:51     ` [gentoo-user] " Grant Edwards
  2011-10-30 22:27     ` [gentoo-user] " Andrey Moshbear
  2 siblings, 1 reply; 16+ messages in thread
From: Mark Knecht @ 2011-10-30 16:39 UTC (permalink / raw
  To: gentoo-user

On Sun, Oct 30, 2011 at 8:28 AM, Mark Knecht <markknecht@gmail.com> wrote:
<SNIP>
>
> Handbrake goes directly from DVD to a reasonably sized (1.3GB) m4v
> file. That file plays fine in xine and looks very good. Being that the
> Kindle Fire only has about 6GB available for user content that gives
> me 4 movies at a time which is fine for me but I suspect I can do
> better.
>
Handbrake had some settings that allowed me to target different file
sizes. I tried both 700MB and 300MB. Both worked. The 300MB version
was noticeably splotchy on backgrounds when displayed full screen on a
1920x1280 monitor, but not so much when sized to about the size of the
Kindle Fire.

- Mark



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] DVD->mp4 - handbrake vs something else
  2011-10-30 16:39     ` Mark Knecht
@ 2011-10-30 17:17       ` Mark Knecht
  0 siblings, 0 replies; 16+ messages in thread
From: Mark Knecht @ 2011-10-30 17:17 UTC (permalink / raw
  To: gentoo-user

On Sun, Oct 30, 2011 at 9:39 AM, Mark Knecht <markknecht@gmail.com> wrote:
> On Sun, Oct 30, 2011 at 8:28 AM, Mark Knecht <markknecht@gmail.com> wrote:
> <SNIP>
>>
>> Handbrake goes directly from DVD to a reasonably sized (1.3GB) m4v
>> file. That file plays fine in xine and looks very good. Being that the
>> Kindle Fire only has about 6GB available for user content that gives
>> me 4 movies at a time which is fine for me but I suspect I can do
>> better.
>>
> Handbrake had some settings that allowed me to target different file
> sizes. I tried both 700MB and 300MB. Both worked. The 300MB version
> was noticeably splotchy on backgrounds when displayed full screen on a
> 1920x1280 monitor, but not so much when sized to about the size of the
> Kindle Fire.
>
> - Mark
>

And the m4v vs mp4 item is like a non-issue for me. From the Handbrake manual:

[quote]
MP4 vs M4v

They are the exact same file, the only difference is the extension. MP4 vs M4v.

For MP4 files, HandBrake will automatically use the extension M4V when
you pass-through audio (AC3), use SRT subtitles or have chapter
markers enabled.

You can simply change the file extension between .mp4 and .m4v as the
file is exactly the same. There are no differences in the content or
container itself.

You can disable the option to automatically set this in HandBrakes preferences.
[/quote]



^ permalink raw reply	[flat|nested] 16+ messages in thread

* [gentoo-user] Re: DVD->mp4 - handbrake vs something else
  2011-10-30 15:28   ` Mark Knecht
  2011-10-30 16:39     ` Mark Knecht
@ 2011-10-30 18:51     ` Grant Edwards
  2011-11-01  1:21       ` Mark Knecht
  2011-10-30 22:27     ` [gentoo-user] " Andrey Moshbear
  2 siblings, 1 reply; 16+ messages in thread
From: Grant Edwards @ 2011-10-30 18:51 UTC (permalink / raw
  To: gentoo-user

On 2011-10-30, Mark Knecht <markknecht@gmail.com> wrote:

> 3) I tried handbrake which requires using an overlay.

No, it doesn't.  You can just grab the ebuild file and use it locally.

> Handbrake goes directly from DVD to a reasonably sized (1.3GB) m4v
> file. That file plays fine in xine and looks very good. Being that the
> Kindle Fire only has about 6GB available for user content that gives
> me 4 movies at a time which is fine for me but I suspect I can do
> better.

Smaller will generally mean worse looking and longer encoding time.

> My issue now (I think) is to learn to use ffmpeg to convert from m4v
> to mp4.

You don't need ffmpeg.  You just need "mv":

 mv foo.m4v foo.mp4

> I'd like to see about reducing the file size a bit if
> possible. At the same time the native resolution of the Fire is
> 1024x600 so I'm wondering about whether I can make the movies look
> better by making the mp4 file somehow know about that size.

If you mean you want the files encoded at a resolution of 1024x600,
you can tell handbrake what output resolution you want.  You'll get
far better results by encoding to the desired resolution, format and
bit-rate you want the first time than you will re-encoding a second
time.

You can create your own presets with whatever encoding settings you
want.

-- 
Grant Edwards               grant.b.edwards        Yow! World War III?
                                  at               No thanks!
                              gmail.com            




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] DVD->mp4 - handbrake vs something else
  2011-10-30 15:28   ` Mark Knecht
  2011-10-30 16:39     ` Mark Knecht
  2011-10-30 18:51     ` [gentoo-user] " Grant Edwards
@ 2011-10-30 22:27     ` Andrey Moshbear
  2 siblings, 0 replies; 16+ messages in thread
From: Andrey Moshbear @ 2011-10-30 22:27 UTC (permalink / raw
  To: gentoo-user

On Sun, Oct 30, 2011 at 11:28, Mark Knecht <markknecht@gmail.com> wrote:
> On Sun, Oct 30, 2011 at 4:39 AM, Andrey Moshbear <andrey.vul@gmail.com> wrote:
>> On Thu, Oct 27, 2011 at 16:09, Mark Knecht <markknecht@gmail.com> wrote:
>>> I'm getting a Kindle Fire in a few days. While I didn't get it
>>> specifically to watch movies looking at the specs it does apparently
>>> handle mp4 as a video format and they state online that you can watch
>>> streaming movies & TV shows from Amazon's servers. I do a lot of blood
>>> donations - roughly 20-25 times/year - that take 2-3 hours each so
>>> either being able to read or watch a movie would be a pleasant way to
>>> pass the time. Being able to hold it comfortably in one hand is
>>> important to me.
>>>
>>> I started looking around in Google for something to encode a few DVDs
>>> so that I could see how well it works. A program called handbrake was
>>> showing up in a lot of links, but it requires an overlay. While I have
>>> no problem adding yet another overlay (which on is best?) I wondered
>>> what might be in the normal portage database that others here use for
>>> this purpose?
>>>
>>
>> I use vobcopy to rip each title to a vob (instead of VTS_${TITLE}_$n)
>> then 2-pass ffmpeg the vob to transcode to mkv.
>>
>> Makes batch transcoding rather fast and painless.
>>
>>
>
> Thanks. Here's my progress so far using a Casablanca DVD as a test case.
>
> Again, my goal by the middle of next month is to run videos on the
> Kindle Fire. The spec sheets for the Fire says it's supports mp4. I
> don't see any other obvious video formats.
>
> 1) I tried vobcopy. I got 6GB of files. I assumed ffmpeg was the next
> step but didn't easily Google how to run it in this specific case so I
> set it aside for the moment.

Was your vobcopy line $vobcopy -i /path/to/mountpoint -n ${TITLE_NO}
-l -O ${MOVIE}_${TITLENO}.vob ?

My ffmpeg lines for dvd to mkv:

2.0 audio:
for a in 1 2; do schedtool -B -e nice ffmpeg -threads 4 -i $file.vob
-pass $a -vcodec libx264 -b 800k -deinterlace -acodec libfaac -ac 2
-ab 192k -y $file.mkv ;done

5.1:
for a in 1 2; do schedtool -B -e nice ffmpeg -threads 4 -i $1.vob
-pass $a -vcodec libx264 -x264opts preset=slower -b 800k -deinterlace
-acodec libfaac -ac 6 -ab 440k -y $1.mkv ;done

I use schedtool and nice to keep ffmpeg from hogging the cpu.

>
> My issue now (I think) is to learn to use ffmpeg to convert from m4v
> to mp4. I'd like to see about reducing the file size a bit if
> possible. At the same time the native resolution of the Fire is
> 1024x600 so I'm wondering about whether I can make the movies look
> better by making the mp4 file somehow know about that size.

Downscale hd to 480p and de-interlace DVDs and other 480i content.
720x480 will look pretty good on a 1024x600 (WSVGA) screen.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-user] Re: DVD->mp4 - handbrake vs something else
  2011-10-30 18:51     ` [gentoo-user] " Grant Edwards
@ 2011-11-01  1:21       ` Mark Knecht
  2011-11-01  2:53         ` Grant Edwards
  0 siblings, 1 reply; 16+ messages in thread
From: Mark Knecht @ 2011-11-01  1:21 UTC (permalink / raw
  To: gentoo-user

On Sun, Oct 30, 2011 at 11:51 AM, Grant Edwards
<grant.b.edwards@gmail.com> wrote:
> On 2011-10-30, Mark Knecht <markknecht@gmail.com> wrote:
<SNIP>
>> I'd like to see about reducing the file size a bit if
>> possible. At the same time the native resolution of the Fire is
>> 1024x600 so I'm wondering about whether I can make the movies look
>> better by making the mp4 file somehow know about that size.
>
> If you mean you want the files encoded at a resolution of 1024x600,
> you can tell handbrake what output resolution you want.  You'll get
> far better results by encoding to the desired resolution, format and
> bit-rate you want the first time than you will re-encoding a second
> time.
>
> You can create your own presets with whatever encoding settings you
> want.
>
> --
> Grant Edwards               grant.b.edwards        Yow! World War III?

Hi Grant,
   I've got to say I'm really impressed with Handbrake overall. It
just works, most especially if you use one of the presets. I've had
only one problem with any of my experiments which was that files
encoded using the High profile cause xine to crash with some sort of
floating point error. I don't personally care about the high profile
so to me it's a non-issue.

   One thing I haven't been able to figure out so far is where you
change the presentation size. I presume that presentation size is the
one I want to change to 1024x600 as that's the native resolution of
the Kindle. However I discovered where I unlock those setting in
Handbrake. Do you know?

   Anyway, it's a very nice little program for anyone else who's GUI
oriented like me.

Cheers,
Mark



^ permalink raw reply	[flat|nested] 16+ messages in thread

* [gentoo-user] Re: DVD->mp4 - handbrake vs something else
  2011-11-01  1:21       ` Mark Knecht
@ 2011-11-01  2:53         ` Grant Edwards
  0 siblings, 0 replies; 16+ messages in thread
From: Grant Edwards @ 2011-11-01  2:53 UTC (permalink / raw
  To: gentoo-user

On 2011-11-01, Mark Knecht <markknecht@gmail.com> wrote:
> On Sun, Oct 30, 2011 at 11:51 AM, Grant Edwards

>> If you mean you want the files encoded at a resolution of 1024x600,
>> you can tell handbrake what output resolution you want. ??You'll get
>> far better results by encoding to the desired resolution, format and
>> bit-rate you want the first time than you will re-encoding a second
>> time.
>>
>> You can create your own presets with whatever encoding settings you
>> want.
>
> I've got to say I'm really impressed with Handbrake overall. It just
> works, most especially if you use one of the presets. I've had only
> one problem with any of my experiments which was that files encoded
> using the High profile cause xine to crash with some sort of floating
> point error. I don't personally care about the high profile so to me
> it's a non-issue.
>
> One thing I haven't been able to figure out so far is where you
> change the presentation size.

I think it's the -w and -l options for width and height, respectively.

I only use the CLI version (https://trac.handbrake.fr/wiki/CLIGuide),
but I'm sure there's somewhere in the GUI to set all that stuff as well.
I think that web page is a bit out of date, so do "HandbrakeCLI
--help" for a current set of options.

> I presume that presentation size is the one I want to change to
> 1024x600 as that's the native resolution of the Kindle. However I
> discovered where I unlock those setting in Handbrake. Do you know?

-w and -l set the output file's width/height (in pixels).  If your
pixels are square, then I think that's all you need.  If your pixels
aren't square, then I think you need some other options.

You can get a list of the exact settings for each of the presets by
doing HandBrakeCLI --preset-list.

> Anyway, it's a very nice little program for anyone else who's GUI
> oriented like me.

I don't have the GUI version installed, so I'm afraid I can't help
with that end of it, but IIRC the GUI will let you create your own
presets.  I don't think the CLI version does custom presets, but it
would be easy enough to copy the settings from one of the built-in
presets into a file, and edit them until you get a command line that
works the way you want.

Once you've figured out good settings for your device, submit a patch,
and next time maybe HandBrake will already "just know" what to do. :)

-- 
Grant






^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-11-01  2:55 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-27 20:09 [gentoo-user] DVD->mp4 - handbrake vs something else Mark Knecht
2011-10-27 20:17 ` Neil Bothwick
2011-10-27 20:48   ` Mark Knecht
2011-10-27 20:53     ` Michael Mol
2011-10-27 21:20     ` Neil Bothwick
2011-10-27 20:43 ` [gentoo-user] " Grant Edwards
2011-10-27 20:44 ` [gentoo-user] " Paul Hartman
2011-10-28 20:13 ` [gentoo-user] " James
2011-10-30 11:39 ` [gentoo-user] " Andrey Moshbear
2011-10-30 15:28   ` Mark Knecht
2011-10-30 16:39     ` Mark Knecht
2011-10-30 17:17       ` Mark Knecht
2011-10-30 18:51     ` [gentoo-user] " Grant Edwards
2011-11-01  1:21       ` Mark Knecht
2011-11-01  2:53         ` Grant Edwards
2011-10-30 22:27     ` [gentoo-user] " Andrey Moshbear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox