PHP & VLC media player.

About encoding, codec settings, muxers and filter usage
ArmadaNL
New Cone
New Cone
Posts: 2
Joined: 24 Jan 2005 15:03

PHP & VLC media player.

Postby ArmadaNL » 24 Jan 2005 15:07

Doesn't anyone know how to refer to a moviefile in a php page with VLC accepting it?

When I use <?php header("Location: movie.avi"); ?> IE will simply download to movie, but VLC can't use it as a stream.
The weird part is that the link to the file does appear in VLC promptly. So it does know there is a reference, but isn't willing to open it....

Thanx in advance!

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 25 Jan 2005 01:33

You are doing http-header redirect or something?
I don't think Location: is something VLC accepts. Isn't there another form of http redirecting you can use?
Don't use PMs for support questions.

ArmadaNL
New Cone
New Cone
Posts: 2
Joined: 24 Jan 2005 15:03

Postby ArmadaNL » 25 Jan 2005 12:12

Isn't there another form of http redirecting you can use?
The only other form I know of is include("page.php");, but that doesn't work for movie files... (only for other webpages)

christian.roessler

Postby christian.roessler » 04 Apr 2006 18:16

Isn't there another form of http redirecting you can use?
The only other form I know of is include("page.php");, but that doesn't work for movie files... (only for other webpages)
take a look at php.net -> header in function list
you can send additional header information to make a browser/app save a file, download it or make it streaming..

its like
header("content-type: application/octet-stream");
header("content-disposition: attachment");
header("...");
...
and so on

just play a bit, more information can be found in google.
it just wont work with: include() or header location: movie.mpg


greetz,
christian.roessler

Guest

Postby Guest » 20 Apr 2006 07:47

are you using firefox, ive noticed firefox chooses to dowload streams allot of the times
just my .02$


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 2 guests