GithubHelp home page GithubHelp logo

Comments (4)

bkirkman avatar bkirkman commented on June 22, 2024

I was rather surprised this worked on my machine. It seems too simplistic.
What distro are you using? Are you able to start viewing in your browser
then
'ps aux ¦ grep ffmpeg' to see if it's running? I'm out of town this weekend
so won't be able to look into it much.

Have you tried the direct url to the hdhr from your browser or vlc to see
if it's streaming?

from hdhrtv.

april-kelly avatar april-kelly commented on June 22, 2024

I am using Ubuntu 13.10 with php 5.5.3-1ubuntu2.1 and Apache 2.4.6, It does appear that ffmpeg is running (I see a process when I run ps aux | grep ffmpeg). I can assume that ffmpeg and my HD Homerun Prime are working because when I change /dev/stdout 2>/dev/null to a file such as test.flv and then view it either with vlc or flowplayer in your application (although flowplayer seems to have some issues with this solution, as it freezes and has to be reloaded) it works. I have also tried running a php file with just passthru and the ffmpeg command with the same results, however if I run the file from the command line using php -f, it seems to work fine (I see output on the console). This suggests to me that it might be a configuration error in either php or apache which is preventing passthru from working correctly. I asked about this on stack overflow http://stackoverflow.com/questions/20586988/php-ffmpeg-flv-stream-passthru and have not received and any answers which explain why passthru will not work.

However, there is a good suggestion on stack overflow about using ffserver to stream the content instead, which I am looking into.

from hdhrtv.

april-kelly avatar april-kelly commented on June 22, 2024

I probably should mention that I have also tried this on my windows machine, to no avail. I replaced /dev/stdout 2>/dev/null with con, and I once again get output on the console but not via passthru().

from hdhrtv.

april-kelly avatar april-kelly commented on June 22, 2024

Yes!!!
I just figured it out, ffmpeg was not in the path of the www-data user on my computer (presumably because I compiled and installed it myself), so I added a optional path to ffmpeg in the in the config file. Check it out on my fork https://github.com/liam-kelly/hdhrtv

from hdhrtv.

Related Issues (2)

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.