<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
<tt> I'm having quite a horrible time trying to get myth2ipod working.&nbsp;
The
script runs, and I'm only left with an xml entry in the ipodfeed
directory</tt><tt> for the video file</tt><tt>, but no video file.&nbsp;
Maybe you can see a problem, and steer me
straight!...<br>
<br>
nuvexport command - in this example, I'm using a video I captured on
the s-video input of my PVR-500, so the weird chanid.&nbsp; Bypassing
myth2ipod, and going directly to the nuvexport command:<br>
<br>
[mythtv@localhost bin]$ /usr/local/bin/nuvexport --chanid=4294967295
--start=20061126115353 --mode=iPod --nice=19 --cutlist --nodenoise
--nodeinterlace --nomultipass --filename=4294967295_20061126115353.mpg
--path=/video/ipodfeed/<br>
<br>
Loading MythTV recording info.<br>
99%<br>
Default resolution based on 4:3 aspect ratio.<br>
<br>
Now encoding:&nbsp; Untitled:&nbsp; Untitled<br>
Encode started:&nbsp; Sun Nov 26 19:58:16 2006<br>
Use of uninitialized value in pattern match (m//) at
/usr/local/share/nuvexport/export/ffmpeg/MP4.pm line 184.<br>
Use of uninitialized value in pattern match (m//) at
/usr/local/share/nuvexport/export/ffmpeg/MP4.pm line 184.<br>
Waiting for mythtranscode to set up the fifos.<br>
Starting ffmpeg.<br>
processed:&nbsp; 0 of 519 frames at 0 fps (~%, eta: unknown)&nbsp; sh: line 1:&nbsp;
8114 Floating point exception/bin/nice -n19 ffmpeg -y -f s16le -ar 0
-ac 0 -i /tmp/fifodir_8037/audout -f rawvideo -pix_fmt yuv420p -s
640x480 -aspect 1.33333333333333 -r 29.970 -i /tmp/fifodir_8037/vidout
-aspect 1.33333333333333 -r 23.97 -croptop 10 -cropright 12 -cropbottom
10 -cropleft 12 -s 320x240 -vcodec mpeg4 -b '393216' -title 'Untitled'
-flags +4mv+trell+loop -aic 1 -mbd 1 -cmp 2 -subcmp 2 -acodec aac -ar
48000 -async 1 -ab 64
'/video/ipodfeed/4294967295_20061126115353.mpg.mp4' 2&gt;&amp;1<br>
processed:&nbsp; 0 of 519 frames at 0 fps (~%, eta: unknown)<br>
ffmpeg finished.<br>
processed:&nbsp; 0 of 7785 frames at 0 fps (~%, eta: unknown)<br>
<br>
ffmpeg died early.Please use the --debug option to figure out what went
wrong.<br>
<br>
<br>
[mythtv@localhost bin]$<br>
<br>
Looking at this more, should I be using filename.temp or filename.mpg?&nbsp;
I'm using the iPod.pm from myth2ipod.com.&nbsp; I cannot find an issue with
line 184 of MP4.pm.&nbsp; The header from MP4.pm contains:<br>
# @date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $Date: 2006-09-27 03:42:47 -0400 (Wed, 27 Sep 2006) $<br>
# @version&nbsp;&nbsp; $Revision: 286 $<br>
<br>
The output using --debug:<br>
<br>
[mythtv@localhost bin]$ /usr/local/bin/nuvexport --chanid=4294967295
--start=20061126115353 --mode=iPod --nice=19 --cutlist --nodenoise
--nodeinterlace --nomultipass --filename=4294967295_20061126115353.mpg
--path=/video/ipodfeed/ --debug<br>
<br>
Loading MythTV recording info.<br>
99%<br>
Default resolution based on 4:3 aspect ratio.<br>
<br>
--------------------------------<br>
To encode:&nbsp; Untitled:&nbsp; Untitled<br>
Use the following commands:<br>
Use of uninitialized value in pattern match (m//) at
/usr/local/share/nuvexport/export/ffmpeg/MP4.pm line 184.<br>
Use of uninitialized value in pattern match (m//) at
/usr/local/share/nuvexport/export/ffmpeg/MP4.pm line 184.<br>
<br>
system call:<br>
mkdir -m 0755 /tmp/fifodir_7775/<br>
<br>
forking:<br>
/bin/nice -n19 /usr/local/bin/mythtranscode --showprogress -p
autodetect -c 4294967295 -s 2006-11-26-11-53-53 -f "/tmp/fifodir_7775/"
--honorcutlist 2&gt;&amp;1<br>
<br>
forking:<br>
/bin/nice -n19 ffmpeg -y -f s16le -ar 0 -ac 0 -i
/tmp/fifodir_7775/audout -f rawvideo -pix_fmt yuv420p -s 640x480
-aspect 1.33333333333333 -r 29.970 -i /tmp/fifodir_7775/vidout -aspect
1.33333333333333 -r 23.97 -croptop&nbsp;&nbsp;&nbsp; 10 -cropright 12 -cropbottom 10
-cropleft&nbsp; 12 -s 320x240&nbsp; -vcodec mpeg4 -b '393216' -title 'Untitled'
-flags +4mv+trell+loop -aic 1 -mbd 1 -cmp 2 -subcmp 2 -acodec aac -ar
48000 -async 1 -ab 64
'/video/ipodfeed/4294967295_20061126115353.mpg.mp4' 2&gt;&amp;1<br>
[mythtv@localhost bin]$<br>
<br>
Now, having something wrong in a script or configuration is one thing,
but the next problem caught me by surprise.&nbsp; After running the
nuvexport command above (or one like it) the computer acts normal.&nbsp; Top
shows very little activity.&nbsp; But about 15 minutes later, the computer
"locks up" and is unresponsive to where I have to do a hard reset.&nbsp;
This last time, I was actually able to get some diagnosis.&nbsp; It took me
5 minutes to get a command line open, top running, and the offending
process killed.&nbsp; The hard disks were screaming the whole time:<br>
<br>
[root@localhost bin]# top<br>
<br>
top - 20:18:31 up&nbsp; 7:51,&nbsp; 9 users,&nbsp; load average: 15.11, 9.54, 4.22<br>
Tasks: 174 total,&nbsp;&nbsp; 2 running, 172 sleeping,&nbsp;&nbsp; 0 stopped,&nbsp;&nbsp; 0 zombie<br>
Cpu(s):&nbsp; 0.0% us,&nbsp; 5.8% sy,&nbsp; 0.0% ni,&nbsp; 0.0% id, 91.8% wa,&nbsp; 0.0% hi,&nbsp;
2.4% si<br>
Mem:&nbsp;&nbsp; 1026820k total,&nbsp; 1018732k used,&nbsp;&nbsp;&nbsp;&nbsp; 8088k free,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 132k buffers<br>
Swap:&nbsp; 1059832k total,&nbsp; 1059832k used,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0k free,&nbsp;&nbsp;&nbsp; 17432k cached<br>
<br>
&nbsp; PID USER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PR&nbsp; NI&nbsp; VIRT&nbsp; RES&nbsp; SHR S %CPU %MEM&nbsp;&nbsp;&nbsp; TIME+&nbsp; COMMAND<br>
&nbsp;8105 mythtv&nbsp;&nbsp;&nbsp; 34&nbsp; 19 1791m 804m 1464 D&nbsp; 1.1 80.3&nbsp;&nbsp; 0:12.44
mythtranscode<br>
&nbsp;2992 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16&nbsp;&nbsp; 0&nbsp; 358m 4364 1464 S&nbsp; 1.0&nbsp; 0.4&nbsp;&nbsp; 0:05.70 mythbackend<br>
&nbsp;3575 mythtv&nbsp;&nbsp;&nbsp; 15&nbsp;&nbsp; 0&nbsp; 141m 4520 1432 S&nbsp; 0.6&nbsp; 0.4&nbsp;&nbsp; 0:19.22 kicker<br>
&nbsp;3744 mythtv&nbsp;&nbsp;&nbsp; 18&nbsp;&nbsp; 0&nbsp; 279m&nbsp; 18m 1480 R&nbsp; 0.6&nbsp; 1.8&nbsp;&nbsp; 0:07.25 firefox-bin<br>
&nbsp;2920 mysql&nbsp;&nbsp;&nbsp;&nbsp; 15&nbsp;&nbsp; 0&nbsp; 160m 3132&nbsp; 896 S&nbsp; 0.5&nbsp; 0.3&nbsp;&nbsp; 0:09.85 mysqld<br>
&nbsp;3586 mythtv&nbsp;&nbsp;&nbsp; 17&nbsp;&nbsp; 0&nbsp; 102m 1628&nbsp; 952 D&nbsp; 0.4&nbsp; 0.2&nbsp;&nbsp; 0:01.38
pam-panel-icon<br>
&nbsp; 204 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 15&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0 D&nbsp; 0.4&nbsp; 0.0&nbsp;&nbsp; 0:02.96 kswapd0<br>
&nbsp;6905 mythtv&nbsp;&nbsp;&nbsp; 15&nbsp;&nbsp; 0&nbsp; 141m 1980 1096 S&nbsp; 0.3&nbsp; 0.2&nbsp;&nbsp; 0:00.90 knotify<br>
&nbsp;7881 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16&nbsp;&nbsp; 0&nbsp; 139m 1604 1100 D&nbsp; 0.2&nbsp; 0.2&nbsp;&nbsp; 0:00.67 knotify<br>
&nbsp;3407 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16&nbsp;&nbsp; 0&nbsp; 169m&nbsp; 23m 1308 D&nbsp; 0.2&nbsp; 2.3&nbsp;&nbsp; 1:58.05 X<br>
-snip-<br>
<br>
So I killed mythtranscode and the computer was usable again...<br>
<br>
[root@localhost bin]# killall mythtranscode<br>
[root@localhost bin]# sh: line 1:&nbsp; 8105 Terminated&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/bin/nice -n19 /usr/local/bin/mythtranscode --showprogress -p
autodetect -c 4294967295 -s 2006-11-26-11-53-53 -f "/tmp/fifodir_8037/"
--honorcutlist 2&gt;&amp;1<br>
<br>
[root@localhost bin]#<br>
<br>
Again, maybe you will see something I don't!<br>
<br>
Thanks,<br>
Kevin<br>
<br>
<br>
<br>
</tt>
<br>
</body>
</html>