Hi all,
I am getting an error when running myth2ipod under R5F27 and it has me stumped. I had myth2ipod working awhile back on R5C7, but I did a clean rebuild going to R5F27, and I can't get it it going again.
I used the install_myth2ipod.sh from
http://www.myth2ipod.com/myth2ipod.html and that seemed to go fine.
The error occurs when the MP4Box -add [temp-file] [dest-file] command is executed.
The error is: (Bad Parameter)Several tracks in MP4 - please indicate track to import
Here is the log:
Code:
Loading MythTV recording info.
97%
Default resolution based on 4:3 aspect ratio.
Now encoding: Baseball Tonight: Untitled
Encode started: Tue Oct 16 17:13:43 2007
Use of uninitialized value in pattern match (m//) at /usr/local/share/nuvexport/export/ffmpeg/MP4.pm line 184.
Use of uninitialized value in pattern match (m//) at /usr/local/share/nuvexport/export/ffmpeg/MP4.pm line 184.
2007-10-16 17:13:44.278 MainServer::HandleAnnounce Monitor
2007-10-16 17:13:44.283 adding: mythtv as a client (events: 0)
2007-10-16 17:13:44.284 MainServer::HandleAnnounce Monitor
2007-10-16 17:13:44.285 adding: mythtv as a client (events: 1)
Waiting for mythtranscode to set up the fifos.
Waiting for mythtranscode to set up the fifos.
Waiting for mythtranscode to set up the fifos.
Waiting for mythtranscode to set up the fifos.
Starting ffmpeg.
processed: 1334 of 1725 frames at 47.64 fps (77.33%, eta: 8s)
ffmpeg finished.
processed: 1369 of 1725 frames at 48.89 fps (79.36%, eta: 7s)
mythtranscode finished.
Encode finished: Tue Oct 16 17:14:15 2007
Encode lasted: 32s
Cleaning up temp files.
Backing up the temporary file
cp /myth/ipodfeed/1032_20071016164800.temp.mp4 /myth/ipodfeed/1032_start.temp.mp4.bak
/usr/local/bin/MP4Box -add /myth/ipodfeed/1032_20071016164800.temp.mp4 /myth/ipodfeed/1032_20071016164800.ipod.mp4
*************** START OF ERROR ****************
(Bad Parameter)Several tracks in MP4 - please indicate track to import
Error importing /myth/ipodfeed/1032_20071016164800.temp.mp4: Bad Parameter
*************** END OF ERROR ****************
MP4Box cleanup seems to have failed
Nuvexport completed, starting xml generation...
"Baseball_Tonight--20071016" has been added to the feed.
XML file created for "Baseball_Tonight--20071016" : Yipeee
Cleaning up temporary files
rm -f /myth/ipodfeed/1032_20071016164800.temp.mp4
Baseball Tonight is ready for your ipod
2007-10-16 17:14:15.742 JobQueue: Finished "Encode for iPod" for "Baseball Tonight" recorded from channel 1032 at Tue Oct 16 16:48:00 2007.
I modified the myth2ipod script to back up the xxx.tmp.mp4 file before deleting it, and tried running some MP4Box commands on it manually, but to no avail.
I ran: "/usr/local/bin/MP4Box -info /myth/ipodfeed/test.mp4"
Which resulted in:
Code:
* Movie Info *
Timescale 1000 - Duration 00:00:57.114
Fragmented File no - 2 track(s)
File Brand isom - version 512
File has no MPEG4 IOD/OD
Track # 1 Info - TrackID 1 - TimeScale 2397 - Duration 00:00:57.113
Media Info: Language "und" - Type "vide" - Sub Type "mp4v" - 1369 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x20
MPEG-4 Visual Size 320 x 240 - Simple Profile @ Level 1
Pixel Aspect Ratio 1:1 - Indicated track size 320 x 240
Self-synchronized
Track # 2 Info - TrackID 2 - TimeScale 48000 - Duration 00:00:57.066
Media Info: Language "und" - Type "soun" - Sub Type "mp4a" - 2675 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 48000
Synchronized on stream 1
Nothing looked very suspicious in there, but I did notice that there were 2 tracks (1 and 2) so then I tried:
/usr/local/bin/MP4Box -add /myth/ipodfeed/test.mp4#trackID=1 -add /myth/ipodfeed/test.mp4#trackID=2 /myth/ipodfeed/test-done.mp4
Which resulted in:
Code:
(Bad Parameter)Several tracks in MP4 - please indicate track to import
Error importing /myth/ipodfeed/test.mp4#trackID=1: Bad Parameter
Not sure if that was the right syntax or not, but that's what the docs suggested to me at least.
So, I'm at a loss...
There are a couple of Google results for "Several tracks in MP4" but they don't appear to be relevant to my issue.
Any myth2ipod experts out there that see something fishy? Should I try to do the whole myth2ipod setup by hand instead of using the script? I'm assuming that the myth2ipod script at "http://myth2ipod.com/myth2ipod.txt" is the most recent version.
Thanks for any help or advice!
David