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, 2, 3, 4, 5, 6, 7, 8, 9  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Aug 06, 2005 10:27 am 
Offline
Joined: Thu Aug 04, 2005 2:32 pm
Posts: 12
Greg Frost wrote:
Dude, I think you are making this far more complicated than it needs to be. The error you quoted simply means that the linker couldn't find the file libmysqlclient.so
mercury.morris wrote:
/usr/bin/ld: cannot find -lmysqlclient

Look for where the libmysqlclient.so.10 file is and make sure there is a symbolic link libmysqlclient.so pointing to it. If it still doesnt work, add -L /usr/lib to the compiler flags (but replace /usr/lib with the directory that contains libmysqlclient.so).

You shouldn't need to install anything extra to get commercial_cut to compile.


In /usr/lib64/mysql, there was/is a symbolic
link to libmysqlclient.so.10. So that takes
care of the first step.

Next, I added the following line to the
Makefile:

-L /usr/lib64/mysql \

and issued the make command. Success!

Thanks for the help in getting commercial_cut
to compile. Now I need help with connecting
to the mythconverg MYSQL database.

I tried this command:

./commercial_cut -k -vvv -T "LawfirmCut" /video/2011_20050804200000_20050804210100.nuv

and got a listof the parms followed by this error message

Can't connect to mythconverg MYSQL database

The system is a Frontend/Backend combination.

Could it be that a password is required ?

Thanks again for getting me over the compile
hurdle.

--
MM


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 06, 2005 3:27 pm 
Offline
Joined: Thu Aug 04, 2005 2:32 pm
Posts: 12
After some digging through the mysql
documentation,I went ahead and added
a password to commercial_cut.

Access to the mythconverg database
was successful, with the added password.

But when I tried commercial_cut on a
recorded program that had a cutlist,
I got the following output:
===================================
Running Greg Frost's Crude Commercial Cutter
Verbose output enabled.
Verbosity increased.
Verbosity increased.
arg 0 = './commercial_cut'
arg 1 = '-k'
arg 2 = '-vvv'
arg 3 = '/video/1010_20050802193000_20050802200000.nuv'
Connected to the database successfully!
The start time is Tue Aug 2 19:30:00 2005
The end time is Tue Aug 2 20:00:00 2005
UPDATE jobqueue SET status=4 where chanid=1010 and starttime=20050802193000 and type=1
set jobqueue status to running
Input File Full Path: /myth/tv/1010_20050802193000_20050802200000.nuv
Output File Full Path: /myth/tv/1010_20050802193000_20050802200000.nuv.tmp
SELECT cutlist FROM recorded WHERE chanid = 1010 AND starttime = '20050802193000'
Queried the database successfully!
Result with 1 fields
Cutlist is:
0 - 4450
24654 - 28267
49862 - 53995
Cutlist 0: 0 - 4450
Cutlist 1: 24654 - 28267
Cutlist 2: 49862 - 53995
SELECT mark,offset FROM recordedmarkup WHERE chanid = 1010 AND starttime = '20050802193000' AND type=9
Queried the database successfully!
Result with 2 fields
5 0
<snipped>
Cannot stat file /myth/tv/1010_20050802193000_20050802200000.nuv
===================================

Hmmm. Interesting. It looks like the
recorded programs must reside in a
directory called /myth/tv.

OK. On to further testing.
I'll post the results.

--
MM


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 06, 2005 7:55 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
Yeah, sorry. The tool was written to work on Knoppmyth (where by default, everyones recordings are stored in /myth/tv). That would probably explain the database connection problem as well. I guess it could query the database to determine the location of the recordings, but it doesnt. Its pretty crude.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 7:44 am 
Offline
Joined: Thu Aug 04, 2005 2:32 pm
Posts: 12
Greg Frost wrote:
Yeah, sorry. The tool was written to work on Knoppmyth (where by default, everyones recordings are stored in /myth/tv). That would probably explain the database connection problem as well. I guess it could query the database to determine the location of the recordings, but it doesnt. Its pretty crude.


Yes, it's becoming a bit clearer that Knoppmyth
is the preferred environment for commercial_cut.

But, Hey! You clearly marked it as "crude",
so there was advanced notification.

It should be possible to create the directory
in which commercial_cut expects to find
files and use a symbolic link to the directory
where they actually reside. I'll try that later
today and see what kind of luck I have.

By the way, thanks for creating the program.
If it works for me, I'll feel very lucky to have
avoided installing something else that has
a (long) list of dependencies.

--
MM


Top
 Profile  
 
PostPosted: Sun Aug 07, 2005 3:31 pm 
Offline
Joined: Thu Aug 04, 2005 2:32 pm
Posts: 12
Commercial_cut worked for me, and it was
about as painless an experience as I've had
working with MythTV and the associated
software. Congratulations and ThankYou
to the author.

I hasten to add that I use Fedora Core 3,
not Knoppmyth, and that required me to
edit the source. A password is needed
to access the mythconverg database, and
the directory where the recorded programs
are kept must be substituted in 7 or 8 places
where /myth/tv is hard-coded.

In one of the testcases I've run using
commercial_cut, something a little weird
happened, and I will have to repeat the test
several times to verify what happened.

Briefly, I used commercial_cut to make
a copy of a program that had a cutlist.
The copy was made - no problem.

Then, I played the original program (the
one still with the cutlist), entered edit-mode
and deleted the cutlist. After I stopped playing
the program, both the copy of the program
and the entry on the MythTV list of recorded
programs were gone. Hmmm, not what I expected
nor wanted, but it was just a testcase. And, the
original program was still there, available for
making more cutlists, copies, etc., etc.

All-in-all, this first experience with
commercial_cut has been great, a quick,
painless way to extract a clip from a recorded
program, save it away for replaying or whatever.

My thanks again to the author, Greg Frost.

--
MM


Top
 Profile  
 
PostPosted: Sun Aug 07, 2005 8:57 pm 
Offline
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location: Sydney, Australia
mercury.morris wrote:
I used commercial_cut to make
a copy of a program that had a cutlist.
The copy was made - no problem.

Then, I played the original program (the
one still with the cutlist), entered edit-mode
and deleted the cutlist. After I stopped playing
the program, both the copy of the program
and the entry on the MythTV list of recorded
programs were gone.


