Author |
Message |
tjc
|
Posted: Wed Mar 30, 2005 10:30 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
Looks like its a bug in the commercial cutting script. It seems to be making an unwarranted assumption about being able to scribble in it's current directory, and in all likelyhood it's not where it thinks it is...
To verify this, toss a "pwd" (or better still a "/bin/pwd" so you know where it REALLY is rather than where the shell thinks it is) in at the head of the mpeg2cut-mod script.
To fix it quick and dirty, throw in a Code: cd $myfolder near the start of the mythtvburn.sh script so that you're certain it's working where it's supposed to be. It and a couple of the php scripts (mythwebburn/mythtvburndvd.php and mythwebburn/mythtvburndvd_createdvd.php) already have some notion of where they think the "mythburnfolder" is.
If you've installed it in a directory other than /myth/mythburn/mythburn I'd also recommend a wumpus hunt to find if there are any occurances of that left lying about... The install script is supposed to take care of fixing up the paths but since mpeg2cut-mod doesn't use any paths and none of the scripts actually cd to a known location things could get dumb fast...
|
|
Top |
|
 |
adrianbc
|
Posted: Wed Apr 20, 2005 10:07 am |
|
Joined: Fri Mar 12, 2004 4:02 pm
Posts: 134
|
just to clarify..
How am I supposed to use this script? Do I download the 3 files and then execute ./install ? do I have to do anything with the patch or the config files?
Adrian
|
|
Top |
|
 |
BoxOfSnoo
|
Posted: Thu Apr 21, 2005 5:18 am |
|
Joined: Wed Oct 20, 2004 5:45 pm
Posts: 29
|
I did the following. Copy config.sh and the diff into your mythburn/ directory, and the config.php into the mythwebburn/ directory below that.
Edit config.sh to your liking, then run "patch -p 0 < patch.diff" while in the mythburn directory and everything should be patched up.
Now you can run ./install.sh
Please correct me if I forgot something, I'm doing this from memory.
|
|
Top |
|
 |
adrianbc
|
Posted: Thu Apr 21, 2005 7:42 am |
|
Joined: Fri Mar 12, 2004 4:02 pm
Posts: 134
|
thanks for the instructions on the patch...
I managed to get a bit further but MythBurn still fails...
----- datestamp=21-04-2005 09:40
----- datestamp=21-04-2005 09:40
1061_20050419225600_20050419233200.nuv
Re-multiplexing file /myth/tv/1061_20050419225600_20050419233200.nuv
Reading from /myth/tv/1061_20050419225600_20050419233200.nuv
Input file length: 1408.08 MB
Error opening output file: No such file or directory
Return value is 1
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
|
|
Top |
|
 |
BoxOfSnoo
|
Posted: Thu Apr 21, 2005 7:57 am |
|
Joined: Wed Oct 20, 2004 5:45 pm
Posts: 29
|
Sounds like you need to change one more thing in config.sh, since the output file is failing, you probably need to change the path where mythburn can write... myfolder, I think is the one you need to point to the writable path.
Also, check the previous messages to make sure your web user has enough permissions to write in that directory.
|
|
Top |
|
 |
karmmyth
|
Posted: Wed Jun 01, 2005 9:44 pm |
|
Joined: Wed Jun 01, 2005 9:41 pm
Posts: 1
|
Where do I get the lastest MythBurn with the latest patches?
|
|
Top |
|
 |
sharbour
|
Posted: Mon Aug 08, 2005 10:55 pm |
|
Joined: Mon Dec 01, 2003 4:30 am
Posts: 3
|
This doesn't look good. My mythtvburn works, but the thumbnails are blue and flipped vertically.
My mythtvburn script is dated 07 Sep 2004 in the changes.txt file.
How should I start troubleshooting this mess? Any help would be appreciated.
The patch on this thread looks like it should work, but I get the following errors when applying it:
root@mythtv:/myth/mythtvburn# patch -p 0 < patch.diff
patching file createbackgroundthumbs.sh
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 12.
2 out of 2 hunks FAILED -- saving rejects to file createbackgroundthumbs.sh.rej
patching file install.sh
Hunk #2 FAILED at 13.
Hunk #3 succeeded at 77 with fuzz 2 (offset -35 lines).
Hunk #4 FAILED at 99.
2 out of 4 hunks FAILED -- saving rejects to file install.sh.rej
patching file mythtvburn.sh
Hunk #1 FAILED at 24.
Hunk #2 FAILED at 200.
Hunk #3 FAILED at 262.
Hunk #4 FAILED at 287.
Hunk #5 FAILED at 315.
Hunk #6 succeeded at 417 with fuzz 2 (offset -21 lines).
Hunk #7 FAILED at 500.
Hunk #8 FAILED at 573.
Hunk #9 FAILED at 596.
Hunk #10 FAILED at 798.
9 out of 10 hunks FAILED -- saving rejects to file mythtvburn.sh.rej
patching file mythwebburn/mythtvburnconfig.xml
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file mythwebburn/mythtvburnconfig.xml.rej
patching file mythwebburn/mythtvburndvd.php
Hunk #1 FAILED at 3.
1 out of 1 hunk FAILED -- saving rejects to file mythwebburn/mythtvburndvd.php.rej
patching file mythwebburn/mythtvburndvd_confirm.php
patching file mythwebburn/mythtvburndvd_createdvd.php
Hunk #1 FAILED at 4.
Hunk #2 FAILED at 112.
2 out of 2 hunks FAILED -- saving rejects to file mythwebburn/mythtvburndvd_createdvd.php.rej
patching file scripts/extractthumbnail.sh
Hunk #2 FAILED at 14.
Hunk #3 FAILED at 36.
2 out of 3 hunks FAILED -- saving rejects to file scripts/extractthumbnail.sh.rej
patching file scripts/getmyth.sh
Hunk #2 FAILED at 63.
1 out of 2 hunks FAILED -- saving rejects to file scripts/getmyth.sh.rej
|
|
Top |
|
 |
