-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comskip Initial release #1900
Comskip Initial release #1900
Conversation
just left you some commits, maybe @Dr-Bean has anything else but besides that. Nice! |
Okay, lots of things to work on. Will check them out later today. Thanks |
spk/comskip/src/dsm-control.sh
Outdated
exit 0 | ||
;; | ||
log) | ||
echo "${INSTALL_DIR}/install.log" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does that file even exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope ;) If Comskip doesn't maintain it's own log to link to from here, this can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought this was needed for the package itself (install.log) Comskip creates a logfile next to the processed file thus this can be removed indeed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may have used Mono as an example? It wrote that information during postinstall. That should be removed with the next release, I actually intended to do that and forgot. Actually, I did remove it ;)
Then you may have used the Python package as template. It writes install.log during postinstall here: https://github.com/SynoCommunity/spksrc/blob/master/spk/python/src/installer.sh#L28.
except of that one last commit it looks good to me... let's see if @Dr-Bean has anything left :) |
spk/comskip/Makefile
Outdated
SPK_NAME = comskip | ||
SPK_VERS = 0.81.089 | ||
SPK_REV = 1 | ||
SPK_ICON = src/comskip.gif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make this a PNG file please? And the file itself doesn't seem to be 256*256, but that would be the recommended size. I can't see the icon right now, but iirc, it was fairly low quality. Maybe take a look at that too.
@Dr-Bean sure has ;) A couple other points: please check that digests are added ( Sorry, wrong button there :/ |
Yeah i was thinking about the same regarding a short howto description. You could schedule this and launch from cli but the way i'm using it is with TVH, when a recording is finished i trigger comskip to process recording and generate a EDL file which can be used in Kodi. More info about this here http://kodi.wiki/view/Edit_decision_list Will fix other comments also and i think I need to create a new icon since i couldn't find a proper one also. |
Depending on how long a howto could be (describing various methods to integrate it?), you could consider writing a wiki page, and add a link like this: https://github.com/SynoCommunity/spksrc/blob/master/spk/ffsync/Makefile#L23. It'll show up as an additional link in Package Center for the package. |
Another one: I believe you're missing |
Beta isn't there, will add. Can we use 2 HELPURL's and is it allowed to link to program manual page or should it be hosted on synocommunity wiki? |
spk/comskip/src/comskip.ini
Outdated
skip_b_frames=0 ; Set to 1 to force Comskip to skip frames for higher processing speed. | ||
hardware_decode=0 ; Set to 1 to enable hardware accelerated video decoding, only available in donator version | ||
max_repair_size=200 ; Will repair maximum 200 missing MPEG frames in the timeline, set to 0 to disable repairing for players that don't use PTS. | ||
disable_heuristics=4 bit pattern for disabling heuristics, adding 1 disables heristics 1, adding 2 disables heristics 2, adding 4 disables heristics 3, 255 disables all heuristics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this perhaps missing a ;
in front of bit pattern [..]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it is. Fixed it.
You can use SUPPORTURL (official documentation) in your Makefile, along with HELPURL (wiki). |
Updated and squashed. Image is still bad but better then nothing. Wiki i will update later today. /edit |
spk/comskip/Makefile
Outdated
|
||
DEPENDS = cross/argtable cross/ffmpeg cross/$(SPK_NAME) | ||
|
||
RELOAD_UI = yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like you missed to remove this ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't sure if it really should be removed or not.
Will remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this brakes compiling the package, DEPENDS should stay i think?
I commented on a outdated comment so not sure it it will popup. +SPK_NAME = comskip DEPENDS should stay i think? Thanks for the image btw @cytec |
You only want to remove |
@cytec Is that image 256*256? Seems smaller, but that might be my browser. It looks better though, no doubt about that :) |
I needed to move comskip.ini into bin folder otherwise comskip couldn't find it without adding argument to ini file itself which isn't user friendly either in my opinion. Regarding including ffmpeg or not i'll leave it this way, it works now and I can always optimize it later. /edit: |
Hm. I'm not sure I'm willing to publish 80MB*8 arches or so, if we can get away with about half that with a little work. Secondly, the ini file doesn't belong in /bin, and that is going to cause issues with package upgrades. You need to add arguments to comskip anyway, might as well add an ini location. If people don't, I assume comskip is going to complain, or use a set of (incorrect) defaults, yes? (as for an explanation why that would be more acceptable than LD_LIBRARY_PATH, that's because the latter is not obvious. Comskip will tell you that you can set an ini location via As for ffmpeg: the package needs work, which is what #1662 is for. |
Comskip is indeed going to complain if it can't find the ini file. (and will use default/incorrect values) Maybe a symlink works (if allowed in packages)? |
i've checked and it seems like comskip searches your |
I've just compiled Compile it with |
Maybe not cleanest but works for me, good idea though. Also reverted commit for putting ini file in bin folder, it's back in var again (with extra comskip.dictionary file) |
you could also just append so that would look something like this i think: |
The cleanest solution for this is to patch comskip to accept an extra directory to search for the .ini defined in an env variable. |
+1 for this solution... maybe you'll also append seems like it needs more than just EDIT: maybe setting an |
+1 for |
I need to figure out the append stuff and BUILD and SPK depends and also --rpath (all new for me) |
i'm not 100% sure but if i remember correctly setting @Dr-Bean @Diaoul correct me if im wrong ;) for the env patch for comskip: maybe @Diaoul can provide some more help/information on this... |
The PATH searching code is only enabled on windows. I don't mind adding it for other platforms but we will need a posix implementation of _searchenv in platform.c |
@tmm1 adding PATH for other environments would make things alot easier but don't know how easy/hard it is to implement. |
@cytec |
@schumi2004 should be the source from here https://github.com/cytec/spksrc/tree/ffmpeg-update |
@cytec libopenjpeg/jpwl/Makefile.am:5: warning: source file '../tpix_manager.c' is in a subdirectory, /EDIT: |
@cytec could you have a look at rtmpdump? (Well, i think it's rtmpdump, not really sure) sr/local/ffmpeg/lib -Wl,--rpath-link,/home/openelec/github/cytec-spksrc/spk/ffmpeg/work-evansport-5.2/install//usr/local/ffmpeg/lib -Wl,--rpath,/usr/local/ffmpeg/lib " /EDIT: |
@cytec Will test ffmpeg package and see how it works on test NAS |
Comskip depends on ffmpeg-3.x these days. Since ffmpeg-3.x isn't in SynoCommunity's repo yet this PR can't be merged. |
yeah... i should really get my ffmpeg stuff merged -.- |
I have a ffmpeg-3.0.2 package available here. I could submit it so you can review? |
@schumi2004 with this landing: #2375 can we get comskip landed as well? cc: @cytec |
I'll finish it today ;) |
Current ffmpeg isn't working by default. |
Thanks for all the help, it all seems to compile just fine now.
I think it needs to be stripped more because size is around 100MB now.