video-streaming

Capture video from vlc command line with a stop time

爱⌒轻易说出口 提交于 2019-12-21 23:06:03
问题 I'm trying to capture a video from an RPT stream to my pc (Ubuntu 12-04 LTS). I'm using vlc from command line as below: cvlc -vvv rtp://address:port --start-time=00 --stop-time=300 --sout file/ts:test.ts but vlc ignores the command --stop-time and it continues to download video even more than 300 seconds as specified. Does anyone know the reason for this? and a possible solution? Thanks 回答1: If you know the start-time and the end-time you can compute the record time. You can afterward use the

WebRTC: What is RTPFragmentationHeader in encoder implementation?

笑着哭i 提交于 2019-12-21 21:24:53
问题 I have modified h264_encoder_impl to use nvidia grid based hardware encoder. This is done by replacing OpenH264 specific calls with Nvidia API calls. Encoded stream can be written to file successfully but writing _buffer and _size of encoded_image_ are not enough and RTPFragmentationHeader also needs to be filled. // RtpFragmentize(EncodedImage* encoded_image, // std::unique_ptr<uint8_t[]>* encoded_image_buffer, // const VideoFrameBuffer& frame_buffer, // SFrameBSInfo* info, //

nvEncRegisterResource() fails with -23

夙愿已清 提交于 2019-12-21 20:54:29
问题 I've hit a complete brick wall in my attempt to use NVEnc to stream OpenGL frames as H264. I've been at this particular issue for close to 8 hours without any progress. The problem is the call to nvEncRegisterResource() , which invariably fails with code -23 (enum value NV_ENC_ERR_RESOURCE_REGISTER_FAILED, documented as "failed to register the resource" - thanks NVidia). I'm trying to follow a procedure outlined in this document from the University of Oslo (page 54, "OpenGL interop"), so I

Java multimedia streaming via HTML5 video element

与世无争的帅哥 提交于 2019-12-21 20:44:38
问题 I am trying to allow my Java backend to "stream" video files (MP4, etc.) to browsers. I was worried that I would have to write really complicated, low-level-practically-NIO type code like: public class VideoController extends HttpServlet { @Override public void doGet(HttpServletRequest req, HttpServletResponse resp) { File f = new File("/opt/videos/video19394.mp4"); PrintStream ps = resp.getWriter(); while(still reading f) { writeTheVideoBytesToStream(f, ps); } } } But it seems like this is

Online video streaming

左心房为你撑大大i 提交于 2019-12-21 20:22:37
问题 I want to make a video site in which we can upload the video in any format and display it like youtube. How can I do this? My whole site is in PHP I'm a newbie in the video streaming sp plz be descriptive with your answer Thanks 回答1: First you need a VideoPlayer written in Flash / Actionscript, there are also a lot of free ones arround in the internet, e.g.: FlowPlayer, You also could write you own. You acctually do not net to buy Flash for this. The Flash/Flex compiler mxmlc is available for

How to save video stream using VLC in commandline?

瘦欲@ 提交于 2019-12-21 19:47:09
问题 I'm trying to save online video using VLC in command line on Window 7 Basic. Here are few things I tried and worked partially: I:\movies> vlc http://media.ch9.ms/ch9/7492/a92ae0a6-7b81-4114-b102aa055d147492/E2EMeijerBrachaDartMonadsContinuations.wmv --sout="#duplicate{dst=std{access=file,mux=wmv,dst='file.wmv'}, dst=display}" It plays the video while streaming, and it also saves the stream to file.wmv . But the saved video doesn't have audio! The command worked partially. Another try for

How to save video stream using VLC in commandline?

折月煮酒 提交于 2019-12-21 19:46:45
问题 I'm trying to save online video using VLC in command line on Window 7 Basic. Here are few things I tried and worked partially: I:\movies> vlc http://media.ch9.ms/ch9/7492/a92ae0a6-7b81-4114-b102aa055d147492/E2EMeijerBrachaDartMonadsContinuations.wmv --sout="#duplicate{dst=std{access=file,mux=wmv,dst='file.wmv'}, dst=display}" It plays the video while streaming, and it also saves the stream to file.wmv . But the saved video doesn't have audio! The command worked partially. Another try for

Live streaming video latency

纵饮孤独 提交于 2019-12-21 17:24:23
问题 Trying to determine what's "most" responsible for latency - the round trip my video makes from my encoder, to my server, and back down to the player in my browser. I'm at about 12 seconds right now with a player I like. Is it buffering in my player? Buffering on the way out by FMLE? The reason I ask is I feel I've eliminated other culprits with my little test scenario outlined below. And also, all else equal, swapping other players in produces the greatest variance in the latency. One takes

Live streaming video latency

混江龙づ霸主 提交于 2019-12-21 17:22:08
问题 Trying to determine what's "most" responsible for latency - the round trip my video makes from my encoder, to my server, and back down to the player in my browser. I'm at about 12 seconds right now with a player I like. Is it buffering in my player? Buffering on the way out by FMLE? The reason I ask is I feel I've eliminated other culprits with my little test scenario outlined below. And also, all else equal, swapping other players in produces the greatest variance in the latency. One takes

How to stream videos through HTML5?

微笑、不失礼 提交于 2019-12-21 17:01:34
问题 I need to stream videos through HTML5. Is that possible, are there any free sources to try that into my own application? Thanks! 回答1: If you mean just deliver video like Youtube or any other video site, you just use the <video> element to deliver it. Its pretty much like displaying an image (JPEG). Its just progressively downloaded to the user's browser. More details about Video at Dive into HTML5. However, if you mean live-stream or streamed to a user such that its not really downloaded, I'm