[mythtv-users] Removing commercials

P.J. Trudell pjtrudell at yahoo.com
Fri Apr 10 02:50:23 UTC 2009


Thanks for your help.  Here are my results.  I am having the same issues.


>1st check if the cutlist looks sane by
>mythcommflag --getcutlist -c 1299 -s 20090407113000

pj at mans-myth:/var/lib/mythtv/recordings$ mythcommflag --getcutlist -c 1299 -s 20090407113000
2009-04-09 22:28:41.290 Using runtime prefix = /usr
2009-04-09 22:28:41.333 Empty LocalHostName.
2009-04-09 22:28:41.390 New DB connection, total: 1
2009-04-09 22:28:41.413 Closing DB connection named 'DBManager0'
2009-04-09 22:28:41.414 New DB connection, total: 2
Cutlist: 0-761

I have just a few seconds of the video not removed to make it a good test.

>if sane:
>mythtranscode -c 1299 -s 20090407113000

/var/lib/mythtv/recordings$ mythtranscode -c 1299 -s 20090407113000
2009-04-09 22:31:40.786 Using runtime prefix = /usr
2009-04-09 22:31:40.786 Empty LocalHostName.
2009-04-09 22:31:40.791 New DB connection, total: 1
2009-04-09 22:31:40.794 Closing DB connection named 'DBManager0'
2009-04-09 22:31:40.795 Enabled verbose msgs: important
2009-04-09 22:31:40.795 New DB connection, total: 2
2009-04-09 22:31:40.835 Using protocol version 40
2009-04-09 22:31:41.146 Transcode: Looking for autodetect profile: Autodetect from 480i
2009-04-09 22:31:41.146 New DB connection, total: 3
2009-04-09 22:31:41.161 Transcode: Using autodetect profile: MPEG2
2009-04-09 22:31:41.161 No video information found!
2009-04-09 22:31:41.161 Please ensure that recording profiles for the transcoder are set

It didn't like it for some reason.  When I use the --honorcutlist and the --mpeg2 options I get a file but it is not any shorter (just a little smaller).

pj at mans-myth:/var/lib/mythtv/recordings$ sudo mythtranscode --honorcutlist --mpeg2 -c 1299 -s 2009-04-07-11-30-00
2009-04-09 22:34:33.298 Using runtime prefix = /usr
2009-04-09 22:34:33.299 Empty LocalHostName.
2009-04-09 22:34:33.304 New DB connection, total: 1
2009-04-09 22:34:33.307 Closing DB connection named 'DBManager0'
2009-04-09 22:34:33.307 Enabled verbose msgs: important
2009-04-09 22:34:33.308 New DB connection, total: 2
Mux rate: 6.49 Mbit/s

I used sudo because I get a read file error when I don't.  I tried "sudo mythtranscode -c 1299 -s 20090407113000" and it still fails with the same error.  It seems to want the --honorcutlist and the --mpeg2 options.

Here is what I get
pj at mans-myth:/var/lib/mythtv/recordings$ ls -l 1299_20090407*
-rw-r--r-- 1 mythtv mythtv 1166022656 2009-04-07 12:00 1299_20090407113000.mpg
-rw-rw-rw- 1 mythtv mythtv      96124 2009-04-07 12:00 1299_20090407113000.mpg.png
-rw-r--r-- 1 root   root   1098526724 2009-04-09 22:35 1299_20090407113000.mpg.tmp

As you can see the .tmp is only slightly smaller and it plays the full video of the origional file.  It does not honor the cut list.

Do you think it is a permissions problem?

P.J.





>should result in a smaller file with .tmp added to the original name.
>after checking everything is OK
>mv -f 1299_20090407113000.mpeg.tmp 1299_20090407113000.mpeg
>Done

--- On Thu, 4/9/09, belcampo <belcampo at zonnet.nl> wrote:

From: belcampo <belcampo at zonnet.nl>
Subject: Re: [mythtv-users] Removing commercials
To: "Discussion about mythtv" <mythtv-users at mythtv.org>, pjtrudell at yahoo.com
Date: Thursday, April 9, 2009, 3:20 PM

P.J. Trudell wrote:
> I have been running mythbuntu 8.10 for about 6 months and I am trying to delete commercials now.
> 
> I have tried to do it by setting cutlists in mythtv edit mode and then running transcode in myth and I get a transcode error with no error codes.
> 
> I have tried doing it by setting cutlists in mythtv edit mode and then running mythtranscode from the command line both with the -i option and the -c and -s options see commands below.  The result is an aditional file *.mpg.tmp of almost the same size but it does not remove anything.
> 
> (mythtranscode --honorcutlist --mpeg -i 1299_20090407113000.mpeg)
> (mythtranscode --honorcutlist --mpeg -c 1299 -s 2009-04-07-11-30-00)
syntax is:
1st check if the cutlist looks sane by
mythcommflag --getcutlist -c 1299 -s 20090407113000
if sane:
mythtranscode -c 1299 -s 20090407113000
should result in a smaller file with .tmp added to the original name.
after checking everything is OK
mv -f 1299_20090407113000.mpeg.tmp 1299_20090407113000.mpeg
Done
> 
> My final goals are
> 1.  Flag commericials automatically (currently working)
> 2.  Have the comerical flagging create cutlists cutlists
> 3.  Beable to add more cutpoints in addition to the commericials that are flagged.
> 4.  Create new files without commericials for use outside of Mythtv.
> 5.  Create new files without ccommericals for use inside of mythtv (to save space)
> 
> Can someone point me into the right direction.  I dont mind a script or command lines I can make into a script.  Eventually I want to make them all into user jobs or automatic scripts.
> 
> Thanks in advance.
> 
> P.J.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20090409/03f07e38/attachment.htm>


More information about the mythtv-users mailing list