Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
19Activity
0 of .
Results for:
No results containing your search query
P. 1
php et streaming vidéo

php et streaming vidéo

Ratings:

5.0

(1)
|Views: 1,028|Likes:
Published by dvdstory
PHP SOLUTIONS
PHP SOLUTIONS

More info:

Published by: dvdstory on Sep 06, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

02/01/2013

pdf

text

original

V o trep ro p reG o o g leV id e o :
s tre a m in gv id e oe nP H P
R a fa l M a lin o w s k i
N iv e a u d e d iffic u lt\u00e9:o
V o u sv o u s \u00ea te sdem and\u00e9scom m entfo n c tio n n a it
la le c tu red efilm s \u00e0 p a rtird uW eb?
A im e z -v o u sG o o g leV id e o? F a ite s

c o n n a is s a n c ed us tre a m in gv id e o(d iffu s io ne n
flu x c o n tin ud e sv id \u00e9 o s )e t c r\u00e9 e zv o trep ro p re
g a le r ieW ebd efilm s . ll s u ffitd e c o n n a \u00eetrele s

b a s e sd eP H Pe t c 'e s tto u t!
u b lie r le sfilm s s u rIn te m e t e n
se basants u rF la s h P la y e rcom -
p re n dtro iso p \u00e9 ra tio n s:
.
c o n v e rtirle film a u fo rm a tF la s hV id e o
(F L V )s u p p o rt\u00e9p a rF la s h P la y e r,
.
c r\u00e9 e rl ele c te u r (M e d iaP la y e r)q u i
c h a rg e rale film d e p u isle s e rv e u re tle
p r\u00e9 s e n te raa u c lie n td a n sle n a v ig a te u r,
.
p u b lie ru n s iteW eb o\u00f9v o u sp la c e re z
le le c te u r.
A fin d e d \u00e9 c rirele s o p \u00e9 ra tio n sc i{ e s s u s ,
n o u sa v o n sd iv is \u00e9I'a r tic lee n tro isp a rtie s:
.
p re m i\u00e8 re p a rtie : d\u00e9m anage ra p id e
o \u00f9n o u sv o u sp r\u00e9 s e n te ro n s ,
com m ent
p u b lie ru nfilm s u rIn te rn e t.
C es e ra u n
e x e m p lep o u rl a p la te -fo rm eW in d o w s ,
.
d e u x i\u00e8 m ep a rtie: n o u sd \u00e9 v e lo p p e ro n s
e n s e m b le l'e x e m p le d \u00e9 c r itd a n sl a

p re m i\u00e8 rep a rtieet nousp r\u00e9 s e n te ro n s com m enta u to m a tis e rle s o p \u00e9 ra tio n s d \u00e9 c rite se tcom m entv o u sre n d re in -

d \u00e9 p e n d a n tsd u s y s t\u00e8 m ed 'e x p lo ita tio n
a v e cle q u e lfo n c tio n n e ral a g a le r ie ,
.

tro is i\u00e8 m ep a rtie: nousnous base- ro n s s u r le s c o n n a is s a n c e sa c q u i- s e sd a n s la d e u x i\u00e8 m ep a rtie a in s i

q u es u rle c o d eq u en o u sy a u ro n s c r\u00e9 \u00e9p o u rr \u00e9 a lis e ru n ev e r s io nfin a le d u s e rv ic e :u n e g a le r iede film s fo n c tio n n e lle

e t u n iv e r s e lle .
D \u00e9 m a rra g era p id e
V o u s a lle ze ffe c tu e r
tro is \u00e9 ta p e s :\u00e9 ta p e1
-c o n v e rtirle fic h ie rv id \u00e9 o ;\u00e9 ta p e2- r \u00ea a li"
s e r u nle c te u rv id \u00e9 o e n F l a s h ; \u00e9 t a p e3-in -
t\u00e9 g re rl e l e c t e u r e nH T M L .
G eq u 'ilfa u ts a v o ir...
A v o ir le s b a s e s d e P H P s e ra tr\u00e8 s u tile .
G eta rtic lee x p liq u e ...

V o u s a p p re n d re zcom m entc r\u00e9 e rv o tre p rc ,p reG o o g le V id e o :u n e g a le r ie c o m - p l\u00e8 te de film sa v e c

M e d iaP la y e r F la s h s u r In te m e tq u i p e rm e ttrade chargerle s film s e t d e le s lir e e n c o n tin u .

R a fa l M a lln o w s k le s lprcgnm m eure t
\u00e6 n \u00e6 p te u r
d 'a p p li\u00e6 tio n sr\u00e9seau en
PHe JAUAe t A d io n S a ip t.P e n d a n ts o n
te m p s lib r e ,il c r\u00e9 e d e sb ib lio th \u00e8 q u e s
p u rF la s he tp a ftic ip\u00e0p lu s ie u r sp ro ie ts

O pen S o u rc e .A d u e lle rn e n t,il tn v a ille c h e zS U P E R M E D IAs u r lep o s ted e c o n c e p te u r/p rc g n m m e u rJ a v a .

@ n ta d : m a lin r@ w p .p l
w w w .p h p s o lm a g .o rg
P H P S o lu tio n sN " 5 /2 0 0 6
E n fo n c tio nd u
s y s t\u00e8 m ed 'e x p lo ita tio n
e t d e s s o lu tio n su tilis \u00e9 e s ,i l e s t p o s s ib le
d 'e ffe c tu e rc h a c u n e d e c e s \u00e9 ta p e s d e
p lu s ie u r sm a n i\u00e8 re s .Dans un
p re m ie r

te m p s ,r \u00e9 a lis e z u n ep r\u00e9 s e n ta tio np r\u00ea te \u00e0 a tte in d re ra p id e m e n tl'o b je c tif.P o u r c e fa ire , u tilis e z d e sp ro g ra m m e s c o m - m e r c ia u x(v e rs io n d 'e s s a i) , d is p o n ib le s u n iq u e m e n t(h \u00e9 la s ) p o u rl ap la te -fo rm e W in d o w s . T o u te s le s

