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

Justin Hornsby justin at mythtvthemes.co.uk
Wed Nov 7 00:48:02 UTC 2007

Bob O'Shaughnessy wrote:
> 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,
As much as I'd like to help, I don't currently have a box running trunk 
to fix the storage groups problem.  The second issue should (I think) be 
quite easy to fix - rather than base the filename on chanid & starttime, 
look up the basename of the file instead - that should even cover files 
that have been renamed by mythrename.pl as far as I know.


More information about the mythtv-users mailing list