media converter plugin screenshots

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
does anyone know how the screenshot part of the media converter works. Currently it works well for me however no screenshots are generated
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
seems to work now, however only for larger files, when i was testing i was using a sample avi file that was less than 1MB
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
ffmpeg takes forever to convert files, does anyone have any tips to speed this up a bit

in the convert file this is called for the conversion to start

$conversionPathCmd = FFMPEG_PATH . ' -i ' . $localFile . ' -vcodec '.$videoCodec.' -r '.CONVERT_FRAMERATE.' -b:v '.CONVERT_BITRATE.' -flags +aic+mv4 ' . $scale . ' -vf "movie=' . $watermarkFile . ' [watermark]; [in][watermark] overlay=' . $overlay . ' [out]" ' . $convertedFilename;

can we use -crf or -preset in the above to make adjustments

ffmpeg took approx 30 min to convert a 300ish mb file, thats too long in my opinion

also, does anyone have any suggestions with renting some sort of server whether vps or dedicated at a reasonable price to install ffmpeg on and use with ys.

thanks
 

enricodias4654

Member
YetiShare User
Jan 13, 2015
411
1
16
The time it takes to convert depends on your server processor. You can add -threads N in the command to make ffmpeg use more than one thread (and therefore more than 1 core) to process. N will be the number of threads.

300mb file in 30 minutes using only one core is normal. Using an dual core i7 processor in my laptop it takes around 15min to convert a 300mb video using both cores. Using gpu it takes even longer.
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
i have a quad core server, but at the same time have to run the website off it, so i may need to use ffmpeg on a different server
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
its not really clear to me how to set up ffmpeg on a different server with ys, do i have to have that external server setup as a storage location as well, when a file is uploaded to ys, is it transferred to the external server converted then copied back ?
 

enricodias4654

Member
YetiShare User
Jan 13, 2015
411
1
16
paypal1352 said:
its not really clear to me how to set up ffmpeg on a different server with ys, do i have to have that external server setup as a storage location as well, when a file is uploaded to ys, is it transferred to the external server converted then copied back ?
I don't have the media converter plugin so I don't know how it works and how to make it use storage servers to convert files. But, since the files are uploaded to several different servers it seems logical to make each server convert its videos.
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
ya i'm not sure either, because i would like to get ffmpeg hosting, but i don't know if i'd be able to use that as a file storage location for ys or if thats even a requirement for the mediaconverter plugin to work with a remote server, i'd rather avoid renting multiple dedicated servers until i need to do so and have the user base to justify it