Share Coding

Tutorials, Problems, Stuffs …

Tag Archives: flash

Install xfce4 & TigerVNC-Server & Firefox & Flash on Centos 6.2

1. Install EPEL & RPMI & YUM-Priorities

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum install yum-priorities

 
2. Update OS

yum update

 
3. Edit EPEL repo: Add “priority=10” under “enabled=1

vi /etc/yum.repos.d/epel.repo

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
priority=10

 
4. Edit RPMI repo: Add “priority=10” under “enabled=0” and change “enabled=0” to “enabled=1

vi /etc/yum.repos.d/remi.repo

[remi]
name=Les RPM de remi pour Enterprise Linux $releasever - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=1
priority=10

  Read more of this post

Advertisements

H.264 Live Video Streaming on Actionscript 3.0 with Red5 Server

**A suggestion for you**: do not try to use flash streaming as a stable long term video publishing channel.

1. Import

import flash.media.H264VideoStreamSettings;
import flash.media.VideoStreamSettings;
import flash.media.H264Level;
import flash.media.H264Profile;

2. Variable and setting

var cam:Camera;
var camBandWidth:Number = 0;
var camQualityPersentage:Number = 90;
var camFPS:Number = 15;
var camKeyFrameInterval:Number = 35;
var camWidth:Number = 240;
var camHeight:Number = 220;

var h264Settings:H264VideoStreamSettings;

Read more of this post