tjc
|
Posted: Tue Aug 09, 2005 6:09 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
|
Top |
|
 |
DarthFrog
|
Posted: Thu Aug 11, 2005 1:29 pm |
|
Joined: Tue May 10, 2005 6:57 pm
Posts: 3
|
Hi folks,
I've just installed MythTVBurn from CVS, on Fedora Core 4. I've edited the install.sh file to point to recordings as: mythtv=/var/mythtv/recordings/ Now the script gets the file locations wrong as it strips the "/" from the path, viz:
Command line:nice /var/mythtv/mythburn/mythtvburn.sh 'ntsc' 'gradient-dodgerblue.png' 'menumusic.mp2' 'yes' 'yes' 'yes' 'music.png' 'yes' 'varmythtvrecordings1044_20050809100000_20050809110000.nuv' 'nocut' 'varmythtvrecordings1060_20050809100000_20050809110000.nuv' 'nocut' > /var/mythtv/mythburn/log.txt 2>&1 &
Naturally enough that fails with the following:
File varmythtvrecordings1044_20050809100000_20050809110000.nuv does not exist!
Previous screens had the proper "/" for /var/mythtv/recordings. But they are stripped when the command line is assembled. I'm not a programmer and cannot find where in the scripts this might be happening. Is this a known problem? Does anyone have a suggestion for a fix? Thanks!
--
Cheers,
Rob
|
|
Top |
|
 |
mabene
|
Posted: Thu Aug 11, 2005 4:43 pm |
|
Joined: Thu Dec 30, 2004 5:04 pm
Posts: 21
|
I'm running a somewhat modified version of mythburn on my system; perhaps someone would like to give it a shot. Main difference is use of projectx ( http://sourceforge.net/projects/project-x) for remuxing and for commercial cutting.
Requirements:
- projectx (well, obviously  )
- Xvfb or local X server
Why use ProjectX: It's quite good at fixing small problems in the mpeg files when demultiplexing. it's especially good at preventing audio/video sync issues - I've yet to come across a recording that didn't have perfect sync after project-x was done with it.
avidemux2 doesn't actually support cutting on arbitrary frames for cut-in. if a cut-in isn't on a keyframe avidemux2 will produce a result that starts with B-frames.
Ok - projectx can't do frame-accurate cutting either, but at least it rounds to the nearest GOP and doesn't produce broken output files.
Additional changes:
- support for multiple audio streams. Commerical cut or remux will keep around all audio streams from the original recording. If you've got recordings with multiple audio streams (say, german and english streams) you'll get a DVD that allows you to switch languages.
- chapter submenu is optional and configurable via the web interface. while I like having the chapter marks in my titels I don't like the chapter submenu.
- blue face / upside down thumbnails configurable via variables at the top of mythtvburn.sh
- add a title listbox to the "burn DVD" webpage similar to the listbox in "recorded programs". makes it much easier to pick a couple of episodes from the same series.
- if commercial cutting is disabled, revert to old behaviour and use cutpoints as chapter marks
Oh, and for the record since it seems to be a problem that crops up fairly often:
dvdauthor doesn't like new versions of Imagemagick. You must either use ImageMagick Version <= 6.0.7.x or use a dvdauthor 0.6.12 prerelease.
patch can be downloaded at http://mabene.icomedias.com/mythburn/cut-0.3.diff
|
|
Top |
|
 |
