
Recherche avancée
Autres articles (98)
-
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 (...) -
Les sons
15 mai 2013, par -
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 (...)
Sur d’autres sites (10218)
-
How to transcode a video using python and ffmpeg library (no commandline call)
25 mars 2014, par mojovskiI would like to transcode a video using python and ffmpeg. But I dont want to use a command line call like
call(ffmpeg -i ....")I will need to deploy the resulting application using py2exe, thus cannot use call method.
Thanks in advance !
-
FFMPEG video joiner
31 mars 2012, par UdhayI am working on merging videos, but is not merging my videos. Here is the code
exec(cat file1.flv file2.flv > trailer/output.flv);<br />
exec("ffmpeg -i trailer/output.flv -sameq trailer/output.flv);But if the size of file1 is 1MB and file2 is 2MB and output is coming as 3MB. But it is playing only the file1.
-
Django Celery FFMPEG : convert video files
3 janvier 2012, par sultanI'm trying to convert video files using FFMPEG via Celery tasks. The generated command to be executed looks like
ffmpeg -i /path/to/flv -ar 22050 -ab 96k -r 24 -b 600k -f flv path/to/flv/transcoded/flv_movie.flv
and when I call the task
TranscodeVideoTask.delay(src=filepath, dst=destination_path)
I getflv_movie.flv
file but its size is only about200Kb
and debug outputPress [q] to stop, [?] for help
[h264 @ 0x10205a200] Reference 3 >= 3
[h264 @ 0x10205a200] error while decoding MB 7 5, bytestream (690)
[h264 @ 0x10205a200] concealing 762 DC, 762 AC, 762 MV errors
frame= 40 fps= 0 q=2.0 Lsize= 136kB time=00:00:01.66 bitrate= 668.2kbits/s dup=0 drop=9
video:114kB audio:20kB global headers:0kB muxing overhead 1.814991%TranscodeVideoTask source
@task(name="transcode.media")
def TranscodeVideoTask(src, dst):
command = commands.get("flv") % {"src": src, "dst": dst}
os.system(src, dst)
filename = os.path.join(dst, "flv_movie.flv")
YamdiInjector.yamdi(filename, dst)When the same command executed manually in the console it works just fine.
UPDATE
So far I've composed the following ffmpeg instructions in my bash file and it converts almost every avi file I tested already#!/bin/sh
INPUT=$1
OUTPUT=$2/flv_movie.flv
echo "Input file: ${INPUT}"
echo "Output file: ${OUTPUT}"
echo `ffmpeg -y -i $INPUT -ar 44100 -ab 128k -ac 2 -sameq -f flv $OUTPUT`What may cause this strange problem ?
Sultan