
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (30)
-
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 ) (...) -
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
Sur d’autres sites (2648)
-
ffmpeg At least one output file must be specified error
13 avril 2022, par inseaHow can i fix this ;( help me....
it works well if i tpye only "'ffmpeg -i ' + video_path + ' -q:v 2 -f image2 ' + frame_path + '\image_%6d.jpg'" on prompt with specific path name.
but it doesn't work in .py (i used code in .py-> os.system('ffmpeg -i ' + video_path + ' -q:v 2 -f image2 ' + frame_path + '\image_%6d.jpg')


'''
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.2.1 (GCC) 20200726
configuration : —disable-static —enable-shared —enable-gpl —enable-version3 —enable-sdl2 —enable-fontconfig —enable-gnutls —enable-iconv —enable-libass —enable-libdav1d —enable-libbluray —enable-libfreetype —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-libshine —enable-libsnappy —enable-libsoxr —enable-libsrt —enable-libtheora —enable-libtwolame —enable-libvpx —enable-libwavpack —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxml2 —enable-libzimg —enable-lzma —enable-zlib —enable-gmp —enable-libvidstab —enable-libvmaf —enable-libvorbis —enable-libvo-amrwbenc —enable-libmysofa —enable-libspeex —enable-libxvid —enable-libaom —enable-libgsm —enable-librav1e —disable-w32threads —enable-libmfx —enable-ffnvcodec —enable-cuda-llvm —enable-cuvid —enable-d3d11va —enable-nvenc —enable-nvdec —enable-dxva2 —enable-avisynth —enable-libopenmpt —enable-amf
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002629ef05540] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E :\dataset\Videos\Arrest\Arrest007_x264.mp4' :
Metadata :
major_brand : isom
minor_version : 512
compatible_brands : isomiso2avc1mp41
track : 0
artist :
album :
date : 0
genre :
lyrics :
title :
encoder : Lavf56.36.100
Duration : 00:01:44.84, start : 0.000000, bitrate : 1499 kb/s
Stream #0:0(und) : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 1387 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata :
handler_name : VideoHandler
Stream #0:1(eng) : Audio : aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 105 kb/s (default)
Metadata :
handler_name : SoundHandler
Stream #0:2 : Video : png, rgb24(pc), 58x38 [SAR 304:261 DAR 16:9], 90k tbr, 90k tbn, 90k tbc (attached pic)
At least one output file must be specified
'''


-
Difference between single and double quotes in subprocess [Python 3.4]
11 décembre 2016, par VasilisI’m using Python 3.4 in Windows Server 12 and I have some Python code that executes the ffmpeg command bellow :
ffmpeg -i input.mp4 -vf select='not(mod(n\,30)),setpts=N/((30)*TB)' -c:v rawvideo -pix_fmt uyvy422 -y output.avi
I use the following code to execute the external command :
try:
output = subprocess.check_output(command, stderr=subprocess.STDOUT, shell=True)
except subprocess.CalledProcessError as exc:
print ("Command %s failed with error code" % command, exc.returncode, exc.output, file=sys.stderr)When I pass the command enclosed in single quotes it successfully runs the command :
command = 'ffmpeg -i input.mp4 -vf select="not(mod(n\,30)),setpts=N/((30)*TB)" -c:v rawvideo -pix_fmt uyvy422 -y output.avi'
When I pass the command as a string enclosed in double quotes it fails :
command = "ffmpeg -i input.mp4 -vf select='not(mod(n\,30)),setpts=N/((30)*TB)' -c:v rawvideo -pix_fmt uyvy422 -y output.avi"
The error message is the following :
[Eval @ 0000000eaf2fe040] Invalid chars ',setpts=N/((30)*TB)' at the end of expression 'not(mod(n,30)),setpts=N/((30)*TB)'
[Parsed_select_0 @ 0000000eb0d27ca0] Error while parsing expression 'not(mod
(n,30)),setpts=N/((30)*TB)'
[AVFilterGraph @ 0000000eb0d0a5a0] Error initializing filter 'select' with args 'not(mod(n\\,30)),setpts=N/((30)*TB)'
Error opening filters!"So it appears that when using double quotes the slash
/
that is part of thesetpts=N/((30)*TB)
option is not interpreted correctly, while with double quotes there’s no problem. Note that both commands (either with double or single quotes in the select option) work fine when I run them directly from the command prompt.
However, I’ve seen many people saying that from a technical perspective single and double quotes make no difference, e.g.- http://programmers.stackexchange.com/questions/155176/single-quotes-vs-double-quotes
- http://programmers.stackexchange.com/questions/155176/single-quotes-vs-double-quotes
Does slash parsing depend on the quotes around the string or this is just a behavior specific to the executable I’m running ?
-
Building ffmpeg on WIN 10
21 mars 2016, par DmitryI`m trying to install ffmpeg library on WIN 10 following instruction.
Until lineInvoke the following make commands
Everything was ok (all results in msys32 output was the same as in instruction). But when do
../../../configure \
--toolchain=msvc \
--disable-programs \
--disable-d3d11va \
--disable-dxva2 \
--arch=x86 \
--enable-shared \
--enable-cross-compile \
--target-os=win32 \
--extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_APP -D_WIN32_WINNT=0x0A00" \
--extra-ldflags="-APPCONTAINER WindowsApp.lib" \
--prefix=../../../Build/Windows10/x86
make
make installMsys32 says :
cl is unable to create an executable file. C compiler test failed.
If you think configure made a mistake, make sure you are using the
latest version from Git. If the latest version fails, report the
problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on
irc.freenode.net. Include the log file "config.log" produced by
configure as this will help solve the problem.Launching msys32 from VS2015 Native Tools Command Prompt.
How to fix it ?
screenshot of msysAlso, in config.log at the end of file found this :
WARNING : pkg-config not found, library detection may fail. mktemp -u
XXXXXX y81gTF check_ld cc check_cc BEGIN ./ffconf.J02kVuXC.c
1 int main(void) return 0 ; END ./ffconf.J02kVuXC.c cl -nologo -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -MD -DWINAPI_FAMILY=WINAPI_FAMILY_APP -D_WIN32_WINNT=0x0A00 -c -Fo./ffconf.U0KH6R5x.o ./ffconf.J02kVuXC.c ffconf.J02kVuXC.c /c/LIBS/ffmpeg1/ffmpeg/compat/windows/mslink
-APPCONTAINER WindowsApp.lib -nologo -out :./ffconf.UBL5VH7u.exe ./ffconf.U0KH6R5x.o LINK : fatal error LNK1181 : cannot open input file "WindowsApp.lib" C compiler test failed.