View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 107 posts ] 
Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Wed Sep 21, 2005 6:20 am 
Offline
Joined: Tue Jan 11, 2005 11:38 pm
Posts: 50
G'day folks,

I have been trying to get to the bottom of why I couldn't get this working, part of this was that www-data wasn't in the mythtv group, and DVD and temp weren't being chowned to www-data:www-data by the install script.

I tested the script ( I'm not god's gift to unix but I had a go) and I think the mkdir's need a waitfor or something similar before the chown that follows. On my system the directories never get chowned as a result of the script, yet echo'ing the variables seems to produce the desired results. Sorry if this sounds a little vague, but like I say , this isn't my strong suit.

My problem is that now mplex seems to fail, but that is a separate issue.

Matt


Top
 Profile  
 
PostPosted: Sun Sep 25, 2005 7:26 am 
Offline
Joined: Fri May 28, 2004 11:21 am
Posts: 7
Location: UK
Hi all,

Has anybody had experiences of mis-aligned cuts with projectX? I've used mythtv to cut the programme, but the cuts on the final DVD produced are delayed by varying amounts (5-15 seconds). When I use projectX directly to create the cutfile with the option '(0) use BytePos for cuts', and use the mythburn script it works fine. I don't believe this is just skipping to a GOP boundary - here's why:

What follows is a table of the time the scene ends, and when the cut gets executed:

mythtv -
end of scene = 11min22sec
cuts at = 11min22sec

DVD -
end of scene = 11min17sec
cuts at = 11min28sec

Anybody experienced the same thing? Whats an average length of time between GOP boundaries? I'm wondering whether projectX is finding bad chunks of video, cutting it out, and this is affecting the time.

I would just disable commercial cutting, but this means that some of my video that starts as 16:9 in the adverts (which then changes to 4:3 in the programme) gets encoded as 16:9 throughout - so I'd need to chop the start off.

Agghhh! Please help!

Thanks in advance :)
Steveybaby2


Top
 Profile  
 
 Post subject: SOLVED!
PostPosted: Mon Sep 26, 2005 12:50 pm 
Offline
Joined: Fri May 28, 2004 11:21 am
Posts: 7
Location: UK
Solved!

For those of you who are also confused by this:

ProjectX cuts adverts perfectly, exactly when they start. If you create your cutlist manually and run mythburn you will find that the cuts are slightly off, but this isn't down to being rounded to the nearest GOP.

Instead, enable 'All' commercial detection methods, and load the detected cutpoints when editing a show. If you play it you will find that it is off by about 5-15 seconds and cuts bits off. However! If you ignore this fact and let mythburn do its stuff, projectx cuts perfectly.

A bug in mythtv, mplayer, or unichrome - I'm unsure. I just wanted to enlighten others that were as confused as I was. :)

Cheers

Steveybaby2


Top
 Profile  
 
PostPosted: Mon Oct 03, 2005 8:31 am 
Offline
Joined: Sun Oct 02, 2005 8:09 pm
Posts: 2
Hello all,

I'm trying to use mythburn with Mythtv on Fedora Core 3. I have the proper java installed and projectx compiled successfully. Mythburn setup was successful and seems to be functioning perfectly up until you execute "Create DVD". At that point it begins processing but fails when calling projectx with the following: "Re-multiplexing file /video/recordings/1037_20050928205900_20050928220000.nuv
/usr/share/mythburn/scripts/remplex.sh: line 85: /usr/bin/ProjectX.jar: Permission denied". I cant see anything wrong with the permissions of the ProjectX.jar itself. The only thing I've come up with so far is that FC3 runs apache with the user and group apache. Anyone have any ideas??

Thanks!
aikonis


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 03, 2005 11:53 am 
Offline
Joined: Sat Feb 28, 2004 10:04 am
Posts: 173
Location: Canton, MI USA
What are the permissions bits and owners set to on the .jar file? Do these match with the user account that is running the remplex.sh code? I have not looked into MythBurn for quite a while now, so this is just your basic square 1 step.


Top
 Profile  
 
PostPosted: Mon Oct 03, 2005 12:33 pm 
Offline
Joined: Mon Nov 29, 2004 7:59 am
Posts: 25
Location: Hoogland, The Netherlands
Hi all,

