I think the proper way to do it is to use xuggle to encode to an rtmp stream which you can then publish with a streaming server like red5.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-05-09
I am very new to video streaming but is that the only solution? As of right now I am encoding each processed frame using xugglevideowriter save about 20sec worth of frame and encoding it as a .mov and then uploading to server. So each upload has about 20sec worth of playtime.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I guess it really depends on what you're trying to accomplish; if you want actual streaming video, then I think that is a pretty standard approach. If you don't care about framerate, then you could get away with uploading a still frame, and writing a web-page that periodically displays the latest picture. I'm definitely not an expert in this area though, so there might be other alternatives that I'm unaware of...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-05-14
The ultimate goal is to record video from webcamera and upload to server for storage after analyzing each frame lived. My issue is I don't know the fastest way to upload the video as it is being analyzed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know of any standard ways of doing this - you need a video format that allows new frames to be written to the end of the file. Perhaps you could do something using the Motion JPEG format (essentially it's a video file made up of multiple JPEG compressed frames) and have the server append each frame to the file. Unfortunately you wouldn't get very good compression, so the video file is likely to be massive.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-05-14
thanks for pointing out motion Jpeg I think that might be the way I will go about doing it. I really appreciate your response.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to draw a shape on each frame and upload to server frame by frame what is the best approach to do this?
I think the proper way to do it is to use xuggle to encode to an rtmp stream which you can then publish with a streaming server like red5.
I am very new to video streaming but is that the only solution? As of right now I am encoding each processed frame using xugglevideowriter save about 20sec worth of frame and encoding it as a .mov and then uploading to server. So each upload has about 20sec worth of playtime.
I guess it really depends on what you're trying to accomplish; if you want actual streaming video, then I think that is a pretty standard approach. If you don't care about framerate, then you could get away with uploading a still frame, and writing a web-page that periodically displays the latest picture. I'm definitely not an expert in this area though, so there might be other alternatives that I'm unaware of...
The ultimate goal is to record video from webcamera and upload to server for storage after analyzing each frame lived. My issue is I don't know the fastest way to upload the video as it is being analyzed.
Do you want the video file on the server to just get bigger over time and have users always play it from the beginning?
yes but i want the sending of each frame to be sent to server as soon as it finished processing.
I don't know of any standard ways of doing this - you need a video format that allows new frames to be written to the end of the file. Perhaps you could do something using the Motion JPEG format (essentially it's a video file made up of multiple JPEG compressed frames) and have the server append each frame to the file. Unfortunately you wouldn't get very good compression, so the video file is likely to be massive.
thanks for pointing out motion Jpeg I think that might be the way I will go about doing it. I really appreciate your response.