View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 48 posts ] 
Go to page Previous  1, 2, 3, 4  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Re: cvs install
PostPosted: Sat Nov 12, 2005 2:56 am 
Offline
Joined: Tue Oct 21, 2003 11:30 am
Posts: 188
Location: UK
simonf wrote:
Hi
One thing i did notice was the shrink factor was 1.6... it seems this is calculated before the ads are cut out, in fact after the ads were removed the files were only 4GB so didnt need shrinking at all. would it not be possible to requatize the files aftes all the ads are removed ??? ie create all the mp2.big files and audio files add up the size of the audio etc and then reqantize.

Thanks all this is one of the best bits of software ive used.


This would be a better way to do it, at present it would be difficult to do correctly as the code is quite messy and disjointed.

I'm thinking of a rewrite of this portion of the code - probably not in BASH script, probably Python or something similar. This wont happen quickly though!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 6:42 am 
Offline
Joined: Sun Mar 07, 2004 5:34 am
Posts: 116
Location: UK
spit2k1,

I have been updateing to SVN Head to catch all the DVB upgrades (not being stuck on an offair channel was way overdue :-) )

Unfortunately they have changed the way the recordings are named and stored in the datbase. I poked around for a while and eventually came up with some patches that seem to allow the scripts to keep running. I aslo found that I waas having problems on UK DVB where there wre 2 audio tracks, the second audio track was causing mplex to crash. I simply CUT everything past the first audio track, and that sorted out (my) problem. Hope this helps you to update the scripts more elegantly, or anyone who cant wait.


Code:
Index: scripts/getmyth.sh
===================================================================
RCS file: /cvsroot/mythburn/mythburn/scripts/getmyth.sh,v
retrieving revision 1.7
diff -u -r1.7 getmyth.sh
--- scripts/getmyth.sh   17 Oct 2005 19:09:35 -0000   1.7
+++ scripts/getmyth.sh   12 Nov 2005 12:26:19 -0000
@@ -45,7 +45,8 @@
 # for this fix.
 mchannel=$( echo $file | cut --delimiter="_" -f 1 )
 mstarttime=$( echo $file | cut --delimiter="_" -f 2 )
-mendtime=$( echo $file | cut --delimiter="_" -f 3 | cut --delimiter="." -f 1 )
+mstarttime=$( echo $mstarttime | cut --delimiter="." -f 1)
+#mendtime=$( echo $file | cut --delimiter="_" -f 3 | cut --delimiter="." -f 1 )
 mnicemonth=$(echo $mstarttime | cut --delimiter="_" -f 2 | cut -c5-6 )
 
 
@@ -68,7 +69,8 @@
 
 # extract the details from MYSQL database for this NUV title
 #old statement sqlstatement=" from recorded left join program on program.chanid=recorded.chanid and program.starttime=recorded.starttime and program.endtime=recorded.endtime where recorded.chanid=$mchannel and recorded.starttime=$mstarttime and recorded.endtime=$mendtime;"
-sqlstatement=" from recorded where recorded.chanid=$mchannel and recorded.starttime=$mstarttime and recorded.endtime=$mendtime;"
+sqlstatement=" from recorded where recorded.chanid=$mchannel and recorded.starttime=$mstarttime;"
+#and recorded.endtime=$mendtime;"
 
 echo $mnicestarttime >  ${tempdir}/date.txt
 
Index: scripts/mpeg2cut-px.sh
===================================================================
RCS file: /cvsroot/mythburn/mythburn/scripts/mpeg2cut-px.sh,v
retrieving revision 1.2
diff -u -r1.2 mpeg2cut-px.sh
--- scripts/mpeg2cut-px.sh   6 Nov 2005 10:34:19 -0000   1.2
+++ scripts/mpeg2cut-px.sh   12 Nov 2005 12:26:19 -0000
@@ -70,6 +70,7 @@
 shift
 
 base=`basename ${file} .nuv`
+base=`basename $base .mpg`
 
 # read config file
 cfg=${myfolder}/mythburn.conf
Index: scripts/prepare_audio.sh
===================================================================
RCS file: /cvsroot/mythburn/mythburn/scripts/prepare_audio.sh,v
retrieving revision 1.2
diff -u -r1.2 prepare_audio.sh
--- scripts/prepare_audio.sh   30 Oct 2005 18:56:19 -0000   1.2
+++ scripts/prepare_audio.sh   12 Nov 2005 12:26:19 -0000
@@ -61,4 +61,8 @@
   ${mpegdec} ${audiofile}.old | ffmpeg -y -i - -f ac3 -ab 192 -ar 48000 ${audiofile}
   rm ${audiofile}.old
 fi 