Tried for some days to get things going but I'll be too stupid ;-(

Downloaded latest mythburn, projectx, javasdk jdk1.5.0_01, created ProjectX.jar, ran install.sh which added 'Burn DVD' to Myth Web just fine

Running it causes troubles though.
Warning at /data/mythburn/mythwebburn/mythtvburndvd_createdvd.php, line 114:
fopen(mythburnconf/mythtvburnconfig.xml): failed to open stream: Permission denied

I googled this:
patching file mythwebburn/mythtvburnconfig.xml Hunk #1 FAILED at 1. 1 out of 1

which tells me that the xml-file should be in the mythburn tarbal, but it isn't for me. In the meantime I got it from CVS but it didn't resolve the problem.
-----
Running from the shell doesn't work either

I get a .m2v and a mp2 file but then I get:
Error Running project X, no log file created. giving up.
There are 3 warnings but harmless I think. They are:
!> missing syncword @ 11744, @ 00:00:00.000
!> found syncword @ 12336
-> src_audio: MPEG-1, Layer2, 48000Hz, stereo, 256kbps, noCRC @ 00:00:00.000
!> 12 frame(s) (288ms) added @ 00:02:00.192

I can't figure out what is going wrong. Any hints greatly appreciated.

Henk Schoneveld


Top
 Profile  
 
PostPosted: Mon Oct 03, 2005 1:40 pm 
Offline
Joined: Sun Oct 02, 2005 8:09 pm
Posts: 2
The permissions of my ProjectX.jar are: -rw-rw-rw- 1 apache apache 579216 Oct 2 18:16 /usr/bin/ProjectX.jar. I also ran the install.sh as user apache, but unfortunately still get the same results. I get the same from the command line.
thanks again,
aikonis


Top
 Profile  
 
PostPosted: Wed Oct 05, 2005 4:22 pm 
Offline
Joined: Wed Apr 20, 2005 7:50 pm
Posts: 35
Location: Germany
belcampo wrote:
Running it causes troubles though.
Warning at /data/mythburn/mythwebburn/mythtvburndvd_createdvd.php, line 114:
fopen(mythburnconf/mythtvburnconfig.xml): failed to open stream: Permission denied


I think the problem is, that you don't have the permission to write to mythburnconfig.xml.
As mentioned in the warning :-)
You have to do a chown or chmod to the mythburn/conf directory. Perhaps you entered a false user in the install script. I had the same problem a few days ago.

Now Mythburn works fine if I copy the command to the commandline and execute it. The command e.g. "nice /myth/mythburn/mythtvburn.sh 'pal' 'Zwielicht.png' 'Zwielicht.mp2' 'yes' 'no' 'no' 'none.png' 'yes' 'no' 'no' '1011_20050927201000_20050927225500.nuv' 'cut' > /myth/mythburn/temp/mythburn.log 2>&1 &"
doesn't start autmatically. I don't know why, but it doesn't matter, anyway.
But I have a much bigger problem. I record the movies with my PVR 350 make my cutlist, create a new background image + music. All fine, mythburn creates a perfect DVD. But sometimes it happens, that the sound stops playback.
The logfile also shows that the audiofile is much shorter than the moviefile.

Zusammenfassung der erstellten Mediendateien:
.Video (m2v): 185042 Bilder 02:03:21.680 './1011_20050927201000_20050927225500.m2v'
Audio 0 (mp2): 183410 Frames 01:13:21.840 0/0/0/0 './1011_20050927201000_20050927225500.mpa'
=> 2333048652 Bytes geschrieben...

Any idea how to solve this bug?


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 12:07 pm 
Offline
Joined: Tue Oct 21, 2003 11:30 am
Posts: 188
Location: UK
aikonis wrote:
Mythburn setup was successful and seems to be functioning perfectly up until you execute "Create DVD". At that point it begins processing but fails when calling projectx with the following: "Re-multiplexing file /video/recordings/1037_20050928205900_20050928220000.nuv
/usr/share/mythburn/scripts/remplex.sh: line 85: /usr/bin/ProjectX.jar: Permission denied".


