MovieCut calculates the wrong total time when cutting commercial breaks
#1
Posted 14 September 2012 - 12:29
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
Re: MovieCut calculates the wrong total time when cutting commercial breaks #3
Re: MovieCut calculates the wrong total time when cutting commercial breaks #4
Posted 24 September 2012 - 12:17
Here's the Dutch discussion about it (you may use Google translate for the translation) :
http://openpli.org/f...elist-en-player
Re: MovieCut calculates the wrong total time when cutting commercial breaks #5
Posted 25 September 2012 - 09:18
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
Posted 26 September 2012 - 23:46
Re: MovieCut calculates the wrong total time when cutting commercial breaks #7
Re: MovieCut calculates the wrong total time when cutting commercial breaks #8
Re: MovieCut calculates the wrong total time when cutting commercial breaks #9
Posted 27 September 2012 - 09:21
Re: MovieCut calculates the wrong total time when cutting commercial breaks #10
Re: MovieCut calculates the wrong total time when cutting commercial breaks #11
Re: MovieCut calculates the wrong total time when cutting commercial breaks #12
Re: MovieCut calculates the wrong total time when cutting commercial breaks #13
Re: MovieCut calculates the wrong total time when cutting commercial breaks #14
Posted 28 September 2012 - 22:47
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
Re: MovieCut calculates the wrong total time when cutting commercial breaks #16
Posted 29 September 2012 - 00:31
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
Re: MovieCut calculates the wrong total time when cutting commercial breaks #18
Posted 1 October 2012 - 16:26
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
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
Posted 1 October 2012 - 19:41
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
"cuts" in media filesStarted by dirocca, 22 Nov 2013 moviecut, avi, mpg |
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users