
Recherche avancée
Médias (2)
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (62)
-
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 (...) -
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 (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (8965)
-
ffmpeg error : "Missing ')' or too many args in 'if(gt(a,1),650,-1)'"
23 février 2015, par Remini meI am trying to run this ffmpeg command in linux shell, to scale down the video (if portrait, than to maximum height of 650, while adjusting the width. And if landscape, then 650 maximum width, and adjust the height with aspect ratio) :
ffmpeg -i 1.mp4 -r 30 -vf scale="'if(gt(a,1),650,-1)':'if(gt(a,1),-1,650)'" -vcodec libx264 output_file1.mp4
But I get the following error :
[scale @ 0x1d48a40] [Eval @ 0x7fff53a49340] Missing ’)’ or too many
args in ’if(gt(a,1),650,-1)’ [scale @ 0x1d48a40] [Eval @
0x7fff53a49340] Missing ’)’ or too many args in ’if(gt(a,1),-1,650)’
Error when evaluating the expression ’if(gt(a,1),-1,650)’**EDIT : I have tried using the new @slhck syntax :
-vf "scale=if(gt(a\,1)\,650\,-2):if(gt(a\,1)\,-2\,650)"
The result I got was :
ffmpeg version 0.8.16-4:0.8.16-0ubuntu0.12.04.1, Copyright (c)
2000-2014 the Libav developers built on Sep 16 2014 18:33:49 with
gcc 4.6.3 The ffmpeg program is only provided for script compatibility
and will be removed in a future release. It has been deprecated in the
Libav project to allow for incompatible command line syntax
improvements in its replacement called avconv (see Changelog for
details). Please use avconv instead.Seems stream 0 codec frame rate differs from container frame rate :
180000.00 (180000/1) -> 90000.00 (180000/2) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’1.mp4’ : Metadata :
major_brand : isom
minor_version : 0
compatible_brands : isom3gp4
creation_time : 2015-02-05 14:54:24 Duration : 00:00:45.30, start : 0.000000, bitrate : 17058 kb/s
Stream #0.0(eng) : Video : h264 (High), yuv420p, 1920x1080, 17021 kb/s, 30.01 fps, 90k tbr, 90k tbn, 180k tbc
Metadata :
creation_time : 2015-02-05 14:54:24
Stream #0.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 124 kb/s
Metadata :
creation_time : 2015-02-05 14:54:24 File ’output_file1.mp4’ already exists. Overwrite ? [y/N] y[buffer @ 0x747ec0] w:1920 h:1080 pixfmt:yuv420p [scale @ 0x745a40] [Eval @ 0x7fffac94b220] Missing ’)’ or too many args in
’if(gt(a,1),650,-2)’ [scale @ 0x745a40] [Eval @ 0x7fffac94b220]
Missing ’)’ or too many args in ’if(gt(a,1),-2,650)’ Error when
evaluating the expression ’if(gt(a,1),-2,650)’ Error opening
filters !What should I do ?
-
Not able to pipe gstreamer output into ffmpeg
31 janvier 2015, par Henry Soanghas anybody gotten gstreamer to successfully pipe it’s video output into ffmpeg ?
I’ve tried playing with /dev/stdout and I keep getting errors :
gst-launch -e v4l2src device=/dev/video0 ! ’video/x-raw-yuv,width=1920,height=1080,framerate=5/1’ ! nv_omx_h264enc quality-level=2 ! mp4mux ! filesink location=/dev/stdout \
| ffmpeg -y -i - -codec copy -f flv test.flv...
[aac @ 0xebc4c0] Could not find codec parameters for stream 0 (Audio : aac (Main), 7.1, fltp, 1351 kb/s) : unspecified sample rate
Consider increasing the value for the ’analyzeduration’ and ’probesize’ options
pipe: : could not find codec parameters
Input #0, aac, from ’pipe :’ :
Duration : N/A, bitrate : 1351 kb/s
Stream #0:0 : Audio : aac (Main), 7.1, fltp, 1351 kb/s
[flv @ 0xec9280] sample rate not set
Output #0, flv, to ’test.flv’ :
Stream #0:0 : Audio : aac, 7.1, 1351 kb/s
Stream mapping :
Stream #0:0 -> #0:0 (copy)
Could not write header for output file #0 (incorrect codec parameters ?) : Invalid argument
ubuntu@tegra-ubuntu : $Running the commands separately (replacing /dev/stdout with a file) works fine.
If you got it to work and can share how you did it, that would be great.
Thanks.
-
Ffmpeg script cuts out sound
15 février 2019, par LiamI have this ffmpeg script I’m running to automatically convert videos to instagram’s accepted coded
The script looks like this :
ffmpeg -analyzeduration 20M -probesize 20M -y -re -f lavfi -i "movie=filename='file.mp4':loop=5, setpts=N/(FRAME_RATE*TB)" -vcodec libx264 -b:v 3500k -vsync 2 -t 59 -acodec aac -b:a 128k -pix_fmt yuv420p -vf "scale=1080:1080:force_original_aspect_ratio=decrease,pad=1080:1080:(ow-iw)/2:(oh-ih)/2:white" -crf 24 new_file.mp4
However that seems to cut out the audio, and I can’t seem to find out how to prevent that ? I didn’t use any -an or anything, and when messing around the audio keeps being cut out ? Any idea why ?