+# add to limit to single audio file
+audio=`echo $audio | cut -d" " -f1`
+
+
 echo $audio
Index: scripts/remplex.sh
===================================================================
RCS file: /cvsroot/mythburn/mythburn/scripts/remplex.sh,v
retrieving revision 1.8
diff -u -r1.8 remplex.sh
--- scripts/remplex.sh   6 Nov 2005 10:34:19 -0000   1.8
+++ scripts/remplex.sh   12 Nov 2005 12:26:19 -0000
@@ -66,6 +66,7 @@
 function remux_projectx() {
   local src=$1 dst=$2
    base=`basename $src .nuv`
+   base=`basename $base .mpg`
    if [ -z "$projectx" ]; then
       echo "projectx not defined, can't use remux_projectx remux method"
       exit 1



I seem to be having problems with the "using cutlists" bit, in that the cuts dont apear at the right places, I will check if that is a seperate problem.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 2:18 pm 
Offline
Joined: Sun Mar 07, 2004 5:34 am
Posts: 116
Location: UK
I seem to have a problem with cutting UK DVB-T the cuting works, but the cutlists from myth applied to project X seem o give an offset of a couple of seconds, odd.


Top
 Profile  
 
 Post subject: Re: cvs install
PostPosted: Sun Nov 13, 2005 11:29 am 
Offline
Joined: Wed Nov 09, 2005 1:21 pm
Posts: 161
Location: Manchester UK
Hi spit2k1

spit2k1 wrote:

This would be a better way to do it, at present it would be difficult to do correctly as the code is quite messy and disjointed.

I'm thinking of a rewrite of this portion of the code - probably not in BASH script, probably Python or something similar. This wont happen quickly though!


I have looked at the BASH scripts (never programmed BASH scripts B4) and it looks possibe to do with a few modifications to the scripts.

Maybe

Code:
ls  -s --size --block-size=M  /myth/mythburn/temp


could be used to find the dvd size approx

and replex factor could be generated from that ??

it would mean splitting mpeg2cut-px.sh into two parts but is possible ??

the only other way i could see of doing it (easily) would be to pass the target size of the file to mpeg2cut-px.sh instead of the squash factor

then calculate the squash factor in mpeg2cut-px.sh after the add cut ??

could have a bash (no pun inteddded) myself would probably take me a week to get usesd to the commands though.

I have created an MS Access Program which calculates the approximate size of the cut file by calculating the number of frames to cut by looking at the cutlist. Maybe it may be possible to to create a script in myth to do the same ? So now at least i can work out by hand which combination of files will fit onto a dvd. Will post code if of any interest ?

I think maybe it would be a good idea if there was a webpage or button which applied the cutlist to the origonal .nuv file and reduced the orrigonal file size on the disk think ive seen a cut program on the forum ?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 13, 2005 5:45 pm 
Offline
Joined: Thu Oct 13, 2005 9:18 am
Posts: 91
Location: Washington
spit2k1 wrote:
Fixed this one, get latest version from CVS again!

Thanks.

Code:
Index: createintro.sh
===================================================================
RCS file: /cvsroot/mythburn/mythburn/scripts/createintro.sh,v
retrieving revision 1.1
diff -r1.1 createintro.sh
68,69c68,69
< #Create 30 frames for the menu page: -a is aspect ratio 2=4:3 3=16:9 4=2.21:1
< nice jpeg2yuv -v 0 -n $((framerate * 8)) -I p -f $framerate -j \
---
> #Create 200 frames for the menu page: -a is aspect ratio 2=4:3 3=16:9 4=2.21:1
> nice jpeg2yuv -v 0 -n 200 -I p -f $framerate -j \


Hi spit2k1,

I patched the file as listed above, but now I'm getting a different error. Now it looks like a permissions issue.
Code:
----- datestamp=13-11-2005 15:33
******************************************************
starting createintro.sh
******************************************************
Create intro page using /myth/mythburn/images/backgrounds/grey.png as background
Convert intro image to JPG
Encode intro image to mpg movie
**ERROR: [jpeg2yuv] System error while opening: " ": No such file or directory
/myth/mythburn/scripts/createintro.sh: line 70: /myth/mythburn/temp/intro1.jpg: Permission denied
**ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: system error (failed read/write)!
***********************************
MythTV BurnDVD stopped due to error
***********************************


The file intro1.jpg is being created and is owned by www-data. I'm not sure what's wrong.

Code:
root@jakep82:/myth/mythburn/temp# ls -lh
total 743M
-rw-r--r--  1 www-data www-data 740M Nov 13 15:31 1060_20051113033000_20051113040000.nuv
-rw-r--r--  1 www-data www-data 1.7M Nov 13 15:32 1060_20051113033000_20051113040000.nuv.tcindex
drwxr-xr-x  2 www-data www-data  16K Nov 13 15:33 1_1
drwxr-xr-x  2 www-data www-data 4.0K Nov 13 15:28 DVD
-rw-r--r--  1 www-data www-data    6 Nov 13 15:32 category.txt
-rw-r--r--  1 www-data www-data  107 Nov 13 15:33 chapter1.txt
-rw-r--r--  1 www-data www-data    1 Nov 13 15:32 cutlist.txt
-rw-r--r--  1 www-data www-data   22 Nov 13 15:32 date.txt
-rw-r--r--  1 www-data www-data   36 Nov 13 15:32 description.txt
-rw-r--r--  1 www-data www-data 238K Nov 13 15:33 intro1.jpg
-rw-r--r--  1 www-data www-data 298K Nov 13 15:33 intro1.png
-rw-r--r--  1 www-data www-data  22K Nov 13 15:33 mythburn.log
-rw-r--r--  1 www-data www-data 288K Nov 13 15:32 output1.png
-rw-r--r--  1 www-data www-data 2.9K Nov 13 15:32 select1.png
-rw-r--r--  1 www-data www-data  370 Nov 13 15:32 tempdvdauthor2.xml
-rw-r--r--  1 www-data www-data  205 Nov 13 15:32 tempspumux1.xml
-rw-r--r--  1 www-data www-data  216 Nov 13 15:33 thumbnail1.txt
-rw-r--r--  1 www-data www-data   35 Nov 13 15:32 title.txt
-rw-r--r--  1 www-data www-data   36 Nov 13 15:32 titlewrapped.txt


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 7:57 am 
Offline
Joined: Tue Oct 21, 2003 11:30 am
Posts: 188
Location: UK
Sorry havent seen that error before!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 2:57 pm 
Offline
Joined: Thu Oct 13, 2005 9:18 am
Posts: 91
Location: Washington
I tried downloading CVS again today, but the diff you listed hasn't been applied yet.

I did use your original script for making a PAL DVD and it seemed to work perfectly (I can't test because I have NTSC). I haven't tested PAL after applying the diff yet.

The trouble I'm having is that it doesn't seem to work either way (with or without the patch) for NTSC. With the original I get a token error, and after patching I get the error I listed in my last post. Sorry to keep bothering you with this. I appreciate the help :)

Edit: I'm stupid :? When I did a copy-paste I added an extra space at the end. It works perfectly now. Thanks spit2k1 :D


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 12:44 am 
Offline
Joined: Sun Nov 13, 2005 11:51 am
Posts: 6
Location: VI Canada
Just downloaded and installed from CVS... same error

As I'm a Newbie I have a "silly" question, is their a change in the syntax inorder to get the new version of Mythburn?

I used the following;

apt-get install cvs
cd /myth
rm -dfr /myth/mythburn
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/mythburn co -P mythburn
cd /myth/mythburn
./install.sh -d



******************************************************
----- datestamp=14-11-2005 22:33
******************************************************
starting createintro.sh
******************************************************
Create intro page using /myth/mythburn/images/backgrounds/mythtv-logo.png as background
Convert intro image to JPG
Encode intro image to mpg movie
/myth/mythburn/scripts/createintro.sh: line 69: 29.97: syntax error in expression (error token is ".97")
**ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: system error (failed read/write)!
***********************************
MythTV BurnDVD stopped due to error
***********************************
Sent UDP/XML packet to IP 255.255.255.255 and port: 6948


Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 10:07 am 
Offline
Joined: Thu Oct 13, 2005 9:18 am
Posts: 91
Location: Washington
thewights,

I'm not sure why it hasn't hit CVS yet but it's easy to fix this. Just copy the diff that spit2k1 (careful not to add a space after the last \). Paste it into a file called createintro.diff and then patch the original.
Code:
cd /myth/mythburn/scripts
nano createintro.diff (paste the text in here)
patch createintro.sh createintro.diff


Last edited by jakep_82 on Wed Nov 16, 2005 10:14 am, edited 2 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 11:45 am 
Offline
Joined: Tue Oct 18, 2005 1:40 am
Posts: 35
Location: Aarhus, Denmark
I am a newbie til linux so please bear with me

I tried the cvs update mentioned here but when I try the cvs command i get the errror:
cvs [checkout aborted]: the: server: access method is not supported by this port of CVS.

Now I have no mythburn dir so what do I do

JK


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 8:47 pm 
Offline
Joined: Tue Oct 25, 2005 3:09 am
Posts: 12
Is this the command you used?

Code:
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/mythburn co -P mythburn


I just tried it and that may fail a few times because of the server load but eventually it succeeds. I got four of these errors bedore I got connected this time:

Code:
jmd0 mythburn.new # cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/mythburn co -P mythburn
cvs [checkout aborted]: connect to cvs.sourceforge.net(66.35.250.207):2401 failed: Connection refused


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 10:39 pm 
Offline
Joined: Sun Nov 13, 2005 11:51 am
Posts: 6
Location: VI Canada
Thanks jakep_82,

Couldn't figure out the patch file, so I used vi and edited the necessary lines in the createintro.sh file.

I seem to have a uasable iso file.

Thanks again...

? Does anyone know why nuv2 doesn't work in RA22? (off topic, but I though you guys might know)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 11:17 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
thewights wrote:
? Does anyone know why nuv2 doesn't work in RA22? (off topic, but I though you guys might know)

I'm guessing you use DVB? If so, nuv2disc would have stopped working because mythtv changed the default recording method from PS to TS. Also, there is no way to select PS recording from mythtv-setup, you need to manually hack the database to do it. The mythtv devs want to remove PS recording all together because they say it is seriously broken. The tools that nuv2disc use do not cope with TS format streams. Fortuitously, the first version of KnoppMyth that shipped with such a mythtv also shipped with mythburn. There are a few things that mythburn doesnt do (as far as I can tell) that nuv2disc did though such as DVDs with no menus.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 16, 2005 12:47 am 
Offline
Joined: Sun Nov 13, 2005 11:51 am
Posts: 6
Location: VI Canada
Greg Frost, thanks for the info

I'm new to Knoppmyth and Linux. I can honestly say that I am impressed with all the work (and help) that everyone has put into these forums. Hopefully, I'll be able to contribute in the future as I become less of a Newbie.

As for nuv2. I have a working version of Mythburn and can now backup my recordings. Life is complete ;)

