
Recherche avancée
Autres articles (50)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (5466)
-
I am trying to generate thumbnail by using ffmpeg but I can not define pathways and make my codes work
17 juillet 2020, par D. MerchantFffmpeg modul is installed in my shared hosting.




My goal is to get a thumbnail of a video. My codes is in below. I can not make them work. This is my first time I use ffmpeg.


require 'vendor/autoload.php';

$video_path = 'home/sasasasasa/public_html/wp-content/uploads/jvhyicpzxy.mp4';

$ffmpeg = FFMpeg\FFMpeg::create();
$video = $ffmpeg->open($video_path);
$video
 ->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(5))
 ->save('new_preview1.jpg');



When I try the codes in the above, I get this error :




1- What does 'vendor/autoload.php' pathway mean ? I can not see a folder called "vendor" in my file manager.


2- I've check my ffmpeg folder with this code "exec('which ffmpeg') ;" and it outputs "/usr/bin/ffmpeg". But there is no directory in my file manager like that. After a search, Ive found this directory about ffmpeg : "/perl/usr/lib/perl5/FFmpeg". If I enter this path in my hosting, I can see only "Command.pm" and "Thumbnail.pm". What is my wrong, and how can I make my codes work and have a preview of the video ?


-
vf_setdar : make config_props work properly when called multiple times.
18 mars 2013, par Anton Khirnov -
ffmpeg works in command line but it doesn't work well in c#
14 août 2016, par Ahmad Ali MukashatyI want to stream movie via udp so I use this command line and it works well
ffmpeg -re -i test.mkv -q 1 -vcodec libx264 -f mpegts udp://network:port
but I want to run this command line using c# like this :
process = new Process();
process.StartInfo.FileName = "cmd.exe";
process.StartInfo.WorkingDirectory = @"c:\FFmpegTool\bin";
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.StartInfo.Arguments = "/C ffmpeg.exe";
process.Start();
process.StartInfo.FileName = "ffmpeg";
process.StartInfo.Arguments = "-re -i test.mkv -q 1 -vcodec libx264 -f mpegts udp://network:port";
process.Start();it works but I can’t receive the stream
why this commnand doesn’t work well when I use it in c# and what’s the different bettwen ranning command in cmd directly or using process class in c#