• The forum software that supports hummy.tv has been upgraded to XenForo 2.3!

    Please bear with us as we continue to tweak things, and feel free to post any questions, issues or suggestions in the upgrade thread.

[nicesplice]+[nicesplice-magic-folders] On box video editing

OK - I didnt realise the web interface gave debug data or I'd have done this sooner -
So the movie file bugs out with an error :
copybuffer too small - got 786432, need 1835712 at frame 148208 at file "crop.jim", line 42
Thats a bit dissapointing - does this mean the function only works on small files?

The second issue I have is the cut on the short file is at the start of the file and it either starts cutting late or
doesnt do any cut at all.

Is there a way to get the start of a file and discard the rest? (Perhaps a way to invert the cut action after bookmarks are set?)
 
Also - FYI

I have a number of HD files I've trimmed but when converting these to MKV with MKVmerge/Toolnix I get an error saying incomplete or corrupt AAC header.
The program then eventually stops.
I hope thats helpful as it suggests something isn't being spliced quite right.

When using Mkvmerge on an SD file that has beein trimmed I get the error "Warning: Found one or more B frames without second reference in the first GOP. You may want to fix the MPEG2 video stream or use smart reencode before attempting to multiplex it."
The SD files do complete however and seem to play back ok. At least on my PC - I've not tried the TV yet.

