darkwolf Posted March 24, 2007 Share Posted March 24, 2007 Alright, we can use the simple FFMPEG conversion command from the command line to convert a video to FLV. exec("ffmpeg -i meow.wmv -ar 22050 -f flv output/meow.flv"); Now say I have two seperate videos, one called intro.flv and one called outro.flv How would I add these to the begining and end of output/meow.flv. Also, I know using GD, or something alike, we can put text into a picture.... What about putting text into a video, on every frame. I'm looking for something simple. Maybe this is already answered here, maybe I'll answer myself, but I'll get results and thats all that matters, get my scripts working the way they need to, and anyone else can use this to help them. Link to comment https://forums.phpfreaks.com/topic/44171-adding-introoutro-to-a-movie-php-ffmpeg-flvtool2/ Share on other sites More sharing options...
dswain Posted March 24, 2007 Share Posted March 24, 2007 That sounds like something that the program you're executing will have to do, not really PHP. Maybe I'm mistaken, but I think that's the case. Link to comment https://forums.phpfreaks.com/topic/44171-adding-introoutro-to-a-movie-php-ffmpeg-flvtool2/#findComment-214483 Share on other sites More sharing options...
darkwolf Posted March 24, 2007 Author Share Posted March 24, 2007 Most likley...... PHP could do it too, but I've chosen to use the command line....... iduno i'm a n00b or something how would I get it to add teh other two videos to the begning and end though Link to comment https://forums.phpfreaks.com/topic/44171-adding-introoutro-to-a-movie-php-ffmpeg-flvtool2/#findComment-214494 Share on other sites More sharing options...
dswain Posted March 24, 2007 Share Posted March 24, 2007 When you say "add" do you mean append the intro/outro video to the actual data of the movie or like display the video at the beginning and end of a page? If you mean append the data to the actual video, you'll have to use some command line tool and I guess you can execute it through PHP, but PHP won't do the video editing for you. If you mean display it on different pages of a web page, well then that's different. Link to comment https://forums.phpfreaks.com/topic/44171-adding-introoutro-to-a-movie-php-ffmpeg-flvtool2/#findComment-214499 Share on other sites More sharing options...
darkwolf Posted March 24, 2007 Author Share Posted March 24, 2007 yeah actauly add the intro and outro to the file. Link to comment https://forums.phpfreaks.com/topic/44171-adding-introoutro-to-a-movie-php-ffmpeg-flvtool2/#findComment-214524 Share on other sites More sharing options...
darkwolf Posted March 25, 2007 Author Share Posted March 25, 2007 fuck here aint the place Link to comment https://forums.phpfreaks.com/topic/44171-adding-introoutro-to-a-movie-php-ffmpeg-flvtool2/#findComment-214903 Share on other sites More sharing options...
dswain Posted March 25, 2007 Share Posted March 25, 2007 No, sorry I don't believe it is. Check the ffmpeg docs maybe for that information. Link to comment https://forums.phpfreaks.com/topic/44171-adding-introoutro-to-a-movie-php-ffmpeg-flvtool2/#findComment-214944 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.