
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (57)
-
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 (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)
Sur d’autres sites (6705)
-
PHP and FFMPEG advice/sollution for a unknown issue
20 octobre 2015, par sonam SharmaI am having a live video streaming website and I allow people to upload all the video files to the site till now everything is ok.
What I am doing is that I am using FFMPEG to convert the video to mp4 and also get a image out of the video after 20 seconds.
The code that I am using is that :
require 'vendor/autoload.php';
$getEXT_check=substr(@$_FILES['profileimage99']['name'],-3);
if($getEXT_check !='mp4' && $getEXT_check !='MP4'){
exec('ffmpeg -i '.$uploadfile.' -f mp4 -s 896x504 '.$new_flv.''); }
//execute ffmpeg and create thumb
exec('ffmpeg -i '.$uploadfile.' -ss 00:00:20 -vframes 1 '.$new_image_path);
$theduration=exec('ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 '.$uploadfile.' 2>&1');
$theduration_val=round($theduration/60, 2);What issue I am having is that
- sometimes the code dosent extract the image out of video
- video conversation takes very long time for non mp4 video (I am not converting mp4 videos)
Some info what I have done on server. During the development of site I installed ffmpeg on my pc and downloaded the vendor directory by composer.json file. But I have not done these things on my server I have a dedicated server from bluehost and have ffmpeg installed at this location.
/usr/local/bin/ffmpeg
/usr/local/bin/mplayer
/usr/local/bin/mencoder
/usr/bin/flvtool2
/usr/local/bin/MP4Box
/usr/local/bin/yamdiDuring uploading the site what I did is that I also uploaded the vendor directory and all the files and made the site live. I haven’t used any of the path as given by my server admin after asking.
Please suggest me something where I am doing wrong.
-
Python : How to clip/trim required part from the video and move the trimmed video file to other directory
4 avril 2021, par saurabhI'm trying to remove duplicate segments from videos from a directory and paste these trimmed videos to other directory.


For example :


I've following directory structure for saving live rtsp stream (each 1 min long) :-


Live_videos
------2021-04-04
 ------stream1
 -------14 36 08.avi( 1 min)
 14 37 08.avi( Saved only till 14 37 39 mark due to disconnect with stream1 camera)
 14 38 35.avi( 1 min)
 stream2
 -------14 36 15.avi( 1 min)
 14 37 15.avi( 1 min)
 14 38 14.avi( 1 min)



So, the disconnect and reconnect time are 14 37 40 and 14 38 34 respectively which will be sent to some other server and that server will search for videos saved in their machine which contains segments from the given timestamps and sends the video file in following directory structure : -


Edge_videos
-----------2021-04-04
 ----------stream1
 -------14 36 35.avi
 -------14 37 35.avi



Now, you can see that the received video files have the required segments from disconnect period as well as duplicate segments which are already saved in Live_videos directory.


How do I remove the duplicate segments from the received videos and move only the required trimmed video file to the Live_videos----> stream1 directory and delete all the files from Edge_videos afterwards.


-
Get ffmpeg info from Pipe (stdout)
12 août 2020, par Peter SilieI want to call ffmpeg to get the duration of a video file. When using the command in OSX Terminal everything works fine :


ffmpeg -i MyVideo.MOV 2>&1 | grep "Duration"



I get this :


Duration: 00:01:23.53, start: 0.000000, bitrate: 39822 kb/s



It is perfect for me. But now I tried this call from within my code :


func shell(launchPath: String, arguments: [String]) -> String
{
 let task = Process()
 task.launchPath = launchPath
 task.arguments = arguments

 let pipe = Pipe()
 task.standardOutput = pipe
 
 do {
 try task.run()
 // task.launch() till 10.12, but now catchable!
 } catch let error as NSError {
 print(error.localizedDescription)
 return ""
 }
 
 let data = pipe.fileHandleForReading.readDataToEndOfFile()
 let output: String = NSString(data: data, encoding: String.Encoding.utf8.rawValue)! as String

 return output
}



This code works fine for all other external commands. But here I get error :


[NULL @ 0x107808800] Unable to find a suitable output format for '2>&1'
2>&1: Invalid argument



I defined the arguments for ffmpeg like this :


let arguments = ["-i", video.path, "2>&1", "|", "grep \"Duration\"" ]



Even if I put them all in one argument as a larger string, it doesn't work. Using "pipe:1" instead of "2>&1" and rest of arguments results also in an error.


Any idea, how I get it to work ?