[mythtv-users] new video2ipod script released!

Marc drayson at net1plus.com
Fri Mar 7 11:48:49 UTC 2008


Going to test 0.7 out now. 
I just finished encoding with 0.6 and it didn't work that great.. 
The I encoded an HD (720p) show. The show was 1 hour 9 mins and 55 seconds
long.
The video conversion processed fine and it even stayed in the 16:9 format.
It is the audio that is screwy.
At the beginning the audio seems fine althou it is out of sync by a few
milliseconds. That's fine, I can work with that.
At 28 mins 22 seconds the audio suddenly it starts going double time, or
faster, and it sounds like I'm watching an old chipmunks show. But it is way
too fast to actually pick out the words. And, due to the faster audio, the
audio stream stops at 42 mins 12 seconds.
Through all of this the video came out crystal clear. If we can figure out
this audio issue this script will be sweet.

The command I used is as follows:
video2ipod.pl -force16 -threads 2 -myth -tvdotcom -chanid 2825 -starttime
20080304205500 -log /tmp/video2ipod.log -type h264 -verbose -debug -output
/record/working

I'm not sure how fully tested the multiple threads option is, so on my new
test I'll go back to 1 thread.

Marc

_______________________________________________

Well this isn't good.
Here is s step by step.

Download 0.7 and attempt to run with -version it fails telling me I do not
meet the new Text::Template dependency. So I had to install the
Text::Template module for Perl. Not an issue.
Run version again and get results.
niflheim ~ # ./video2ipod.pl -version
video2ipod.pl 0.07
Encode video for iPod Video (mpeg4, h264) using ffmpeg
Copyright (C) 2008, Jeff Simpson

So I go straight for the big one. I removed -threads 2 cause I thought that
might be the issue with audio and I added -cutcommercials cause that's the
new toy.
niflheim ~ # ./video2ipod.pl -cutcommercials -force16 -myth -tvdotcom
-chanid 2825 -starttime 20080304205500  -log /tmp/video2ipod.log -type h264
-verbose -debug -output /record/working
video2ipod.pl: Logging to /tmp/video2ipod.log
niflheim ~ #

Almost instantly I'm back to hash.

Here is the log.
video2ipod.pl: Setting noask and verbose because log is on
video2ipod.pl: MythTV Enabled
video2ipod.pl: CHANID: 2825
video2ipod.pl: STARTTIME: 20080304205500
video2ipod.pl: tv.com: Looking up 'New Amsterdam'...
video2ipod.pl: tv.com: Found 6 episodes
video2ipod.pl: tv.com: Looking up 'Pilot'...
video2ipod.pl: tv.com: Found: Pilot (score 0)
video2ipod.pl: MythTV Title:    New Amsterdam
video2ipod.pl: MythTV Subtitle: Pilot
video2ipod.pl: MythTV Channel:  WFXTDT (WFXT-DT)
video2ipod.pl: MythTV Type:     Episode
video2ipod.pl: MythTV Summary:  In the "Pilot," we're introduced to John
Amsterdam - a brilliant New York homicide detective who's also an immortal
being. John will only start aging once he finds his true love which hasn't
happened for the past 400 years of his life. John's homicide partner is a
woman named Eva Marquez. The only person who knows John's secret of
immortality is Omar, who also happens to have his own secret safe with John.

