Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on Jul 2008
#41
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's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#42
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 :-)
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 
Posts: 3 | Thanked: 0 times | Joined on Jul 2008
#43
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's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#44
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.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 
Posts: 5 | Thanked: 1 time | Joined on Aug 2008 @ Humboldt County, California
#45
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's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#46
Originally Posted by AlanR View Post
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
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 
Posts: 5 | Thanked: 1 time | Joined on Aug 2008 @ Humboldt County, California
#47
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.
 

The Following User Says Thank You to AlanR For This Useful Post:
Posts: 5 | Thanked: 1 time | Joined on Aug 2008 @ Humboldt County, California
#48
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's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#49
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 ;-)
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 
Posts: 5 | Thanked: 1 time | Joined on Aug 2008 @ Humboldt County, California
#50
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:09.