Sangha-08 Posted October 9, 2008 Share Posted October 9, 2008 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 More sharing options...
dropfaith Posted October 9, 2008 Share Posted October 9, 2008 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 Link to comment https://forums.phpfreaks.com/topic/127764-can-this-be-done-in-php/#findComment-661351 Share on other sites More sharing options...
Sangha-08 Posted October 9, 2008 Author Share Posted October 9, 2008 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 Link to comment https://forums.phpfreaks.com/topic/127764-can-this-be-done-in-php/#findComment-661353 Share on other sites More sharing options...
trq Posted October 9, 2008 Share Posted October 9, 2008 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 Link to comment https://forums.phpfreaks.com/topic/127764-can-this-be-done-in-php/#findComment-661354 Share on other sites More sharing options...
DarkWater Posted October 9, 2008 Share Posted October 9, 2008 @thorpe: I didn't know that. I'd think that it would mess up some beginning lines in the file or something. o_O Link to comment https://forums.phpfreaks.com/topic/127764-can-this-be-done-in-php/#findComment-661355 Share on other sites More sharing options...
Sangha-08 Posted October 9, 2008 Author Share Posted October 9, 2008 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 Link to comment https://forums.phpfreaks.com/topic/127764-can-this-be-done-in-php/#findComment-661359 Share on other sites More sharing options...
DarkWater Posted October 9, 2008 Share Posted October 9, 2008 PHP can access the shell. Link to comment https://forums.phpfreaks.com/topic/127764-can-this-be-done-in-php/#findComment-661365 Share on other sites More sharing options...
trq Posted October 10, 2008 Share Posted October 10, 2008 @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. Link to comment https://forums.phpfreaks.com/topic/127764-can-this-be-done-in-php/#findComment-661471 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.