Fabio Invernizzi

/fabulus talks about him and his hacks…

Movie Reference

Filed under: /me — fabio at 4:45 pm on Thursday, August 26, 2004

Dirty-hack per generare al volo il movie-ref per il darwin streaming server.

Visto che non ho trovato il formato del file binario l’ho fatta un po’ sporca. Essenzialmente ho messo in una variabile il contenuto di un file generato e lo uso come template sostituendo solo l’indirizzo del file. Le altre informazioni infatti rimangono costanti.

$movie = $q->url(-path_info=>1,-relative=>1);
$mov_templ="^@^@^@zmoov^@...^@>rtsp://server.dominio.it:7070/XXX^@^@^@^@^Prmdr^@....~V^@";
$mov_templ =~ s/XXX/$movie/;
print "Content-Type: video/quicktime\n\n";
print $mov_templ;

Aggiunti un po’ di controlli e cosmesi e lo script è pronto.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.