Skip to content

Instantly share code, notes, and snippets.

gscbuf = v4l2_getfree_v4l2buf(gsc->output);
if (!gscbuf)
return AVERROR(ENOMEM);
// copy mfc capture buffer to gsc capture buffer
for(i = 0; i < avbuf->num_planes; i++) {
gscbuf->plane_info[i].mm_addr = avbuf->plane_info[i].mm_addr;
gscbuf->planes[i].bytesused = avbuf->planes[i].bytesused;
gscbuf->planes[i].length = avbuf->planes[i].length;
}
@mihailescu2m
mihailescu2m / DownloadStation
Last active June 5, 2018 03:48
Synology NAS: from DownloadStation to Filebot to Plex
METHOD OVERVIEW:
================
This method involves creating a PSQL trigger, and PSQL C function which runs a bash script.
The bash script is responsible for running FileBot and notifying Plex server of new files.
The bash script outputs the recognized files to the PSQL C function, which removes completed
downloads containing those files from the database (and from DownloadStation GUI).
NOTE: you need to give the Synology user 'postgres' access to all the required paths
(download folder, plex media folder, scripts folder, filebot, java).
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 4.14.0-rc7 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_ARM_DMA_USE_IOMMU=y
CONFIG_ARM_DMA_IOMMU_ALIGNMENT=8
CONFIG_MIGHT_HAVE_PCI=y
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 4.14.0-rc6 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_ARM_DMA_USE_IOMMU=y
CONFIG_ARM_DMA_IOMMU_ALIGNMENT=8
CONFIG_MIGHT_HAVE_PCI=y