
Recherche avancée
Autres articles (65)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
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 (6657)
-
adjust volume just for 1 loop with ffmpeg
6 juillet 2020, par aldeWhat i've achieved so far is looping bgAudio and delay the mainAudio for 5 sec. But, there is issue when the bgAudio start to loop then its volume start again from 7.0, not from 0.9.


ffmpeg version = 3.0.1


"-i", mainAudio, "-filter_complex",
"amovie=bgAudio:loop=999,volume=enable='between(t,0,5):volume=7.0',volume=enable=" +
"'between(t,5.01,0):volume=0.9'[s] ;[0:0]adelay=5000|5000," +
"volume=6.0[a] ;[a][s]amix=inputs=2:duration=first", "-ss", "0",
"-c:a", "aac", audioPath


-
PHP-FFMPEG Error FFMpeg\Exception\RuntimeException
27 avril 2016, par JJ The SecondI have installed FFMPEG on a Ubuntu 14.04 server which works fine. I have also installed all dependencies/libraries successfully and don’t have any problem transcoding using linux command lines. My user/group can now process SUDO command so there isn’t any issue there. So I started experimenting with a PHP library called PHP-FFMPEG (Please click here to view this library on github) and have installed is using composer in my vendor folder. Please note, I’m using CodeIgniter 3 as PHP library and my composer has installed all dependencies in vendor folder.
In my welcome controller that comes with CodeIgniter, this is how I’m calling FFMPEG
public function __construct()
{
parent::__construct();
// include_once('/var/www/vhosts/domain.com/streaming.domain.com/application/libraries/FFMpeg/FFMpeg.php');
include('/var/www/vhosts/domain.com/streaming.domain.com/vendor/autoload.php');
}and this is my controller
public function preset_one()
{
$ffmpeg = FFMpeg\FFMpeg::create([
'ffmpeg.binaries' => '/bin/ffmpeg', // the path to the FFMpeg binary
'ffprobe.binaries' => '/bin/ffprobe', // the path to the FFProbe binary
'timeout' => 0,
]);
$video = $ffmpeg->open('./media/video.mp4');
$format = new FFMpeg\Format\Video\X264();
$format->on('progress', function ($video, $format, $percentage) {
echo "$percentage % transcoded";
});
$format
-> setKiloBitrate(1000)
-> setAudioChannels(2)
-> setAudioKiloBitrate(256);
$video
->save($format, './media/video.avi');
}My media folder has 0777 permission for files and subdirectories but when I run this controller this is what I get
An uncaught Exception was encountered
Type: FFMpeg\Exception\RuntimeException
Message: Encoding failed
Filename: /var/www/vhosts/domain.com/streaming.domain.com/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Media/Video.php
Line Number: 168
Backtrace:
File: /var/www/vhosts/domain.com/streaming.domain.com/application/controllers/Welcome.php
Line: 124
Function: save
File: /var/www/vhosts/domain.com/streaming.domain.com/index.php
Line: 315
Function: require_onceI’ve done everything to make it work, tried different file formats, small files and even 2GB files. I’ve also set timeout to 0 but still getting this error. What else I did was I looked at Line 168 in /var/www/vhosts/domain.com/streaming.domain.com/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Media/Video.php and it seems FFMPEG creates temp folders during transcoding process and there are some threads that I don’t understand.
Has anyone experienced same issue ? Would you please educate me understanding what’s happening and why this is not functioning as it should ? Thank you all
-
Create FFMPEG process that keeps transcoding in Ruby
6 juillet 2016, par stiller_leserI am looking for a way to start a FFMPEG process to transcode a file, that gets appended every two seconds. Basically the file is created once (create-route), the ffmpeg process should be started, over the update-route the file gets updated and once it is not needed anymore (Destroy-route), it will be killed and the file be deleted.
Currently I am usinOpen3
with the following approach :Open3.popen3("ffmpeg", ffmpeg_args) { |stdin, stdout, stderr|
puts stderr.read
}However this does not seem to be the correct approach. Is there a better way to create a process and stop it later ? Also how could this be achieved without a temporary file, but a pipe instead ? The issue here is that the file arrives in chunks every two seconds.