Jump to content

docker post-recording


chacawaca

Recommended Posts

chacawaca

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
Link to comment
Share on other sites

  • 1 year later...
PaoloPinkel

@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

chacawaca

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

  • 10 months later...
PaoloPinkel

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

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

PaoloPinkel

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

  • 2 months later...
  • 1 year later...
vdrover

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

muppet4k
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

muppet4k
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

Link to comment
Share on other sites

chacawaca
  • /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
Link to comment
Share on other sites

muppet4k
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

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

muppet4k
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

muppet4k
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

muppet4k
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

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