Project

General

Profile

TVH update scripts

Added by Nils Bittmann over 9 years ago

Hi Guys,

I thought I could share my scripts to update TVH with you and have uploaded them to GitHub.

1. tvhbuild.sh is a script which checks if your git clone is up to date if not it will build TVH and write the latest version into a file called latest.txt

2. tvhupdater.sh will check the latest file against your currently installed version and update if outdated

These scripts are on of my very first bash scripts and might look a bit messy but they work fine so far

Any feedback would be appreciated

Git repo is https://github.com/nbittmann/tvhupdater

Please open the .sh file to set your paths to meet your environment

I'm currently running the build script via cronjob every night and can then update as I want but you should be able to run the updater via cron as well.

Thanks


Replies (8)

RE: TVH update scripts - Added by Nils Bittmann over 9 years ago

Hi

Thanks Yes I'm actually using the auto build.sh but my script will check if git is up to date and only build if it's outdated which makes it perfect to have nightly build via cronjob

RE: TVH update scripts - Added by Michael Kongedam almost 9 years ago

@Nils
will this script enable transcoding?

/Kongedam

RE: TVH update scripts - Added by Prof Yaffle almost 9 years ago

Only if you pass it a couple of extra options, e.g.

AUTOBUILD_CONFIGURE_EXTRA="--enable-trace --enable-libffmpeg_static --enable-libx264" ./Autobuild.sh -t <target>

EDIT

There appears to be a place for this in Nils' build script as well.

RE: TVH update scripts - Added by Michael Kongedam almost 9 years ago

Hi Prof Yaffle

I thught I should use this command
AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh -t precise-amd64

What does the "--enable-libx264" do?

RE: TVH update scripts - Added by Prof Yaffle almost 9 years ago

I believe it's the difference between whatever h.264 support ffmpeg includes (or looks for on your system by searching for libx264) versus grabbing the current version of x264 'natively' and compiling it in as part of the static ffmpeg elements. Don't quote me on that, though.

RE: TVH update scripts - Added by Michael Kongedam almost 9 years ago

Do you know what I need to change in the scripts to make this work?
AUTOBUILD_CONFIGURE_EXTRA="--enable-trace --enable-libffmpeg_static --enable-libx264" ./Autobuild.sh -t <target>

RE: TVH update scripts - Added by Prof Yaffle almost 9 years ago

tvhbuild.sh, lines 27-29:

# TVH Autobuild flags for Transconding uncommt line to use and comment out second line
#flag=AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static
flag=

... so there's a clue :)

You can just switch the two flag= lines, or try adding the --enable-libx264 option as well (and --enable-libx265 if you want to collect the full set).

Note that those are just the flags, so the equivalent of the AUTOBUILD_CONFIGURE_EXTRA="...." bit in my command line, above (i.e. it doesn't include the <target> bit).

    (1-8/8)