On a knoppmyth box this fixed it for me...

Quote:
chmod 666 /myth/mythburn/mythburn.conf
chmod 666 /myth/mythburn/conf/mythtvburnconfig.xml
chown www-data:mythtv /myth/mythburn/temp
chown www-data:mythtv /myth/mythburn/DVD
chown www-data:mythtv /myth/mythburn/conf


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 11:30 am 
Offline
Joined: Tue Oct 21, 2003 11:30 am
Posts: 188
Location: UK
All.

Following on from the excellent work mabene has been doing, I've uploaded the scripts into CVS and also produced a release to help save mabenes bandwidth!

It may take a few hours for the CVS to replicate on sourceforge so be patient!

For the release go here http://prdownloads.sourceforge.net/mythburn/mythburn-oct2005.tar.gz?download

regards

spit2k1 :D


Top
 Profile  
 
PostPosted: Thu Oct 13, 2005 3:12 am 
Offline
Joined: Mon Nov 29, 2004 7:59 am
Posts: 25
Location: Hoogland, The Netherlands
I tried mythburn_20050906.tar.gz used latest from
sourceforge mythburn-oct2005.tar.gz and used 2 versions of ProjectX 0.8.17
and latest 0.90.1.00 with 2 versions of java but still no go.

Reading the install.sh

># Create DVD and temp folders
>mkdir -p $tempdir
>chown ${webuser}:${webgroup} $tempdir

>rm -dfr $dvddir
>mkdir -p $dvddir
>chown ${webuser}:${webgroup} $dvddir># Set folder permissions so the www-group can access them
>chown -R root:root $myfolder

as far as I understand all files and directories will be owned by root, and
therefore I get 'permission denied' messages.

To solve this and all other permission items I made them rw to everyone, just to get going for the moment. This solves the permission problems.

If cutting is chosen, things break immediately with the following:

stopped...
java.lang.NumberFormatException: For input string: "(2) use Frame number for
cuts"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:4Cool
at java.lang.Long.parseLong(Long.java:394)
at java.lang.Long.parseLong(Long.java:452)
at X$WORK.rawparse(X.java:7042)
at X$WORK.working(X.java:5644)
at X$WORK.run(X.java:5297)Error running projectx, no log file created. giving up

As far as I understand it stumbles over the first line in temp/cutlist_x.txt

When I disable cutting, I end up with 1 video and 2 audio-streams

summary of created media files:
.Video: 52342 Frames
00:34:53.680 ./2032_20051010120000_20051010123000.mpv
Audio 0: 87237 Frames 00:34:53.688
0/0/0/2 ./2032_20051010120000_20051010123000.mp2
Audio 1: 87237 Frames 00:34:53.688
0/0/0/0 ./2032_20051010120000_20051010123000_1.mp2
=> 1096690312 bytes written...
Error Running project X, no log file created. giving up.

I don't understand what the next should be, from the script I believe it
should build MPEG2 GOP index files, but I have no idea why or what causes it
to stumble.

Can somebody 'put the light on' so that even I can see ?

PS. I # all 2> in the scripts, but don't see what is going wrong


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 3:42 am 
Offline
Joined: Wed Apr 20, 2005 7:50 pm
Posts: 35
Location: Germany
Which version of Projectx are you using? I suppose you use 0.9.x. Then you have to open the GUI and change some settings. First you have to select "use frames as cutpoints". The second setting you have to change is the name of your audio output file. The ending of the file has to be mpa not mp2.
You also have to change the name xyz_X.log to xyz_log.txt in all of your scripts.
The commandline of PX also changed. Open mpeg2cut-px.sh and replace the line:
nice -n 19 ${projectx} -o . -p cutlist_x.txt $file
with:
nice -n 19 ${projectx} -out . -cut cutlist_x.txt $file
Alternative you can install version 0.82 of PX, then you don't have to make all these changes.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 10:05 am 
Offline
Joined: Mon Nov 29, 2004 7:59 am
Posts: 25
Location: Hoogland, The Netherlands
Thanks for your reaction.
Made the changes in the gui to change to use frames as cutpoints and convert mpa and mpv., but according to the scripts these should be mp2 and m2v. Despite that I tried and there is no difference, the script stops at the same points as before.
Also changed your suggestion of mpeg2cut-px.sh but also to no avail.

