maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Tablet-encode & mencoder (https://talk.maemo.org/showthread.php?t=12249)

nyu2 2008-07-15 12:37

Re: Tablet-encode & mencoder
 
Ah, that helps tremendously. But why use such an arcane format for a conf file? I don't know a lot about programming in perl, but it seems likely that someone already has a module that you can import that would make the conf file look like every other conf file out there.

A quick google search turns up http://search.cpan.org/~kane/Config-...Config/Auto.pm which seems to be useful.

-nyu2

Jaffa 2008-07-15 12:48

Re: Tablet-encode & mencoder
 
There's a difference between arcane and simple-to-implement. Effectively .tablet-encode.conf is another Perl file which sets the default value of command line options.

Using something better is relatively straightforward, but given the lack of feedback of "oooh, scary, I can't write a config file" (until now); it's not been a priority :-)

If people don't say things to me directly (such as the GUI crash on some systems), they won't get changed unless I have a problem with them.

For example, you don't know Perl - this would presumably *help* you in helping to improve the documentation, in lieu of a new implementation :-)

nyu2 2008-07-15 14:01

Re: Tablet-encode & mencoder
 
I suppose that I should at some point actually learn perl. I was expecting it to work like al the other equal-separated conf files out there, I guess. Sorry about that...

Jaffa 2008-07-15 17:05

Re: Tablet-encode & mencoder
 
It's a valid point. You shouldn't need to learn Perl to set up the config file, and Config::Auto does look quite cool.

Patches to the README, web site or the Perl code are always welcome, otherwise I'll add it to the TODO list.

AlanR 2008-08-03 05:11

Re: Tablet-encode & mencoder
 
Adding vrc_minrate to tablet-encode 2.19 seems to have broken 2 pass encoding.

Code:

tablet-encode -2 -s -p best test.avi sample.avi
[snip]
[mpeg4 @ 0xa42b00]Warning min_rate > 0 but min_rate != max_rate isn't recommended!
[mpeg4 @ 0xa42b00][lavc rc] Error: bitrate too low for this video with these parameters.
Could not open codec.
FATAL: Cannot initialize video driver.

Commenting out line 317:
Code:

':vrc_minrate='.int($ovbitrate / 2).
corrects the error message and allows the second pass to run.

Thanks for this really helpful script!

Jaffa 2008-08-03 15:44

Re: Tablet-encode & mencoder
 
Quote:

Originally Posted by AlanR (Post 209707)
Adding vrc_minrate to tablet-encode 2.19 seems to have broken 2 pass encoding.

Hmm, I can't reproduce this. What version of mencoder are you using. you can find it by typing 'mencoder' on its own:

Code:

andrew@serenity:~$ mencoder
MEncoder 2:1.0~rc2-0ubuntu13 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ (Family: 15, Model: 75, Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
No file given

Thanks in advance,

Andrew

AlanR 2008-08-03 17:48

Re: Tablet-encode & mencoder
 
Thanks for the quick reply.

Code:

MEncoder dev-SVN-r26753-4.1.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU    E8200  @ 2.66GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

This is version:
Code:

[I] media-video/mplayer
    Available versions:  ~1.0_rc2_p24929-r4 1.0_rc2_p25993 ~1.0_rc2_p26258 1.0_rc2_p26753 ~1.0_rc2_p26753-r1 ~1.0_rc2_p27120
    Installed versions:  1.0_rc2_p26753(01:50:19 PM 05/30/2008)
    Homepage:            http://www.mplayerhq.hu/
    Description:        Media Player for Linux

Looks like I'm using a newer version of mencoder. I'll try compiling the older stable version and the newer unstable and see what happens.

AlanR 2008-08-07 00:26

Re: Tablet-encode & mencoder
 
Got the exact same error with the previous stable version for Gentoo and the latest unstable version.
Code:

alan@mandalore ~/encode $ mencoder
MEncoder dev-SVN-r25993-4.1.2 (C) 2000-2008 MPlayer Team

Code:

alan@mandalore ~/encode $ mencoder
MEncoder dev-SVN-r27120-4.1.2 (C) 2000-2008 MPlayer Team


Jaffa 2008-08-07 13:04

Re: Tablet-encode & mencoder
 
Thanks, I'll try and find time to sort this out. At worst case will make it detect the error & re-run without the option ;-)

AlanR 2008-08-07 19:56

Re: Tablet-encode & mencoder
 
From what I've read in researching the error message, the mencoder devs think min rate should always be 0 for vbr and be equal to max rate for cbr. They've just recently begun enforcing it.


All times are GMT. The time now is 19:29.

vBulletin® Version 3.8.8