[mythtv-users] video2ipod - having trouble with perl
Nick F
nikos.f at gmail.com
Sun Apr 13 02:20:57 UTC 2008
On Sun, Apr 13, 2008 at 2:56 AM, Jeff Simpson <jeffsimpson at alum.wpi.edu>
wrote:
> On Sat, Apr 12, 2008 at 8:57 PM, Nick F <nikos.f at gmail.com> wrote:
> > Hi,
> >
> > I've been trying to get Jeff's video2ipod script to work and been
> running
> > into some problems getting it to run. Specifically I'm having an issue
> with
> > the Term::ReadLine call in line 251
> >
> > It's spitting out an error message: Cannot do `initialize' in
> > Term::ReadLine::Gnu at /usr/local/bin/video2ipod line 251
> >
> > line 251 is : $term = new Term::ReadLine 'name';
> >
>
> The preput error is perfectly fine. Really it's just a warning, and
> you can safely ignore it. All of the Term::Readline stuff is just for
> when you run it from the commandline and do tagging. If you have
> preput, it will give you the default tag and let you edit it on the
> line before saving it. If you don't have preput, you have to just type
> the whole tag. For myth it doesn't matter, since it's being run as a
> script anyway.
>
> > I started with a stock Fedora 8 perl installation, and even upgraded
> perl to
> > 5.10 to try to get a newer Term::ReadLine
> >
> > I'm not sure what to do now - I'm sure I'm doing something trivially
> wrong,
> > but don't know that much about perl, so I'm stabbing around in the dark
> a
> > bit.
>
> I'll make that error a little clearer in the next release!
>
>
Thanks Jeff for the quick response! I thought I should get it working on
the command line before trying to run it as a user job.
If I go past that (still as a user job), it does this:
[root at oscar tv]# video2ipod -i 7316_20080302220000.mpg -o
/data/nikos/iphone/Mad_Men.mp4
video2ipod: [i] Filename: 7316_20080302220000.mpg
video2ipod: [i] Resolution: 720x576
video2ipod: [i] Framerate: 25.000 fps
video2ipod: [i] Audio Rate 48000 Hz
video2ipod: [i] Video Bitrate 7980000 bps
video2ipod: [i] Video Format 0x10000002
video2ipod: [o] Filename: /data/nikos/iphone/Mad_Men.mp4
video2ipod: [o] Resolution: 720x576
video2ipod: [o] Framerate: 25.000
video2ipod: [o] Audio Codec: libfaac
video2ipod: [o] Audio Bitrate: 128k
video2ipod: [o] Video Codec: mpeg4
video2ipod: [o] Video Bitrate: 2500k
video2ipod: [o] Cropping: 0
and then stops and doesn't proceed - no further error message
I'm actually mucking about on my server from another continent (bored in my
hotel room) and it's easier to do some command line stuff via ssh than try
to set up user jobs (which are either graphical via mythtv-setup, or direct
poking in the database which I don't want to do).
Anyway - it looks to be an awesome script and I can't wait to get it working
previously. My previous kludges to get recordings encoded for my iPhone
worked, required too many manual steps, so looking forward to this one.
One more small thing, on your wiki - you mention Linguas::EN::Keywords as a
dependency - I assume you meant Lingua (without the s).
Cheers,
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20080413/907769e6/attachment.htm
More information about the mythtv-users
mailing list