
Recherche avancée
Autres articles (82)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (10147)
-
Unable to find a suitable output format for '|' ffmpeg and python subprocess
20 octobre 2016, par nadermxI currently am trying to run this command (found on this answer)
ffmpeg -i input.flv -vf scale=320:-1 -r 10 -f image2pipe -vcodec ppm - | convert -delay 5 -loop 0 - output.gif
in a python program using
import subprocess
library. The issue I’m running into is that when I run it in terminal it works fine, but when I run it in my python code I get this errorInput #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://r7---sn-p0n5jxaa-hxms.googlevideo.com/videoplayback?ms=au&requiressl=yes&mt=1476932644&pl=24&itag=22&id=o-AAJEpGAb5MS-rP073pLWFKlJ-wUTAEEIFHdx7yPOZoBS&dur=4712.861&mime=video%2Fmp4&sparams=dur%2Cei%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&mm=31&ip=187.190.166.119&mn=sn-p0n5jxaa-hxms&mv=m&lmt=1471437242705377&ipbits=0&ratebypass=yes&upn=G5WdwNKKKtM&gcr=mx&source=youtube&ei=MDUIWKegH4uhugK2mbH4DQ&key=yt6&initcwndbps=3328750&expire=1476954512&signature=783E4022EDB282BE372603EF7A78C2A71B957352.B691135B7EA6AC2D7B2B2E41F1FAD9683022EE38':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2016-08-17T12:26:42.000000Z
Duration: 01:18:32.81, start: 0.000000, bitrate: 319 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 190 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
Metadata:
creation_time : 2016-08-17T12:26:42.000000Z
handler_name : ISO Media file produced by Google Inc.
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2016-08-17T12:26:42.000000Z
handler_name : ISO Media file produced by Google Inc.
[NULL @ 0x32996e0] Unable to find a suitable output format for '|'
|: Invalid argumentThe python code I did is this,
subprocess.Popen(['ffmpeg', '-i', input.flv, '-vf', 'scale=320:-1', '-r', '10', '-f', 'image2pipe',
'-vcodec', 'ppm', '-', '|', 'convert', '-loop', '0', '-', 'gif:-', '|',
'convert', '-', 'layers', 'Optimize', '-', 'output.gif'], shell=False) -
How to convert webp images to MP4 video using ffmpeg
12 octobre 2016, par Sunny TambiI have tried many possible command line options with ffmpeg, however not getting this to work. I want to convert series of webp images to a mp4 video.
Some commands that i tried are :ffmpeg -i img%04d.webp out.mp4
ffmpeg -i img%04d.webp -c:v libx264 out.mp4
ffmpeg -i img%04d.webp -pix_fmt yuv420p out.mp4
ffmpeg -i img%04d.webp -c:v libx264 -pix_fmt yuv420p -crf 25 out.mp4
ffmpeg -i img%04d.webp -c:v libx264 -pix_fmt yuv420p -crf 25 -b:v 0 out.mp4None of them creates an mp4 video. A mp4 file, though, gets created, however it is of 0 sec. Here is a sample output of one of the execution :
ffmpeg -i img%04d.webp -c:v libx264 -pix_fmt yuv420p -crf 25 -y out.mp4
ffmpeg version N-81045-g450cf40 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 50.100 / 57. 50.100
libavformat 57. 42.100 / 57. 42.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 47.100 / 6. 47.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, image2, from 'img%04d.webp':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: webp, yuva420p(tv, bt470bg/unknown/unknown), 320x568, 25 tbr, 25 tbn, 25 tbc
[libx264 @ 00000000006dbbc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 00000000006dbbc0] profile High, level 2.1
[libx264 @ 00000000006dbbc0] 264 - core 148 r2705 3f5ed56 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=25.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 00000000006d8700] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, mp4, to 'out.mp4':
Metadata:
encoder : Lavf57.42.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x568, q=-1--1, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc57.50.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream mapping:
Stream #0:0 -> #0:0 (webp (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=30.0 Lsize= 3kB time=00:00:00.00 bitrate=265435.9kbits/s speed=0.011x video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 44.661823%
[libx264 @ 00000000006dbbc0] frame I:1 Avg QP:23.37 size: 1100
[libx264 @ 00000000006dbbc0] mb I I16..4: 24.4% 71.5% 4.0%
[libx264 @ 00000000006dbbc0] 8x8 transform intra:71.5%
[libx264 @ 00000000006dbbc0] coded y,uvDC,uvAC intra: 6.1% 5.4% 4.2%
[libx264 @ 00000000006dbbc0] i16 v,h,dc,p: 80% 14% 6% 1%
[libx264 @ 00000000006dbbc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 46% 5% 48% 0% 0% 0% 0% 0% 0%
[libx264 @ 00000000006dbbc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 20% 42% 2% 2% 2% 2% 2% 3%
[libx264 @ 00000000006dbbc0] i8c dc,h,v,p: 89% 9% 1% 0%
[libx264 @ 00000000006dbbc0] kb/s:220.00Excerpt from the above :
frame=1
fps=0.0
time=00:00:00.00
video:2kBThis should give the idea of what I am trying to say.
Need help if someone can tell how to convert a series of webp images to MP4 video.
-
mov : Update colr values
19 octobre 2016, par Vittorio Giovaramov : Update colr values
For ’nclx’, the latest edition of the standard switched from JPEG XR
to 23001-8, which matches the current order of our entries. Bounds
are preserved as a sanity check.For ’nclc’, qtff edition 2016-09-13 introduced a few new entries.
Signed-off-by : Vittorio Giovara <vittorio.giovara@gmail.com>