-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input from STDIN and spooling through audio/video. #109
Comments
I will try to put something together, but I am more than happy to receive a PR if you want to. |
@Demonstrandum I have pushed fbae38e, can you check the
|
Hi, it might just be me but it doesn't seem to completely work. It even goes so far as to say it's streaming and I see a loading animation on the TV however it stops and then goes back to the default casting logo home screen. I know streaming with seekable formats like
But yet it did not work. One thing I saw when trying was the line:
The video format should be |
Chromecast does not support |
Trying with |
I will try this again, you are right that it is not working. I will get back to you. Thanks for being so responsive. |
@Demonstrandum I have made a test. This is working for me:
The small flag that I implemented is working when I use the command above. This means that one has to find the right " ffmpeg command" that can be used to pipe correctly. I will let you know if I find how (you do the same if you can please). Then we can proceed to modify the documentation accordingly. |
* devel: (98 commits) - Cleaning some of the modules. - I moved checkmktmp() and writePidFile() functions from __init__.py to utils.py. New `--loop` flag added to repeat videos when using ffmpeg or avconv. Related to #113. Updated version.py. Updated changelog. Fixed NameError found by Peter Meiser when no devices are found. start_tray functions were fixed for macOS bundle. Preparing release 0.3.8. Changed help about --command flag. - Node updated to 9.3.0 for macOS. - systray.py now imports sys. Now all code is PEP8 and Pyflakes clean. Removed app.py for this release. I added the --video flag to the --command example. New flag `command` for setting a custom ffmpeg command. Closes issue #109. audio.py is not PEP8 and pyflakes clean. This commit the `segment_time` flag has been fixed. Closes issue #71. Changelog updated. Minimal changes. mkchromecast.py is now PEP8 clean. Fixing TypeError in cast.py. Allow custom server port with ffmpeg or avconv. Related to #122. ...
@Demonstrandum did it work for you? |
Any comment on the second part of the question about being able to seek within the video? I understand that jumping around in the video stream is non-trivial if the video is being transcoded/encoded on the fly. But given a H.264/AAC file which the chromecast can play natively it probably shouldn't be too hard. (Seeking would usually happen from the Google Home app.) |
@muammar Sorry for the slightly late response, but, no I can't seem to get it to work. 😞 |
Take input from
STDIN
from a pipeI was wondering if piping the video data directly to mkchromecast through
stdin
would be possible.e.g. data from the webcam:
I couldn't find an way of doing this, so instead I recorded it to a separate file with
then in a separate shell session I streamed it:
which of course results in a huge delay as it reads form the beginning of the file, and the beginning was
mkchromecast
connecting.This brings me on to my next question:
Spooling
Is there any way to spool backwards and forwards from whatever file it's reading, perhaps a way to go back to the beginning of the file or go to the very end (useful for streaming continuously growing file like from a webcam).
I don't know if any of this seems reasonable.
The text was updated successfully, but these errors were encountered: