video-streaming

NetStream.appendBytes

谁都会走 提交于 2020-01-13 11:17:07
问题 I have a netConnection connected to a Flash Media Server. I am trying to use the new appendBytes function from Flash Player 10.1 to stream a local FLV file to FMS. I'm having issues however... Documentation I get online function playFile(data:ByteArray):void { // data is bytearray data from an already loaded FileReference object netStream.play(null); netStream.appendBytesAction(NetStreamAppendBytesAction.RESET_BEGIN); netStream.appendBytes(data); } However, I'm getting an error with the

Playing RTMP stream with VideoJS player

亡梦爱人 提交于 2020-01-13 07:04:27
问题 I'm trying to play RTMP stream with VideoJS player, below is my code: <head> <link href="http://vjs.zencdn.net/6.2.0/video-js.css" rel="stylesheet"> <!-- If you'd like to support IE8 --> <script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script> </head> <body> <video id="my-video" class="video-js" controls preload="auto" width="640" height="264" data-setup='{"techorder" : ["flash"]}'> <source src="rtmp://184.72.239.149/vod/mp4/BigBuckBunny_115k.mov" type="rtmp/mp4"> <p class=

Playing RTMP stream with VideoJS player

…衆ロ難τιáo~ 提交于 2020-01-13 07:03:08
问题 I'm trying to play RTMP stream with VideoJS player, below is my code: <head> <link href="http://vjs.zencdn.net/6.2.0/video-js.css" rel="stylesheet"> <!-- If you'd like to support IE8 --> <script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script> </head> <body> <video id="my-video" class="video-js" controls preload="auto" width="640" height="264" data-setup='{"techorder" : ["flash"]}'> <source src="rtmp://184.72.239.149/vod/mp4/BigBuckBunny_115k.mov" type="rtmp/mp4"> <p class=

.h264 sample file

本秂侑毒 提交于 2020-01-13 06:53:27
问题 I'm currently using files here, but I get some errors while testing my program. I just want to see if it fails only with this one or with all other .h264 files. So, are there any other sources where I can download (standard) .h264 sample files for test ? Thanks. 回答1: Option 1: make your own with x264. These are not standard sample files, but you can control which parts of H.264 they use, for example different profile/level/etc, make them I-frame-only, make them have only a particular

How to play streaming video using Dropbox API?

家住魔仙堡 提交于 2020-01-13 06:38:40
问题 Now I develope application that play video streaming. My video fild uploaded at dropbox and using Dropbox Core API and media method. Media method , Core API What I made code is this. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); AndroidAuthSession session = buildSession(); mDBApi = new DropboxAPI<AndroidAuthSession>(session); checkAppKeySetup(); btn_con=(Button)findViewById(R.id.con_btn); btn_con

Non IDR Picture NAL Units - 0x21 and 0x61 meaning

落花浮王杯 提交于 2020-01-13 05:38:30
问题 Does anyone know what does 0x21 and 0x61 means in h.264 encoded video stream? I know that 0x01 means it's a b-frame and 0x41 means it's a p-frame . My encoded video gives me two 0x21 frame followed by one b-frame . I 21 21 B 21 21 B...... What is this 0x21 ? 回答1: From H.264 spec: 7.3.1 NAL unit syntax forbidden_zero_bit - 1 bit - shall be equal to 0. nal_ref_idc - 2 bits - not equal to 0 specifies that the content of the NAL unit contains a sequence parameter set [...] nal_unit_type - 5 bits

Rails send_file don't play mp4

元气小坏坏 提交于 2020-01-13 03:56:10
问题 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

How to change framerate when using MediaRecorder Class

强颜欢笑 提交于 2020-01-12 05:21:46
问题 I try to record video using MediaRecorder Class. However I find out that I failed to lower the framerate of the video stream. I'm using H.264 as my Video Encoder and AAC as my Audio Encoder(yes, it is supported in API LEVEL 10 and above, AKA Android 2.3.3+) The main source is as follows. recorder = new MediaRecorder(); recorder.setPreviewDisplay(surfaceHolder.getSurface()); recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); //set

How to stream over RTMP on Android?

ⅰ亾dé卋堺 提交于 2020-01-12 03:27:11
问题 I'm trying to play video file on a remote server. Video format is flv and server is Flash Media Server3.5. I'm going to connect to server over RTMP and to implement the palyback of video file using Android Media Player. Really,is it possible? Any help is my pleasure. 回答1: http://www.aftek.com/afteklab/aftek-RTMP-library.shtml I found this one, but haven't had much luck, there are very few docs and after jigging it to try and support Video (no examples as i can see) i found that the core

Stream realtime video between 2 computers using Python

余生颓废 提交于 2020-01-11 15:30:56
问题 I am trying to send my macbook air webcam video in realtime and receive it using python on another computer . The motivation for this is to be able to offload realtime image recognition tasks to a server. The server requires having access to the realtime video frames in python so that I can then pass the frames to my image recognition algorithm (a deep neural net). I was able to do this successfully using https://github.com/atuldo/videoStream which uses the socket library to send the video