08/06/2009, 01:49 AM
|
|
|
Member
![]() Join Date: Jul 2009
Posts: 21
Likes: 0
Thanks: 2
Thanked 41 Times in 5 Posts
|
Guys, not sure if this has been done yet: I actually did get mp4 recording on the Pre via command line this evening. No GUI and the file is playable by VLC player (not Quicktime, possibly because I just killed the gstream with ctrl-x) but maybe someone can help me with that part.
At your rooted command line (make sure FS is rw) mount -o remount,rw / gst-launch camsrc ! palmvideoencoder ! filesink location=/media/internal/downloads/foo.mp4 mount -o remount,ro / Like I said, no GUI but other than that, not bad, right? Frame rate seemed pretty decent too. Note: there is no sound recording. (edited to add attachment - brief vid with me making a ******** face) (edit 2: sound) |
|
Thanked by
acherry, biggnaa20, cashen, chile_man, ChillyPenguin, cyberelex, czarphanguye, czechdev, draven76, Fisack23, GigaS27, gwyneth, i700plus, Jason Robitaille, josecaguas, jurias, kels757, KnoxBNYC, Kyusaku, mashiya, maxima2k53, Milominderbinder, mk3, NickDG, Razortooth, robbskittles, RPFTW, sarah peterman, SHO_ONE, snoPalm, TheMarco, tkhagan, TWC_SouthPhilly, zonyl
|
08/06/2009, 02:05 AM
|
#2 (permalink) |
|
Member
![]() ![]() Join Date: Apr 2009
Location: Boston, MA
Posts: 769
Likes: 0
Thanks: 190
Thanked 101 Times in 58 Posts
|
I tried to play the video with VLC, but it seems to be of zero length. I just installed VLC on this machine (Win XP 32bit).
Great to hear someone working on this, tho. |
|
Thanked By:
acherry
|
08/06/2009, 02:08 AM
|
|
|
Member
![]() Join Date: Jul 2009
Posts: 21
Likes: 0
Thanks: 2
Thanked 41 Times in 5 Posts
|
The file is definitely not well formed, but it claims its H.264 encoded. Here's the commandline output:
root@castle:/media/internal# gst-launch camsrc ! palmvideoencoder ! filesink location=/media/internal/downl oads/foo2.mp4 stop: (01011/78784179) Job not changed: camd (01011/124468994) camd: goal changed Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock proposed caps: video/x-raw-yuv Initially, Got the following OUTPUT values from the encoder: pPortDef->format.video.nBitrate = 64000 pPortDef->format.video.eCompressionFormat = 7 Setting video encoding to H.264 ===> After settings, we have the following OUTPUT values from the encoder: pPortDef->format.video.nBitrate = 64000 pPortDef->format.video.eCompressionFormat = 7 Caught interrupt -- handling interrupt. Interrupt: Stopping pipeline ... Execution ended after 17251647949 ns. Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... --------------------> OMX_FreeHandle succeeded ^X[1] + Stopped gst-launch camsrc ! palmvideoencoder ! filesink location=/media/internal/downloads/foo2.mp4 edit: gst-inspect will give you a list of possible sources, but most are for decoding/demuxing. edit2: The Videos app will not recognize anything recorded, at least as long as I keep ending recordings using ctrl-c or ctrl-z to kill |
|
Thanked By:
Razortooth
|
08/06/2009, 03:10 AM
|
|
|
Member
![]() Join Date: Jul 2009
Posts: 21
Likes: 0
Thanks: 2
Thanked 41 Times in 5 Posts
|
Just digging around more on gstreamer...if/when we get a GUI slapped on it, there seems to be potential for live streaming video conferencing - the XO laptop can do it...laptop.org has a page about the XO laptop using Gstreamer (i can't link because of number of posts...)
|
|
|
08/06/2009, 03:21 AM
|
#5 (permalink) |
|
Member
![]() Join Date: Jul 2008
Location: Syracuse
Posts: 2,565
Likes: 0
Thanks: 740
Thanked 442 Times in 327 Posts
|
Awe *snap!
__________________
"When there is no more room in hell, the dead will walk the earth" PM me your questions, If I cant find an answer, I'll show you who can. |
|
|
08/06/2009, 06:43 AM
|
#7 (permalink) |
|
Member
![]() Join Date: Jun 2009
Location: York, PA
Posts: 259
Likes: 0
Thanks: 32
Thanked 141 Times in 55 Posts
|
Oh wow, good job. I got it working. There is no sound recorded, but that could just be my comp... Thank you, this is a awesome find.
Also, vlc doesn't play it correctly, use another video player. Last edited by sarah peterman; 08/06/2009 at 08:19 AM. |
|
|
08/06/2009, 09:37 AM
|
|
|
Member
![]() Join Date: Jul 2009
Posts: 21
Likes: 0
Thanks: 2
Thanked 41 Times in 5 Posts
|
I guess the variability of what will play the file has to do with codec packs and versioning.
I'm currently focusing on /usr/lib/luna/luna-media/palmInitMedia.js to see if I can't create a video pipe and capture method, whether it be creating one from scratch or simply routing the _preview used for the still camera preview to the filesystem. EDIT: Points of interest around line 800 |
|
|
08/06/2009, 10:30 AM
|
|
|
Member
![]() Join Date: Jul 2009
Posts: 21
Likes: 0
Thanks: 2
Thanked 41 Times in 5 Posts
|
Just a little more info:
The camera module on the Pre is the VX6852. More info & data sheets: STMicroelectronics | QXGA EDOF camera module - VX6852 Palm appears to have implemented the standard video4linux2 to interface with the camera. |
|
|
08/06/2009, 10:54 AM
|
#11 (permalink) | |
|
Member
![]() Join Date: Apr 2004
Posts: 187
Likes: 2
Thanks: 6
Thanked 57 Times in 25 Posts
|
Quote:
" The product can output raw bayer 3 Mpixel images at up to 20 fps" Interesting. Looks like it can potentially record full sensor resolution (beyond HiDef) at up to 20fps. If the CPU can handle the bandwidth that is
|
|
|
|
08/06/2009, 11:00 AM
|
|
|
Member
![]() Join Date: Jul 2009
Posts: 21
Likes: 0
Thanks: 2
Thanked 41 Times in 5 Posts
|
In the file of interest I mentioned Palm has their prefs set for the still camera preview stream as 30fps but at screen resolution (320x480) and it certainly appears to be that way.
I guess we could modify the preview stream in that mediainit file to preview in full resolution and a lower frame rate which would be interesting. |
|
|
08/06/2009, 11:12 AM
|
#13 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: Silicon Valley, California
Posts: 1,025
Likes: 0
Thanks: 37
Thanked 444 Times in 161 Posts
|
Good stuff. From what I read, Palm is working on a video camera app with a third party developer, but your experiments are very interesting.
|
|
Thanked By:
TreoRock
|
08/06/2009, 11:17 AM
|
|
|
Member
![]() Join Date: Jul 2009
Posts: 21
Likes: 0
Thanks: 2
Thanked 41 Times in 5 Posts
|
I'm not so much concerned with the video recording as much as learning a bit more about how all of this works in the first place. Plus, the lower level we get, the more possibilities for cool apps like video conferencing and augmented reality...
|
|
|
08/06/2009, 11:19 AM
|
#15 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: Silicon Valley, California
Posts: 1,025
Likes: 0
Thanks: 37
Thanked 444 Times in 161 Posts
|
I'm with you. I can't wait for Palm to release a real SDK. This javascript stuff is passable, but I'd really rather be able to at least use Java or better yet, C++ and get access to much more of the capabilities of the hardware.
|
|
|
08/06/2009, 11:29 AM
|
#16 (permalink) |
|
Member
![]() Join Date: Apr 2004
Posts: 187
Likes: 2
Thanks: 6
Thanked 57 Times in 25 Posts
|
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] Last edited by zonyl; 08/06/2009 at 12:49 PM. |
|
Thanked by
cpcrook, Milominderbinder
|
08/06/2009, 12:21 PM
|
|
|
Member
![]() Join Date: Jul 2009
Posts: 21
Likes: 0
Thanks: 2
Thanked 41 Times in 5 Posts
|
Looks great! I'm looking into modifying the camera app so it only records video, not still...
edit: theres a new "VideoRecording" section on the webos-internals wiki if you'd like to detail what you've done. |
|
|
![]() |
| webOS Nation Forums Video Recording (For Real, no GUI) |
«
Previous Thread
|
Next Thread
»
| 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 10:01 AM | |
















Linear Mode