Does mythburn record other file formats? (divx, vcd etc)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 16, 2005 10:19 am 
Offline
Joined: Tue Oct 25, 2005 1:22 pm
Posts: 108
Location: USA, New Hampshire
Anyone have any ideas on this one??
Thanks

Ohh yeah it R5A16 Knopp.

Code:
Audio 0 (mp2):   133464 Frames   00:53:23.136   0/0/0/2   './1458_20051028210800_20051028220000.mpa'

=> 1955289212 bytes written...
mpg123 -w - ./1458_20051028210800_20051028220000.mpa.old | ffmpeg -y -i - -f ac3 -ab 192 -ar 48000 ./1458_20051028210800_20051028220000.mpa
/myth/mythburn/scripts/prepare_audio.sh: line 61: mpg123: command not found
ffmpeg version 0.4.9-pre1, build 4752, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --disable-risky --enable-mp3lame --enable-faad --enable-vorbis --enable-libogg --enable-gpl --enable-a52 --enable-xvid --enable-shared
  built on Apr  9 2005 21:59:44, gcc: 3.3.5 (Debian 1:3.3.5-12)
pipe:: Unknown format
mplex -o /myth/mythburn/temp/1458_20051028210800_20051028220000.nuv -f 8 1458_20051028210800_20051028220000.m2v ./1458_20051028210800_20051028220000.mpa
***********************************
MythTV BurnDVD stopped due to error
***********************************
QSettings: error creating /.qt
Sent UDP/XML packet to IP 255.255.255.255 and port: 6948


Top
 Profile  
 

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



All times are UTC - 6 hours




Who is online

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