summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-12-28 20:02:01 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-12-28 20:02:01 +0000
commitd8340cb1329f43cf9b815ef0a9ad9f8143c47577 (patch)
treef1ba2c3fa3ec8f9e45ab7ea46721ff0a4a1d0bcd /media-video/noad/files
parentAdded the new descent2/d2x masks. (diff)
downloadgentoo-2-d8340cb1329f43cf9b815ef0a9ad9f8143c47577.tar.gz
gentoo-2-d8340cb1329f43cf9b815ef0a9ad9f8143c47577.tar.bz2
gentoo-2-d8340cb1329f43cf9b815ef0a9ad9f8143c47577.zip
Now option to not run noad when there are already marks there. Cleaned up noad-wrapper-script a bit.
(Portage version: 2.1.2_rc4-r1)
Diffstat (limited to 'media-video/noad/files')
-rw-r--r--media-video/noad/files/0.6.0-r7/confd_vdraddon.noad70
-rw-r--r--media-video/noad/files/0.6.0-r7/noad-reccmd7
-rw-r--r--media-video/noad/files/0.6.0-r7/reccmds.noad.conf1
-rw-r--r--media-video/noad/files/0.6.0-r7/record-50-noad.sh65
-rw-r--r--media-video/noad/files/digest-noad-0.6.0-r73
5 files changed, 146 insertions, 0 deletions
diff --git a/media-video/noad/files/0.6.0-r7/confd_vdraddon.noad b/media-video/noad/files/0.6.0-r7/confd_vdraddon.noad
new file mode 100644
index 000000000000..6cb3d80d7719
--- /dev/null
+++ b/media-video/noad/files/0.6.0-r7/confd_vdraddon.noad
@@ -0,0 +1,70 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/noad/files/0.6.0-r7/confd_vdraddon.noad,v 1.1 2006/12/28 20:02:01 zzam Exp $
+
+#########
+##
+# run Noad
+# available Parameter
+# no | yes
+#
+VDR_USE_NOAD="yes"
+
+## do online scan while recording
+# you can choose between
+# no - disable online scan
+# live - scan only live recordings online (named @...)
+# all - scan all recordings with online mode
+# available Parameter
+# no | live | all
+#
+NOAD_ONLINE="no"
+
+## start noad with nice
+# available Parameter
+# yes | no
+NOAD_NICE="yes"
+
+## use ac3 detection
+# available Parameter
+# yes | no
+#
+NOAD_AC3="yes"
+
+## detect jumping logos
+# available Parameter
+# yes | no
+#
+NOAD_JUMP="yes"
+
+## detect overlaps
+# available Parameter
+# yes | no
+#
+NOAD_OVERLAP="yes"
+
+## send an OSD-Message to localhost:2001 for start and end
+# available Parameter
+# yes | no
+#
+NOAD_MESSAGES="yes"
+
+## only scan if sharemarks did not produce an ptsmarks.vdr file
+# available Parameter
+# yes | no
+NOAD_ONLY_SCAN_IF_NO_PTSMARKS="yes"
+
+## only scan if there are no cut-marks already there (cutting while vdr still records)
+# available Parameter
+# yes | no
+NOAD_ONLY_SCAN_IF_NO_MARKS="yes"
+
+## add your own parameter here,
+# yust run 'noad' in konsole for more parameter
+NOAD_PARAMETER=""
+
+
+
+
+
+
diff --git a/media-video/noad/files/0.6.0-r7/noad-reccmd b/media-video/noad/files/0.6.0-r7/noad-reccmd
new file mode 100644
index 000000000000..069a292f25cf
--- /dev/null
+++ b/media-video/noad/files/0.6.0-r7/noad-reccmd
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+VDR_RECORD_STATE=reccmd
+VDR_RECORD_NAME="${1}"
+
+source /usr/share/vdr/record/record-50-noad.sh "${VDR_RECORD_STATE}" "${VDR_RECORD_NAME}"
+
diff --git a/media-video/noad/files/0.6.0-r7/reccmds.noad.conf b/media-video/noad/files/0.6.0-r7/reccmds.noad.conf
new file mode 100644
index 000000000000..5d35495a90b8
--- /dev/null
+++ b/media-video/noad/files/0.6.0-r7/reccmds.noad.conf
@@ -0,0 +1 @@
+Scan for Commercials (noad) :/usr/share/vdr/bin/noad-reccmd
diff --git a/media-video/noad/files/0.6.0-r7/record-50-noad.sh b/media-video/noad/files/0.6.0-r7/record-50-noad.sh
new file mode 100644
index 000000000000..da1847ca31a5
--- /dev/null
+++ b/media-video/noad/files/0.6.0-r7/record-50-noad.sh
@@ -0,0 +1,65 @@
+# $Header: /var/cvsroot/gentoo-x86/media-video/noad/files/0.6.0-r7/record-50-noad.sh,v 1.1 2006/12/28 20:02:01 zzam Exp $
+#
+# Joerg Bornkessel <hd_brummy@gentoo.org>
+# Mathias Schwarzott <zzam@gentoo.org>
+#
+
+source /etc/conf.d/vdraddon.noad
+
+CMD="/usr/bin/noad"
+
+# Parameter to start NoAd
+# parameter are "no | yes"
+
+FORCE_OFFLINE_SCAN=no
+
+if [[ ${VDR_RECORD_STATE} == reccmd ]]; then
+ # script started from reccmd
+ FORCE_OFFLINE_SCAN=yes
+ VDR_RECORD_STATE=after
+fi
+
+
+if [[ ${FORCE_OFFLINE_SCAN} != yes ]]; then
+ # allow it to abort on certain conditions
+
+ # automatic noad scan disabled
+ [[ ${VDR_USE_NOAD} == "yes" ]] || return
+
+ # ptsmarks existing
+ if [[ ${NOAD_ONLY_SCAN_IF_NO_PTSMARKS} == yes ]]; then
+ [[ -f ${VDR_RECORD_NAME}/ptsmarks.vdr ]] && return
+ fi
+
+ # marks existing
+ if [[ ${NOAD_ONLY_SCAN_IF_NO_MARKS} == yes ]]; then
+ [[ -f ${VDR_RECORD_NAME}/marks.vdr ]] && return
+ fi
+
+ # Add Online-scanning parameter
+ case "${NOAD_ONLINE}" in
+ live|yes)
+ CMD="${CMD} --online=1"
+ ;;
+ all)
+ CMD="${CMD} --online=2"
+ ;;
+ no)
+ # abort stage "before" here
+ [[ ${VDR_RECORD_STATE} == "before" ]] && return
+ ;;
+ esac
+fi
+
+[[ "${NOAD_AC3}" == "yes" ]] && CMD="${CMD} -a"
+[[ "${NOAD_JUMP}" == "yes" ]] && CMD="${CMD} -j"
+[[ "${NOAD_OVERLAP}" == "yes" ]] && CMD="${CMD} -o"
+[[ "${NOAD_MESSAGES}" == "yes" ]] && CMD="${CMD} -O"
+
+if [[ ${NOAD_NICE} == yes ]]; then
+ CMD="nice ${CMD}"
+fi
+
+CMD="${CMD} ${NOAD_PARAMETER}"
+${CMD} "${VDR_RECORD_STATE}" "${VDR_RECORD_NAME}"
+
diff --git a/media-video/noad/files/digest-noad-0.6.0-r7 b/media-video/noad/files/digest-noad-0.6.0-r7
new file mode 100644
index 000000000000..05e249e57c9d
--- /dev/null
+++ b/media-video/noad/files/digest-noad-0.6.0-r7
@@ -0,0 +1,3 @@
+MD5 62947d5afec56cdb9884535d9813530d noad-0.6.0.tar.bz2 151369
+RMD160 762c8efeb89d681a77d83d0df70668b62a7057dd noad-0.6.0.tar.bz2 151369
+SHA256 f473f0137fa9ba8f7a736d9ca019fe5491e1744b17b54a1bdbfc23a9c8001183 noad-0.6.0.tar.bz2 151369