sowmithrii Posted December 6, 2007 Share Posted December 6, 2007 Am having a collection of videos in my server application folder under "...../sowmithrii/videos/" . now i want to display all the list on a webpage but not as a word list but as a thumbnail list. how can i implement this in php. if any one got some sample code.. i will be very thankful. regards sowmithrii Quote Link to comment Share on other sites More sharing options...
graham23s Posted December 6, 2007 Share Posted December 6, 2007 Hi Mate, i use: ## convert string $encode = "/usr/bin/ffmpeg -i $uploadedmoviesdir -sameq -acodec mp3 -ar 22050 -ab 32 -f flv -s 320x240 $outputflvdirectory"; $scrcap = "/usr/bin/ffmpeg -i $outputflvdirectory -s 320x240 -ss 00:00:05 -t 00:00:01 -f image2 flvmovies/screencaps/$var_loggedinuser-$timestamp-screencap.jpg"; ## execute exec($encode); exec($scrcap); just chance the path and name of the screencap.jpg at the end:) Graham Quote Link to comment Share on other sites More sharing options...
sowmithrii Posted December 6, 2007 Author Share Posted December 6, 2007 hi graham, i dont understand your code... is that related to unix or what. am pretty new to php and am working on windows. how can i implement your code in my script page.... any examples...? Quote Link to comment Share on other sites More sharing options...
graham23s Posted December 6, 2007 Share Posted December 6, 2007 Hi Mate, yeah sorry i was assuming you were using FFMPEG, are you on shared hosting at all? or are you working from localhost? cheers Graham Quote Link to comment Share on other sites More sharing options...
sowmithrii Posted December 7, 2007 Author Share Posted December 7, 2007 hi grahm, am on shared host... only. i havent heard of ffmpeg, what is that. ... .... and is it used in getting thumbnails.. am having my hosting in dreamhost ,, and i am writing scripts on php. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.