
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (79)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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 (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.
Sur d’autres sites (6946)
-
Command works in SSH terminal, but not in PHP script
13 janvier 2017, par Ryan ButterworthI’m having a weird problem. I have installed ffmpeg on my server. When I run "
ffmpeg
" from SSH (PuTTY) it confirms the install :Then I placed the following code in a PHP file, inside a website on the same server :
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$output = exec('ffmpeg -h');
echo "<pre>$output</pre>";
?>However when I run the PHP script, the page is blank, there is no output. I can confirm that
exec
is working fine, because when I runphp -v | grep cli
both in PHP and in terminal, they both output the same thing.I am using Plesk (web host edition) to manage the site, and have given it access to the server over SSH (/bin/sh)
What am I missing here ?
-
Automatically inject 360° 3D metadata into a video with a Bash script
27 octobre 2019, par Eduardo PerezSo, I have a Cygwin script I made which concats several videos into a single video with different variations, and I want to inject stereoscopic 3D metadata into the videos through the script so I don’t have to inject each video separately using Google’s injector tool. The videos are all 360° videos with top/bottom 3D and standard stereo audio rather than spacial audio, and in an MP4 container. Is there any way that I can either inject the needed 3D metadata using FFmpeg so I can upload it to YouTube as a 360VR video, or use the source code of Google’s injector tool or some other tool in order to inject the metadata the same way that Google’s injector tool would so it’s supported as a 360° 3D video by YouTube ?
Also, will the injector tool automatically move the MOV atom to the beginning of the file (if the injector tool is used) or will I still need to use
-movflags +faststart
in FFmpeg ? The videos are kind of big and apparently using FFmpeg to concat several video files together and copy the stream codecs with-movflags +faststart
and then injecting the metadata using Google’s Spherical Media tool is three times longer than just using FFmpeg in the same way but without-movflags +faststart
, so if there was a fast way to do this I’d greatly appreciate it. -
bash script fail when a command wait ffmpeg to finish
5 novembre 2013, par d4r10In ubuntu 13.04 have a node.js server that launch for certain events, a script like this :
#! /bin/bash
...
...
avconv -i "$dir$video" -ss "$ss.000" -t $tt -threads 0 "$folder/$dif.webm"
y_uid=$(/app/youtube-uploader "$folder/$dif.webm" "$label" "$desc" | grep 'watch' | sed 's/v=/ /g' | awk '{print$2}')
echo "$y_uid" >> ~/log/yt.log
...
...if avconv (ffmpeg) process a small file (less then 30 minutes of encoding), the script works fine, but if avconv runs for hours, the next command "...youtube-uploader..." (that is a python based application) doesn't work (but if i try to launch it manually, it will go fine).
I have also tried to launch the next command inside a loop that check if the variable "$y_uid" is empty, so it will try to repeat youtube-uploader until it find a right value, but it will continue to stay in background and will try forever.. (and it is strange, because if i try to launch the command manually, it works fine..).
Summarizing, seems like that if avconv run for hours, the avconv process will generate a file that is not recognised or locked or a ghost file for the same script (but is recognised if the command is launched outside the script), if it is a small encoding, it will work fine.
Unfortunatelly It is difficult to debug or test, because i have every time to wait for hours, please help !
UPDATE
I think the problem is related at the buffer size of node.js OR some other buffer that store the standard output of ffmpeg. Just correct
avconv -i "$dir$video" -ss "$ss.000" -t $tt -threads 0 "$folder/$dif.webm"
in
avconv -i "$dir$video" -ss "$ss.000" -t $tt -threads 0 "$folder/$dif.webm" &> /dev/null
so all the ffmpeg output not full the buffer memory and everythings go well