Jump to content

Recommended Posts

chacawaca
Posted

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

  • Like 1
Posted

Cool, thanks for sharing.

  • 1 year later...
MaxNicklisch
Posted (edited)

---

Edited by MaxNicklisch
PaoloPinkel
Posted

@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.

chacawaca
Posted

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.

  • 10 months later...
PaoloPinkel
Posted

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

Posted
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.

PaoloPinkel
Posted

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

chacawaca
Posted

You need to expose your intel cpu to your docker container 

chacawaca
Posted

 

PaoloPinkel
Posted

thanks a lot @chacawaca, I'll read up on it....

PaoloPinkel
Posted

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!

 

  • 2 months later...
Posted (edited)

.

Edited by BrianJFox
nevermind
  • 1 year later...
Posted

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.

Posted
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?

 

Posted
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 ...

Bildschirmfoto2024-02-08um15_40_29.thumb.png.d2cc1244fae64a4cc7c5f2b08b05fde9.png

chacawaca
Posted
  • /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.

  • Thanks 2
Posted
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 ?

Posted
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?

Posted
37 minutes ago, Luke said:

Who is he?

I mean the docker image from chacawaca;-)

  • Thanks 1
chacawaca
Posted

Script will wait recording is finished 

Posted
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

Posted
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 ?

Posted
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

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...