diff --git a/frames/test_1280x720 b/frames/test_1280x720 new file mode 100644 index 0000000..3135390 Binary files /dev/null and b/frames/test_1280x720 differ diff --git a/ini/test720p.ini b/ini/test720p.ini new file mode 100644 index 0000000..8d2f8ea --- /dev/null +++ b/ini/test720p.ini @@ -0,0 +1,40 @@ +# Basic Feeds Settings +# Copyright by Peter Maersk-Moller 2012 - All rights reserved +#verbose +require version 0.4.5 + +# Define allowed remote host IP addresses. If omitted then only 127.0.0.1 will be accepted. +system host allow 127.0.0.1 + +# Listen on port 9999 for command control connections +system control port 9999 + +# Set system Geometry to 1024x768 +system geometry 1280 720 ARGB + +# Set system frame rate to 24 +system frame rate 25 + +# Set output control socket +system socket /tmp/mixer1 + +# Set feed idle time - feed 0 will always be idle. If no file is given, +# idle image will be all black. +feed idle 0 1 frames/test_1280x720 +#feed idle 0 1 + +################## +# Input feeds +################## +# Keep size of input feeds to same size as feed 0 +# otherwise things explode. + +feed add 1 Feed1 +feed geometry 1 1280 720 +feed live 1 +feed idle 1 100 frames/test_1280x720 +feed socket 1 /tmp/feed1 + +stack 0 1 + +montor on diff --git a/scripts/test720pCam.py b/scripts/test720pCam.py index 1bf2a94..d0e6201 100644 --- a/scripts/test720pCam.py +++ b/scripts/test720pCam.py @@ -5,16 +5,17 @@ import gst width = 1280 height = 720 +framerate = 25 pipe = "/tmp/feed1" shm_size = 10000000 -MIXERFORMAT = 'video/x-raw-rgb, bpp=(int)32, endianness=(int)4321, format=(fourcc)BGRA, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)%d, height=(int)%d, framerate=(fraction)60/1, pixel-aspect-ratio=(fraction)1/1, interlaced=(boolean)false' % (width, height) +MIXERFORMAT = 'video/x-raw-rgb, bpp=(int)32, endianness=(int)4321, format=(fourcc)BGRA, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)%d, height=(int)%d, framerate=(fraction)%d/1, pixel-aspect-ratio=(fraction)1/1, interlaced=(boolean)false' % (width, height, framerate) SRC = 'rtspsrc location=rtsp://192.168.1.100 ! rtph264depay ! h264parse ! ffdec_h264' SCALE = 'ffmpegcolorspace ! videorate ! videoscale ! ffmpegcolorspace' -#SINK = 'shmsink socket-path=%s shm-size=%d wait-for-connection=0' % (pipe, shm_size) -SINK = "ximagesink" +SINK = 'shmsink socket-path=%s shm-size=%d wait-for-connection=0' % (pipe, shm_size) +#SINK = "ximagesink" pipeline = gst.parse_launch('%s ! %s ! %s ! %s' % (SRC, SCALE, MIXERFORMAT, SINK)) diff --git a/scripts/test720pCam.sh b/scripts/test720pCam.sh index 4bfc742..5d9ebbe 100755 --- a/scripts/test720pCam.sh +++ b/scripts/test720pCam.sh @@ -6,10 +6,14 @@ MIXERFORMAT='video/x-raw-rgb, bpp=(int)32, endianness=(int)4321, format=(fourcc) SRC="rtspsrc location=rtsp://192.168.1.100 ! rtph264depay ! h264parse ! ffdec_h264" SCALE='ffmpegcolorspace ! videorate ! videoscale ! ffmpegcolorspace' -gst-launch-0.10 -v \ +SINK='ximagesink' +SINK='shmsink socket-path=/tmp/feed1 shm-size=10000 wait-for-connection=0' + + + +gst-launch-0.10 -v \ $SRC !\ $SCALE !\ $MIXERFORMAT !\ - ximagesink - + $SINK