chacawaca 106 Posted August 21, 2020 Share Posted August 21, 2020 Hi, i done a docker -it watch your record directory -extract srt -convert .ts to mkv or mp4 -process comchap or comcut on it. if 2-3 persons can test it and give me feedback, that will be nice. https://hub.docker.com/r/chacawaca/post-recording please use it with a test directory for now, keep DELETE_TS = 1 if you want to keep your .ts file thanks you 1 Link to comment Share on other sites More sharing options...
Luke 37049 Posted August 22, 2020 Share Posted August 22, 2020 Cool, thanks for sharing. Link to comment Share on other sites More sharing options...
MaxNicklisch 0 Posted January 7, 2022 Share Posted January 7, 2022 (edited) --- Edited January 7, 2022 by MaxNicklisch Link to comment Share on other sites More sharing options...
PaoloPinkel 6 Posted January 7, 2022 Share Posted January 7, 2022 @chacawaca I have the container running on a Synology NAS. What do I need to do to start the configuration. Do you happen to have a Synology and could help me? I don't know anything about Linux and Docker. Link to comment Share on other sites More sharing options...
chacawaca 106 Posted January 8, 2022 Author Share Posted January 8, 2022 It probably work on Intel based sinology, but if you have 0 experience with docker its probably not the best one to start. You have some manual config to do to adapt ffmpeg command to your situation. Link to comment Share on other sites More sharing options...
PaoloPinkel 6 Posted November 16, 2022 Share Posted November 16, 2022 i get with this entry in custom.sh ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i "$INPUT" -vf 'format=nv12|vaapi,hwupload,deinterlace_vaapi' -c:v hevc_vaapi -brand mp42 -ac 2 -c:a libfdk_aac -b:a 128k -ignore_unknown -map 0 "$OUTPUT" the following error in the log: [AVHWDeviceContext @ 0x55d1d8069580] No VA display found for device /dev/dri/renderD128. Device creation failed: -22. Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': Invalid argument Synology DS920+ INTEL Celeron J4125 Would be nice if someone could help me with this. error.log Link to comment Share on other sites More sharing options...
Luke 37049 Posted November 16, 2022 Share Posted November 16, 2022 3 hours ago, PaoloPinkel said: i get with this entry in custom.sh ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i "$INPUT" -vf 'format=nv12|vaapi,hwupload,deinterlace_vaapi' -c:v hevc_vaapi -brand mp42 -ac 2 -c:a libfdk_aac -b:a 128k -ignore_unknown -map 0 "$OUTPUT" the following error in the log: [AVHWDeviceContext @ 0x55d1d8069580] No VA display found for device /dev/dri/renderD128. Device creation failed: -22. Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': Invalid argument Synology DS920+ INTEL Celeron J4125 Would be nice if someone could help me with this. error.log 1.46 kB · 0 downloads Hi there, please attach the emby server log. Thanks. Link to comment Share on other sites More sharing options...
PaoloPinkel 6 Posted November 16, 2022 Share Posted November 16, 2022 Hi Luke, many thanks already. Just for info, the custom.sh script is currently still triggered by the start of the container, not by emby! Attached is the custom.sh of the Docker container and the emby log. embyserver.txt custom.sh Link to comment Share on other sites More sharing options...
chacawaca 106 Posted November 16, 2022 Author Share Posted November 16, 2022 You need to expose your intel cpu to your docker container Link to comment Share on other sites More sharing options...
chacawaca 106 Posted November 16, 2022 Author Share Posted November 16, 2022 Link to comment Share on other sites More sharing options...
PaoloPinkel 6 Posted November 16, 2022 Share Posted November 16, 2022 thanks a lot @chacawaca, I'll read up on it.... Link to comment Share on other sites More sharing options...
PaoloPinkel 6 Posted November 17, 2022 Share Posted November 17, 2022 An export of the Synology Docker *.json file and an edit with "devices" : [ { "CgroupPermissions": "rwm", "PathInContainer": "/dev/dri/renderD128", "PathOnHost": "/dev/dri/renderD128" } ], and then importing it did not work. The device entry is always discarded. I solved it via the Synology task scheduler. Running the script once as user "root" finally worked. #!/bin/bash docker run -d \ --name=post-recording \ -v /volume1/docker/post-recording:/config:rw \ -v /volume1/07_Emby/Aufnahmen_LiveTV/Test:/watch:rw \ -v /volume1/07_Emby/Backup_LiveTV:/backup:rw \ -e DELETE_TS=0 \ -e SUBTITLES=1 \ -e CONVERSION_FORMAT=mkv \ -e SOURCE_EXT=ts \ -e POST_PROCESS=comcut \ -e PUID=99 \ -e PGID=100 \ -e UMASK=000 \ -e TZ=Europe/Berlin \ --device /dev/dri/renderD128:/dev/dri/renderD128 \ --restart always \ chacawaca/post-recording Now I try different settings with the comskip.ini to get a good detection rate. Thanks for the support guys! Link to comment Share on other sites More sharing options...
BrianJFox 11 Posted February 1, 2023 Share Posted February 1, 2023 (edited) . Edited February 1, 2023 by BrianJFox nevermind Link to comment Share on other sites More sharing options...
vdrover 42 Posted February 7 Share Posted February 7 Big thanks to @chacawaca for this image. It works flawlessly, and along with the comskip plugin from @BillOatmanit really makes Emby a solid media system for live TV. Link to comment Share on other sites More sharing options...
muppet4k 10 Posted February 8 Share Posted February 8 On 11/17/2022 at 2:57 PM, PaoloPinkel said: Now I try different settings with the comskip.ini to get a good detection rate. Thanks for the support guys! Like to share it? Link to comment Share on other sites More sharing options...
muppet4k 10 Posted February 8 Share Posted February 8 On 8/21/2020 at 11:03 PM, chacawaca said: please use it with a test directory for now, keep DELETE_TS = 1 if you want to keep your .ts file thanks you First, thank you to make this for using in a docker system. I tried today also and its working... But I have some questions about quality, now the output file is very smile....see the screenshot below... can I configure it to get a better quality in video? Which settings are you using? Normally I download a file and using handbrake where I can configure anything, about quality ... Link to comment Share on other sites More sharing options...
chacawaca 106 Posted February 10 Author Share Posted February 10 /scripts/custom.sh need to be configured by you, some example are there to help you configure this for your need. /hooks can be configured to execute custom code /comskip/comskip.ini can be configured too. you can configure custom.sh with the ffmpeg command you want and adjust quality there. 2 Link to comment Share on other sites More sharing options...
muppet4k 10 Posted February 15 Share Posted February 15 On 2/10/2024 at 4:15 PM, chacawaca said: /scripts/custom.sh need to be configured by you, some example are there to help you configure this for your need. /hooks can be configured to execute custom code /comskip/comskip.ini can be configured too. you can configure custom.sh with the ffmpeg command you want and adjust quality there. I have a question again when I like to watch to a folder which is recording live tv … will he wait when the file finished recording? I saw he wait 10 seconds and than he start ? Or see the script that the file is still growing ? Link to comment Share on other sites More sharing options...
Luke 37049 Posted February 15 Share Posted February 15 8 hours ago, muppet4k said: I have a question again when I like to watch to a folder which is recording live tv … will he wait when the file finished recording? I saw he wait 10 seconds and than he start ? Or see the script that the file is still growing ? Who is he? Link to comment Share on other sites More sharing options...
muppet4k 10 Posted February 15 Share Posted February 15 37 minutes ago, Luke said: Who is he? I mean the docker image from chacawaca;-) 1 Link to comment Share on other sites More sharing options...
muppet4k 10 Posted February 15 Share Posted February 15 I mean the script 1 Link to comment Share on other sites More sharing options...
chacawaca 106 Posted February 15 Author Share Posted February 15 Script will wait recording is finished Link to comment Share on other sites More sharing options...
muppet4k 10 Posted February 16 Share Posted February 16 9 hours ago, chacawaca said: Script will wait recording is finished nice can I add a second folder to watch too? and how? because I dont want to add my group main folder Link to comment Share on other sites More sharing options...
muppet4k 10 Posted February 17 Share Posted February 17 On 2/15/2024 at 12:40 PM, muppet4k said: I have a question again when I like to watch to a folder which is recording live tv … will he wait when the file finished recording? I saw he wait 10 seconds and than he start ? Or see the script that the file is still growing ? has somebody tried a webhook when converting is finished ? Link to comment Share on other sites More sharing options...
muppet4k 10 Posted February 19 Share Posted February 19 On 2/10/2024 at 4:15 PM, chacawaca said: /scripts/custom.sh need to be configured by you, some example are there to help you configure this for your need. /hooks can be configured to execute custom code /comskip/comskip.ini can be configured too. you can configure custom.sh with the ffmpeg command you want and adjust quality there. @chacawaca Would be nice to get this feature https://github.com/chacawaca/docker-post-recording/issues/21 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now