webOS Nation Forums >  webOS apps and software >  webOS development > Video Recording (For Real, no GUI)
Video Recording (For Real, no GUI)

  Reply
 
LinkBack Thread Tools Display Modes
Old 08/24/2009, 07:43 PM   #41 (permalink)
Member
 
MWKpre's Avatar
 
Join Date: Aug 2009
Posts: 25
Likes Received: 0
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Great job! keep up the good work guys Thank all of you!
MWKpre is offline   Reply With Quote
Old 08/24/2009, 09:03 PM   #42 (permalink)
Member
 
Join Date: Aug 2009
Location: New York, NY
Posts: 51
Likes Received: 0
Thanks: 3
Thanked 3 Times in 3 Posts
Default

i wish i had time to code for this! too much school. xD

nice finds tho!
wturnerharris is offline   Reply With Quote
Old 08/25/2009, 12:47 AM   #43 (permalink)
Member
 
Join Date: Aug 2009
Posts: 8
Likes Received: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Default

noooo i dont no how to do this
flowhot is offline   Reply With Quote
Old 09/02/2009, 09:19 PM   #44 (permalink)
Member
 
Join Date: Jul 2009
Posts: 8
Likes Received: 0
Thanks: 6
Thanked 0 Times in 0 Posts
Default

i ran it in terminal on the pre and it worked there.. is there anyway to save it to run it again?

Last edited by 123killagum; 09/02/2009 at 09:19 PM. Reason: typo
123killagum is offline   Reply With Quote
Old 09/02/2009, 09:52 PM   #45 (permalink)
Member
 
Join Date: Jul 2009
Posts: 127
Likes Received: 1
Thanks: 5
Thanked 430 Times in 44 Posts
Default

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.
Prenosicator is offline   Reply With Quote
Thanked By: 123killagum
Old 09/02/2009, 11:43 PM   #46 (permalink)
Member
 
Join Date: Aug 2009
Posts: 215
Likes Received: 0
Thanks: 14
Thanked 12 Times in 12 Posts
Default

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.
getmoneyeveryday is offline   Reply With Quote
Old 09/02/2009, 11:53 PM   #47 (permalink)
Member
 
27scoob's Avatar
 
Join Date: Jun 2009
Posts: 170
Likes Received: 2
Thanks: 226
Thanked 7 Times in 6 Posts
Default

Yeah slow down .... er no .....
27scoob is offline   Reply With Quote
Old 09/03/2009, 03:50 PM   #48 (permalink)
Member
 
Join Date: Aug 2009
Posts: 215
Likes Received: 0
Thanks: 14
Thanked 12 Times in 12 Posts
Default

Any updates?
getmoneyeveryday is offline   Reply With Quote
Old 09/07/2009, 11:18 AM   #49 (permalink)
Member
 
Join Date: Aug 2009
Posts: 215
Likes Received: 0
Thanks: 14
Thanked 12 Times in 12 Posts
Default

This thread is getting old. Why stop now?
getmoneyeveryday is offline   Reply With Quote
Old 09/07/2009, 12:33 PM   #50 (permalink)
Member
 
AnOutsider's Avatar
 
Join Date: Jun 2009
Posts: 371
Likes Received: 0
Thanks: 31
Thanked 92 Times in 60 Posts
Default

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?
AnOutsider is offline   Reply With Quote
Old 09/07/2009, 12:37 PM   #51 (permalink)
Member
 
Join Date: Apr 2004
Posts: 187
Likes Received: 2
Thanks: 6
Thanked 57 Times in 25 Posts
Default

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.
zonyl is offline   Reply With Quote
Old 09/07/2009, 12:49 PM   #52 (permalink)
Member

 
Join Date: Apr 2003
Location: Boston-area
Posts: 6,973
Likes Received: 116
Thanks: 418
Thanked 1,252 Times in 710 Posts
Default

Quote:
Originally Posted by AnOutsider View Post
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.
jhoff80 is offline   Reply With Quote
Old 09/07/2009, 12:51 PM   #53 (permalink)
Member
 
