video-streaming

Rails send_file don't play mp4

女生的网名这么多〃 提交于 2019-12-04 10:45:15
I have a Rails app that protects the uploaded videos putting them into a private folder. Now I need to play these videos, and when I do something like this in the controller: def show video = Video.find(params[:id]) send_file(video.full_path, type: "video/mp4", disposition: "inline") end And open the browser(Chrome or FF) at /videos/:id it doesn't play the video. If I put the same video at the public folder, and access it like /video.mp4 it will play. If I remove the dispositon: "inline" it will download the video and I can play it from my computer. Samething happens with webm videos. What am

Android RTSP Live Streaming Issue

一笑奈何 提交于 2019-12-04 10:24:43
Android Video Live Streaming Problem I am using Vitamio library. The RTSP streaming is working well, Now I want to record that RTSP live streaming in my SD card locally. please help !!! Or can i use media recorder to record RTSP live streaming ? Media Recorder is not the good way to record RTSP video, I have used the FFMPEG library to record RTSP recording locally in sd card. Steps to do this. Capture or decode the RAW frames from live stream and pass them to ffmpeg and save them to sdcard in .h264 format. Then again pick .h264 raw file and decode the file using ffmpeg, and save the file with

ffmpeg AVFrame to opencv Mat conversion

和自甴很熟 提交于 2019-12-04 09:51:48
I am currently work on a project which decode the received frame using ffmepg, after decode, I want to convert the AVFrame to opencv Mat frame so that I can play it on the imShow function. What I have is the byte stream, I read it into buffer, decoded to AVFrame: f = fopen(filename, "rb"); if (!f) { fprintf(stderr, "Could not open %s\n", filename); exit(1); } frame = avcodec_alloc_frame(); if (!frame) { fprintf(stderr, "Could not allocate video frame\n"); exit(1); } framergb = avcodec_alloc_frame(); if (!framergb) { fprintf(stderr, "Could not allocate video frame\n"); exit(1); } bytes

Video Streaming on Blackberry

不问归期 提交于 2019-12-04 09:47:51
问题 Is there any way to stream and play video files from the server? Does blackberry provide any built-in video player where I can play the streamed video? 回答1: Yes you can. There are two ways to stream video on bb device: using javax.microedition.media.Player from jsr-135 using standard Media Application See How To - Play video within a BlackBerry smartphone application You can test it over BlackBerry browser on http://m.youtube.com How to watch YouTube Videos on BlackBerry Bold 9000 You will

Use MediaCodec for H264 streaming

北城余情 提交于 2019-12-04 09:43:30
问题 I'm currently trying to use Android as a Skype endpoint. At this stage, I need to encode video into H.264 (since it's the only format supported by Skype) and encapsulate it with RTP in order to make the streaming work. Apparently the MediaRecorder is not very suited for this for various reasons. One is because it adds the MP4 or 3GP headers after it's finished. Another is because in order to reduce latency to a minimum, hardware accelaration may come in handy. That's why I would like to make

Streaming Avi files from C# using RTP

天大地大妈咪最大 提交于 2019-12-04 09:37:03
问题 I have a read/seek input stream of a video file (.avi mpeg4\xVid\ect..) in C# and I would like to stream it to a video player with jump to moment X feature enabled. How can I implement this? I heard that RTP might be a good protocol. What I'm really looking for is a library in C# that will help me out. Thanks in advance. 回答1: Yes, Streamcoders solution is very good if you have some €1890. But if you do not want to pay money you should look at some free libraries or write your own from scratch

how to show the progress bar before playing the video

£可爱£侵袭症+ 提交于 2019-12-04 09:34:45
问题 i want to show the progress dialog before playing video. i tried below link example for playing video. http://davanum.wordpress.com/2009/12/04/android-%E2%80%93-videomusic-player-sample-take-2/ it works but it takes more time to take for playing video so i want to show a progress dialog before start the video. so please tel me how to show the progress dialog before playing the video. Thank you. Best Regards. 回答1: First, declare the progress dialog private static ProgressDialog progressDialog;

How to stream video in android device via .sdp file from android device

╄→尐↘猪︶ㄣ 提交于 2019-12-04 09:29:45
I had anapplication to stream video(without audio) from android device(Blaze board) to PC. For that, I'm using vlc player to view streamed video by using the following command in command line vlc stream.sdp This .sdp file would be generated from my application. By using the above command, I can stream from blaze board to PC with the delay of 1 sec. Now, My problem is that, I have to stream from one blaze board to another blaze board. I have searched a lot. But, Nothing is worked. I have an idea to write viewer application ( For client ). This application will use sdp file path as url. I refer

Video Streaming Website Development [closed]

那年仲夏 提交于 2019-12-04 09:26:56
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . This is the first time I am going to work on full-flagged video website development in my life and no idea about streaming technology and related stuffs. I have no issue with html, css, js, php and other video or any art related tool and familiar with JW Player too. Now my

WOWZA + RTMP to play on Multiple Devices?

血红的双手。 提交于 2019-12-04 09:04:22
I'm still a newbie to Wowza/Streaming but when i setup everything (RHEL + Wirecast), i can somehow stream-out/broadcast from my home pc to EC2 Server. As i followed according to Wowza Live-Streaming Tutorial, i used RTMP and after that all i got FOR PUBLIC (Viewer) side are: rtsp ://xx.xx.xx.xx:1935/live/myStream http ://xx.xx.xx.xx:1935/live/myStream/playlist. m3u8 That means, i can ONLY PLAY via Flash and iOS. But on Androids and Windows Phones , there is NO FLASH supported. Now my very basic questions are (may be i'm missing out something, but): When i stream RTMP , do i only get two such