View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 20 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Mar 17, 2005 11:36 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
I had some serious adventures with this so writing them up seemed like a good idea. Mostly this is an intro to the diffs below... I started with the excellent directions on the wiki - http://knoppmythwiki.homelinux.org/index.php?page=MythTVBurn_Scripts_HowTo I've added some troubleshooting notes there as well.

My first problem was that the script would hang while extracting thumbnall images for the menus. The "nigelpearson" fix of changing the options to jpeg2yuv didn't cure the problem, it didn't seem to hurt, but it also didn't seem to help. I finally tracked the hang down to the "transcode" utility. I upgrade that to the latest release (0.6.14).

After some hacking I got through the whole process and discovered that 1) peoples faces were blue in the thumbnails (caused by a known red/blue channel confusion) and 2) the thumbnail images were upside down. Both of these are known issues with transcode with documented work arounds (the -k and -z commnd line switches).

My final problem was sound skipping on DVD playback. I suspect my audio capture settings may be partly to blame here (I just use the defaults), but switching from replex to multiplex works for me and the fairly large number of existing recordings waiting to get burned to DVD...

BTW - To test the ISO image before burning it to a DVD I use the following trick:
Code:
xine dvd:/myth/mythburn/DVD/VIDEO_TS/
It saves both time and DVD blanks to be able to check that everything looks OK before firing up the burner. ;-)

