Jump to content


Photo

MovieCut calculates the wrong total time when cutting commercial breaks

moviecut cutting calculated time

  • Please log in to reply
21 replies to this topic

#1 trottel

  • Member
  • 16 posts

0
Neutral

Posted 14 September 2012 - 12:29

Hi,

this problem exists in both OpenPli 2.1 and OpenPli 3.0.
When I remove the leading and trailing parts of a recording and also cut some commercial breaks in the middle of a recording (this is crucial to reproduce the behaviour) then the resulting movie after performing the cuts (Option:replace the recording) seems to be too long. I suppose the trailing is considered to be still part of the movie.
Can someone of the devs check this please? I don't think I am the only one having this problem so please don't ignore me.
If I ask within the wrong board please let me know where I have to go to contact the right person.

Kind regards!

Re: MovieCut calculates the wrong total time when cutting commercial breaks #2 trottel

  • Member
  • 16 posts

0
Neutral

Posted 14 September 2012 - 15:48

Maybe the following is important to reproduce the issue:
I'm using an ET9x00 receiver and I normally record 8 minutes before the movie starts and additional 18 minutes after it has been finished.

Thanks!

Re: MovieCut calculates the wrong total time when cutting commercial breaks #3 Martin_B

  • Senior Member
  • 115 posts

0
Neutral

Posted 24 September 2012 - 11:16

Same here with me (et-9500) PLI 3.0 (2012/09/23).

MovieCut is a very nice plugin;
it would be fine if this little bug could be fixed.

Regards
Martin

Re: MovieCut calculates the wrong total time when cutting commercial breaks #4 dAF2000

  • PLi® Ex-Leden
  • 14,151 posts

+52
Good

Posted 24 September 2012 - 12:17

This is a known problem and caused by the way the moviecut plugin cuts the recordings. It doesn't seem to update the timestamps.
Here's the Dutch discussion about it (you may use Google translate for the translation) :

http://openpli.org/f...elist-en-player
Many answers to your question can be found in our wiki: http://openpli.org/wiki

Re: MovieCut calculates the wrong total time when cutting commercial breaks #5 trottel

  • Member
  • 16 posts

0
Neutral

Posted 25 September 2012 - 09:18

Hi,
it's pretty hard to follow the Dutch conversation because google's translation is really hard to understand. As far as I understand there is still no solution yet. The last post is from August the 20th so the Dutch thread seems to be abandoned.
This problem lasts for at least one year now. Is it really so hard to fix that no one can do it?

Re: MovieCut calculates the wrong total time when cutting commercial breaks #6 dAF2000

  • PLi® Ex-Leden
  • 14,151 posts

+52
Good

Posted 26 September 2012 - 23:46

I don't know if it's difficult to fix. The moviecut plugin was not made by us (although that's no excuse ;)) which makes it difficult to fix it.
Many answers to your question can be found in our wiki: http://openpli.org/wiki

Re: MovieCut calculates the wrong total time when cutting commercial breaks #7 ims

  • PLi® Core member
  • 13,774 posts

+214
Excellent

Posted 27 September 2012 - 07:21

As I saw, we using version 1.3 and exist 1.4 now (little bugfixes) and this version is without CC. May be, it could be used.
Kdo nic nedělá, nic nezkazí!

Re: MovieCut calculates the wrong total time when cutting commercial breaks #8 Martin_B

  • Senior Member
  • 115 posts

0
Neutral

Posted 27 September 2012 - 09:07

Do you know where it can be found? I did not find it on the feed.

Re: MovieCut calculates the wrong total time when cutting commercial breaks #9 ims

  • PLi® Core member
  • 13,774 posts

+214
Excellent

Posted 27 September 2012 - 09:21

in this time you can try http://dreamboxupdate.com/opendreambox and there it is as .ipk
Kdo nic nedělá, nic nezkazí!

Re: MovieCut calculates the wrong total time when cutting commercial breaks #10 trottel

  • Member
  • 16 posts

0
Neutral

Posted 28 September 2012 - 18:39

@ims

Hi,

I tried the new version of MovieCut (1.4) but I encountered the same problem...

Regards

Re: MovieCut calculates the wrong total time when cutting commercial breaks #11 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 28 September 2012 - 20:11

please try again with tomorrows build

Re: MovieCut calculates the wrong total time when cutting commercial breaks #12 ims

  • PLi® Core member
  • 13,774 posts

+214
Excellent

Posted 28 September 2012 - 21:36

it seems, it is partialy repaired. When is removed from "position" to end or all before "position", then it is ok, but when is removed f.eg. from 20min to 30min in 50mins file, then is still old length (50mins).
Kdo nic nedělá, nic nezkazí!

Re: MovieCut calculates the wrong total time when cutting commercial breaks #13 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 28 September 2012 - 22:26

could you check the contents of the new .meta, when you perform this type of cut?

The size + length fields should be zero.
It could be that the movielist takes a bit of time to decide that the size + length should be updated?

Re: MovieCut calculates the wrong total time when cutting commercial breaks #14 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 28 September 2012 - 22:47

actually, I understand why it fails.
My fix didn't really make any difference, e2 would have recalculated size and length anyway, because the filesize has changed after cutting.

what happens is that e2 compares the last timestamp with the first, and calculates the difference, without checking for 'holes' in the file.

Re: MovieCut calculates the wrong total time when cutting commercial breaks #15 ims

  • PLi® Core member
  • 13,774 posts

+214
Excellent

Posted 28 September 2012 - 22:52

orig:
1348563720

176029200
1292178708

cut:
1348563720

176029200
910290548
Kdo nic nedělá, nic nezkazí!

Re: MovieCut calculates the wrong total time when cutting commercial breaks #16 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 29 September 2012 - 00:31

yeah, expected that.

Solution is one of two:

1. make tstools.calcLen more intelligent (it now does m_pts_end - m_pts_begin), however, that also makes it a lot slower
2. make mcut write the corrected pts length and file size in the meta file (if e2 sees a matching file size, it will not recalculate the pts length)

Re: MovieCut calculates the wrong total time when cutting commercial breaks #17 brau21

  • Member
  • 13 posts

0
Neutral

Posted 29 September 2012 - 16:36

pls be so kind to fix also the audio-prob (1-2sec. after cut-out the mute thing - the audio-track is mute!!!)
hope this is public :)

