
Recherche avancée
Autres articles (51)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (11112)
-
ffmpeg shell output goes to php header ?
23 septembre 2014, par Kuba StachuI am trying to use ffmpeg from php script, ex. :
exec('ffmpeg -i input.mp4 -f ogg -y output.ogv >out.txt')
Let’s assume it works, it actually doesn’t for multiple reasons, but it’s going to be solved by hosting provider as I have no way to change any config or so.
What seems strange is that out.txt is 0kb all the time, instead after php script finishes its work I get output like one below :
Malformed header from CGI script:
ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers built on May 10 2013 16:31:05 with gcc 4.8.0 (GCC) 20130502 (prerelease) configurati
(......)
Press [q] to stop, [?] for help
[vp8 @ 0x13e8d00] alloc_buffer: av_image_alloc() failed
[vp8 @ 0x13e8d00] get_buffer() failed!
sh: line 1: 1540 Segmentation fault ffmpeg -i ../uploads/videomod_m_7/433c3f8b9b0cc0f6cbdebba5263ff71809811c20o.webm -f ogg -y ../uploads/videomod_m_7/test2.ogv > out.txt
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html -
FFMPEG Drag and Drop sh file
29 avril 2021, par WFCDefiOn Windows I have a simple batch file which I drop video files onto to convert to webms, it saves a lot of time as I prefer to just use the same configuration and don't care much about the names.


@echo off 
echo. 
ffmpeg -i %1 -c:v libvpx-vp9 -quality good -cpu-used 2 -b:v 5000k -qmin 15 -qmax 45 -maxrate 500k -bufsize 1500k -framerate 60 -threads 8 -vf scale=-1:1080 -c:a libvorbis -b:a 192k -f webm %1.webm 
pause



I know the .bat file won't really work in Linux (I'm on pop os so pretty much Ubuntu) so with the other lines removed and the
%1
changed to$1
it works. It won't do anything if I try dragging and dropping a video file onto it though.

I can type sudo then drag and drop the .sh file followed by a video into a terminal and press enter and it will have the same effect as dragging a video file onto a bat file in Windows.


Is there a way to recreate dragging and dropping a file directly onto another and it executing in Linux or is the terminal the only way ?


-
Efficient ogv video conversion in Linux
19 mai 2016, par Marco FerroI have a ogv video file of 113MB. I converted it to mp4 and reduced its size from command line through
ffmpeg
. The resulting video is around 12MB sized, but the quality is really bad. I would like to get a better quality at cost of a higher file size, but I don’t know how.
Can you suggest me a correct way to do that ?EDIT :
This is the full console output of the command :Input #0, ogg, from 'ibvs.ogv':
Duration: 00:00:58.86, start: 0.000000, bitrate: 16134 kb/s
Stream #0.0: Data: skeleton
Stream #0.1: Video: theora, yuv420p, 960x864 [PAR 1:1 DAR 10:9], 15 fps, 15 tbr, 15 tbn, 15 tbc
[buffer @ 0x1dbaa80] w:960 h:864 pixfmt:yuv420p
Output #0, mp4, to 'test.mp4':
Metadata:
encoder : Lavf53.21.1
Stream #0.0: Video: mpeg4, yuv420p, 960x864 [PAR 1:1 DAR 10:9], q=2-31, 200 kb/s, 15 tbn, 15 tbc
Stream mapping:
Stream #0.1 -> #0.0
Press ctrl-c to stop encoding
frame= 883 fps=128 q=31.0 Lsize= 8654kB time=58.87 bitrate=1204.3kbits/s
video:8646kB audio:0kB global headers:0kB muxing overhead 0.092074%