OK, without further ado, here are my (slightly cleaned up) diffs against the current MythBurn CVS (ignore the /myth/mythburn/mythburn -> /myth/mythburn changes, they don't really affect behaviour. The extra level of directory just seemed silly to me):

Code:
cvs diff: Diffing .
Index: mythtvburn.sh
===================================================================
RCS file: /cvsroot/mythburn/mythburn/mythtvburn.sh,v
retrieving revision 1.8
diff -r1.8 mythtvburn.sh
28c28
< myfolder=/myth/mythburn/mythburn
---
> myfolder=/myth/mythburn
38a39,41
> #Location of the transcode program
> transcode=`which transcode`
>
527,531c530,534
< /usr/local/bin/transcode -q 0 -i $myfolder""/temp/$file"" -x auto,null -y jpg,null \
<                         -o $myfolder""/temp/$page""_$index""/V -Z 140x105 -k \
<                         -z --progress_off \
<                         --nav_seek $myfolder""/temp/$file"".tcindex \
<                         -c 2000-$((2000 + maxanimframes))
---
> $transcode -q 0 -i $myfolder""/temp/$file"" -x auto,null -y jpg,null \
>            -o $myfolder""/temp/$page""_$index""/V -Z 140x105 \
>          --progress_off \
>          --nav_seek $myfolder""/temp/$file"".tcindex \
>          -c 2000-$((2000 + maxanimframes))
642c645
< nice jpeg2yuv -v 0 -n 60 -I p -f $framerate -j \
---
> nice jpeg2yuv -v 0 -l 2 -n 60 -I p -f $framerate -j \
756c759
<       nice jpeg2yuv -v 0 -I p -f $framerate -j $myfolder""/temp/menu/$page""_V%06d.jpg.jpg | \
---
>       nice jpeg2yuv -v 0 -l 2 -I p -f $framerate -j $myfolder""/temp/menu/$page""_V%06d.jpg.jpg | \
Index: mythwebburn/mythtvburndvd.php
===================================================================
RCS file: /cvsroot/mythburn/mythburn/mythwebburn/mythtvburndvd.php,v
retrieving revision 1.2
diff -r1.2 mythtvburndvd.php
6c6
< $mythburnfolder='/myth/mythburn/mythburn';
---
> $mythburnfolder='/myth/mythburn';
Index: mythwebburn/mythtvburndvd_createdvd.php
===================================================================
RCS file: /cvsroot/mythburn/mythburn/mythwebburn/mythtvburndvd_createdvd.php,v
retrieving revision 1.6
diff -r1.6 mythtvburndvd_createdvd.php
11c11
< $mythburnfolder='/myth/mythburn/mythburn';
---
> $mythburnfolder='/myth/mythburn';
Index: scripts/createscenemenu.sh
===================================================================
RCS file: /cvsroot/mythburn/mythburn/scripts/createscenemenu.sh,v
retrieving revision 1.3
diff -r1.3 createscenemenu.sh
329c329
< nice jpeg2yuv -v 0 -n $framerate -I p -f $framerate -j \
---
> nice jpeg2yuv -v 0 -l 2 -n $framerate -I p -f $framerate -j \
Index: scripts/extractthumbnail.sh
===================================================================
RCS file: /cvsroot/mythburn/mythburn/scripts/extractthumbnail.sh,v
retrieving revision 1.3
diff -r1.3 extractthumbnail.sh
2c2
<
---
>
38c38
< #     echo Running $transcode -q 0 -i "$2" -x auto,null -y jpg,null -o $3 -Z $imagesize -k -z --progress_off --nav_seek $2"".tcindex -c
$cut
---
>       echo Running $transcode -q 255 -i "$2" -x auto,null -y jpg,null -o $3 -Z $imagesize --progress_off --nav_seek $2"".tcindex -c $cut
40c40
<       $transcode -q 0 -i "$2" -x auto,null -y jpg,null -o $3 -Z $imagesize -k -z --progress_off --nav_seek $2"".tcindex -c $cut
---
>       $transcode -q 255 -i "$2" -x auto,null -y jpg,null -o $3 -Z $imagesize --progress_off --nav_seek $2"".tcindex -c $cut
Index: scripts/remplex.sh
===================================================================
RCS file: /cvsroot/mythburn/mythburn/scripts/remplex.sh,v
retrieving revision 1.5
diff -r1.5 remplex.sh
76c76
<       replex $2 $3
---
> #     replex $2 $3
83c83
< #     multiplex $2 $3
---
>       multiplex $2 $3


Top
 Profile  
 
 Post subject: THANK YOU!
PostPosted: Tue Apr 12, 2005 3:44 pm 
Offline
Joined: Wed Oct 20, 2004 5:45 pm
Posts: 29
You have made a very weary hacker quite happy. I've been pulling my hair out for a couple of weeks now, trying to figure out why MythBurn just stopped working (on my R4 installation). I installed R5 to see if it would help, but not until I changed the stuff you recommended did it begin working again.

Again, thank you for saving the remains of my sanity.


Top
 Profile  
 
 Post subject: I spoke too soon :(
PostPosted: Wed Apr 20, 2005 1:19 pm 
Offline
Joined: Wed Oct 20, 2004 5:45 pm
Posts: 29
I'm still getting the following:

ERR: Cannot jump to chapter 2 of title 1, only 1 exist
ERR: in VTSM pgc 1, button scene_1_2

It looks to me like this is the menu page it's trying to create. Have you any clues?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 20, 2005 8:24 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Nope. However, I've always had at least two shows on each DVD...


Top
 Profile  
 
 Post subject: Re: I spoke too soon :(
PostPosted: Thu Apr 21, 2005 2:06 am 
Offline
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location: Sydney, Australia
BoxOfSnoo wrote:
I'm still getting the following:

ERR: Cannot jump to chapter 2 of title 1, only 1 exist


This often happens to me if there are errors in the original stream that happen to correspond to the exact point that the script is trying to extract as a chapter marker or menu image. I have tried lots of hacks to get around it (mplex or myth-mplex instead of replex, changing the math so that the jump points are plus or minus a few seconds), but there are some programs I have not been able to burn yet.

_________________
| Nigel Pearson, nigel.pearson.au@gmail.com
| "Things you own end up owning you" - Tyler, Fight Club


Top
 Profile  
 
 Post subject: Got SOMETHING to work
PostPosted: Thu Apr 21, 2005 5:13 am 
Offline
Joined: Wed Oct 20, 2004 5:45 pm
Posts: 29
Ok, I was surprised to see a "Finished" message in the log. I had tried to burn the same 3 programs probably 8 or 9 times yesterday, so I really didn't expect it to change.

I went back to doing one of the programs at a time, in case it was only one of them. I finally got it to work when I commented out this thumbnail extraction line:

extractthumbnail.sh:
## $transcode $transcodeoptions -q 0 -i "$2" -x auto,null -y jpg,null -o $3 -Z $imagesize --progress_off --nav_seek $2"".tcindex -c $cut

(you'll notice the added $transcodeoptions line, which I got by applying the patch here: http://mysettopbox.tv/phpBB2/viewtopic.php?t=3876)

The next couple of lines down fail over to a blank thumbnail, so you at least have something. (I found the thumbnails were typically black screen anyway - immediately after a commercial). I made one flashy plasma-based generic thumbnail in GIMP before noticing this. I may swap that in.

Well, it worked once. I don't know if it will work again, but hopefully this will help us get the scripts to be more robust...


Top
 Profile  
 
PostPosted: Tue May 10, 2005 2:12 pm 
Offline
Joined: Sun Feb 20, 2005 11:29 am
Posts: 19
Location: Garden Grove, CA
I am runing R12 and I get the following error

>INFO: MPEG version: mpeg2
>INFO: TV standard: ntsc
>INFO: Aspect ratio: 4:3
>INFO: Resolution: 704x480
>INFO: Audio ch 0 format: mp2/2ch, 48khz 20bps
>
>ERR: Cannot jump to chapter 6 of title 1, only 5 exist
>ERR: in VTSM pgc 1, button scene_1_6
>Return value is 1
>***********************************
>MythTV BurnDVD stopped due to error
>***********************************
>QSettings: error creating /.qt
>Sent UDP/XML packet to IP 255.255.255.255 and port: 6948
>


And here is the bottom of the actual log file:

>WARN: Video PTS does not line up on a multiple of a field.
>
>INFO: Video pts = 0.180 .. 1797.967
>INFO: Audio[8] pts = 0.180 .. 3595.326
>STAT: VOBU 14262 at 4245MB, 2 PGCS^M
>WARN: GOP is not closed on cell 1 of >source /myth/mythburn/mythburn/temp/1002_20050509220000_2005
>0509230000.nuv of pgc 1
>WARN: GOP is not closed on cell 1 of >source /myth/mythburn/mythburn/temp/1050_20050509220000_2005
>0509230000.nuv of pgc 2
>INFO: Generating VTS with the following video attributes:
>INFO: MPEG version: mpeg2
>INFO: TV standard: ntsc
>INFO: Aspect ratio: 4:3
>INFO: Resolution: 704x480
>INFO: Audio ch 0 format: mp2/2ch, 48khz 20bps
>
>ERR: Cannot jump to chapter 6 of title 1, only 5 exist
>ERR: in VTSM pgc 1, button scene_1_6
>Return value is 1
>***********************************
>MythTV BurnDVD stopped due to error
>***********************************
>QSettings: error creating /.qt

I had selected two 1 hour programs, Options were to create an ISO image, and remove VIDEO_TS files after.

any ideas ???

_________________
Doug Laing
doug@laingelectronics.com
Hotmail/Trillian (doug-laing@hotmail.com)


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 2:29 pm 
Offline
Joined: Wed Oct 20, 2004 5:45 pm
Posts: 29
ONLY TOO FAMILIAR.

From what I see, there are two principal problems.

1) There are errors in the IVTV video stream. Apparently IVTV inserts video frames when there's a sync problem. Works for playback, but anything else, it messes up the sync and also fails with this error.

2) Nobody cares about mythburn. It's been left to wither and die on the vine. This is very sad. (Need proof? Try to get info from the home page http://mythburn.sf.net).

There has been success with ProjectX (http://sourceforge.net/projects/projectx). Though you need to build it (it's a Java program). This fixes the source... but we're out of the Myth chain, so you need something like DVDStyler to build it, and it's nonscriptable, AFAICT.

I wish there was a nicer answer, but this works.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 2:34 pm 
Offline
Joined: Wed Oct 20, 2004 5:45 pm
Posts: 29
Oops, wrong link...

http://sourceforge.net/projects/project-x/


Top
 Profile  
 
 Post subject: sort of works now
PostPosted: Tue May 10, 2005 5:12 pm 
Offline
Joined: Sun Feb 20, 2005 11:29 am
Posts: 19
Location: Garden Grove, CA
Not sure what I did or did not do, but I restored the original files and re-did the changes listed above and it seems to work now. I think that I made some small error in the edit of the files.

Is there a way to have the script process the cutlist or is this an automatic option. I do not see any option when you send items to be processed. I also took a quick look in the "mythtvburn.sh" to see if there was an option for this " ON or OFF ".

_________________
Doug Laing
doug@laingelectronics.com
Hotmail/Trillian (doug-laing@hotmail.com)


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 7:23 pm 
Offline
Joined: Wed Oct 20, 2004 5:45 pm
Posts: 29
Do yourself a favor and tar up those files. You'll never restore that perfect setup otherwise. Who knows, we might be asking you for it too! :)


Top
 Profile  
 
 Post subject: backups
PostPosted: Wed May 11, 2005 11:56 am 
Offline
Joined: Sun Feb 20, 2005 11:29 am
Posts: 19
Location: Garden Grove, CA
I had made backups before I modified them, just in case!

_________________
Doug Laing
doug@laingelectronics.com
Hotmail/Trillian (doug-laing@hotmail.com)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 01, 2005 3:04 am 
Offline
Joined: Tue Oct 21, 2003 11:30 am
Posts: 188
Location: UK
BoxOfSnoo wrote:
2) Nobody cares about mythburn. It's been left to wither and die on the vine. This is very sad. (Need proof? Try to get info from the home page http://mythburn.sf.net


I think thats a little harsh. :(

Unfortunately there is more to life than computers and mythtv! Things get in the way of development especially when you have a full time job and lots of other committments.

I've asked in the past for help with this project and opened up CVS access for a couple of people. It is open source after all!

Considering this was also my very first Linux scripting exercise it seems very popular to me! :D


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 02, 2005 4:42 am 
Offline
Joined: Wed Oct 20, 2004 5:45 pm
Posts: 29
spit2k1 wrote:
BoxOfSnoo wrote:
2) Nobody cares about mythburn. It's been left to wither and die on the vine. This is very sad. (Need proof? Try to get info from the home page http://mythburn.sf.net


I think thats a little harsh. :(


Don't misunderstand me, I am amazed at the quality and inventiveness of your app. It was fabulous.

spit2k1 wrote:
Unfortunately there is more to life than computers and mythtv! Things get in the way of development especially when you have a full time job and lots of other committments.


This I know very well. Which is also why it was so useful. I didn't have time to watch all of my recorded shows and couldn't keep up. I really needed a DVD archival solition.

spit2k1 wrote:
I've asked in the past for help with this project and opened up CVS access for a couple of people. It is open source after all!

Considering this was also my very first Linux scripting exercise it seems very popular to me! :D


Well, now that you know I have nothing against MythBurn nor you (quite the opposite), you'll know how disappointed I am that I (and quite a few others) can't get it to work :(

Thanks for answering


Top
 Profile  
 
PostPosted: Sat Jun 04, 2005 8:06 am 
Offline
Joined: Sat Jun 04, 2005 7:50 am
Posts: 1
Location: Fairfax Virginia USA
Linux video 2.4.25-gentoo-r2
ivtv-0.2.0_rc3-r4
mythtv-0.18.1-r2
dvdauthor-0.6.11

---------------------------

While trying to chase this problem I found an interesting fact (not solution yet though :( ).

I could go into the "tempdvdauthor2.xml" and edit the vob entry for the recording that failed. If I changed the times on the last five chaper entries to be close to the fifth chaper time I could re-run dvdauthor by hand and get it to work. If any of the times were a few minutes beyond the fifth then I would get the failure. When I run xine on the recording it does show the correct length. It seems that dvdauthor gets confused about the length of the recording (time wize).

<vob file='/myth/burn/temp/3154_20050530220000_20050530230000.nuv'
chapters='00:00:00.05,00:06:39.13,00:13:18.27,00:19:58.11,00:26:37.25,00:33:17.09,00:39:56.23,00:46:36.07,00:53:15.21,00:59:55.05' />


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 22 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu