First test with snowmix

This commit is contained in:
Sebastian 2015-06-07 15:14:49 +02:00
parent f4bdbeb0da
commit 614f215186
4 changed files with 51 additions and 6 deletions

BIN
frames/test_1280x720 Normal file

Binary file not shown.

40
ini/test720p.ini Normal file
View File

@ -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

View File

@ -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))

View File

@ -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