So, before this re-editing there were two, but when you exited the re-edit (and presumably didn't delete it) there were none?

Do you have mythfrontend logs (cat ~mythtv/.xsession) of this?


Quote:
Hmmm, not what I expected
nor wanted, but it was just a testcase. And, the
original program was still there, available for
making more cutlists, copies, etc., etc.


OK, so how was it still there. What made it re-appear?

Were the two files in the recordings directory? (/myth/tv)

Did the recording(s) that disappeared (not sure from your description what actually happened) ever re-appear?

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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 9:13 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
Could it have been an Auto-Expire issue?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 08, 2005 5:20 am 
Offline
Joined: Mon May 02, 2005 2:45 am
Posts: 8
Here is my output from a NTSC PVR.
Code:
root@mythtv:/myth/pretty# tcprobe -i /myth/pretty/08072000_The_4400_Hidden.mpg
[tcprobe] MPEG program stream (PS)
[tcprobe] summary for /myth/pretty/08072000_The_4400_Hidden.mpg, (*) = not default, 0 = not detected
import frame size: -g 720x480 [720x576] (*)
     aspect ratio: 4:3 (*)
       frame rate: -f 29.970 [25.000] frc=4 (*)
                   PTS=0.4004, frame_time=33 ms, bitrate=8000 kbps
      audio track: -a 0 [0] -e 48000,16,2 [48000,16,2] -n 0x50 [0x2000] (*)
                   PTS=0.3338, bitrate=384 kbps
                   -D 1 --av_fine_ms 33 (frames & ms) [0] [0]



Top
 Profile  
 
PostPosted: Mon Aug 08, 2005 8:54 am 
Offline
Joined: Thu Aug 04, 2005 2:32 pm
Posts: 12
nigelpearson wrote:
mercury.morris wrote:
I used commercial_cut to make
a copy of a program that had a cutlist.
The copy was made - no problem.

Then, I played the original program (the
one still with the cutlist), entered edit-mode
and deleted the cutlist. After I stopped playing
the program, both the copy of the program
and the entry on the MythTV list of recorded
programs were gone.


So, before this re-editing there were two, but when you exited the re-edit (and presumably didn't delete it) there were none?

The original recording was still there, it never left
and therefore did not reappear. I'm sorry for being
somewhat unclear about this.

Do you have mythfrontend logs (cat ~mythtv/.xsession) of this?

No, do not have ~mythtv/.xsession. But everything
else is logged - frontend, backend, filldatabase.

Quote:
Hmmm, not what I expected
nor wanted, but it was just a testcase. And, the
original program was still there, available for
making more cutlists, copies, etc., etc.


OK, so how was it still there. What made it re-appear?

Were the two files in the recordings directory? (/myth/tv)

Yes, the two recordings were in the directory where
I keep recordings, /video is the name on my system.

Did the recording(s) that disappeared (not sure from your description what actually happened) ever re-appear?


Answered above. Later, by looking through the logs,
I found that the copy was deleted because of auto-expire. Specifically, the auto-expire reason was
given as "too many episodes".

I didn't really care this time, because the program being
processed with commercial_cut was only a throw-away testcase.

OFF-TOPIC NOTE HERE: Sorry for the horrible
appearance of this post. I find the user interface
for trying to reply to posts absolutely abominable.

This is another case of the machine trying to be the
master over the user, rather than the other way around.

Why should I try to learn some stupid, complicated
mark-up language, instead of concentrating on the
technical details of the subject matter?

OK, stepping DOWN off the soapbox.

--
MM


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 08, 2005 8:59 am 
Offline
Joined: Thu Aug 04, 2005 2:32 pm
Posts: 12
Greg Frost wrote:
Could it have been an Auto-Expire issue?


Yes, the backend log had an entry that
indicated the copy produced by
commercial_cut had been Auto-Expired
because of too many episodes.

Commercial_cut is quite nice, it works
for me. Thanks for all your help in
getting me over the humps compiling
and using it. And for writing it, too !

--
MM


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 16, 2005 5:53 am 
Offline
Joined: Tue Apr 13, 2004 12:41 pm
Posts: 24
Hello. I have a quick question. I am having the same problem mwahal had on the 5th post down on page 2. I am using the newest version of commercial_cut and mythtv. I did however install mythtv via a yum repository on Fedora Core 4. I have edited the source to connect to mysql and it does connect to the database initially. The problem is after the tmp file is written. Attached is the output I am getting from the program.

Also, I do have a link from /mnt/media/.tvenc/ to /myth/tv/ I do not believe this to be the problem, but I will change it anyway.

Thanks.

Code:
Running Greg Frost's Crude Commercial Cutter
Verbose output enabled.
Verbosity increased.
Verbosity increased.
arg 0 = 'commercial_cut'
arg 1 = '-k'
arg 2 = '-vvv'
arg 3 = '1071_20050810040000_20050810043000.nuv'
Connected to the database successfully!
The start time is Wed Aug 10 04:00:00 2005
The end   time is Wed Aug 10 04:30:00 2005
UPDATE jobqueue SET status=4 where chanid=1071 and starttime=20050810040000 and type=1
set jobqueue status to running
Input File Full Path: /myth/tv/1071_20050810040000_20050810043000.nuv
Output File Full Path: /myth/tv/1071_20050810040000_20050810043000.nuv.tmp
SELECT cutlist FROM recorded WHERE chanid = 1071 AND starttime = '20050810040000'
Queried the database successfully!
Result with 1 fields
Cutlist is:
(null)SELECT mark,offset FROM recordedmarkup WHERE chanid = 1071 AND starttime = '20050810040000' AND type=9
Queried the database successfully!
Result with 2 fields
No type 9 entries in the database. Entering experimental PVR-x50 mode
SELECT mark,offset FROM recordedmarkup WHERE chanid = 1071 AND starttime = '20050810040000' AND type=6
Queried the database successfully!
Result with 2 fields
0 38
1 299046
2 679974
3 1091622

<SNIP>

Copying 311296 bytes from 1166145574
Copying 288768 bytes from 1166456870
Copying 296960 bytes from 1166745638
Copying 67482 bytes from 1167042598
closed input and output files
Output file size 1167110080
SELECT * FROM recorded WHERE chanid = 1071 AND starttime = '20050810040100'
new start time Wed Aug 10 04:01:00 2005
new map 0: INSERT INTO recordedmarkup VALUES (1071,'20050810040100',0,'0',6)Error entering recordedmarkup into database!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 16, 2005 9:23 am 
Offline
Joined: Tue Apr 13, 2004 12:41 pm
Posts: 24
I have a different problem now. I tried a show that was recorded recently as opposed to a few weeks ago. It gets through the query that it stopped at earlier, but now it stops here.

Code:
<SNIP>

new map 3585: INSERT INTO recordedmarkup VALUES (1066,'20050811183100',3585,'1166131200',6)Entered recordedmarkup into db successfully!
new map 3586: INSERT INTO recordedmarkup VALUES (1066,'20050811183100',3586,'1166419968',6)Entered recordedmarkup into db successfully!
new map 3587: INSERT INTO recordedmarkup VALUES (1066,'20050811183100',3587,'1166716928',6)Entered recordedmarkup into db successfully!
new end time Thu Aug 11 19:00:00 2005
SELECT * FROM recorded WHERE chanid = 1066 AND starttime = '20050811183000'
Queried the database successfully!
Result with 25 fields
Adding field 21 - 2004-07-31
Adding field 22 - 0
Adding field 23 - 0
Adding field 24 - 0
INSERT INTO recorded VALUES (1066,'20050811183100','20050811190000','30-Minute Meals','30-Minute Surf and Turf','Bacon-wrapped asparagus bundles; sirloin burgers on a bed of lettuce with grilled shrimp and a horseradish chile sauce.','Cooking','localhost.localdomain',NULL,0,'',1,1,'Default',7,'SH455938','EP4559380276',2005-08-11 19:14:18,1166911424,0,1,'2004-07-31','0','0','0')
Error querying database!


Any ideas? Thanks.

EDIT

I get the problem I had earlier after I run commercial_cut on a program twice. It doesn't matter if I delete the tmp file, so it must be mucking with the DB at some point.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 16, 2005 12:10 pm 
Offline
Joined: Thu Aug 04, 2005 2:32 pm
Posts: 12
Mikey,

Commercial_cut is nice, but remember that the author tags it as "crude". When I ran into trouble with it,
I began looking into avidemux. Just when I was all ready to compile it for my Fedora Core 3 system, I took one last stab at searching the Internet for an RPM.

What luck ! I found an RPM for Fedora Core 3 that installed cleanly and actually ran
with no problems at all. Now, I've been able to cut up recordings and make music
videos, among other things.

Since you are on Fedora Core 4, you
should now be able to search

http://rpm.pbone.net

and find either or both RPMs for i386
and x86_64 systems.

avidemux was quite a pleasant surprise and I recommend that you at least take a look at it.

--
MM


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 16, 2005 12:20 pm 
Offline
Joined: Sun May 15, 2005 8:47 am
Posts: 54
FWIW,

I've been successfully using a modified version of ccut 0.5 (passing some extra command line options). I think it does an excellent job in cut-n-paste. The problems may also be due to incorrect commercial detection. I've seen that happen when mythcommflag incorrectly marks the commercials begin and end. If that is the case, no matter which commercial cutting software you use, you will have problems.

Another issue is how soon the player you are using can sync between audio and video after the frames are joined.

I'll look into avidemux too and see if it is significantly better than ccut. Can avidemux only for AVI files or also for mpeg2 (and mpeg2-TS) files ?

Thanks

Mudit


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 16, 2005 12:28 pm 
Offline
Joined: Sun May 15, 2005 8:47 am
Posts: 54
Also will avidemux query the myth database to find the commercial being and end frames ? Or will it do its own commercial detection ?
I'm on the avidemux forum but dont see any relationship between avidemux and myth.


Top
 Profile  
 

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



All times are UTC - 6 hours




Who is online

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