John escapes death when he finds himself investigating the murder of a
socialite who is somehow connected to his past.
video2ipod.pl: MythTV Episode:  1 / 1
video2ipod.pl: MythTV Flagged:  1
video2ipod.pl: MythTV CommFree: 0
video2ipod.pl: Commercial Cutting requested
video2ipod.pl: Copying commercial flagging to cut list2008-03-07
06:39:04.061 Using runtime prefix = /usr, libdir = /usr/lib
2008-03-07 06:39:04.061 Empty LocalHostName.
2008-03-07 06:39:04.068 New DB connection, total: 1
2008-03-07 06:39:04.073 Closing DB connection named 'DBManager0'
2008-03-07 06:39:04.075 New DB connection, total: 2
video2ipod.pl: Cutting commercials, saving to
'/tmp/video2ipod.pl-75V0_/tmpODjkl.mpg'
2008-03-07 06:39:04.154 Using runtime prefix = /usr, libdir = /usr/lib
2008-03-07 06:39:04.155 Empty LocalHostName.
2008-03-07 06:39:04.162 New DB connection, total: 1
2008-03-07 06:39:04.167 Closing DB connection named 'DBManager0'
2008-03-07 06:39:04.167 Enabled verbose msgs: important
2008-03-07 06:39:04.169 New DB connection, total: 2
2008-03-07 06:39:04.401 Using protocol version 40
2008-03-07 06:39:04.777 Transcode: Looking for autodetect profile:
Autodetect from 720p
2008-03-07 06:39:04.778 New DB connection, total: 3
2008-03-07 06:39:04.787 Transcode: Using autodetect profile: MPEG2
2008-03-07 06:39:04.788 No video information found!
2008-03-07 06:39:04.788 Please ensure that recording profiles for the
transcoder are set
video2ipod.pl: Debug is ON
video2ipod.pl: Verbose is ON
video2ipod.pl: Transcoding niceness: 15
video2ipod.pl: Using 1 Processing Threads
video2ipod.pl: Not asking for mp4 tagging
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 424.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 424.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 425.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 426.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 427.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 428.
Use of uninitialized value in numeric gt (>) at ./video2ipod.pl line 447.
Use of uninitialized value in modulus (%) at ./video2ipod.pl line 457.
Use of uninitialized value in modulus (%) at ./video2ipod.pl line 458.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 459.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 459.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 462.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 462.
Use of uninitialized value in modulus (%) at ./video2ipod.pl line 484.
Use of uninitialized value in modulus (%) at ./video2ipod.pl line 485.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 487.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 487.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 491.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 491.
Use of uninitialized value in concatenation (.) or string at ./video2ipod.pl
line 493.
video2ipod.pl: [i] Filename:      /tmp/video2ipod.pl-75V0_/tmpODjkl.mpg
video2ipod.pl: [i] Resolution:    x
video2ipod.pl: [i] Framerate:      fps
video2ipod.pl: [i] Audio Rate      Hz
video2ipod.pl: [i] Video Bitrate   bps
video2ipod.pl: [i] Video Format
Resizing for div16: x
video2ipod.pl: [o] Filename:      /record/working/New Amsterdam - Pilot.mp4
video2ipod.pl: [o] Resolution:    x
video2ipod.pl: [o] Framerate:
video2ipod.pl: [o] Audio Codec:   libfaac
video2ipod.pl: [o] Audio Bitrate: 128k
video2ipod.pl: [o] Video Codec:   libx264
video2ipod.pl: [o] Video Bitrate: 1500k
video2ipod.pl: [o] Cropping:      0
video2ipod.pl: /usr/bin/nice -n 15 /usr/bin/ffmpeg -i
"/tmp/video2ipod.pl-75V0_/tmpODjkl.mpg" -y -acodec libfaac -ab 128k -s x
-vcodec libx264 -b 1500k -threads 1 -croptop 0 -cropbottom 0 -f mp4 -flags
+loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me umh -subq 5
-trellis 1 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold
40 -i_qfactor 0.71 -bt 1500k -maxrate 10M -bufsize 10M -rc_eq
'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect
: "/tmp/video2ipod.pl-75V0_/tmpQLMPE.mp4"
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
--mandir=/usr/share/man --enable-static --enable-shared
--cc=x86_64-pc-linux-gnu-gcc --disable-altivec --disable-debug --disable-v4l
--disable-v4l2 --disable-dv1394 --disable-ffplay --disable-network
--disable-opts --enable-libmp3lame --enable-libvorbis --enable-libogg
--enable-libtheora --enable-libogg --enable-liba52 --enable-pthreads
--enable-libxvid --enable-x11grab --enable-libogg --enable-libx264
--enable-libfaad --enable-libfaac --enable-gpl --enable-pp --enable-swscaler
--disable-strip
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on Mar  5 2008 08:34:03, gcc: 4.1.2 (Gentoo 4.1.2 p1.0.1)
/tmp/video2ipod.pl-75V0_/tmpODjkl.mpg: Unknown format


I take a look at /tmp/video2ipod.pl-75V0_ to see what is there.. and it does
not exist.
I'm thinking either the new code is bad, or there is another dependency that
is not checked for and I do not have it.



More information about the mythtv-users mailing list