[mythtv-users] New portable video player (iPod?) export script

Bob O'Shaughnessy oshaug at gmail.com
Mon Nov 5 04:00:33 UTC 2007


Justin, thanks for contributing this.  It seems to be just what I need
for my new iPhone.

I've been playing with your script on my Mythbox but have run into two
issues.  I'm running a recent SVN install on a Fedora Core 6 box with
storage groups set up (the main reason I'm running an SVN build)
across two drives.

The first problem seems to be with finding the second directory of the
storage group.  When I run the script on a recording that is stored on
the second drive, I get the following in the log:

2007-11-04 16:38:49.129 JobQueue: Started "Myth iPod Export" for
"American Masters" recorded from channel 1011 at Sun Nov 4 14:30:00
2007
Name "main::basename" used only once: possible typo at
/usr/local/bin/mythipodexport.pl line 125.
2007-11-04 16:38:49.339 MainServer::HandleAnnounce Monitor
2007-11-04 16:38:49.341 adding: mythtv.bob.int as a client (events: 0)
Use of uninitialized value in concatenation (.) or string at
/usr/lib/perl5/site_perl/5.8.8/MythTV/StorageGroup.pm line 57.
FFmpeg version SVN-r8743, Copyright (c) 2000-2007 Fabrice Bellard, et al.
 configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib
--mandir=/usr/share/man --enable-shared --enable-gpl --enable-pp
--enable-swscaler --enable-pthreads --enable-x11grab --enable-dc1394
--enable-liba52bin --enable-libdts --enable-libfaac
--enable-libfaadbin --enable-libmp3lame --enable-libogg
--enable-libtheora --enable-libvorbis --enable-xvid --extra-cflags=-O2
-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables --disable-strip
 libavutil version: 49.4.0
 libavcodec version: 51.40.3
 libavformat version: 51.12.1
 built on Apr 23 2007 23:45:21, gcc: 4.1.1 20070105 (Red Hat 4.1.1-51)
/video/store/1011_20071104143000.mpg: I/O error occured
Usually that means that input file is truncated and/or corrupted.
2007-11-04 16:38:49.378 JobQueue: Finished "Myth iPod Export" for
"American Masters" recorded from channel 1011 at Sun Nov 4 14:30:00
2007.

The script should have looked at /video2/store/1011_20071104143000.mpg
instead.

If I run the script against recordings stored in the /video/store
directory (Drive #0 in the storage group) the script works as
advertised.

The second problem is probably self-inflicted, but doesn't seem to be
considered in the way your script works.  I've run the mythrename.pl
script in the /contrib directory to get some easy-to-read filenames.
These are mainly older files, but your script is assuming the
Myth-generated filenames and throws another I/O error, as it us unable
to find the renamed .mpg files.

Let me know if you need more info from me.  I'm guessing that the
first issue is solvable, but the second might take some heavy lifting.

Thanks again,

On 7/27/07, Justin Hornsby <justin.hornsby at gmail.com> wrote:
> FYI - just to let you all know I've adapted my DVB radio export script
> to spew out recordings in a format suitable for use on certain popular
> portable video players.
>
> It can be ran from a shell or as a user job script, see
> http://mythtv.org/wiki/index.php/Ipod_export
>
> It's also been committed to SVN trunk (in /contrib).  Have fun with
> it.  Note: yes I know about myth2ipod, but this is an alternative
> which can be used for one-off recordings without dragging the whole
> 'podcast' aspect into view.
>
> Regards,
> Justin
>
> --
> Justin Hornsby
> Creator of ProjectGrayhem, blootube and neon-wide themes for MythTV
> email: justin(dot)hornsby(at)gmail.com
> web: http://www.juski.co.uk
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


-- 
Bob O'Shaughnessy
oshaughnessy at mac.com
http://oshaughnessy.typepad.com


More information about the mythtv-users mailing list