Join Date: Apr 2004
Posts: 187
Likes Received: 2
Thanks: 6
Thanked 57 Times in 25 Posts
Default

Quote:
Originally Posted by AnOutsider View Post
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 )

Last edited by zonyl; 09/07/2009 at 12:59 PM.
zonyl is offline   Reply With Quote
Old 09/07/2009, 12:52 PM   #54 (permalink)
Member
 
Join Date: Apr 2004
Posts: 187
Likes Received: 2
Thanks: 6
Thanked 57 Times in 25 Posts
Default

Quote:
Originally Posted by jhoff80 View Post
I mean, there's not even audio yet.
Audio works

Last edited by zonyl; 09/07/2009 at 12:58 PM.
zonyl is offline   Reply With Quote
Old 09/07/2009, 01:11 PM   #55 (permalink)
Member

 
Join Date: Apr 2003
Location: Boston-area
Posts: 6,973
Likes Received: 116
Thanks: 418
Thanked 1,252 Times in 710 Posts
Default

Quote:
Originally Posted by zonyl View Post
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.
jhoff80 is offline   Reply With Quote
Old 09/07/2009, 01:35 PM   #56 (permalink)
Member
 
Join Date: Aug 2009
Posts: 215
Likes Received: 0
Thanks: 14
Thanked 12 Times in 12 Posts
Default

So guys.. where are the codes?
getmoneyeveryday is offline   Reply With Quote
Old 09/07/2009, 03:09 PM   #57 (permalink)
Member
 
Join Date: Apr 2004
Posts: 187
Likes Received: 2
Thanks: 6
Thanked 57 Times in 25 Posts
Default

Quote:
Originally Posted by getmoneyeveryday View Post
So guys.. where are the codes?
http://forums.precentral.net/web-os-...ml#post1808230
zonyl is offline   Reply With Quote
Old 09/07/2009, 04:54 PM   #58 (permalink)
Member
 
NickDG's Avatar
 
Join Date: May 2006
Posts: 2,080
Likes Received: 0
Thanks: 189
Thanked 328 Times in 193 Posts
Default

Quote:
Originally Posted by AnOutsider View Post
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.
__________________
Palm Vx -> Treo 600 -> Treo 700p -> Centro -> Pre (Launch Phone 06/06/09) -> AT&T Pre Plus with Sprint EVDO swap -> Samsung Epic 4G w/ Froyo
NickDG is offline   Reply With Quote
Old 09/08/2009, 03:26 AM   #59 (permalink)
Member
 
johnsavage06's Avatar
 
Join Date: Jun 2009
Location: oakland, cali
Posts: 98
Likes Received: 0
Thanks: 16
Thanked 18 Times in 15 Posts
Default

Quote:
Originally Posted by zonyl View Post
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 &
/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
** 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
how did you make the bookmark links?
__________________


if someone posted something that helped you out dont forget to push the thanks button and let 'em they helped

always make backups of the files you mod, that or get accquainted with WebOs DR
johnsavage06 is offline   Reply With Quote
Old 09/08/2009, 06:59 AM   #60 (permalink)
Member
 
Join Date: Apr 2004
Posts: 187
Likes Received: 2
Thanks: 6
Thanked 57 Times in 25 Posts
Default

Quote:
Originally Posted by johnsavage06 View Post
how did you make the bookmark links?
I setup thttpd (from optware) as a webserver on port 8888 and created bookmarks in the native web browser to those two shell files.

Setting up optware:
Setting up optware feed - WebOS Internals

Thttpd:
http://ipkg.nslu2-linux.org/feeds/op....25b-5_arm.ipk
zonyl is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes


LinkBacks (?)
LinkBack to this Thread: http://forums.webosnation.com/webos-development/197022-video-recording-real-no-gui.html
Posted By For Type Date
Gizmodo, the Gadget Guide This thread Refback 05/20/2010 09:01 AM


 


Content Relevant URLs by vBSEO 3.6.0