
Recherche avancée
Autres articles (32)
-
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...) -
Participer à sa documentation
10 avril 2011La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
Pour ce faire, vous pouvez vous inscrire sur (...) -
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)
Sur d’autres sites (4539)
-
Python : How to use ffmpeg to read videos(video file or rtsp) and display them using OpenCV ?
22 août 2019, par ToughMindI know that if we want to read video file or USB camera or rtsp stream, we can use
cv2.VideoCapture
.
But for some reason, I want to use ffmpeg to do the thing and process obtained images using opencv. So the pseudocode would be :import cv2
import ffmpeg
videoFile = 'XXX.mp4'
video = ffmpeg.XXX(videoFile)
while True:
frame = video.read() # this read() function is made up by me
frameCV = ffmpeg2cv(frame) # this ffmpeg2cv() function is made up by me
cv2.imshow('frame', frameCV)I have searched a something like https://github.com/kkroening/ffmpeg-python. But I still not know how to do this. I think ffmpeg is too hard and there are few online docs unlike opencv. So please help.
-
How to change ffmpeg -threads settings [migrated]
5 août 2014, par JacobWorking on a tube site. I’m running videos through ffmpeg on a linux dedicated server to convert to mp4.
The server specs :
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 60
Stepping: 3
CPU MHz: 3491.749
BogoMIPS: 6983.49
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K
NUMA node0 CPU(s): 0-7Issue during testing is that even only doing 4-5 at once, the server load skyrockets to an average of around 36. This is just a single person. I imagine when it opens, many people will be uploading at once.
It seems ffmpeg tries to use all the resources available per conversion.
I’ve heard there’s a -threads setting you can change, but I cannot find it. I have an 8 cpu server. It’s only used for conversions, so I’ve heard the best setting would be between 2 and 4. I can test it out.
But how do I change this setting ? Everything I see online discusses this setting, but not the steps to change it.
-
FFMPEG not converting or sending new video to folder
7 mars 2016, par David DrawSo recently I wanted to work on converting any video file that isn’t a MP4 file to that very file type. I did a lot of browsing and FFMPEG was the solution.
I tried using FFMPEG_php on my wamp server but seems it is outdated and is no longer updated
So I downloaded the static package off the FFMPEG website and put it into my C : drive and put the path to it in my computer, following some videos and tutorials online to do so.I believe calling it from the php file with a path is what I have to do as there is so much conflicting information on this which isn’t clear.
So I’m on windows 7 build 7601
I use wamp server 2.5 with the Highest PHP, MYSQL and APACHE.I added the below code into my php script after the file is moved to the first folder as by a few tutorials I’ve read. But the uploaded file is not converting nor is being put in the destination_mp4 folder.
Any help would be greatly appreciated. Thank you.
if(move_uploaded_file($file_loc,$folder.$final_file))
{
exec("C:/ffmpeg/bin/ffmpeg.exe -i ".$folder.$final_file." ". $destination_mp4."");
$newName = $_SERVER['REMOTE_ADDR'].'_'.$_SESSION['id'].''.time();
$mp4Name=$newName.'.mp4';
$destination_mp4='C:/wamp/www/include/uploadvideomp4/'.$mp4Name;