GithubHelp home page GithubHelp logo

theopponent / mr-otcs Goto Github PK

View Code? Open in Web Editor NEW
68.0 68.0 10.0 263 KB

Automated video looping, streaming, and schedule generation

License: MIT License

Python 95.43% HTML 4.57%
ffmpeg python streaming video

mr-otcs's People

Contributors

neckro avatar theopponent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mr-otcs's Issues

./ffmpeg.sh: line 16 error

Hello mate.

Hope you can help me out here. I'm setting this up on a small Ubuntu VM but I've run into a small issue when starting ./ffmpeg gives the error...

root@Ubuntu20:/home/joe/mr-otcs-1.5.2# ./ffmpeg.sh ./ffmpeg.sh: line 16: ts: command not found

Nginx is running with the RTMP module, stream key is working and paths are set correctly.

Media playback save states

  • Keep track of elapsed time in play_index.txt, writing total playback time in seconds every 30 seconds or so
  • If return code of media player is non-zero, play the file again but starting from the saved time
  • Only skip files if this fails within RETRY_ATTEMPTS times

Connection loss detection isn't reliable

For unknown reasons, the relay ffmpeg process will fail to reconnect to the third-party RTMP destination following a disconnect, requiring a restart of ffmpeg.sh.

RTMP process ended unexpectedly

I've attempted to make a docker container for mr-otcs to run on a Synology NAS and am getting the following errors looping forever that aren't clear as to the cause.

[Info] RTMP process started on 2023-10-21 17:24:02.933743.
[Play] 1. /videos/test.mkv - Length: 0:04:48.
[Info] 47:54:10 left before restart.
[Info] Encoding started on 2023-10-21 17:24:03.004853.
[Error] RTMP process ended unexpectedly on 2023-10-21 17:24:03.415517, exit code 1. Restarting stream.
[Error] Stream interrupted. Attempting to restart.

I realize that's out of the scope of your project, but was hoping you may have had some insight where to look to find what's happening to the stream.

Video files with mismatching framerates cause loss of audio in RTMP stream

When encoding videos with differing framerates, such as 60 FPS to 30 FPS, after the higher framerate video finishes and the lower framerate video begins, the stream loses audio until it is restarted manually. Changing the video encoding parameters on either the encoding or RTMP processes does not appear to resolve the issue.

List validation

Check if there's at least one actual filename in MEDIA_PLAYLIST. Infinite loop happens if the playlist has no valid entries.

Error running python script

When running the python script I keep getting this error message

[NULL @ 0x2996aa0] Failed to parse extradata
[h264_omx @ 0x29ab1c0] /opt/vc/lib/libopenmaxil.so not found
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

Would you have any idea what could be wrong with this?

Option to exclude videos from schedule

For certain types of videos like station breaks or commercials, it may not be desirable to add them to the schedule. For these videos, allow the user to define a file name pattern that excludes matches from getting added to the schedule. Their lengths will still be calculated and added to the length of the previous file so that subsequent videos are offset properly.

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.