webOS Nation Forums
> webOS apps and software
> webOS development
>
Video Recording (For Real, no GUI)
1 2 3
4 5 6 7 8 13
...
Last
Member:
MWKpre
at: 08:43 PM 08/24/2009
Great job! keep up the good work guys

Thank all of you!
i wish i had time to code for this! too much school. xD
nice finds tho!
Member:
flowhot
at: 01:47 AM 08/25/2009
noooo i dont no how to do this
i ran it in terminal on the pre and it worked there.. is there anyway to save it to run it again?
Run it again, like as in save the command? Er... not a great way that I know of. You could install bash / use it as your default term, then make a simple script to run the command?
There's going to be no good way just to 'start it and stop it' that i can figure unless a service is written for it.
Video Capture capability? Are you trying to put apple out of business? This is way too much for me. sorry. btw I would like to see the outcome after this is finished.
Member:
27scoob
at: 12:53 AM 09/03/2009
Yeah slow down .... er no .....
Any updates?
This thread is getting old. Why stop now?
Weird never saw this thread. If someone wants to do the gui, I might be able to help with the service.
Though isn't video rumored for 1.2?
Member:
zonyl
at: 01:37 PM 09/07/2009
I have been recording quite a lot of videos with the Pre using the aforementioned instructions. I cant see on the screen what I am recording at the time, however, with practice I am getting pretty good at pointing the device to get everything in frame.
The files play well on my desktop and the mic is surprisingly sensitive to pick up audio. For capturing those little unexpected moments that I forgot my real camera its been great.
Member:
jhoff80
at: 01:49 PM 09/07/2009
Originally Posted by AnOutsider:
Weird never saw this thread. If someone wants to do the gui, I might be able to help with the service.
Though isn't video rumored for 1.2?
No.
As for doing a GUI and service, it sounds to me like there's a lot more work necessary before it's at that point where it'd be worth it. I mean, there's not even audio yet.
Member:
zonyl
at: 01:51 PM 09/07/2009
Originally Posted by AnOutsider:
Weird never saw this thread. If someone wants to do the gui, I might be able to help with the service.
Though isn't video rumored for 1.2?
Im using thttpd cgi as my service backend. I just wrote a simple webpage that has two links to start and stop recording. Dont know of a way to realtime preview what is being recorded though (I tried loading the camera app while recording, but it wont display anything while rec)
I hadnt gone through the effort to package anything together thinking the official recording functionality will be out shortly (maybe it wont

)
Member:
zonyl
at: 01:52 PM 09/07/2009
Originally Posted by jhoff80:
I mean, there's not even audio yet.
Audio works
Member:
jhoff80
at: 02:11 PM 09/07/2009
Originally Posted by zonyl:
Audio works
Aah, okay. I hadn't tried this myself but last I saw in this thread it appeared to have no sound. Sorry for the confusion then.
So guys.. where are the codes?
Member:
zonyl
at: 04:09 PM 09/07/2009
Member:
NickDG
at: 05:54 PM 09/07/2009
Originally Posted by AnOutsider:
Weird never saw this thread. If someone wants to do the gui, I might be able to help with the service.
Though isn't video rumored for 1.2?
It isn't rumored to be in the 1.2 release, but there is a rumor it will be one of the apps available for purchase once the app catalog goes live this month.
I won't mind paying for it as long as the quality is good and there are some light editing features like the 3GS.
Originally Posted by zonyl:
I am able to record video from the UI . I have a thttp server running on the phone and created bookmarks to two links (VidRec) and (VidStop) I can even remotely record now hitting my webserver from the EvDO IP.
/localhost/cgi-bin/vidrec.sh:
[CODE]#!/bin/sh
echo "HTTP/1.1 302 found"
echo "Location: http://localhost:8888/palm.html"
echo "Content-Type: text/html"
echo ""
#Turn on the flash!
cd /sys/class/i2c-adapter/i2c-2/2-0033
echo -n 1 >avin
echo -n 100mA >torch_current
echo -n torch >mode
FILE="`date +%m`_`date +%d`_`date +%y`_`date +%H`_`date +%M`_`date +%S`.mp4"
gst-launch camsrc ! palmvideoencoder ! filesink location=/media/internal/downloads/$FILE &[/CODE]
/localhost/cgi-bin/vidstop.sh
[CODE]#!/bin/sh
echo "HTTP/1.1 302 found"
echo "Location: http://localhost:8888/palm.html"
echo "Content-Type: text/html"
echo ""
#Turn off flash
cd /sys/class/i2c-adapter/i2c-2/2-0033
echo -n shutdown >mode
echo -n 0mA >torch_current
echo -n 0 >avin
killall -HUP gst-launch-0.10
[/CODE]
** Note if you are having troubles with errors starting recording you need to make sure you have initialized the camera first by running the Camera app at least once during the session. ***
CPCrook: Ill have to play with those settings as well to see if we can boost the resolution.
I think audio can be had by including the Alsa mic on the pipeline. Im not familiar with gstreamer enough to know how to do this exaclty yet.
File plays fine on Mplayer but not recognized by the internal video player on the Pre.
[CODE]
Playing PreVideoTest.mp4.
H264-ES file format detected.
FPS seems to be: 30.000000
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 480 x 320 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 480x320 => 480x320 Planar YV12
[/CODE]
how did you make the bookmark links?
Member:
zonyl
at: 07:59 AM 09/08/2009
1 2 3
4 5 6 7 8 13
...
Last
webOS Nation Forums
> webOS apps and software
> webOS development
>
Video Recording (For Real, no GUI)