View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 130 posts ] 
Go to page Previous  1 ... 5, 6, 7, 8, 9

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Fri Sep 30, 2005 4:34 pm 
Offline
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location: Sydney, Australia
Greg Frost wrote:
...Nigels changes that read options from ~mythtv/.commercial_cut you could put the option in there.


The file is actually ~/.commercial_cut.rc

I used 'mythcommflag --rebuild' to insert a .VOB from a DVD about 4 months ago. It was on MythTV 0.16 (KnoppMyth R4V5). I think it should still work.

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 12:38 pm 
Offline
Joined: Thu Jun 16, 2005 2:37 pm
Posts: 116
Location: St. Louis MO.
nigelpearson wrote:
WattoToydarian wrote:
Hey guys, I got 3 questions.
Could I like put them back in mythtv somehow and then cut out parts of them and recopy them back out?


Put them in /myth/tv, run myth.rebuilddatabase.pl

Then 'mythcommflag --rebuild' on each file to let you edit them.


Hey nigel, I tried that and the thing is that I renamed the files after I took them out of the tv directory so I know which ones they were. So after I put them back in and it told me that the file name format is invilad, I tried to make up a name that fits the numbers that the other files have. Then I was able to run myth.rebuilddatabase.pl sucessfully. When I ran mythcommflag --rebuild it came out with this:
Code:
root@PVR:/myth/tv# mythcommflag --rebuild
2005-10-07 13:33:44.703 New DB connection, total: 1
2005-10-07 13:33:44.710 mythcommflag version: 0.18.1.20050510-1 www.mythtv.org
2005-10-07 13:33:44.711 Enabled verbose msgs :important

MythTV Commercial Flagger, started at Fri Oct  7 13:33:44 2005

Rebuilding SeekTable(s) for:
ChanID  Start Time      Title                                      Status
------  --------------  -----------------------------------------  ------
QDateTime::fromString: Parameter out of range
2005-10-07 13:33:44.716 New DB connection, total: 2
2005-10-07 13:33:44.719 New DB connection, total: 3
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
2005-10-07 13:33:44.726 New DB connection, total: 4
1004    00              Unknown                                    2005-10-07 13:33:44.731 Could not open /myth/tv//1004__.nuv.  4 retries remaining.
2005-10-07 13:33:45.235 Could not open /myth/tv//1004__.nuv.  3 retries remaining.
2005-10-07 13:33:45.737 Could not open /myth/tv//1004__.nuv.  2 retries remaining.
2005-10-07 13:33:46.240 Could not open /myth/tv//1004__.nuv.  1 retries remaining.
2005-10-07 13:33:46.742 Could not open /myth/tv//1004__.nuv.  0 retries remaining.
File not found: /myth/tv//1004__.nuv
Rebuilt
and then all the other files were rebuilt sucessfully.
Do you know the file name format that mythtv uses so I can try to come up with a name that it likes?

_________________
Backend: HP NetServer LT 6000r U3; 6 700Mhz Xeon CPUs; 3GB PC133 ECC; LSI Ultra160 SCSI 4 18GB 10kRPM striped system; 7200RPM 160GB recordings; Ubuntu-server 7.04; HDHomeRun box.
Frontend: A64 3000+; 512MB DDR; Hauppauge grey; knoppmyth PXE/NFS.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 6:00 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
The numbers in the name are date/time stamps for the start and end of the recording. One thing you could do is to schedule a manual recording which will populate the database with a recording entry. Then replace the recorded nuv file with your orphaned nuv. Then run the mythcommflag --rebuild on that recording. Otherwise, just come up with date/time stamps for the start and end time and use myth.rebuilddatabase.pl to enter it in the database.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 16, 2005 1:00 pm 
Offline
Joined: Sun Oct 16, 2005 12:30 pm
Posts: 10
I've been trying to get commercial cut to work, but I haven't had any total successes yet.

I am not using knoppmyth so I had to add in the mysql password and change the /myth/tv to /video which is where my recordings are stored.

