
Recherche avancée
Autres articles (74)
-
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 (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
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 (...)
Sur d’autres sites (5665)
-
Trying to convert an RTSP stream to a HSL file, but get a "Failed to Open Segment" error
1er juin 2021, par Alvydas JuodikisThese are the linux commands I ran on ubuntu 20.04 to convert an rtsp stream to a HLS file. I was trying to then display it onto my html webserver to run a live video but I'm stuck at an error.


ffmpeg -fflags nobuffer \
 -rtsp_transport tcp \
 -i <my rtsp="rtsp" url="url"> \
 -vsync 0 \
 -copyts \
 -vcodec copy \
 -movflags frag_keyframe+empty_moov \
 -an \
 -hls_flags delete_segments+append_list \
 -f segment \
 -segment_list_flags live \
 -segment_time 0.5 \
 -segment_list_size 1 \
 -segment_format mpegts \
 -segment_list Home/Desktop/fmpegsolution/index.m3u8 \
 -segment_list_type m3u8 \
 -segment_list_entry_prefix Home/Desktop/fmpegsolution/ \
 Home/Desktop/fmpegsolution/%3d.ts
</my>


I'm using an example from this link :
https://girishjoshi.io/post/ffmpeg-rtsp-to-hls/


I try to generate my file into a directory located in my desktop called fmpegsolution (hence the output path Home/Desktop/fmpegsolution)


The error :


When running this on terminal, the error comes out to :

[segment @ 0x558c82e11ec0] Opening 'Home/Desktop/fmpegsolution/000.ts' for writing [segment @ 0x558c82e11ec0] Failed to open segment 'Home/Desktop/fmpegsolution/000.ts' Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory


My issue is related to the folder or directory but it definitely exists. I even tried creating a "%3d.ts" blank file (000.ts) but that had no effect. Could use some help. Thanks for your time.


-
FFMPEG is not working centos linux server
18 mars 2015, par UserI am using FFMPEG for video thumbnails creation,
I have downloaded FFMPEG (ffmpeg-2.4.2.tar.bz2) and installed in server.
located in
/usr/bin/ffmpeg
and used in this below code :
if($extension === 'mp4' OR $extension == 'MP4' )
{
$video = $timestamp.$imagename;
$videoname=substr($imagename,0, -4).$timestamp;
$image = "sites/default/files/content_images/{$videoname}-thumb.jpg";
var_dump($video);
$cmd="/usr/bin/ffmpeg -i /opt/lampp/htdocs/mydashboard/sites/default/files/content_videos/".$video." -ss 00:00:14.435 -f image2 -vframes 1 /opt/lampp/htdocs/mydashboard/sites/default/files/content_images/$videoname-thumb.jpg";
$cmdstr = $cmd;
$locale = 'en_IN.UTF-8';
setlocale(LC_ALL, $locale);
putenv('LC_ALL='.$locale);
echo exec($cmd);but this command not working as i expect..
$cmd="/usr/bin/ffmpeg -i /opt/lampp/htdocs/mydashboard/sites/default/files/content_videos/".$video." -ss 00:00:14.435 -f image2 -vframes 1 /opt/lampp/htdocs/mydashboard/sites/default/files/content_images/$videoname-thumb.jpg";
issue was video thumbnail is not created,when we upload videos.
any help great appreciation
-
Converting video with ffmpeg from a script not in the root folder
30 octobre 2017, par Daniel OrmerodI am using ffmpeg to convert videos, create thumbnails etc.
I made the below function to convert a video and when I run it in a script in the root folder it converts ok.
However, I am using ajax to upload the video and the script is located /ajax/upload-video.php and when I run it in that folder it fails to convert.
I have tried sending the $src and $dest up with ../ before the filenames to go back a folder but it isn’t working.
Can anybody help ?
Do I need to add something to the $command line to tell it to go back a folder ?
These are the variables being used in the function :
$ffmpegpath = 'ffmpeg.exe';
$src = 'videos/video1.wmv';
$dest = 'videos/video1.mp4';I have tried :
$ffmpegpath = 'ffmpeg.exe';
$src = '../videos/video1.wmv';
$dest = '../videos/video1.mp4';And the function :
function convert_video($src, $dest) {
global $ffmpegpath;
if (!file_exists($src)) {
echo '<p>The file does not exist</p>';
} else {
$command = "$ffmpegpath -i $src $dest";
@exec($command, $ret);
if (!file_exists($dest)) {
echo '<p>The file failed to create</p>';
} else {
if (filesize($dest)==0) {
echo '<p>The file created but has not filesize</p>';
} else {
echo '<p>File Created Successfully</p>';
}
}
}
}