thanks
brau21

Re: MovieCut calculates the wrong total time when cutting commercial breaks #18 Martin_B

  • Senior Member
  • 115 posts

0
Neutral

Posted 1 October 2012 - 16:26

Hi,

I don't think it is a problem with .meta file.
It is a problem with .ts file itself.

Example:
- Original Video has leght of 5:00.
- Cut out from 0:30 to 4:30 -> .cut.ts should have length of 1:00

1. Opening cut.ts file with VLC:
- Timeline shows length 5:00
- playing .cut.ts video -> timeline plays to 0:30 then jumps to 4:30 then plays to end.
Moving manually to e.g. 2:00 shows nothing, timeline crashes and shows length 0:00

2. Opening cut.ts file with MediaPlayer-Classic:
- Timeline shows length 5:00
- playing .cut.ts video -> timeline plays to 1:00 (you can see the cut at 0:30) then jumps to end.
Moving manually to e.g. 4:00 shows something of in between 0:00 and 1:00

3. Opening cut.ts file with Movie Player (Box)
- Timeline shows length 5:00
- playing .cut.ts video -> timeline plays to 1:00 (you can see the cut at 0:30) then jumps to end.
Moving manually to e.g. 4:00 shows nothing, Movie Player stops.

Maybe this helps to detect the problem.

Regards
Martin

Re: MovieCut calculates the wrong total time when cutting commercial breaks #19 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 1 October 2012 - 17:58

actually, I understand why it fails.
My fix didn't really make any difference, e2 would have recalculated size and length anyway, because the filesize has changed after cutting.

what happens is that e2 compares the last timestamp with the first, and calculates the difference, without checking for 'holes' in the file.



Re: MovieCut calculates the wrong total time when cutting commercial breaks #20 Martin_B

  • Senior Member
  • 115 posts

0
Neutral

Posted 1 October 2012 - 19:41

@pieterg

sorry for beeing so insistent.
What I don't understand:

You say:
"what happens is that e2 compares the last timestamp with the first, and calculates the difference, without checking for 'holes' in the file"

But mcut is doing the job I think?

root@et9x00:/# /usr/lib/enigma2/python/Plugins/Extensions/MovieCut/bin/mcut
Usage: mcut [-r] [-o output_ts_file] [-n title] [-d description] ts_file [-c sta
rt1 end1 [start2 end2] ... ]
   -r : Replace (= remove) the original movie.
   -o : Filename of resulting movie (defaults to the original name appended by "
cut", unless -r is given).
   -n : Title of resulting movie.
   -d : Description of resulting movie.
   -c : A sequence of starttime and endtime pairs. Each time is given as hour:mi
n:sec. The portion between start and end is retained (i.e. not cut away).
root@et9x00:/# /usr/lib/enigma2/python/Plugins/Extensions/MovieCut/bin/mcut /hdd
/test.ts -c 00:05:30 00:06:00 00:08:00 00:08:30
Interval: 112871064 - 123862672
Interval: 167330152 - 180967860

Edited by Martin_B, 1 October 2012 - 19:41.




Also tagged with one or more of these keywords: moviecut, cutting, calculated time

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users