I also tried 0.81-9 I think of PX but also no succes.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 10:29 am 
Offline
Joined: Mon Nov 29, 2004 7:59 am
Posts: 25
Location: Hoogland, The Netherlands
I'm getting mad !!!!!

A simple /usr/java/*/bin/java -jar /usr/java/*/ProjectX.jar /data/video/2032_20051013150600_20051013153500.nuv starts demuxing as expected, but
------
/usr/java/*/bin/java -jar /usr/java/*/ProjectX.jar /data/video/2032_20051013150600_20051013153500.nuv -out . -ct cutlist_x.txt
results in:
Reading GUI-Switch...
Reading Help Switch...
Reading Config File Switch...
Start without GUI...
Loading last Config or Standard File...
Loading Language -> 'en'

ProjectX 0.90.1.00/30.09.2005 TEST PROJECT ONLY , User: mythtv


TERMS AND CONDITIONS:
(1) this is a free Java based demux utility.
(2) It is intended for educational purposes only, as a non-commercial test project.
(3) It may not be used otherwise. Most parts are only experimental.
(4) released under the terms of the GNU GPL.
(5) there is NO WARRANTY of any kind attached to this software.
(6) use it at your own risk and for your own education as it was meant.

Java Environment
Thursday, October 13, 2005 6:22:54 PM CEST
java.version 1.4.2_09
java.vendor Sun Microsystems Inc.
java.home /usr/java/j2sdk1.4.2_09/jre
java.vm.version 1.4.2_09-b05
java.vm.vendor Sun Microsystems Inc.
java.vm.name Java HotSpot(TM) Client VM
java.class.vers 48.0
java.class.path /usr/java/j2sdk1.4.2_09/ProjectX.jar
os.name Linux
os.arch i386
os.version 2.6.12-12.mm.6mdk
ini.file /data/mythburn/temp/X.ini
ext.disk.access disabled or library not found
user.language en
user.name mythtv
user.home /home/mythtv

quick CL usage:
Note: CL doesn't load the GUI components, except with switch [-gui]
<without options> ...starts the GUI
switches and inputfiles can be in any order

options:
[-ini <path + inifile>] ..use that specified iniFile instead of the standard
[-dvx1] ..create a .d2v ProjectFile on demux
[-dvx2] ..create a .d2v ProjectFile + .ac3.wav (RIFF WAVE Header)
[-dvx3] ..create a .d2v ProjectFile + .mpa.wav (RIFF WAVE Header)
[-dvx4] ..create a .d2v ProjectFile + .ac3.wav + mpa.wav (RIFF WAVE Header)
[-out <path>] ..use that specified directory for output
[-name <filename>] ..use that specified filename for output
[-cut <file>] ..use that text based file as cutpoint list
[-id <tokens>] ..use only these (P)IDs, separated by comma ","
[-gui] ..display the GUI using all given CLI options
[-log] ..write the normal logfile
[-saveini] ..save changes made bei CLI in active .ini
Reading CLI Switches...
Loading Basic Classes...
Error while reading CLI Switches ...
Checking Commons-Net library access...
Loading AC3 frames...
Starting Collection Process...
preparing collection(s)...
Thursday, October 13, 2005 6:22:55 PM CEST
ProjectX 0.90.1.00 (30.09.2005)

<<< session infos >>>

-> working with collection 0

no input file...
done... 1 collection(s) processed @ 00:00:00.089
-------------------
NO INPUT FILE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 12:04 pm 
Offline
Joined: Wed Apr 20, 2005 7:50 pm
Posts: 35
Location: Germany
Hi again,
your commandline is wrong it's not -ct its -cut.
And do you know that you have to patch version 0.9.1? Sorry, forgot to mention it.
http://forum.dvbtechnics.info/showthread.php?t=2068
It's in german but there is a link to common.zip. Use it to patch the source of PX.
I think thats the reason why PX doesn't find the input file.
I'm pretty sure that my scripts need a mpa file, but perhaps I have an old version, downloaded it a few days ago.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 107 posts ] 
Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 21 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