Jump to content

Can this be done in php?


Sangha-08

Recommended Posts

Ok, I am currently having thoughts of building a website with Divx/Avi videos online, but i want to be able to add a custom video that plays before the video starts, or puts a logo on the top right. So whenever xyz.(avi/wmv/divx) is uploaded, my server should re-encode the video and play my custom video before the file is played...

 

does anyone know if i can do this using php? if not, what should i use and who should i hire to do the work?

Link to comment
https://forums.phpfreaks.com/topic/127764-can-this-be-done-in-php/
Share on other sites

sounds kinda like long tail im new to php so im not sure how it would be done so i offer the link to alt

 

http://www.jeroenwijering.com/?item=LongTail_Video

 

Lol I run an anime website using Jw's flv player, its brilliant! But that offtopic.

 

I want to know if i can get my server to encode the videos... with avi/wmv extensions, not shit quality flv lol 

You dont need to re-encode anything. You can simply add two videos together using the Linux cat command.

 

cat yourintro.avi uploaded.avi > new.avi

 

Will that make one file?

 

I have a Linux server, but i cannot access the cmd on it because I am a noob on an assisted dedicated server. IS there any way with php to combine the files togather? and will it bring my server down?

 

my server has:

2gb ram

dual core processor 2.8 Ghz

@thorpe: I didn't know that.  I'd think that it would mess up some beginning lines in the file or something. o_O

 

It will sometimes break the indexing but thats nothing that can't be fixed.

 

IS there any way with php to combine the files togather?

 

See the exec familly of functions.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.