View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Oct 16, 2007 6:53 pm 
Offline
Joined: Thu Aug 10, 2006 2:53 pm
Posts: 5
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


Top
 Profile  
 
 Post subject: Nevermind perhaps...
PostPosted: Tue Oct 16, 2007 8:32 pm 
Offline
Joined: Thu Aug 10, 2006 2:53 pm
Posts: 5
Well, I didn't solve the error, but I discovered that the mp4 files appear to play just fine on my iPhone without running the MP4Box command.

I removed the following code from myth2ipod:
Code:
# Now clean up the output so iPods with firmware 1.1 and above can use it
$cmd = "/usr/local/bin/MP4Box -add $feedpath$chanid\_$start.temp.mp4 $feedpath$chanid\_$start.$portable.mp4";
print $cmd."\n";
if(system($cmd)) { print "MP4Box cleanup seems to have failed\n"; }


and replaced it with:
Code:
# Rename the temp file
printf("Renameing the temporary file\n");
$cmd = "mv $feedpath$chanid\_$start.temp.mp4 $feedpath$chanid\_$start.$portable.mp4";
print $cmd."\n";
if(system($cmd)) { print "Rename failed\n"; }


The rename could be removed completely, and just change it to write to the correct filename in the first place, but I'm not yet convinced that this is the 100% right fix. :-)

So, I'm going to run with this and see if anything else comes up, but it looks good so far.

David

Update: I found this in the myth2ipod changelog (http://myth2ipod.com/ChangeLog/ChangeLog.html)

Code:
1.0 b2
Sunday, March 5, 2006
Compatible with 5G Video iPod 1.1 firmware. This requires an additional dependency on MP4Box, for post processing, and a patch to the nuvexport iPod plugin, but in the end, the files play perfectly.
read more...


I don't have a 5G to test on, but it appears that the iPhone doesn't need this extra step.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu