Recording from webcam HD
Hello:
I need to show on the stage the video from my HD webcam in a local PC and save the video into a file.
Do you know a way to record the video and save it to mpg or mov, flv, mp4 video file?
any Xtras, ActiveX or other ways?
Thank you very much
I know you can control webcams in Director - via the flash asset
have a play with valentins old script demos here:-
http://valentin.dasdeck.com/lingo/flash_camera/
Similar Messages
-
Record from webcam to f4v on FMS
I'm trying to build / modify an application to record from webcam and microphone, in a web browser and save it to an FMS 5.4.2 server to stream via web and iOS
recording as a flv file works fine and it plays back just fine in firefox / any browser
I can steam f4v files over http as filename.f4v.m3u8 and that works fine with the samples that come with FMS from my record folder (/opt/adobe/fms/applications/record/streams/)
My flash web application can record to the FMS server, the file it records has the .f4v file extension, has content (i see the file size), and has time in quicktime (4 or 5 seconds - just a test) but it doesn't play - the screen is black and never starts.
I know i'm right on the edge of figuring this out, I just don't know what I'm missing or whats wrong (i'm a php programmer, not action script)
any ideas ?
here is the code i'm working with:
package com
import fl.controls.ProgressBar;
import fl.controls.ProgressBarMode;
import flash.display.MovieClip;
import flash.events.Event;
import com.NetConnector
import flash.events.MouseEvent;
import flash.events.TimerEvent;
import flash.media.Camera;
import flash.media.Microphone;
import flash.media.Video;
import flash.net.navigateToURL;
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.net.URLLoader;
import flash.net.URLLoaderDataFormat;
import flash.net.URLRequest;
import flash.net.URLRequestMethod;
import flash.net.URLVariables;
import flash.text.TextField;
import flash.utils.setTimeout;
import flash.utils.Timer;
import flash.media.H264Level;
import flash.media.H264Profile;
import flash.media.H264VideoStreamSettings;
import flash.media.VideoCodec;
* @author Alexander (flash2you) < >
public class Recorder extends MovieClip
private var dataHolder:DataHolder = DataHolder.getInstance()
public var layer:MovieClip
public var activityLevel_pb:ProgressBar
public var aguja:MovieClip
public var aguja2:MovieClip
public var publishButton:MovieClip
public var timer_txt:TextField
public var recordStatus:MovieClip
public var recordBtn:MovieClip
private var netStream:NetStream
private var microphone:Microphone = Microphone.getMicrophone()
private var camera:Camera = Camera.getCamera()
public var video:Video
private var timer:Timer = new Timer(100)
private var clockTimer:Timer = new Timer(1000)
public var published:Boolean = false
private var isRecording:Boolean = false
private var minutero = 0;
private var crono = 0;
private var records = 0;
public var settings_mc:MovieClip
public static var recorder:Recorder
public var settings_icon:MovieClip
private var limitTimer:Timer
public function Recorder()
Recorder.recorder = this;
timer.addEventListener(TimerEvent.TIMER, on$timer)
clockTimer.addEventListener(TimerEvent.TIMER, on$clockTimer)
//visible = false
recordBtn.buttonMode = true
recordBtn.addEventListener(MouseEvent.CLICK , recordBtn$click)
recordBtn.addEventListener(MouseEvent.MOUSE_OVER, recordBtn$over)
recordBtn.addEventListener(MouseEvent.MOUSE_OUT, recordBtn$out)
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage)
limitTimer = new Timer(dataHolder.timelimit * 1000);
limitTimer.addEventListener(TimerEvent.TIMER, onLimitTimerHandler)
private function onLimitTimerHandler(e:TimerEvent):void
stopPublish()
* when we comes to second frame
private function onAddedToStage(e:Event):void
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
init()
* function for set up camera from settings module
public function setCamera(_camera:Camera) {
camera = _camera
addCameraSettings()
video.width = 1280;
video.height = 720;
video.attachCamera(camera)
if (netStream){
netStream.attachCamera(camera)
public function setMicrophone(mic:Microphone) {
microphone = mic;
if (netStream){
netStream.attachAudio(microphone)
addMicSettings()
private function addMicSettings() {
microphone.setUseEchoSuppression(true);
microphone.setSilenceLevel(1)
private function addCameraSettings():void
camera.setMode(1280, 720, 25);
camera.setLoopback(true);
camera.setQuality(0, 100);
public function init() {
startConnect()
* main function for connection
private function startConnect() {
visible = true
timer_txt.htmlText = "<b>00:00</b>";
initCamera()
initMicropone()
var nc:NetConnection = new NetConnection()
nc.connect(null)
netStream = new NetStream(nc)
netStream.attachAudio(microphone)
video.attachCamera(camera)
layer.visible = false
publishButton.gotoAndStop(1);
activityLevel_pb.mode = ProgressBarMode.MANUAL;
recordStatus.gotoAndStop("noRecord")
timer.start()
connection.addEventListener(NetConnector.CONNECTED, connectionComplete)
connection.startConnection()
public function get connection():NetConnector {
return dataHolder.connection
private function on$timer(e:TimerEvent) {
activityLevel_pb.setProgress(microphone.activityLevel, 100)
* when connection to your stream server done
private function connectionComplete(e:Event = null) {
netStream = new NetStream(connection)
netStream.attachAudio(microphone)
netStream.attachCamera(camera)
* add 0 if less then 10secs
private function addLeading(nbr) {
if (nbr<10) {
return ("0"+Math.floor(nbr));
} else {
return (Math.floor(nbr).toString());
* update visible clock, rotate arrows
private function updateTimer() {
timer_txt.htmlText = "<b>"+addLeading(crono/60)+":"+addLeading(crono%60)+"</b>";
aguja.rotation = aguja.rotation+6;
if (addLeading(crono/60)>minutero) {
aguja2.rotation = aguja2.rotation+6;
++minutero;
// end if
++crono;
private function on$clockTimer(e:TimerEvent):void
updateTimer()
private function startClockTimer() {
clockTimer.start()
* update graphics and start recording
private function recordBtn$click(e:MouseEvent):void
if (!isRecording) {
startRecording()
recordStatus.gotoAndStop("record")
recordBtn.visible = false
private function recordBtn$over(e:MouseEvent):void
if (!isRecording) {
this.gotoAndPlay(65);
private function recordBtn$out(e:MouseEvent):void
if (!isRecording) {
this.gotoAndPlay(61);
private function startRecording() {
if (connection.connected){
netStream.publish("mp4:" + dataHolder.filename + ".f4v", "record");
isRecording = true
startClockTimer()
publishButton.gotoAndPlay(2)
publishButton.buttonMode = true
publishButton.addEventListener(MouseEvent.CLICK, publishButton$click);
limitTimer.start()
* redirect to finishURL that was passed via flashvars
private function publishButton$click(e:MouseEvent):void
stopPublish()
var request:URLRequest = new URLRequest(dataHolder.finishURL)
navigateToURL(request, "_self")
private function stopPublish():void
netStream.close();
connection.close();
limitTimer.stop();
clockTimer.stop();
isRecording = false
recordStatus.gotoAndStop("recordEnd")
updateTimer();
* init microphone
private function initMicropone():void
microphone = Microphone.getMicrophone()
addMicSettings()
* init camera
private function initCamera():void
camera = Camera.getCamera()
addCameraSettings()Hi,
Thanks for the details
First, the quality of the feed we get to the flash player and FMS is highly limited by the capabilities of the webcam that the users have beyond which we cannot improve the quality.
Next, flash player can encode good quality and hence you should probably find more stuff related to how best you can ingest video from a webcam on to the flash player.
- Does recording from server side with asc script will increase the quality ?
No, FMS does not do any type of transcoding/re-encoding stuff. All it does is to 'transmit' and in your case, to flush bits to the disk. So, unless FMS recieves 'Quality', it cannot do much.
- what configurations files on the server can i adjust to increase the recording quality ?
From above, it flows that, there are no configurations on the server that can make your quality grow. The configurations are more to do with delivery. It can be tweaked to improve streaming, reduce latency, quick start and more.
- is there a way to cache locally the stream if the bandwith is not high enough, and when the user stops recording, upload it to the server (it doesn't have to be live or broadcast).
I don't think flash player can do this.
Thank you ! -
Recording from webcam into fcp
Can you record video from a web cam directly into FCP?
Final Cut doesn't capture from USB sources. If you're referring to a built-in iSight, then it's a USB camera. Quicktime Player can record video from it, though.
-
Hi!
I was wondering if I am able to record the images of a webcam in Flex. Is it possible, and if so, how can I make it?
I'm using MJPEG images (ByteArray stream), so can it be a possible way to paste/add images to a Movie (or sg like that) object, and then save it?
Jus a thought, but any solution interests.
Thanks a lot
MiloDo they allow me to track the mouse easily across the whole
screen or is it just for pieces?
I probably should have explained better earlier but I am
looking to somehow record all their movements across the
application to get a better idea of how the user is interacting and
thinking about the experience. I am not really sure what I am
looking for here but it is my guess that these listeners just check
for moving x amount of pixels one way or another. Do these allow a
more robust method of capture?
Sorry I cannot go any more detailed than that since I am not
really sure what I am looking for yet - I'm just trying to see what
is out there and what others might be doing.
Thanks for your suggestions,
-Dan -
Problem : Recording video & audio from webcam
Hi all
I want to record myself to see the expression on my face on average through the USB webcam .
I use mencoder for recording from USB webcam .
mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -fps 16.2 -o test16.2.avi
The problem is that the audio is not synchronized with the video
what can i do ? help!
Last edited by remstereo (2010-11-17 08:16:45)up
-
OnLocation fails to record from Microsoft LifeCam Studio 1080p HD Webcam
Hi,
I finally installed and configured OnLocation on my laptop, and I was looking forward to shooting 1080p footage in my car. Imagine my disappointment when it turned out that OnLocation refuses to record from the camera! I know the camera works because other software can use it (alas, at 720p). Why is it I am not having any luck with this? All the other forums suggested that OnLocation is the ultimate tool for mobile recording to disk, and now I can't even get it to show me the live footage. What gives?
-- MKVirtualDub works. But there are a few hoops to jump through. http://www.youtube.com/watch?v=QakF9eWBh7A. I realize that it has been a while since your question was posted so if you have found something better than this, do let me know.
-
How to record from the video in or S-video Ports on Qosmio G40?
Can anyone tell me how to record from the video in or S-video ports, because i've tried the Ulead DVD factory program and the only capture device it could see was the webcam, and it did capture from it
After that i've downloaded the update file that was provided by the support website
The devices that the program could see are the TV tuner and the webcam (which it couldn't access anymore for some reason)
After that i've downloaded a newer update which simply is the same as the last update and seems that someone in the support website directed the link of the new update which they don't have to the file of the previous update which doesn't really do anything.Hi
There are 2 s-video ports; s-video out port is not designed to capture the signals from any external source. The name of this port says everything; its an OUT port!
The s-video-in port must be placed at the right side of the notebook. Dont mix the both ports. But note; this port receives only the video signals. To hear the sounds, use a video cable to connect the sound terminals of the audio device and your computer.
Red: sound right channel
White: sound left channel
The Ulead DVD Movie factory can be used to capture this signal. -
Video stream recording (not webcam) help required
I am making a media player / recorder type web application in flex 4.
The application plays video streams streamed from my red5 server.
I want to give users the ability to make / record clips of the video they are viewing.
I know that netstream.publish is used to record/save video on the server.
All the help i've found on google so far just give examples to save video from webcam.
But i want to save video from a video being streamed from red5 server and being played
on VideoPlayer control in flex.
All help is greatly appreciated.
Thanks.Thanks for the reply but i think u misunderstood my problem.
I am not receiving any RTP Stream but RTMP stream.RTMP is a proprietary protocol of Adobe For Streaming Flash video from Flash Media Server (FMS).
I again state the problem.
I am getting an RTMP Stream now i want to convert it into an RTP Stream so that i can process or transmit it further.I want to convert this RTMP Stream to RTP format.
Anyone plz help me out.I am stuck into this for past 2 days and it is very critical for my project. :-( -
Can not delete record from the master block ,frm-40202 field must be entere
hi ,
i have built a form which contain master and details blocks
the problem is
when i try to delete a record from the master block it gives me new serial for the transaction and when i try to save it, it says
>frm-40202 field must be entered
where this field is required and i cant save it
although in another form when i delete from the master it gives me the previous record and it works properly
if any one has any ideas pls help me
thank u
------- the master block has a trigger when-create-recoder
Declare>v_dummy number;
Begin
Select nvl(max(ERNT_NO),0) + 1 >Into v_dummy
From LM_RENT_EXPNMST >Where cmp_no = :LM_RENT_EXPNMST.cmp_no
And brn_no = :LM_RENT_EXPNMST.brn_no>and fiscal_yr = :LM_RENT_EXPNMST.fiscal_yr;
>:LM_RENT_EXPNMST.ERNT_NO := v_dummy;
END;
IF :PARAMETER.RNT_NO IS NOT NULL THEN
:LM_RENT_EXPNMST.RNT_NO:=:PARAMETER.RNT_NO;
:LM_RENT_EXPNMST.RNT_YR:=:PARAMETER.RNT_YR;
:LM_RENT_EXPNMST.CUST_DESC:=:PARAMETER.RNT_ADESC;
END IF;Edited by: ayadsufyan on May 8, 2013 2:03 PMIf this is a FORMS question you should mark this one ANSWERED and repost your question in the FORMS forum
Forms -
Unable to capture video from webcam in JMF in xlet
hi
I am unable to capture video from webcam in an Xlet. I am using Xletview to run Xlet. The method CaptureDeviceManager.getDeviceList(vidformat) returns empty array. Which videoformat should I use and why do I get empty array?
Thanks
RajeshMHP and OCAP only use JMF 1.0, which does not include support for capturing video. You will not be able to do this in any current MHP/OCAP imlementation that I know of.
Steve. -
Unable to capture video from webcam in JMF
hi
I am unable to capture video from webcam in an Xlet. I am using Xletview to run Xlet. The method CaptureDeviceManager.getDeviceList(vidformat) returns empty array. Which videoformat should I use and why do I get empty array?MHP and OCAP only use JMF 1.0, which does not include support for capturing video. You will not be able to do this in any current MHP/OCAP imlementation that I know of.
Steve. -
Return records from Stored Procedure to Callable Statement
Hi All,
I am createing a web application to display a students score card.
I have written a stored procedure in oracle that accepts the student roll number as input and returns a set of records as output containing the students scoring back to the JSP page where it has to be put into a table format.
how do i register the output type of "records" from the stored function in oracle in the "registerOutParameter" method of the "callable" statement in the JSP page.
if not by this way is there any method using which a "stored function/procedure" returning "record(s)" to the jsp page called using "callable" statement be retrieved to be used in the page. let me know any method other that writing a query for the database in the JSP page itself.I have a question for you:
If the stored procedure is doing nothing more than generating a set of results why are you even using one?
You could create a view or write a simple query like you mentioned.
If you're intent on going the stored procedure route, then I have a suggestion. Part of the JDBC 2.0 spec allows you to basically return an object from a CallableStatement. Its a little involved but can be done. An article that I ran across a while back really helped me to figure out how to do this. There URL to it is as follows:
http://www.fawcette.com/archives/premier/mgznarch/javapro/2000/03mar00/bs0003/bs0003.asp
Pay close attention to the last section of the article: Persistence of Structured Types.
Here's some important snippets of code:
String UDT_NAME = "SCHEMA_NAME.PRODUCT_TYPE_OBJ";
cstmt.setLong(1, value1);
cstmt.setLong(2, value2);
cstmt.setLong(3, value3);
// By updating the type map in the connection object
// the Driver will be able to convert the array being returned
// into an array of LikeProductsInfo[] objects.
java.util.Map map = cstmt.getConnection().getTypeMap();
map.put(UDT_NAME, ProductTypeObject.class);
super.cstmt.registerOutParameter(4, java.sql.Types.STRUCT, UDT_NAME);
* This is the class that is being mapped to the oracle object.
* There are two methods in the SQLData interface.
public class ProductTypeObject implements java.sql.SQLData, java.io.Serializable
* Implementation of method declared in the SQLData interface. This method
* is called by the JDBC driver when mapping the UDT, SCHEMA_NAME.Product_Type_Obj,
* to this class.
* The object being returned contains a slew of objects defined as tables,
* these are retrieved as java.sql.Array objects.
public void readSQL(SQLInput stream, String typeName) throws SQLException
String[] value1 = (String[])stream.readArray().getArray();
String[] value2 = (String[])stream.readArray().getArray();
public void writeSQL(SQLOutput stream) throws SQLException
}You'll also need to create Oracles Object. The specification for mine follows:
TYPE Detail_Type IS TABLE OF VARCHAR2(1024);
TYPE Product_Type_Obj AS OBJECT (
value1 Detail_Type,
value2 Detail_Type,
value3 Detail_Type,
value4 Detail_Type,
value5 Detail_Type,
value6 Detail_Type,
value7 Detail_Type,
value8 Detail_Type);Hope this helps,
Zac -
Display all records from 4 select list
Hi,
trying to associate 4 select list where i could display all records from a list linked to an other list.
1./ Created an item for each select list
P1_employee_name
P1_departments
P1_employee_type
P1_locations
2./Set both null and default values to '-1' for each item
3./Associated these items to source columns in the Region:
where employee_name=:P1_employee_name
or :P1_employee_name ='-1'
and departments=:P1_departments
or :P1_departments ='-1'
and ......
When running the report, couldn't display all records from a given list associated to an other list.
e.g: Display all emp and type of emp for sales dept in Paris.
Thks for your helpI believe the issue is that you need to group your predicates such as:
where (employee_name=:P1_employee_name
or :P1_employee_name ='-1')
and
(departments=:P1_departments
or :P1_departments ='-1')
Also, if you are not already using the "select list with submit" type items, these work great for this case as the page will be submitted when the user changes the value of employeenam and the report will then reflect this change. -
Excluding of records from extraction
Hi Experts
1. I am in need of code to exclude the records for a particular value of the fields AUART and VBUND
For records with the following criteria should be EXCLUDED
Sales Order Type (AUART): ZCP
Trading partner (VBUND): 1261
I know that we can write the code at start routine of the transformations but what to write in
the start routine of transformations
2. I have an extractor bringing data from ECC to info cube with alternative unit of measure
Now I need to undo these conversions in the current extractor and bring in these values from a
Custom Z table from ECC using generic extractor
And I am doubted in how to undo these conversions from the current extractor to the cube
Please help me
Thank youHi
1. Open the transformation and click on start routine
2. The ABAP editor screen appears and you can find this part in the abap editor of start routine "$$ begin of routine - insert your code only below this line -
... "insert your code here"
3. Please delete the line "insert your code here" completely and paste the code which i gave you.
4. Check for syntax errors and activate the transformation.
5. Also activate the DTP.
Also please dont not put the code below "begin of global or 2nd part of global".
Plz lemme how many records you have in rsa3 without any selection. The infopackage will just fetch the records from the source and it will not do any transformation.
Hope it helps. -
Incomplete Data on report (report does not show all records from the table)
Hello,
I have problem with CR XI, I'm running the same report on the same data with simple select all records from the table (no sorting, no grouping, no filters)
Sometimes report shows me all records sometimes not. Mostly not all records on the report. When report incomplete sometimes it shows different number of records.
I'm using CR XI runtime on Windows Server 2003
Any help appreciated
Thanks!Sorry Alexander. I missed the last line where you clearly say it is runtime.
A few more questions:
- Which CR SDK are you using? The Report Designer Component or the CR assemblies for .NET?
- What is the exact version of CR you are using (from help | about)
- What CR Service Pack are you on?
And a troubleshooting suggestion:
Since this works on some machines, it will be a good idea to compare all the runtime (both CR and non CR) being loaded on a working and non working machines.
Download the modules utility from here:
https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip
and follow the steps as described in this thread:
https://forums.sdn.sap.com/click.jspa?searchID=18424085&messageID=6186767
The download also includes instructions on how to use modules.
Ludek
Maybe you are looking for
-
Hi Experts I am generating IDOC through a custom report. Requirement is IDOC to be generated in .txt format (text file). Besides XML Port type, i have used port of type File, but its generating IDOC withput any format. So is that possible? Regards.
-
I went to install WM Patch 10.2.0.4.2 on my XE 10.2.0.1.0 database and it fails. The patch ReadMe implies that this will work, and I have had luck installing previous versions of the WM patch. The 10.2.0.2 WM patch installed wo errors for me and work
-
Missing text / thumbnails / many Lightroom UI elements disappeared
Hi. I run LR 1.1 on Mac OS X. A few days ago, when I launched Lightroom, I noticed something very weird: all the thumbnails in Grid view were empty. The cells are there, but no badges, text, or image thumbnail. Looking more closely, I see that other
-
Hi, I am testing BAM behaviour in a particular scenario. Objective: What happens, when data is being sent using the BAM Adapter, from a SOA application and the BAM server is down. Here are my results based on 3 Tests conducted. PLease go through the
-
Unable to see To Do list in iCal
Any time I attempt to look at my To Do list in ical by clicking on the pin icon in the lower rt corner of the ical screen, the application freezes. I am unable to see my to do list at all. How can I fix this Thank you all.