(I'm using MKV because you can't do chapters in TS or M2TS files so seeking other than on a PC doesnt work - or at least I can't seem to make it work)
 
I've had a couple of files that nicesplice can't handle too, although it works fine for everything else. No obvious pattern to it. I've used it with plenty of very large files do I don't think it's size related.

We'll have to wait for Drutt to answer, the error message you got might mean something to him.
 
So the movie file bugs out with an error :
copybuffer too small - got 786432, need 1835712 at frame 148208 at file "crop.jim", line 42
Thats a bit dissapointing - does this mean the function only works on small files?

Looks like the error you've hit is that it has come across a frame that is larger than the buffer I set up to hold it.
The biggest frame I've seen was about 600k, and it seems to be reporting nearly 2megs for that one :confused: I'll look at changing the code to make it copy the frame in sections, as I don't really want to throw any more memory at it.

It's not to do with the overall file size.

The second issue I have is the cut on the short file is at the start of the file and it either starts cutting late or
doesnt do any cut at all.

Is there a way to get the start of a file and discard the rest? (Perhaps a way to invert the cut action after bookmarks are set?)

I'll have a look at adding an "invert" option for the bookmarks, though using nicesplice directly from a telnet command prompt you can specify more accurately what to cut than the bookmarks allow. For example to do what I think you're trying to do here you could do something like:

eg nicesplice -in [infile] -cut 100 999999 -out [newfile]

The cut time is specified in 10ths of a second, so this would remove all but the first 10 seconds of the recording. (999999 is just a big number to mean "to the end of the file"!)

Actually if you're feeling keen af123, (and I'm afraid I get so little time to play with this stuff at the moment:() you could already add an "invert" option to the webif cut by passing in the bookmark times as "-cut" times rather than using -cutBookMarks

Hope that's helpful

Steve
 
I've had a couple of files that nicesplice can't handle too, although it works fine for everything else. No obvious pattern to it.

The file I looked at from you a while back was very odd - not the same issue jack616 is having but the contents of the index file seemed to be quite different from anything else I've seen before or since :confused:
 
The file I looked at from you a while back was very odd - not the same issue jack616 is having but the contents of the index file seemed to be quite different from anything else I've seen before or since :confused:
I have a new one that cuts at completely the wrong points. Overall I'm very happy with it though - I use nicesplice a lot and it works 99%+ of the time.
 
Would it be possible to edit the bookmarks in the webif so you could tweak them back and forth in 10th second increments? I find setting the bookmarks can be a bit hit and miss to get them exactly where I want them.

Being able to mark them roughly where they should be and then use the webif to move them slightly, checking them by playing them back using the Humax remote control, would be really useful.
 
This sounds a good idea, if it's possible. I have been concerned about setting the edit points, it's all very well being able to specify to a tenth of a second but if we can't identify those points - it's pointless.

I see no reason the resolution should be restricted to 10 secs. Being able to edit the bookmark points directly (via a WebIF option) should do it.
 
Big thanks for the Cut/Nicesplice mod; used it extensively last night to chop down my kids' stuff.. loads more free space & no annoying ad breaks in some of the films he likes. Good work guys!!
 
Thanks for the response Drutt.
I really appreciate your mod and the effort you put into it. Despite these niggles I use it a lot now normally with no problems.
I dont use telnet but I'll try and make time to set it up to take a look at what you suggest. I'm a bit pressed this week and next for time
so may not report back for a while.
thanks again.

jack
 
This sounds a good idea, if it's possible. I have been concerned about setting the edit points, it's all very well being able to specify to a tenth of a second but if we can't identify those points - it's pointless.

I see no reason the resolution should be restricted to 10 secs. Being able to edit the bookmark points directly (via a WebIF option) should do it.

Actually I didn't say anything about restricting it to 10secs. My thoughts were having an edit option that allowed you to select each bookmark and using the + and - keys or having + and - buttons to add or subtract one 10th of a second to or from the bookmark each time you pressed/clicked it.
 
Sorry, I had 10 secs in my mind from somewhere. How about this for an interface, af123? Display the hours/minutes/seconds/frames for a bookmark, and clicking above a digit increments by one unit of that digit (with carry), clicking below decrements. Plus direct typed entry of course.
 
Hi, Followed all the instructions & have a web browser interface. But what I'm really after is the Nicesplice Magic Folders package so I can Edit On The Box. I ended up with an .opb & an .opk file from the author's site but how do I load this? I tried copying to memory stick as HDR_FOX_T2_upgrade.hdf but Hummy didn't like it - can't see it in the Firmware Packages Available list - :-(
 
Just copy the files to a USB stick without changing the names, then put the USB stick in while the Humax is up and running - see http://wiki.hummy.tv/wiki/Manually_loading_Features_from_USB

However, if you go into the Settings screen and enable 'Show development and Advanced Packages' then it will appear in the available package list and you can install it straight from the web interface.

HTH.
 
@Drutt - I'm having a bit of trouble with the -cut option to nicesplice. It doesn't seem to be honouring the end cut point for me.

For example:

Code:
/mod/bin/nicesplice -in /media/My Video/Films/Seven Brides For Seven Brothers_20111226_1510 -out /media/My Video/Films/Seven Brides For Seven Brothers_20111226_1510.part1 -cut 0 13500

That's a 2 hour recording so ~23 minutes worth should be about a quarter size.. but

Code:
-rw-rw-rw-    1 root    root        2.4G Feb  6 23:10 Seven Brides For Seven Brothers_20111226_1510.part1.ts
-rw-r--r--    1 root    root        3.0G Dec 26 17:10 Seven Brides For Seven Brothers_20111226_1510.ts

am I doing something wrong?


Edit: DOH! Ignore me, cut works backwards to bookmarks...
 
I can't thank you enough! Been going round in circles - was expecting it to be much more complicated than that. I had turned the 'Show Development' ON but Firmware Available List still said "Filtered" & there was still no sign of Nicesplice Magic folders. Anyway have downloaded & it is working. :-) Thanks again
 
There seems to be a nicesplice problem using cutBookMarks when the initial bookmark is set to zero.

A crop operation completes immediately with the following message:

Code:
Processing Red Dwarf VI_20120219_1440
Moving recording to /media/My Video/_original
Red Dwarf VI_20120219_1440.thm
Red Dwarf VI_20120219_1440.ts
Red Dwarf VI_20120219_1440.hmt
Red Dwarf VI_20120219_1440.nts
Runtime Error: execute.jim:40: read header /media/My Video/_original/Red Dwarf VI_20120219_1440.hmt (13888 bytes)
progLen = 2313s, 4 bookmarks, HD = 0
read 57840 entries from /media/My Video/_original/Red Dwarf VI_20120219_1440.nts
Adjusted cut 0.out down from 0 to 0
Adjusted cut 0.in up from 57840 to 57840
Wrote 0 bytes to /media/My Video/Red Dwarf VI_20120219_1440.ts
with 0 paddding for alignment
wrote 0 entries to /media/My Video/Red Dwarf VI_20120219_1440
Exceeded frame data out buffer! at file "execute.jim", line 40

Relevant part of 'hmt' output:
Code:
Video PID:401
Audio PID:402
Bookmarks:4 = 0 922 1229 2047
 
Just thought I'd mention this as you could loose something:

If you make a very short cut it will transfer and cut quite happily and then you can
transfer it to the virtual drive ok.
However - if the cut IS very short -- what gets transfered is a zero length file with no warning.

Always check the final output before deleting the original source file.
 
So, in order to get round the problem in post 117 I manually hacked the hmt file to change the initial bookmark of 0 to 1. The cropping process now appears to run but over a minute has been cropped from the beginning of the file. Am I missing something?

Code:
Processing Red Dwarf VI_20120219_1440
Moving recording to /media/My Video/_original
Red Dwarf VI_20120219_1440.thm
Red Dwarf VI_20120219_1440.ts
Red Dwarf VI_20120219_1440.hmt
Red Dwarf VI_20120219_1440.nts
read header /media/My Video/_original/Red Dwarf VI_20120219_1440.hmt (13888 bytes)
found bookmark - 1
found bookmark - 922
found bookmark - 1229
found bookmark - 2047
progLen = 2313s, 4 bookmarks, HD = 0
read 57840 entries from /media/My Video/_original/Red Dwarf VI_20120219_1440.nts
cut at nan seconds = frame 26 (111210)
cut at nan seconds = frame 23050 (1032318)
cut at nan seconds = frame 30724 (1339376)
cut at nan seconds = frame 51175 (2157297)
Adjusted cut 0.out down from 0 to 0
Adjusted cut 0.in up from 26 to 36
Adjusted cut 1.out down from 23050 to 23046
Adjusted cut 1.in down from 30724 to 30708
Adjusted cut 2.out down from 51175 to 51173
Adjusted cut 2.in up from 57840 to 57840
new Section - rounding down to chunk at frame 36 (0 out) from 35120953 to 35120832
new Section - rounding down to chunk at frame 30708 (23010 out) from 407871097 to 407870976
Wrote 525728448 bytes to /media/My Video/Red Dwarf VI_20120219_1440.ts with 0 paddding for alignment
wrote 43475 entries to /media/My Video/Red Dwarf VI_20120219_1440
progLen = 1738s
wrote header /media/My Video/Red Dwarf VI_20120219_1440.hmt (13888 bytes)
Renaming file group to Red Dwarf VI_20120219_1440-1330256295
Time taken: 39.385
 
The first problem with the bookmark at 0 is a bug in the bookmark reading code - its not using the bookmark count, and assuming when it hits a 0 in the bookmark list, thats the end. I'll fix this in the next update. Looks like the af123's webif part of it might be having trouble as well, based on this error?:

Runtime Error: execute.jim:40: read header /media/My Video/_original/Red Dwarf VI_20120219_1440.hmt (13888 bytes)

Converting from bookmarks to the cuts can be a little confusing - internally nicesplice works using defined sections to remove, but because its very hard to set a bookmark at the start and end, these are "assumed" when converting bookmarks to cut ranges. However everythign looks good in the output from when you set the bookmark to 1.

adjusted cut 0.out down from 0 to 0
Adjusted cut 0.in up from 26 to 36
Adjusted cut 1.out down from 23050 to 23046
Adjusted cut 1.in down from 30724 to 30708
Adjusted cut 2.out down from 51175 to 51173
Adjusted cut 2.in up from 57840 to 57840


This is telling me it removed frames 0-36 (ie the first second or so), then a chunk in the middle, then a bit at the end. Looks good, and shouldn't have removed a minute from the start. Would you be able to decode the recording and stick it on 4shared or something for me to have a play?

Thanks

Steve
 
Back
Top