
Recherche avancée
Médias (39)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (44)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (10004)
-
converting complex ffmpeg command to python3
14 janvier 2020, par MartinI have a complicated
ffmpeg
command that takes audio and image as input, and exports a music video.ffmpeg -loop 1 -framerate 2 -i "front.png" -i "testWAVfile.wav" \
-vf "scale=2*trunc(iw/2):2*trunc(ih/2),setsar=1,format=yuv420p" \
-c:v libx264 -preset medium -tune stillimage \
-crf 18 -c:a aac -shortest -vf scale=1920:1080 "outputVideo.mp4"I’m trying to write a python3 program
cmdMusicVideo.py
which will run this command in pure Python. I know that to run this command you need theffmpeg
program, I’m trying to write it in pure python3, where I’m not just spawning a separate process to run the bash command where the user needs to haveffmpeg
installed.I’ve looked at the various solutions to running
ffmpeg
in python3, and they’re either :- A : Just running the
ffmpeg
command as a subprocess, where the user needs to haveffmpeg
installed - or B : An ffmpeg pip program like
ffmpeg-python
The pip libraries I’ve checkout out all use incredibly different formatting, and I haven’t found a way to replicate my
ffmpeg
command. I’ve searched theloop
command in their python package documentation and it doesn’t appear anywhere.Is there a way to convert my
ffmpeg
command into a python3 program where the user doesn’t need to already haveffmpeg
installed on their computer ?The plan is to eventually turn this into its own pip package, and my concern is that if I use the A method, there would be a case where somebody tries to run my pip command but doesn’t have
ffmpeg
installed on their terminal (maybe using a python3 specific terminal ?) - A : Just running the
-
Converting multiple RTP Streams into gRPC Stream
20 janvier 2020, par GJ.I am receiving multiple RTP streams(g711 ulaw/alaw) which may be coming on TCP or UDP, I want to terminate the RTP and get the raw media from the RTP stream and stream it to a different destination by using Google gRPC protocol.
Currently I have a RTP processing engine which does this and give me the raw stream from RTP stack which i further stream to gRPC destination, but this solution does not scale beyond 1000 streams on one host and is difficult to maintain.
I want to replace this with some highly scalable solution where i can scale to several thousand of streams and does not need to be maintained.
I am exploring option to Use ffmpeg / gstreamer for getting raw packets from RTP stream. Not sure how scalable it would be and how do i get hold of the stream so that i can stream it over gRPC.
I have following questions :
- Is this good option to use ffmpeg / gstreamer for this purpose.
- How do i work with multiple streams any suggestions or sample.
- Any details about the scalability of ffmpeg / gstreamer.
- I plan to use Java for my application, which java wrapper would be good e.g. Xuggle / ffmpeg-cli-wrapper for ffmpeg.
-
imageJpeg and FFMPEG in windows vs linux
25 janvier 2020, par Tanmay GawankarI have a working code for converting image to a 5 seconds video using FFMPEG.
The problem is, The code only works for downloaded images, FFMPEG doesn’t convert image to video when image is generated programmatically ONLY IN LINUX.
PHP code
<?php
$downloadedF="folder/d.jpg";
$downloadedV="folder/d.mp4";
$renderedF="folder/r.jpg";
$renderedV="folder/r.mp4";
$op_d=shell_exec("ffmpeg -r 1/5 -i ".$downloadedF." -c:v libx264 -vf fps=25 -pix_fmt yuv420p ".$downloadedV);
$op_r=shell_exec("ffmpeg -r 1/5 -i ".$renderedF." -c:v libx264 -vf fps=25 -pix_fmt yuv420p ".$renderedV);
echo "Errors:<br />".$op_d."<br /><br />".$op_r;
?>The d.mp4(or output for downloaded image) is getting generated for both Windows and Linux
The r.mp4(or output for rendered image) gets generated only in Windows and 48 bytes empty file is getting created in LinuxSystem :
XAMPP on Windows 10(Development)
Godaddy Starter plan hosting - Linux(Probably redhat)(Production)File Structure
root folder
|-index.php
|-ffmpeg (will be ffmpeg.exe in Windows)
|-folder
|-d.jpg (random downloaded image from google)
|-d.mp4 (Will be created - video converted from downloaded image)
|-r.jpg (rendered image using php imagejpg)
|-r.mp4 (Will be created - video converted from rendered image)Rendered Image Code :
$imgFF = imagecreatetruecolor($videoWidth, $videoHeight);
//---adding many text using imagettftext();
imagejpeg($imgFF, $path."-000.jpg"); //for this example, I copied output to folder as r.jpgEdit 1 :
The return value of
shell_exec
has no error/output even after addingerror_reporting(E_ALL);
ini_set('display_errors', 1);Edit 2 :
The log for successful conversion can be found at Here
The log for unsuccessful conversion of rendered image can be found at HereNote :
• The scenario here is minimized and code is separated from long code.
• In Linux command i add./
for FFMPEG