mabene
|
Posted: Fri Aug 12, 2005 2:55 am |
|
Joined: Thu Dec 30, 2004 5:04 pm
Posts: 21
|
mabene wrote: Requirements: - projectx (well, obviously  )
Some hints on installing projectx on Knopmyth:
KnoppMyth doesn't have java sdk or java runtime installed by default; since project X is a java application, at least java runtime is required.
Installing Java Runtime on KnopMyth:
====================================
* Log onto your KnopMyth box, not as root user.
* Download "J2SE JRE" Java runtime from http://java.sun.com/j2se/1.4.2/download.html (you don't need the full SDK unless you want to compile java suff, which is not necessary, see below..) Choose Linux Platform, self extracting file. This should get you a file called "j2re-1_4_2_09-linux-i586.bin". Filename may obviosuly chacnge if/when sun publishes updates.
* Install the java-package and fakeroot with
sudo apt-get install java-package fakeroot
* Build an installation package for the Java runtime
fakeroot make-jpkg j2re-1_4_2_09-linux-i586.bin
* Install Java Runtime environment
sudo dpkg -i sun-j2re1.4_1.4.2+09_i386.deb
Installing projectx on Knopmyth:
================================
I've put up a binary for the current cvs version of projectx at http://mabene.icomedias.com/mythburn/projectx_0.82.1.02_b2.tar.gz
* Download to your box
* you can check that the package hasn't been tampered with using md5sum:
cc2e1cf8edb0de0eefc634730d77a8ea projectx_0.82.1.02_b2.tar.gz
* see what's in the package
tar tvzf projectx_0.82.1.02_b2.tar.gz
* unpack to your / directory
tar -C / xvzf projectx_0.82.1.02_b2.tar.gz
Hope this helps, Martin
|
|
Top |
|
 |
BoxOfSnoo
|
Posted: Fri Aug 12, 2005 2:39 pm |
|
Joined: Wed Oct 20, 2004 5:45 pm
Posts: 29
|
mabene wrote: I'm running a somewhat modified version of mythburn on my system; perhaps someone would like to give it a shot. Main difference is use of projectx ... patch can be downloaded at http://mabene.icomedias.com/mythburn/cut-0.3.diff
Hi mabene, I just noticed this, and am quite interested. Are you using the CVS version of mythburn? Is there any way you can post your whole mythburn directory as a tarball? I've mucked about with my installation too many times to apply another patch cleanly.
I've been using a bash script (posted somewhere) to do something similar, and manually creating the DVDs in dvdstyler, but it would be so nice to get MythBurn back in the loop again.
Thanks!
|
|
Top |
|
 |
mabene
|
Posted: Sat Aug 13, 2005 3:54 pm |
|
Joined: Thu Dec 30, 2004 5:04 pm
Posts: 21
|
BoxOfSnoo wrote: Hi mabene, I just noticed this, and am quite interested. Are you using the CVS version of mythburn? Is there any way you can post your whole mythburn directory as a tarball? I've mucked about with my installation too many times to apply another patch cleanly.
I've been using a bash script (posted somewhere) to do something similar, and manually creating the DVDs in dvdstyler, but it would be so nice to get MythBurn back in the loop again.
Thanks!
Well, I just finished giving mythburn another workover. This time, no new features but hopefully much easier to adapt to different distributions and install.
* No more hardcoded paths
* new installer
* cleaned up requirements for access rights: all write access either to temp dir or to config dir.
* single config file with settings for directory locations, database etc.
The update is available either as a patch against current mythburn CVS or as a complete tarball (content equals cvs+patch).
http://mabene.icomedias.com/mythburn/cut-0.5.diff is the diff, apply with patch -p1 -E (a couple of files get removed).
Full tarball at http://mabene.icomedias.com/mythburn/mythburn.tar.gz
* put the mythburn stuff in a sensible place; /usr/share/mythburn might be a good choice.
* cd /usr/share/mythburn
* ./install.sh
The installation script prompts you for
- tv dir (where the recordings are stored)
- directory where mythtv fonts live
- directory to put temp files (will be created)
- place to put DVD file structure (will be created)
- user the webserver runs as
- group the webserver runs as
- directory where MythWeb is installed
- host the mysql database is running on
- name of mysql database
- username for accessing database
- password for accessing database
All config settings have defaults that match KnopMyth setup. Most settings are checked so it's not easy to enter invalid settins that could lead to problems later on.
The installation script sets file and directoy owner and access rights, writes a config file, creates symlinks in the Mythweb directory and patches the "burn dvd" link into MythWeb.
If all required packages are installed, you're ready to go.
This should work regardless of your installation; I wrote the scripts on gentoo and did some minimal testing on Knopmyth.
Let me know why it doesn't work for you and how I broke your system 
|
|
Top |
|
 |
BoxOfSnoo
|
Posted: Sat Aug 13, 2005 4:26 pm |
|
Joined: Wed Oct 20, 2004 5:45 pm
Posts: 29
|
My profuse thanks, both to you and spit2k1 for pulling together on this great utility.
I had to change one thing to get it working for me... mpeg2cut-px.sh has no space between ! and [ when looking for projectx. My system didn't like it. I added a space and it worked fine.
Now, perhaps I can hack in some options!
Thanks again.
|
|
Top |
|
 |
mabene
|
Posted: Sat Aug 13, 2005 4:48 pm |
|
Joined: Thu Dec 30, 2004 5:04 pm
Posts: 21
|
|
Top |
|
 |