@Bollar said:
@robertclemens said:
Iām trying to get comchap to work. Itās set as my post-processing script. At the end of a recording it runs. I end up with several files in the .grab folder and the .edl file ends up in the end destination folder.
I did a test recording and here are the results.
root@server:/plex/tvshows/.grab/c176418a91cb74333e607843caffaa99b1377f83# ls -lah total 1.5G drwxr-xr-x 2 plex plex 4.0K Oct 18 19:31 . drwxr-xr-x 3 plex plex 4.0K Oct 18 19:19 .. -rw-r--r-- 1 plex plex 155 Oct 18 19:31 The Middle (2009) - S08E02 - A Tough Pill to Swallow.ffmeta -rw-r--r-- 1 plex plex 22K Oct 18 19:30 The Middle (2009) - S08E02 - A Tough Pill to Swallow.logo.txt -rw------- 1 plex plex 1.5G Oct 18 19:31 The Middle (2009) - S08E02 - A Tough Pill to Swallow.mkv -rw-r--r-- 1 plex plex 90 Oct 18 19:31 The Middle (2009) - S08E02 - A Tough Pill to Swallow.txt root@server:/plex/tvshows/.grab/c176418a91cb74333e607843caffaa99b1377f83#
root@server:/plex/tvshows/The Middle (2009)/Season 8# ls -lah total 12K drwxr-xr-x 2 plex plex 4.0K Oct 18 19:32 . drwxr-xr-x 3 plex plex 4.0K Oct 18 19:31 .. -rw-r--r-- 1 plex plex 16 Oct 18 19:31 The Middle (2009) - S08E02 - A Tough Pill to Swallow.edl root@server:/plex/tvshows/The Middle (2009)/Season 8#
Thoughts?
I found itās important to delete those work files before the script exits. If I didnāt, Iād occasionally get one of the work files transferred instead of the video.
I figured the script would do the cleanup and the file would move to its eventual location by way of the post-processing variables passed to the script (assuming that is the case).
I moved a test video file to /tmp/test1.mkv. I ran the following. It ran test1.mkv against comchap and exported the result to test2.mkv. All of the work files are in place.
root@server:/tmp# comchap test1.mkv test2.mkv Comskip 0.81.089, made using ffmpeg Donator build The commandline used was: comskip --ini=/root/.comskip.ini test1.mkv Setting ini file to /root/.comskip.ini as per commandline Using /root/.comskip.ini for initiation values. 0:14:55 - 30382 frames in 108.69 sec(279.53 fps), 1.00 sec(266.00 fps), 105% 30471 frames decoded in 108.85 seconds (279.94 fps) Commercials were found. ffmpeg version 2.8.8-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609 configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/ include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger - -enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio -- enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --ena ble-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-l ibspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --ena ble-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enabl e-libx264 --enable-libopencv libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Input #0, matroska,webm, from 'test1.mkv': Metadata: ENCODER : Lavf56.40.101 Duration: 00:14:07.63, start: 0.000000, bitrate: 15051 kb/s Chapter #0:0: start 0.000000, end 193.000000 Chapter #0:1: start 193.000000, end 251.000000 Metadata: title : Commercial Chapter #0:2: start 251.000000, end 251.000000 Stream #0:0: Video: mpeg2video (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, max. 20000 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 t bc (default) Metadata: DURATION : 00:14:07.628000000 Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: DURATION : 00:14:07.008000000 Input #1, ffmetadata, from 'test1.ffmeta': Duration: 00:10:00.00, start: 0.000000, bitrate: 0 kb/s Chapter #1:0: start 0.000000, end 193.000000 Chapter #1:1: start 193.000000, end 251.000000 Metadata: title : Commercial Chapter #1:2: start 251.000000, end 463.000000 Chapter #1:3: start 463.000000, end 600.000000 Metadata: title : Commercial Chapter #1:4: start 600.000000, end 600.000000 [matroska @ 0x13713e0] Codec for stream 0 does not use global headers but container format requires global headers [matroska @ 0x13713e0] Codec for stream 1 does not use global headers but container format requires global headers Output #0, matroska, to 'test2.mkv': Metadata: encoder : Lavf56.40.101 Chapter #0:0: start 0.000000, end 193.000000 Chapter #0:1: start 193.000000, end 251.000000 Metadata: title : Commercial Chapter #0:2: start 251.000000, end 251.000000 Stream #0:0: Video: mpeg2video (mpg2 / 0x3267706D), yuv420p, 1920x1080 [SAR (default) Metadata: DURATION : 00:14:07.628000000 Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), 384 kb/ Metadata: DURATION : 00:14:07.008000000 Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame=21573 fps=17100 q=-1.0 Lsize= 1557341kB time=00:14:07.53 bitrate=15052.8k video:1517267kB audio:39703kB subtitle:0kB other streams:0kB global headers:0kB Saved to: test2.mkv root@server:/tmp#
All of the work files are still in the location. How is this working for others?
root@server:/tmp# ls -lah test* -rw-r--r-- 1 root root 32 Oct 18 20:15 test1.edl -rw-r--r-- 1 root root 266 Oct 18 20:15 test1.ffmeta -rw-r--r-- 1 root root 22K Oct 18 20:14 test1.logo.txt -rw------- 1 plex plex 1.5G Oct 18 19:31 test1.mkv -rw-r--r-- 1 root root 102 Oct 18 20:15 test1.txt -rw-r--r-- 1 root root 1.5G Oct 18 20:15 test2.mkv root@server:/tmp#