Thread
:
Video Recording (For Real, no GUI)
View Single Post
Member:
zonyl
at: 11:29 AM 08/06/2009
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]
Reply