\u00e9 ta p e s
s e ro n t
p r\u00e9 s e n t\u00e9 e sI'u n e a p r\u00e8 s I'a u tre .D a n sl a
p a rties u iv a n ted e
I'a rtic le ,nous vous

p r\u00e9 s e n te ro n sle s s o lu tio n sin d \u00e9 p e n d a n - te s d u s y s t\u00e8 m e d 'e x p lo ita tio nq u in \u00e9 c e s - s ite n tto u te fo isp lu s d e tra v a il.

G o n v e r s i o n d ' u nfic h ie rv id \u00e9 o

F la s h P la y e r tr a v a ille a v e c le s fic h ie r s v id \u00e9 oa u fo rm a t F la s h V id e o (F L V ). C e fo rm a te s t ra re m e n t re n c o n tr\u00e9 e t il e s t d o n c n \u00e9 c e s s a ire d e le c o n v e rtir.P o u r c e fa ire , u tilis e z le

p ro g ra m m eR iv a
F L VE n c o d e r

(h ttp ://w w w .riv a v x .c o m /? e n c o d e r).C o m m e v o u s le v o y e z s u rl a F ig u r e 1 , R iv a F L V E n c o d e r v o u sp e r- m etd e :

.
c o n f i g u r e r l a r \u00e9 s o l u t i o n d ufilm in itia l(1 ),
.
c o n fig u re rle sp a ra m \u00e8 tre s d e
com -
p re s s io nd ufic h ie r(2 ),
.
c o u p e r c o rre c te m e n tle s im a g e s d u
f i l m(3 ),
.
c o n f i g u r e r l e sp a ra m \u00e8 tre s d u s o n(4 ).

D ep lu s ,c e p ro g ra m m ev o u s p e rm e t de r \u00e9 c u p \u00e9 r e run seulc a d re d u filme t l'e n - re g is tre r

s o u s fo rm e d efic h ie rg ra p h iq u e
J P E G- o n g l e tl m a g e(5 ).

A fin d 'e ffe c tu e r la c o n v e r s io n ,p a ra m \u00e9 - t r e z l ec h e m in d u f i c h i e r i n i t i a le t d u f i c h i e r d e s o rtie e t c liq u e z s u rl e b o u to nF L V E n c o d e(6 ). E n r e g i s t r e zl ep re m ie rfic h ie r F L V .

A p p e lez -le vid e o te s t.flv .
L e c te u rv id \u00e9 o F la s h
M a c r o m e d iaF la s h ,p ro g ra m m e q u e v o u s
u tilis e r e zp o u r r \u00e9 a lis e r le
p re m ie rc lip

f l a s h , d i s p o s e d ' u n M e d i a P l a y e r \u00e9 l \u00e9 g a n t . M a c r o m e d iaF la s h e s tp a y a n t m a isp o u r le s b e s o in s d ep r\u00e9 s e n ta tio n , n o u s u tili- s e ro n ss a v e rs io n d 'e s s a i \u00e0 t\u00e9 l\u00e9 c h a rg e r d e p u is le

s ite :
h ttp ://w w w .a d o b e .c o m /
p ro d u c t s / f l a s h / fI a s hpro /.
U n e fo is c e tte v e r s i o n i n s t a l l \u00e9 e ,v o u s
p o u v e zr \u00e9 a lis e ru n le c te u r v id \u00e9 o F la s h
a ttra y a n t
a v e c m in im u m d e tr a v a il. L a n -
c e z F la s h(F ig u re 2 ), c r\u00e9 e z u nn o u v e a u
F ig u re 1 . R iv a F L V E n c o d e r- c o n v e rtis s e u rd e fic h ie rs v id \u00e9 o a u fo rm a t F L V
d o c u m e n t,p a r e x e m p le ,te s tp la y e r.fla e t
d \u00e9 p la c e zl e c o m p o s a n tM e d ia P la y b a c k

(1 ) s u r la s c \u00e8 n e(2 ) (e n a n g la is S fa g e , z o n e d e tra v a il d u d o c u m e n t).E n s u ite , la n c e z C o m p o n e n tln s p e k to r(3 ) o \u00f9 il fa u t s a is irle c h e m in d 'a c c \u00e8 s(U R L ) a ufic h ie r F L V(4 ) p r\u00e9 p a r\u00e9 a u p r \u00e9 a la b le .L 'U R L p e u t

a v o ir la form e d 'u n c h e m inre la tif o ua b - s o lu (q u i c o m m e n c e s o itp a rfile :\ s o itp a r h ttp :\). P o u rs im p lifie r , n o u s a d m e tto n s q u e a u s s i b ie n M e d ia P la y e r q u e le film

s e tro u v e ro n t d a n s le m \u00ea m e d o s s ie r e t d o n c q u 'il s u f f i td e s a i s i rle n o m d u fic h ie r v id \u00e9 o : v id e o te s t.flv .

F ig u re 2 . M a c ro m e d ia F la s h- z o n e d e tr a v a ild e l'a p p lic a tio n
F lla
[a r6 .u 4 ,c
?
fV A
'* + F L v
E N ..D E R
-,O n lin eH c lp
, ; h
lf,d e o n le b
- . F o ru m
P re s e l
D 5 [,x m l
h .r
I n p u l V i d e o
j
M dco
I
tm a g cO
, '8 r\u00e6 rc
u .l\u20ac o
,fio v ic
S kc
'e \u00e6 t6 -r
'
{D e in te rla c e
'F n m c rrtc
B ltr\u00e0 tc
O rfF f
O u t p u t D i r e c t o r y
E :\d o c u m e n ts \a d m in V n y -d o c u m c n ts ll\o je
w id c o
B ro ts c
D e s tin e tio n Y id e o tile
R o e u lt
\u00ca flr|\u00cb ro \u00fb tF {f6
f f f i
llI E
rd rfvrf,tr
P H PS o lu tio n sN " 5 /2 0 0 6
w w w .p h p s o lm a g .o rg
r ,
- l t r l I l
E te
E \u00fb
$ e w
E p
E o d q \u00cb k s
lo d r
S F
I
t"
.l| 3
# ]t r
@
+
6 lr* e '///e '/o o c u n c n ts /a c
IG I
( (
F igrrre 4C o m p o s a n tM e d ia P la y b a c kd e M a c ro m e d iap r\u00e9 s e n ta n tu n film d a n s le
n a v ig a te u r ln te rn e t
C rrre r*p ro fle :lo e fa U t
F s m a tsF l\u00f4 $
l* *
I
le rd o n :lrb s h P la y e r
7
: J
le o tto mu p
: l
P u b l i c a t i o nd e M o v i e C l i p

E n s u ite ,il fa u t c r \u00e9 e r u n fic h ie r H T M L o \u00f9 v o u sp la c e re z M o v ie P la y e r d e s o rteq u e le sa u tre s p u is s e n t le re g a rd e r.En ceq u i concem ele t\u00e9 l\u00e9 c h a rg e m e n tdu fic h ie rv id \u00e9 o e t s a le c tu red a n s le n a v ig a te u r,

c 'e s tM o v ie

P la y e rq u is 'e n c h a r g e .M a c r o m e d iaF la s h v o u s f a c i l i t e i c i c o n s i d \u00e9 r a b l e m e n t l a t \u00e2 c h e . S \u00e9 le c tio n n e zla c o m m a n d e F ile- > P u b lis h S e ffin g s d a n s le m e n u(F ig u re 3 ). D a n s la n o u v e lle fe n \u00ea tr e , d a n s I'o n g le t F la s h , c o n fig u r e z le sp a ra m \u00e8 tre s d e lap u b lic a - tio n e t s \u00e9 le c tio n n e zla v e r s io n 7 d e F la s h P la y e r(1 ).C liq u e z s u r le b o u to n P u b lis h; d e u x n o u v e a u x fic h ie rs :fe s fp /a y e r.s v v f

e t
te s tp la y e r.h tm l a p p a ra is s e n td a n s
le
r\u00e9 -

p e rto ireo \u00f9v o u s a v ie z e n re g is tr\u00e9 le fic h ie r te s tp la y e r.fla .S i v o u sp la \u00e6 z\u00e0 p r\u00e9 s e n tc e s fic h ie r s a v e c le fic h ie r v id \u00e9 os u r les e r v e u r e t s i v o u s o u v re z lap a g ete s tp la y e r.h tm l, v o u sd e v r ie z v o irle filmp u b li\u00e9d a n s le n a v i- g a te u rIn te m e t(F ig u re4 ).

C 'e s tp r\u00ea t !
N o u s fin is s o n s a in s ic e tte in tr o d u c tio n .

L ap a g e c r \u00e9 \u00e9 e s e ra v is ib le d a n s to u s le s n a v ig a te u rs In te rn e t d o t\u00e9 s d 'u np lu g - in F la s h P l a y e r7 o u s u p \u00e9 r i e u r .

C om m evous

p o u v e z l e c o n s t a t e r ,r \u00e9 a l i s e ru n e p u b lic a - tio nd e fic h ie rsv id \u00e9 o e s t tr\u00e8 s s im p le . M a l- h e u re u s e m e n t,le ss o lu tio n s u tilis \u00e9 e s n e

r\u00e9 p o n d e n tp a s \u00e0 n o sb e s o in s . P re m i\u00e8 re - m e n t,e lle s s o n t c o m m e r c ia le s( e lle sc o \u00fb - te n tc h e r) e t n e s o n t d is p o n ib le sque pour lap la te -fo rm e W in d o w s . D e u x i\u00e8 m e m e n t, il fa u t e ffe c tu e r to u te s le s o p \u00e9 ra tio n s \u00e0 la m a in .\u00c0p r\u00e9 s e n t,n o u s e s s a y e ro n sensem - b le d ' a u t o m a t i s e r l ep r o c e s s u sde conver- s io n d e film s , n o u s in s is te r o n ss u r le c \u00f4 t\u00e9 u n iv e rs e le n n o u s re n d a n t in d \u00e9 p e n d a n ts d u s y s t\u00e8 m e d 'e x p lo ita tio ne t e n p lu s , n o u s n 'u tilis e r o n sq u ed e s lo g ic ie lsg ra tu its .

l lesttem ps
d el e d \u00e9 v e lo p p e r

S i v o u s v o u le zp e rm e ttre \u00e0 I'u tilis a te u rd e t\u00e9 l\u00e9 c h a rg e r v o sp ro p re s fic h ie r s v id \u00e9 o ,i l fa u t o ffrir u n e c o n v e rs io n a u to m a tiq u ed e film s . S ta n d a rd F la s hV id e o(F L V ) e s tu n fo rm a t d e s tin \u00e9 a u x fic h ie r s v id \u00e9 o , in v e n t\u00e9 p a r M a c r o m e d ia ; ilp e rm e tu n e d ifiu s io n

e n
c o n tin u(e n
a n g la is s tr e a m in g )d e s
film s dus e rv e u r \u00e0 I'a id e d e M a c ro m e d ia
F la s h P la y e r(v e rs io n6
o u
s u p \u00e9 rie u re ).
L e s tre a m in gp e rm e td e m o n tre r le film
lo rs d e s o n t\u00e9 l\u00e9 c h a rg e m e n t.F la s h P la y e r
d is p o s e
\u00e9 g a le m e n t d 'a u tre s m \u00e9 th o d e s ,
p e rm e tta n t d e fo u m ir le s film sa u n a v i-
\u00e2 ftio tS s b t
v u rs io n :
O p tb n e :
lR c tio n s c r ip t
2 .0: J
l-
g e n c r*ad z efe p g t
J -E r*\u00e6 t fro m irp o rt
f -o r*ir\u00e6 c e c tin rs
I -o c U u g figp c rn * tc d
F
C o n p r c s s r n o v b
c\u00e6 d
l
g J+ lq lo|: : r
I
F ig u re3 .M a c r o m e d ia F la s h-P u b lis h S e ffin g s
s c tth E p ,..I
l-
O p tn n iz e f
o r F la s h P la v e r
61 6 5
P\u00e6 sw sd:I
0 l\u00e6
A u d o tlc s n :
lf il,
1 6 k b p s ,ilt r p
A J d og v a *:
l'1 P 3 ,1 6 k b p s , \u00ce'lo n o
l-
O v trlrid c s fln d s c fiftg t
l-
expo* dcrdcas d rx k
L \u00e6 C d ry b d ,s c ilt\u00ef:
w w w .p h p s o lm a g .o rg
P H P S o l u t i o n sN ' 5 / 2 0 0 6

Activity (19)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
riadh_2006 liked this
Amine Chafai liked this
oussama027 liked this
haw007 kobra liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->