Skip to main content

Timeline for How to connect to a video stream?

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Jun 10, 2018 at 11:17 vote accept mikeonly
Jun 6, 2018 at 13:40 answer added Arnoud Buzing timeline score: 6
Jul 14, 2015 at 22:52 comment added user9444 I use ffmpeg to stream raw data (sequential rgb int array) to TCP/IP socket and then read the data from a Java process. I process it and then do the same thing in the other direction to create a new movie. I assume you could do the same thing with Mathematica using JLink. I'm not putting this as an answer because there are too many unanswered details. It's just one possible direction.
Jul 9, 2015 at 22:24 history tweeted twitter.com/#!/StackMma/status/619271016133607424
Jul 9, 2015 at 16:45 comment added mikeonly @Szabolcs So I've managed to get decoded stream using VLC from the RSTP. Could you please elaborate on how to work with this stream in Mathematica?
Jul 9, 2015 at 14:35 comment added rcollyer There is no built-in functionality, but you can build the functionality necessary by using the stream methods introduced in v9. I have not used them, but there is a tutorial.
Jul 9, 2015 at 13:21 comment added Szabolcs In theory this might (or might not) work: check VLC (in partcular cvlc) documentation on how to send decoded output to a pipe. Create a named pipe (if you're on a Unix-like system), and pipe the output in there. Use Mathematica's BinaryRead or related functions to read frames one by one. Mathematica has no builtin functionality to read from video streams. This is what'd I look into first if I really had to do this, but honestly, it's a long shot.
Jul 9, 2015 at 13:10 history asked mikeonly CC BY-SA 3.0