
Recherche avancée
Autres articles (24)
-
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 (...) -
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
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 (...)
Sur d’autres sites (5765)
-
How to know if uploaded file is a video file [closed]
20 octobre 2012, par Gage ThomsonPossible Duplicate :
How do I validate that an uploaded file is a video ?How to know using exec with ffmpeg and php if the uploaded file or any file on the hard disk is a video or not ?
Turned out to use finfo for checking the mime, unsure if it is the best solution, but it appears everyone is happy by giving down votes instead of reasoning.
Well, some of my videos have a mime of application octet-stream which makes finfo not the solution, LIKE I ASKED. I suppose with ffmpeg there might be an
is_video()
function somehow just that I couldn't find it.Trouble : http://mimeapplication.net/octet-stream
-
FFMPEG says file does not exist, but, it exists
11 décembre 2013, par cmwI'm using FFMPEG via the streamio-FFMPEG Rails gem – https://github.com/streamio/streamio-ffmpeg
For some reason, when trying to transcode a video file (that does really exist), FFMPEG says the file does not exist.
Here's some output from the Rails console, demonstrating my headache :
1.9.3p125 :001 > File.exist?("/Applications/MAMP/htdocs/video-app/public/uploads/tmp/20131208-1416-1234-0984/videotest.mp4")
=> true
1.9.3p125 :002 > FFMPEG::Movie.new("/Applications/MAMP/htdocs/video-app/public/uploads/tmp/20131208-1416-1234-0984/videotest.mp4")
Errno::ENOENT: No such file or directory - ffmpeg -i /Applications/MAMP/htdocs/video-app/public/uploads/tmp/20131208-1416-1234-0984/videotest.mp4
from /Users/my-comp/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/open3.rb:202:in `spawn'
from /Users/my-comp/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/open3.rb:202:in `popen_run'
from /Users/my-comp/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/open3.rb:90:in `popen3'
from /Users/my-comp/.rvm/gems/ruby-1.9.3-p125@video-app/gems/streamio-ffmpeg-1.0.0/lib/ffmpeg/movie.rb:17:in `initialize'
from (irb):2:in `new'
from (irb):2
from /Users/my-comp/.rvm/gems/ruby-1.9.3-p125@video-app/gems/railties-3.2.8/lib/rails/commands/console.rb:47:in `start'
from /Users/my-comp/.rvm/gems/ruby-1.9.3-p125@video-app/gems/railties-3.2.8/lib/rails/commands/console.rb:8:in `start'
from /Users/my-comp/.rvm/gems/ruby-1.9.3-p125@video-app/gems/railties-3.2.8/lib/rails/commands.rb:41:in `<top> '
from script/rails:6:in `require'
from script/rails:6:in `<main>'
1.9.3p125 :003 >
</main></top>Any help would be appreciated.
-
Merge one audio file and one image file to create a video with ffmpeg
26 avril 2022, par Jiewei XiongI first tried :


ffmpeg -y -i image.jpg -i audio.mp3 -c:a copy output.mp4



but when I uploaded to video sharing websites (bilibili.com), it says "no video track", so I tried :


ffmpeg -r 1 -loop 1 -i image.jpg -i audio.mp3 -acodec copy -r 1 -shortest output.mp4



The file was successfully uploaded, but when I watched it on the website, the image disappeared and it turned grey. I merged 6 videos and only one of them can be normally played back.


What should I do ?