-
Notifications
You must be signed in to change notification settings - Fork 244
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
Constantly buffering when transcoding #45
Comments
Yes, the controls are currently disabled in trancode mode (it's also mentioned in the README). The transcoding is done 'on the fly'. |
Hrmm... well I'm not sure how easy javascript async IO is to fanagle, but if you just read in the output of As a test I created a fifo (just by using I'll try looking at the code later today, but javascript is gibberish to me! |
That sounds cool! I would definitly prefer a small fifo buffer over an temp file if that does the job. |
@mynameisfiber
The pipe.mp4 stays at a filesize of 0. |
@xat I don't think a named pipe is necessary for this. Node streams should take care of this for you automatically. When you send a pause command to Chromecast, Chromecast should stop reading from the http socket. This will cause the You can also manually control back pressure by using This should work in theory. I haven't really tested this out and am not near a Chromecast to do so right now. However, in my experience pausing transcoded streams seems to work just fine. (Seeking does not, of course.) |
@parshap Yes, I also would have thought that this should just work by piping the the output of ffmpeg to the response. However, once you hit pause the video gets stuck and your not able to resume it again. Thats why I was interested in seeing if it really works when creating the buffer with mkfifo. |
@parshap Since you mentioned seeking, we had some thoughts on that over here xat/chromecast-scanner#2 (but I also don't think we will get this to work atm) |
I've created a new issue to discuss playback control of transcoded files: #58. Sorry for creating yet another issue but hopefully this will get the conversation going in one place. Feel free to close the new issue if you think otherwise. |
+1 makes perfectly sense to bundle the discussions around this topic at one place. |
Hi.
Update: using Update: using |
Whenever I cast a file with the
--tomp4
option, the state constantly says "Buffering..." even though the video is playing smoothly. In addition, this doesn't let me use any of the key-bindings to pause or seek.The text was updated successfully, but these errors were encountered: