Git Product home page Git Product logo

mythpodcaster's Introduction

MythPodcaster

Transcoder & RSS Publisher for MythTV Recordings

The MythTV Digital Video Recorder (DVR) is a great platform for recording and watching video content at home. But wouldn't it be great to access your recordings from your mobile device or computer when you're away?

The MythPodcaster application allows you to transcode (convert) your MythTV recordings into any number of audio and video formats automatically. The recordings are published in standard RSS feeds that can be imported into most media players, such as iTunes. Recordings are also published in customizable HTML5 web pages that you can access with any browser.

MythPodcaster is a Java application that runs in a Docker container. Do you use Mythbuntu? A custom Fedora installation? Unfamiliar with installing and running Java applications? No problem! The magic of Docker makes it easy to install MythPodcaster. The Docker image includes the MythPodcaster application and all of the tools (FFmpeg, etc) needed to transcode your recordings.

Installation

  1. Install Docker

  2. Download the latest MythPodcaster Docker image:

    sudo docker pull urlgrey/mythpodcaster:v1.0.3

  3. Create local directories for MythPodcaster settings:

    sudo mkdir /var/mythpodcaster
    sudo mkdir /var/mythpodcaster/rss
    sudo mkdir /var/mythpodcaster/config
    sudo mkdir /var/mythpodcaster/log
  4. Add the following configuration files:

    cd /var/mythpodcaster/config
    sudo wget https://raw.githubusercontent.com/urlgrey/mythpodcaster/master/src/main/conf/mythpodcaster.properties
    sudo wget https://raw.githubusercontent.com/urlgrey/mythpodcaster/master/src/main/conf/transcoding_profiles.xml
    sudo wget https://raw.githubusercontent.com/urlgrey/mythpodcaster/master/src/main/conf/log4j.xml
    sudo wget https://raw.githubusercontent.com/urlgrey/mythpodcaster/master/src/main/conf/feed_file_transformation.xslt
    sudo wget https://raw.githubusercontent.com/urlgrey/mythpodcaster/master/src/main/conf/subscriptions.xml
  5. Edit the /var/mythpodcaster/config/mythpodcaster.properties file to include the database connection information. Example:

    hibernate.connection.driver_class=com.mysql.jdbc.Driver
    hibernate.connection.url=jdbc:mysql://192.168.1.100/mythconverg
    hibernate.connection.username=mythtv
    hibernate.connection.password=mythtv
    hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
  6. Run the Docker image with mapped volumes pointing to the directories created earlier, as well as the directories containing your MythTV recording (e.g. /mnt/media, /mnt/media2, ...).

    sudo docker run -d -P \
      -v /var/mythpodcaster/config:/etc/mythpodcaster \
      -v /var/mythpodcaster/log:/var/log/mythpodcaster \
      -v /var/mythpodcaster/rss:/var/mythpodcaster/rss \
      -v /mnt/media:/mnt/media \
      -p 8080:8080 \
      urlgrey/mythpodcaster:v1.0.1
  7. Tail the MythPodcaster log to verify that it starts up without errors:

    tail -f /var/mythpodcaster/log/mythpodcaster.log

  8. Access the web interface to configure your recording rules:

    http://<IP or hostname of MythTV machine running Docker>:8080/mythpodcaster

mythpodcaster's People

Contributors

urlgrey avatar skidder avatar

Stargazers

Marlon Moyer avatar VargMon avatar  avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

wsuetholz

mythpodcaster's Issues

MySQL 5.7 sql_mode=only_full_group_by problem

Hello again. When changing from MySQL 5.5 to 5.7, I was getting errors like:

2020-08-09 16:35:30,590 ERROR [MythPodcasterTranscodingThread-1] util.JDBCExceptionReporter (JDBCExceptionReporter.java:234) - Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'mythconverg.recordedse0_.recgroup' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

A bit of web searching finds articles such as https://www.percona.com/blog/2019/05/13/solve-query-failures-regarding-only_full_group_by-sql-mode/ which explain the issue and why apps that newly use MySQL 5.7 (and higher) stop working.

As I understand it, the best fix is to correct the queries, but I don't really know how to do that. Instead, by following https://stackoverflow.com/questions/41889899/disable-only-full-group-by-in-hibernate I added "?sessionVariables=sql_mode=''" to the end of the JDBC connection string, which stopped the errors.

This seems a bit hacky though, so maybe you can fix this in the code?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.