I am using a PVR-500 and recording using the MPEG-2 PS Stream type. After I manually edit the cutlist to remove all the commercials, I run mythtranscode (which is now linked to commercial_cut) and it creates a new file that seems to have the correct running time and file size. However, when I go to play the file it just gives me a flash of blackness and then sends me back to my list of recordings.

Has anyone else had success with a PVR-500? Might it be the stream type?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 16, 2005 8:11 pm 
Offline
Joined: Sun Oct 16, 2005 12:30 pm
Posts: 10
Well I got it to work. There are still problems though, it's cutting out the wrong stuff. I think it's cutting a shifted version of my cutlist. At least I know it works though. The odd part is that it only works on the new things that I've recorded. I probably changed somethng in the recording settings.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 16, 2005 9:07 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
If it is cutting the wrong bits, it could be the 12/15 frames per index PAL/NTSC issue. You are recording in NTSC right?

If this is your problem, You should be able to edit commercial_cut.c and replace 12 with 15 in a few places.

I asked some PAL people to provide some details of their recordings in the hope that we could auto-detect but no one has responded.

I just had another idea. Comparing the maximum index with the duration, you may be able to detect the difference between 12 and 15 frames per index.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 17, 2005 8:23 am 
Offline
Joined: Sun Oct 16, 2005 12:30 pm
Posts: 10
Ah, I am in NTSC! I will try this as soon as I get home!

Scratch that, thanks to the magic of SSH I can do it right from school.

I found 3 instances of the number 12 (and a fourth in an array index which I assume has nothing to do with this problem.)

Can anyone veryify that there are 3 values to change?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 17, 2005 2:52 pm 
Offline
Joined: Sun Oct 16, 2005 12:30 pm
Posts: 10
Awesome, it works now!

Thanks for the help.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 12:37 pm 
Offline
Joined: Sun Mar 07, 2004 5:34 am
Posts: 116
Location: UK
hmmm,

Newest versioSVN pass a job list number to mythtranscode rather than the chanid and start time. So replacing mythtranscode with commercial_cut does not currently work.

It fails with "cant find file /myth/tv/4 " for rather obvious reasons. Is any one got ideas about how to fix this ?

EDIT - Played around with this a bit to force jobqueue.cpp to still output the -c -s options, but
there are a couple of other snags.
1) the new filename format is chanid_starttime.mpg, and so commercial_cut fails to find the file, even though it queries the directory correctly.

2) if you use it on older files that retain the chanid_starttime_endtime.nuv format, then the file is cut, but when put back into the database he basename is kept as the original basename. The newest SVN uses this as the key to access the file, which no longer exists (original file name)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 06, 2005 2:00 pm 
Offline
Joined: Sun Oct 16, 2005 12:30 pm
Posts: 10
This technically isn't about the commercial cutting program, but I figure I'll ask here in case anyone else has had the same problem.

After I cut the commercials, I want to archive the shows to a DVD.

First I heard that the nuv file is simply a DVD-compatible mpg and all you need to do was rename the file. I tried just renaming the .nuv to .mpg and dvdauthor said it didn't recognize the audio stream.

Then I tried using tcextract to pull out the audio and video into separate files. After I separated them, I remuxed them with mplex and used dvdauthor again. This works (meaning it doesn't give any errors, but gives TONS of warnings), but the file created by mplex has some serious audio issues. The first "uncut" portion plays normally with audio and video synced perfectly. However after the first cutpoint, the audio drops out completely. I've been looking around and apparently MPEG2 has some issues with editing that I wasn't aware of.

The original .nuv file's audio and video are synced when I play them in mythtv, so something must be happening during the demux/remux stage that is throwing them out of whack.

Does anyone know how to get the audio/video re-synchronized after cutting commercials? Or alternatively, does anyone know how to get dvdauthor to accept the renamed .nuv files?


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 130 posts ] 
Go to page Previous  1 ... 5, 6, 7, 8, 9



All times are UTC - 6 hours




Who is online

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