NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 9 10 11 12 13 … 193 Next »
Include ccextractor in Docker images

 
  • 0 Vote(s) - 0 Average
Include ccextractor in Docker images
Ranbato
Offline

Member

Utah
Posts: 79
Threads: 8
Joined: Nov 2018
#1
2020-03-28, 04:20 AM
May be i niche request, but I transcode the .ts files in my Postprocessing.sh and before I do that i extract the subtitles/closed captions with ccextractor so they aren't lost.

I currently add it myself to the docker image with the following Dockerfile:

Code:
FROM nextpvr/nextpvr_amd64:stable AS updated_base


################
#
# prerequisites
#
################


RUN apt-get update -y && \
    apt-get install -y --no-install-recommends unzip zip curl mediainfo libfreetype6 libutf8proc2 tesseract-ocr
#    && \
#    rm -rf /var/lib/apt/lists/*



######################
#
# ccextractor
# https://hub.docker.com/r/djaydev/ccextractor/dockerfile
#
######################

# djaydev/ccextractor:latest

# compilation stage
FROM updated_base AS builder

# install dependencies
RUN apt-get install build-essential pkgconf cmake automake autoconf git software-properties-common \
    libtesseract-dev libfreetype6 tesseract-ocr-eng libleptonica-dev libcurl4-gnutls-dev libglfw3-dev libglew-dev libwebp-dev libgif-dev libpng-dev -y

# compile ccextractor
RUN git clone https://github.com/CCExtractor/ccextractor.git && \
    cd ccextractor/linux && \
    ./autogen.sh && \
    ./configure --enable-ocr && \
    make





######################
#
# NextPVR
#
######################
FROM updated_base AS setup



# copy ccextractor from compilation stage
COPY --from=builder /app/ccextractor/linux/ccextractor /usr/local/bin



## cleanup
RUN apt-get autoremove -y && \
    apt-get clean && \
    rm -rf \
      /tmp/* \
      /var/lib/apt/lists/* \
      /var/tmp/*

RUN rm -rf /app/ccextractor
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#2
2020-03-28, 05:25 PM
I'd rather not have lots of extra stuff added to the Docker image, and this coming from the person who also does a custom Docker image with Python3 in it. I think if sub starts including all these requests in the Docker image it will end up being a huge, bloated beast. And he'd have to test and support everything included. Best to have those of us that need more add it ourselves. If you're so inclined, you could publish your image to Docker Hub so others could use it if they wanted to (I did that with mine).
Ranbato
Offline

Member

Utah
Posts: 79
Threads: 8
Joined: Nov 2018
#3
2020-03-28, 07:09 PM
That's not a bad idea. Maybe I'll do that and that will also provide a way to gauge interest.

docker pull marklambert/nextpvr-ccextractor:latest
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,775
Threads: 954
Joined: May 2006
#4
2020-03-28, 07:20 PM (This post was last modified: 2020-03-28, 07:20 PM by mvallevand.)
I wouldn't use docker anymore it was nice at the beginning, but if you include ccextractor you should include comskip and consider other post processing tools

Martin
Ranbato
Offline

Member

Utah
Posts: 79
Threads: 8
Joined: Nov 2018
#5
2020-03-28, 07:59 PM
I used to use comskip years ago but I could never get it reliable enough. I have got pretty good at Kodi's skip functionality now and just do it manually while watching the shows.
It wouldn't be hard to add.

What other tools were you thinking?

(I've decommissioned my Windows server so I'm running everything on my Synology NAS so it has to be Docker for most things)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,775
Threads: 954
Joined: May 2006
#6
2020-03-28, 08:11 PM
If you are putting an image out for public distribution you might want to ask others I see handbrake, comskip, comcut, and ccextractor often mentioned.

Martin
struggles
Offline

Junior Member

Posts: 4
Threads: 0
Joined: Apr 2009
#7
2020-03-28, 10:12 PM
For me, ccextractor and sqlite3. I use both, along with mediainfo for post processing. Your custom container(s) are much appreciated!
Ranbato
Offline

Member

Utah
Posts: 79
Threads: 8
Joined: Nov 2018
#8
2020-04-05, 03:00 PM
The latest version has ccextractor, sqlite3, and comskip added.
I'll take a look at comcut and handbrakeCli too.
Ranbato
Offline

Member

Utah
Posts: 79
Threads: 8
Joined: Nov 2018
#9
2020-04-11, 08:23 PM
I have comcut and HandBrakeCLI done too, but now I have gone down the rabbit hole of building ffmpeg to add a few things in and that is sending me down a rabbit hole. Hopefully I'll have it working in a few days.
Ranbato
Offline

Member

Utah
Posts: 79
Threads: 8
Joined: Nov 2018
#10
2020-04-14, 07:58 PM
ffmpeg is now building with custom, up-to-date libraries including Netflix's VMAF quality library and I'm going to adjust handbrake to use the latest as well.

As a side effect, I'm installing python3 for the builds so I may look at keeping that in if anyone is interested (pkscout).

I should have a new image up in a few days.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Include channel name or LCN in the filename martinu 0 1,546 2017-10-05, 12:29 PM
Last Post: martinu
  Include channel name in recorded filename jordy1955 6 2,795 2016-08-10, 02:51 PM
Last Post: jordy1955
  Show/Channel images on client PCs whurlston 7 3,736 2013-01-11, 07:22 PM
Last Post: mvallevand
  Raw Images (Canon Raw CR2) psycik 9 2,997 2009-12-22, 12:58 AM
Last Post: ACTCMS
  align & valign for images Jaggy 0 1,216 2009-08-22, 10:58 PM
Last Post: Jaggy
  Change the default filename format to include subitle info johnnyb 2 1,817 2008-11-10, 05:43 PM
Last Post: JimF
  VideoLibrary: Allowing large resolution images in Filmstrip mode... Rich 0 1,302 2007-03-24, 07:43 PM
Last Post: Rich
  Show status include pending recordings 4zm4r3d02 1 1,498 2006-01-13, 05:44 PM
Last Post: jorm
  sub folders - images sivilya 6 2,411 2005-12-13, 11:02 PM
Last Post: bluesxman
  composite images for selectors in net/fm radio reven 0 1,176 2005-05-24, 01:32 AM
Last Post: reven

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode