w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to remove stream video in next scene AS3
video.attachCamera( null ) stops audio and video but the last frame remains in the video. you should just video.visible = false afterwards so you don't see that frame. there's a bug where clear() doesn't do what it should.

Categories : Actionscript

Android rotate video post production
Use mp4parser library to change the orientation of the whole file. Use 1.0-RC-24 API for doing this: IsoFile out = new DefaultMp4Builder().build(result); out.getMovieBox().getMovieHeaderBox().setMatrix(Matrix.ROTATE_180);

Categories : Android

Android Stream Video from url
Have you tried with Intent intent = new Intent(Intent.ACTION_VIEW); instead Intent intent = new Intent(Intent.ACTION_MAIN); I think it can helps you: Play youtube video from URL in android

Categories : Android

How to stream video across LAN in android VideoView
I've been able to play smb:// shares over the network in a VideoView by: Using JCIFS to scan for and "see" the share: http://jcifs.samba.org/ Implementing a simple HTTP server (NanoHttpd) to stream the content via http: https://github.com/NanoHttpd/nanohttpd Passing the http://localhost/myvideo link to the VideoView I realise this seems convoluted (and I agree) but it's the only way I've managed to get it working (and working well, with seeking, etc.). I'd be interested if there are better solutions.

Categories : Android

Android MP4 stream - Video cannot be played
Try this, it played the video for me <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <VideoView android:id="@+id/videoViewa" android:layout_width="match_parent" android:layout_gravity="center" android:layout_height="match_parent" /> VideoView videoView; videoView = (VideoView) findViewById(R.id.videoViewa); MediaController mediaController = new MediaController(this); mediaController.setAnchorView(videoView); //URI either from net Uri video = Uri.parse("http://www.fieldandrurallife.tv/videos/Benltey%20Mulsanne.mp4"); videoView.setMediaController(mediaController); vid

Categories : Android

Creating video from stream bitmap in android
I'm a little late here but yes there is a library for this. You can find it here, opencv for android . To integrate it with your android project, follow the instructions under "Quick Start for OpenCV and FFmpeg" The best part about this library is all of the jni wrapping is done for you. Although there is lack of documentation, there are a few links of similar projects to yours and how they accomplished it using this library which you can find here. Hope this helps.

Categories : Android

Playing RTSP Video stream with authentication Android
You can set your headers manually when using setDataSource (Context context, Uri uri, Map<String, String> headers). I'd guess (never worked with RTSP, yet) that you need an "Authorization" header with a base64-encoded username and password combination.

Categories : Android

Live mjpeg video stream from server to android
You are promted for a login because the webcam is password protected. Normally with webcams you have to pass the username and password as part of the URL. eg. username:password@ip.address.or.dyndns.com:8085/folder/stream.jpg?size=large where the number at the end is the port number.

Categories : Android

Stream video from iPhone to web server - compress and stream step
Take a look at http://www.gdcl.co.uk/2013/02/20/iOS-Video-Encoding.html. This sample uses an AVAssetWriter to encode the video from the camera to H264 and then uses RTSP/RTP to stream the data to a player.

Categories : Iphone

After rotation a box the box is different. (css transform preserve-3d rotate)
only use this: #category_wrapper.show-unten{ -webkit-transform: translateZ(-5px) rotateX(90deg); -moz-transform: translateZ(-75px) rotateX(90deg); -ms-transform: translateZ(-75px) rotateX(90deg); -o-transform: translateZ(-75px) rotateX(90deg); transform: translateZ(0px) rotateX(90deg); } the changes at last line see==> transform: translateZ(0px) rotateX(90deg); and use this: transform: rotateX(-100deg) translateZ(75px); //instead of -90 deg in class .unten i updated your jsfiddle =>Jsfiddle

Categories : CSS

How can I limit the rotation of a 3D object when touch is used to rotate it?
First of all, don't change the representation of the transformations. Matrices are the ideal choice for your scenario. Many other options are difficult to handle when chaining transformations. If you change existing code, you should be absolutely sure what you are doing. It is very likely that the previous programmer had his reasons to do it the way he did it. The idea I assume that the above method is called subsequently with quite small parameters. Then you could do the following: Save the old transformation Modify the transformation Project the modified object on the screen Check, if the result matches your constraints If not, revert the transformation to the previous one. This should work if the parameters are small enough. Otherwise, you will have to break down the transformatio

Categories : C++

Making this CSS3 animate rotation only rotate once
You're looking for -webkit-animation-fill-mode: forwards; which stops the animation at the end. You can read more about it here: Can't stop animation at end of one cycle

Categories : HTML

How to not to rotate a certain UIView allowing UIViewController's rotation
You can apply transformation to the view you don't want to rotate. Use following method to do it. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if(interfaceOrientation == UIInterfaceOrientationLandscapeRight) { view.transform = CGAffineTransformMakeRotation(-M_PI/2); } else if(interfaceOrientation == UIInterfaceOrientationLandscapeLeft) { view.transform = CGAffineTransformMakeRotation(M_PI/2); } return YES; }

Categories : IOS

I want to stream video from my webserver, but I only want it to stream when there is a viewer
Try Page Visibility API. Supported Browsers : http://caniuse.com/#feat=pagevisibility

Categories : Javascript

Pygame.transform.rotate scales istead rotation
Here are some helpful links: docs from the rotate function doc: "Unless rotating by 90 degree increments, the image will be padded larger to hold the new size." the solution is to crop the image after every rotation. You can crop by writing a small function that will create a new surface, and blit the middle part onto the new surface. This problem was already solved here: so

Categories : Python

rotate multiple UIViews around a center point with rotation gesture
You can use IQGeometry to easily create your complex algorithm. IQGeometry This framework contains all basic and some complex calculations for you. Straight Solution to your harder approach. 1) Rotate your view by CGAffineTransformMakeRotation. Say 45 degree. 2) Now use IQGeometry+CGPoint function to calculate new center point of your view. CGPoint CGPointRorate(CGPoint point/*CurrentCenterPoint of View*/, CGPoint basePoint/*Base Center Point around which we have to rotate*/, CGFloat angle/*Angle 45(Radian or angle try it your self)*/); 3) Set your view's center point to new centerPoint. and that's it. 4) Apply this algorithm to all your 4 views.

Categories : Iphone

remove the Video view's Seekbar in android
VideoView does not have a "Seekbar or Progressbar". If you attached a MediaController to the VideoView, that is what has a "Seekbar or Progressbar". If you do not want a MediaController, remove your code that added one to the VideoView.

Categories : Android

Live video stream using OGG video chunks
I don't believe there are many popular libraries for OGG encoding out there. However, it would probably be best to create your own. I would start here: http://tools.ietf.org/html/rfc5334

Categories : C#

Force iOS ViewController to rotate to device orientation after unlocking programmatic rotation lock
The key is 1) saving the current orientation to user defaults exactly like youre doing 2) all the rest of what you need to do is in your overridden methods of the view controllers you want to be lockable (for ios 6+, supportedInterfaceOrientations). Use your saved user defaults to return what orientations youre allowing based on if its locked or not. Then call attemptRotationToDeviceOrientation To tell your view controllers to call their methods again and reevaluate what rotation they should be in given the devices current rotation.

Categories : Iphone

How to rotate a video 90º in MPMovieplayercontroller
try with this: (I have made a subclass for MPMoviePlayerViewController) - (void)configureSubViews { if (self.moviePlayer.view.subviews.count > 0) { UIView *view = self.moviePlayer.view.subviews[0]; if (view.subviews.count > 0) { UIView *sView = view.subviews[0]; self.viewPlayerVideoContent = [sView viewWithTag:1002]; self.viewPlayerControls = [sView viewWithTag:1003]; } } } I don't really like to work in that way with the subViews, but it works.. (at least for iOS5 and iOS6) then, you could try to rotate the viewPlayersVideoContent :)

Categories : Iphone

Only rotate when playing Youtube video iOS 6
UPD2: Solution in this Added to your project lite fix in AppDelegate and share it this.

Categories : Objective C

Extract face rotation from homography in a video
The upper-left 2x2 of the homography matrix is a 2D rotation matrix. If you work through the multiplication of the matrix with a point (i.e. take R*p), you'll see it's equivalent to: newX = oldVector dot firstRow newY = oldVector dot secondRow In other words, the first row of the matrix is a unit vector which is the x axis of the new head. (If there's a scale difference between the frames it won't be a unit vector, but this method will still work.) So you should be able to calculate rotation = atan2(second entry of first row, first entry of first row)

Categories : Opencv

android animated-rotate won't rotate ccw
I think the point is if you use <animated-rotate> it is a non public API. I can't find any official documentation about it. and it is actually ignoring whatever values you put in fromDegrees and toDegrees. You can remove both attributes and it will still spin. You said you don't want to use rotate, but that is the only other simple XML answer I can find: <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@android:drawable/ic_lock_power_off" android:pivotX="50%" android:pivotY="50%" android:fromDegrees="0" android:toDegrees="-360" /> What is the reason for wanting <animated-rotate> and not <rotate> ? If you want to set a slower or faster frame count, you should check this answer here: http://stackoverflow.com/a/1499

Categories : Android

CAGradientLayer, not resizing nicely, tearing on rotation. (video of issue attached)
It will look better when you insert this piece of code and remove the willAnimateRotationToInterfaceOrientation:duration: implementation. - (void)viewWillLayoutSubviews { [[[self.view.layer sublayers] objectAtIndex:0] setFrame:self.view.bounds]; } This is however not very elegant. In a real application you should subclass UIView to create a gradient view. In this custom view you can override layerClass so that it is backed by a gradient layer: + (Class)layerClass { return [CAGradientLayer class]; } Also implement layoutSubviews to handle when the bounds of the view changes. When creating this background view use autoresizing masks so that the bounds automatically adjust on interface rotations.

Categories : Iphone

How to zoom and rotate webcam video which is streamed by html5 GetUserMedia API with canvas?
Update The reason why this won't work is as follows: when applying CSS transform on an element it will only be rendered by browser that way. If you try to use for example the video element and draw its content to canvas the original content will be drawn excluding the CSS transformation. So in order for this to work you will have to transform the canvas' context before drawing the video to it. For example - for this to be convenient you can use this function will set all the transforms before the video is drawn: function updateCanvas() { ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.clearRect(0, 0, canvas.width, canvas.height); ctx.translate(canvas.width * 0.5, canvas.height * 0.5); ctx.rotate(rotate * Math.PI / 180); ctx.scale(zoom, zoom); ctx.translate(-canvas.wid

Categories : Javascript

Video Stream Hosting
How are you streaming and what streaming protocol are you using? Server to server wont help in securing the video.it is better to stream the video direcly from your Server 2(video host) directly to the client,so that it wont be overhead for server 1(web page video embed).You need to use secure way to protect you video on server 2.if the server2 is not secure,even if you stream through server1 it wont help. Here are details of security level on different video streamings. If you are using progressive download.This can be done using normal http protocol.In this approach you would be able to see the video url in the browser.Once you got the url you can download it as a normal file download.Security is very low here.Even if you sign the video url,the user can download the video easily. Str

Categories : Security

stream video to web site asp.net
Please See Link which is given below How can I stream webcam video with C#? http://www.codeproject.com/Articles/7637/DirectX-Video-Stream-and-frame-capture

Categories : Asp Net

Stream video with CocoaHTTPServer
I fixed this problem by overriding httpHeaders of HTTPFileResponse like that : - (NSDictionary *)httpHeaders { NSString *key = @"Content-Disposition"; NSString *value = [NSString stringWithFormat:@"attachment; filename="%@"", [filePath lastPathComponent]]; return [NSDictionary dictionaryWithObjectsAndKeys:value, key, nil]; } It happens because HTTPFileResponse return video without extension. And MPMoviePlayerController can't read video without extension.

Categories : IOS

.htaccess/php to stream a video?
If you're not bound by apache, I've heard that ffserver is the way to go. You might also want to try nginx's nginx-rtmp-module. With apache, there's a streaming module as well. Lastly, you might just want to try one of the many CDN services. I know you said that you didn't want to use a service, but I felt that it was silly not to mention it. Many developers consider CDNs the default choice (including myself).

Categories : PHP

How to stream a mjpeg video on a website
I'm not sure how you send camerasterring commands, because I don't see the javascript code here. Anyway, I find here a good aproach (https://github.com/wilhelmbot/Paparazzo.js) for your case: JS: // JavaScript example using jQuery // Active camera will refresh every 2 seconds var TIMEOUT = 2000; var refreshInterval = setInterval(function() { var random = Math.floor(Math.random() * Math.pow(2, 31)); $('img#camera').attr('src', 'video.php?r=' + random);//send a random var to avoid cache }, TIMEOUT); Html: <img id="camera" src="video.php" width="640" height="480" /> This code is only to refresh img element in order to get a new image... Can you show us how you send requests to camera?

Categories : PHP

How to get video stream from webcam in emgu cv?
Not sure what you want to do with the data, but this will get you a single frame from the camera (and display it in a pictureBox on a WinForm) private void Form1_Load(object sender, EventArgs e) { var capture = new Emgu.CV.Capture(); using (var nextFrame = capture.QueryFrame()) { if (nextFrame != null) { pictureBox1.Image = nextFrame.ToBitmap(); } } }

Categories : C#

Passing input stream to video view
ok i have solved it myself but it has a 3 to 4 seconds delay before the video file starts Hope it helps some one : public static String getDataSource(String path) throws IOException { if (!URLUtil.isNetworkUrl(path)) { return path; } else { URL url = new URL(path); URLConnection cn = url.openConnection(); cn.connect(); InputStream stream = cn.getInputStream(); if (stream == null) throw new RuntimeException("stream is null"); File temp = File.createTempFile("mediaplayertmp", "dat"); temp.deleteOnExit(); String tempPath = temp.getAbsolutePath(); FileOutputStream out = new FileOutputStream(temp); byte buf[] = new byte[128];

Categories : Java

HTML 5 video recording and storing a stream
RecordRTC: WebRTC audio/video recording https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC Audio recording both for Chrome and Firefox Video/Gif recording for Chrome; (Firefox has a little bit issues, will be recovered soon) Demo : https://www.webrtc-experiment.com/RecordRTC/ Creating .webm video from getUserMedia() http://ericbidelman.tumblr.com/post/31486670538/creating-webm-video-from-getusermedia Demo : http://html5-demos.appspot.com/static/getusermedia/record-user-webm.html Capturing Audio & Video in HTML5 http://www.html5rocks.com/en/tutorials/getusermedia/intro/

Categories : Javascript

Creating http video stream using libVLC
Libvlc is the library to develop the application. vlc player is the client AND SERVER application to do that. If you just need to stream, use vlc media player as a server. You can find the command line / GUI steps if you google "vlc how to stream". Basically in the file open dialog you get the option to configure either to load a stream from another source or local file OR RUN your own application as a streaming server. The play button at the bottom of open dialog has a small button on the right to selec "stream" instead of play. But you need to have configured all options correctly to setup the type of stream you are looking for. Lastly, you can run another instance of vlc as client to test your stream locally.

Categories : Http

HTML5 player video won't stream when deployed
I think what you're looking to do is to enable Progressive downloads on your server. I don't know anything about your config but a google search will yield good results. Some more information: http://flash.flowplayer.org/plugins/streaming/pseudostreaming.html

Categories : C#

How to convert Live video stream from YUV(HDYC) to RGB
I am not sure why you tagged it with h.264, because HDYC is a flavor of UYVY pixel format, layout and subsampling, just with ITU-R Rec. 709 defined color space. So your question is how do you convert BT.709 YUV to RGB with FFmpeg. FFmpeg's libswscale can do this: its sws_scale does the conversion, and its sws_setColorspaceDetails lets you provide color space details for the conversion. /** * Scale the image slice in srcSlice and put the resulting scaled * slice in the image in dst. A slice is a sequence of consecutive * rows in an image. [...] */ int sws_scale(struct SwsContext *c, const uint8_t *const srcSlice[], const int srcStride[], int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]); /** [...] * @param table the yuv2rgb coef

Categories : C++

Video download/stream using Java servlet
The servlet which you found is indeed insuitable for the purpose of streaming a video file. It's more intented as a simple file download servlet for static files like PDF, XLS, etc. A lot of video players require that the server supports so-called HTTP range requests. I.e. it must be able to return a specific byte range of the video file by a request with a Range header. For example, only the bytes from index 1000 until 2000 on a file of 10000 bytes long. This is mandatory in order to be able to skip a certain range of the video stream quickly enough without the need to download the whole file and/or to improve buffering speed by creating multiple HTTP connections which each requests a different part of the video file. This is however a lot of additional code in the servlet which requir

Categories : Java

How to convert VIDEOHDR data to video stream using C++
I suppose you got the video resolution Width x Height and image format (RGB24, YUYV, or ...) from another way as it'snt in the VIDEOHDR struct. The VIDEOHDR struct you receive in the callback contain : lpData and dwBufferLength to display/render image you may need of an additional lib like SDL, OpenGL, OpenCV UI, MFC, QT using 1 of those lib You can : - create a window of Width x Height - configure the window rendering to interpret data correctly depending of your capture format, RGB24 or another. - anytime you get a new HDR in the callback, pass LpData to the render but first choose your rendering framework and come back if you need help.

Categories : C++

How can we get H.264 encoded video stream from iPhone Camera?
Short: You can't, the sample buffer you receive is uncompressed. Methods to get hardware accelerated h264 compression: AVAssetWriter AVCaptureMovieFileOutput As you can see both write to a file, writing to a pipe does not work as the encoder updates header information after a frame or GOP has been fully written. So you better don't touch the file while the encoder writes to it as it does randomly rewrite header information. Without this header information the video file will not be playable (it updates the size field, so the first header written says the file is 0 bytes). Directly writing to a memory area is not supported currently. But you can open the encoded video-file and demux the stream to get to the h264 data (after the encoder has closed the file of course)

Categories : Iphone

C api on capturing video stream from webcam using ffmpeg
You are basically repeating the question you are referring to. FFmpeg is basically the name of the library and the ready to use tool (command line interface). Its back end is a set of libraries: libavcodec, libavformat, swscale etc. There is no comprehensive documentation on these libraries, instead there are samples, there is mailing list and other sparse resources. Also, the libraries are open source and all these are quite usable once you get the pieces together. Specific questions on ffmpeg are asked/answered on StackOverflow as well.

Categories : C



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.