Comments (4)
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.
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.
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.
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)
- mp4 stream HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hdhrtv.