
Recherche avancée
Autres articles (91)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
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 (...)
Sur d’autres sites (8168)
-
correctly escaping text in drawtext filter
6 novembre 2013, par menteAccording to documentation
%{}:,
should be escaped with slash. But when I escape%
the text is not added. There's error message sayingStray % near ')'
. But what does it mean and how I can fix it ? Command and output :$ /usr/bin/ffmpeg -y -i /home/www/255871.mov -af 'aresample=async=1:min_hard_comp=0.100000' -vf 'scale=480:trunc(ow/a/2)*2,transpose=1 [in];movie=watermarks/text-box440.mov,scale=320:55 [bg];[in][bg] overlay=x=20:y=main_h-80,drawtext=fontsize=20:fix_bounds=1:fontfile=Helvetica\\:Style=bold:fontcolor=0xe6b300:text=small kitten \%\):x=30:y=h-80+ascent/2:draw=gte(t\,0)\;lt(t\,5) [out]' -pix_fmt yuv420p -r 24.39 -map_metadata -1 -movflags +faststart -f mp4 -vcodec libx264 -b:v 800k -maxrate 1100k -bufsize 2M -bt 256k -profile:vbaseline -acodec libfdk_aac -ab 64k -ar 44100 -ac 1 /tmp/kitten.mp4
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 15 2013 18:40:14 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
configuration: --enable-gpl --enable-libmp3lame --enable-libvo-aacenc --enable-libx264 --enable-version3 --enable-pthreads --enable-libfaac --enable-nonfree --enable-libfdk_a
ac --enable-fontconfig --enable-libfreetype
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/www/255871.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2012-07-17 07:42:35
model : iPhone 3GS
model-rus : iPhone 3GS
encoder : 4.2.1
encoder-rus : 4.2.1
date : 2012-07-17T10:42:35+0300
date-rus : 2012-07-17T10:42:35+0300
make : Apple
make-rus : Apple
Duration: 00:00:09.38, start: 0.000000, bitrate: 790 kb/s
Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 480x360, 720 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 1200 tbc
Metadata:
rotate : 90
creation_time : 2012-07-17 07:42:35
handler_name : Core Media Data Handler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 63 kb/s
Metadata:
creation_time : 2012-07-17 07:42:35
handler_name : Core Media Data Handler
[Parsed_drawtext_5 @ 0x2ae9b00] Using "/usr/share/fonts/default/Type1/n019003l.pfb"
[libx264 @ 0x2ae7d40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x2ae7d40] profile Constrained Baseline, level 2.1
[libx264 @ 0x2ae7d40] 264 - core 130 r2274 c832fe9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=800 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1100 vbv_bufsize=2000 nal_hrd=none ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/tmp/kitten.mp4':
Metadata:
encoder : Lavf54.63.104
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 360x480, q=-1--1, 800 kb/s, 19512 tbn, 24.39 tbc
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (aac -> libfdk_aac)
Press [q] to stop, [?] for help
[Parsed_drawtext_5 @ 0x2ae9b00] Stray % near ')'
Last message repeated 201 times
Stray % near ')'0.0 q=27.0 size= 480kB time=00:00:07.96 bitrate= 493.4kbits/s dup=0 drop=35
[Parsed_drawtext_5 @ 0x2ae9b00] Stray % near ')'
Last message repeated 77 times
Starting second pass: moving header on top of the file
frame= 231 fps=0.0 q=-1.0 Lsize= 1002kB time=00:00:09.47 bitrate= 866.6kbits/s dup=0 drop=50
video:921kB audio:74kB subtitle:0 global headers:0kB muxing overhead 0.680957%
[libx264 @ 0x2ae7d40] frame I:1 Avg QP:24.43 size: 13264
[libx264 @ 0x2ae7d40] frame P:230 Avg QP:23.72 size: 4041
[libx264 @ 0x2ae7d40] mb I I16..4: 24.8% 0.0% 75.2%
[libx264 @ 0x2ae7d40] mb P I16..4: 2.3% 0.0% 4.8% P16..4: 34.4% 28.8% 9.4% 0.0% 0.0% skip:20.3%
[libx264 @ 0x2ae7d40] coded y,uvDC,uvAC intra: 62.5% 54.2% 4.4% inter: 19.6% 20.3% 0.1%
[libx264 @ 0x2ae7d40] i16 v,h,dc,p: 36% 29% 19% 16%
[libx264 @ 0x2ae7d40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 21% 20% 6% 8% 7% 7% 6% 6%
[libx264 @ 0x2ae7d40] i8c dc,h,v,p: 65% 15% 17% 3%
[libx264 @ 0x2ae7d40] ref P L0: 93.4% 4.3% 2.3%
[libx264 @ 0x2ae7d40] kb/s:796.32 -
django upload and convert and save
31 août 2015, par hessam zaheriI have a form in django that I upload an avi movie and I want to convert to mp4 and save in media root and save path in database record :
class Content(models.Model):
content_title_en = models.CharField(max_length=255)
content_movie = models.FileField(verbose_name='movie')
def save(self, *args, **kwargs):
if self.content_movie:
os.popen("ffmpeg -i C:/new/Wildlife.wmv video.mp4")
super(Content, self).save(*args, **kwargs)and I convert file but I don’t know how save in file and my database record.
-
Unresolved symbols when linking ffmpeg 2.7.1 on OSX 10.10.4/amd64 with Xcode 6.4
9 juillet 2015, par Corey BrennerI am seeing a problem linking against ffmpeg 2.7.1 (as installed by homebrew just today). Though the libraries in question are referenced on the command line, and though the linker admits to pulling in the correct libraries, and though the libraries themselves have the desired symbols (verified with NM), the symbols I need from the ffmpeg libraries do not show up.
My host and target platform is Mac x86_64, Xcode 6.4, OS X v10.10.4.
("ERROR (LINK.dll) : " is from my build system)
Thanks in advance !
ERROR (LINK.dll): /usr/bin/clang -dynamiclib -single_module -install_name @loader_path/ourapp_ffmpeg_test.5.0.0.dylib -compatibility_version 5.0.0 -current_version 5.0.0 -v -Wl,-t -arch x86_64 -mmacosx-version-min=10.7 -g -o "/Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourapp/decoders/ourapp_ffmpeg_test/dll/shared/ourapp_ffmpeg_test.5.0.0.dylib" /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourapp/decoders/ourapp_ffmpeg_test/pic/main.o /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourbaselib/lib/pic/libourbaselib.a -L"/usr/local/lib" -lavformat -lavcodec -lswscale -lavutil -framework IOKit -framework CoreServices -liconv -lstdc++
ERROR (LINK.dll): Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
ERROR (LINK.dll): Target: x86_64-apple-darwin14.4.0
ERROR (LINK.dll): Thread model: posix
ERROR (LINK.dll): "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -dylib -dylib_compatibility_version 5.0.0 -dylib_current_version 5.0.0 -arch x86_64 -dylib_install_name @loader_path/ourapp_ffmpeg_test.5.0.0.dylib -macosx_version_min 10.7.0 -single_module -o /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourapp/decoders/ourapp_ffmpeg_test/dll/shared/ourapp_ffmpeg_test.5.0.0.dylib -L/usr/local/lib -t /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourapp/decoders/ourapp_ffmpeg_test/pic/main.o /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourbaselib/lib/pic/libourbaselib.a -lavformat -lavcodec -lswscale -lavutil -framework IOKit -framework CoreServices -liconv -lstdc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0/lib/darwin/libclang_rt.osx.a
ERROR (LINK.dll): Undefined symbols for architecture x86_64:
ERROR (LINK.dll): "av_frame_free(AVFrame**)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_shutdown(ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "av_read_frame(AVFormatContext*, AVPacket*)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_frame_get(ourapp_ffmpeg_handle_s*, AVFrame**, int*, int*) in main.o
ERROR (LINK.dll): "avcodec_close(AVCodecContext*)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_shutdown(ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "avcodec_open2(AVCodecContext*, AVCodec const*, AVDictionary**)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "av_dump_format(AVFormatContext*, int, char const*, int)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "av_frame_alloc()", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "av_free_packet(AVPacket*)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_frame_get(ourapp_ffmpeg_handle_s*, AVFrame**, int*, int*) in main.o
ERROR (LINK.dll): "avpicture_fill(AVPicture*, unsigned char const*, AVPixelFormat, int, int)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "av_register_all()", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_init() in main.o
ERROR (LINK.dll): "avpicture_get_size(AVPixelFormat, int, int)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "avformat_open_input(AVFormatContext**, char const*, AVInputFormat*, AVDictionary**)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "avcodec_copy_context(AVCodecContext*, AVCodecContext const*)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "avcodec_find_decoder(AVCodecID)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "avformat_close_input(AVFormatContext**)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_shutdown(ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "sws_getCachedContext(SwsContext*, int, int, AVPixelFormat, int, int, AVPixelFormat, int, SwsFilter*, SwsFilter*, double const*)", referenced from:
ERROR (LINK.dll): get_scalecontext(SwsContext**, AVStream const*, int, int, AVPixelFormat) in main.o
ERROR (LINK.dll): "avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, AVPacket const*)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_frame_get(ourapp_ffmpeg_handle_s*, AVFrame**, int*, int*) in main.o
ERROR (LINK.dll): "avcodec_alloc_context3(AVCodec const*)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "sws_getColorspaceDetails(SwsContext*, int**, int*, int**, int*, int*, int*, int*)", referenced from:
ERROR (LINK.dll): get_scalecontext(SwsContext**, AVStream const*, int, int, AVPixelFormat) in main.o
ERROR (LINK.dll): "sws_setColorspaceDetails(SwsContext*, int const*, int, int const*, int, int, int, int)", referenced from:
ERROR (LINK.dll): get_scalecontext(SwsContext**, AVStream const*, int, int, AVPixelFormat) in main.o
ERROR (LINK.dll): "avformat_find_stream_info(AVFormatContext*, AVDictionary**)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "av_free(void*)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_shutdown(ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "av_malloc(unsigned long)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_decode_init(char const*, ourapp_ffmpeg_handle_s*) in main.o
ERROR (LINK.dll): "sws_scale(SwsContext*, unsigned char const* const*, int const*, int, int, unsigned char* const*, int const*)", referenced from:
ERROR (LINK.dll): ourapp_ffmpeg_frame_get(ourapp_ffmpeg_handle_s*, AVFrame**, int*, int*) in main.o
ERROR (LINK.dll): ld: symbol(s) not found for architecture x86_64
ERROR (LINK.dll): /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourapp/decoders/ourapp_ffmpeg_test/pic/main.o
ERROR (LINK.dll): /usr/local/lib/libavformat.dylib
ERROR (LINK.dll): /usr/local/lib/libavcodec.dylib
ERROR (LINK.dll): /usr/local/lib/libswscale.dylib
ERROR (LINK.dll): /usr/local/lib/libavutil.dylib
ERROR (LINK.dll): /System/Library/Frameworks//IOKit.framework/IOKit
ERROR (LINK.dll): /System/Library/Frameworks//CoreServices.framework/CoreServices
ERROR (LINK.dll): /usr/lib/libiconv.dylib
ERROR (LINK.dll): /usr/lib/libSystem.dylib
ERROR (LINK.dll): /usr/lib/libstdc++.dylib
ERROR (LINK.dll): /System/Library/Frameworks//CFNetwork.framework/CFNetwork
ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
ERROR (LINK.dll): /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation
ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
ERROR (LINK.dll): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
ERROR (LINK.dll): /usr/lib/system/libcache.dylib
ERROR (LINK.dll): /usr/lib/system/libcommonCrypto.dylib
ERROR (LINK.dll): /usr/lib/system/libcompiler_rt.dylib
ERROR (LINK.dll): /usr/lib/system/libcopyfile.dylib
ERROR (LINK.dll): /usr/lib/system/libcorecrypto.dylib
ERROR (LINK.dll): /usr/lib/system/libdispatch.dylib
ERROR (LINK.dll): /usr/lib/system/libdyld.dylib
ERROR (LINK.dll): /usr/lib/system/libkeymgr.dylib
ERROR (LINK.dll): /usr/lib/system/liblaunch.dylib
ERROR (LINK.dll): /usr/lib/system/libmacho.dylib
ERROR (LINK.dll): /usr/lib/system/libquarantine.dylib
ERROR (LINK.dll): /usr/lib/system/libremovefile.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_asl.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_blocks.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_c.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_configuration.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_coreservices.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_coretls.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_dnssd.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_info.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_kernel.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_m.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_malloc.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_network.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_networkextension.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_notify.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_platform.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_pthread.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_sandbox.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_secinit.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_stats.dylib
ERROR (LINK.dll): /usr/lib/system/libsystem_trace.dylib
ERROR (LINK.dll): /usr/lib/system/libunc.dylib
ERROR (LINK.dll): /usr/lib/system/libunwind.dylib
ERROR (LINK.dll): /usr/lib/system/libxpc.dylib
ERROR (LINK.dll): /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourbaselib/lib/pic/libourbaselib.a(ourbaselib_memory.o)
ERROR (LINK.dll): /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourbaselib/lib/pic/libourbaselib.a(ourbaselib_atomic.o)
ERROR (LINK.dll): /Users/myname/src/oursdk/devel/main/out/mac/x86-64/system/debug/obj/source/ourbaselib/lib/pic/libourbaselib.a(ourbaselib_stacktrace.o)
ERROR (LINK.dll): clang: error: linker command failed with exit code 1 (use -v to see invocation)