
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (52)
-
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" ; -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)
Sur d’autres sites (3965)
-
Ffmpeg not fully functioning
26 août 2014, par JoshuaHello i have problem with ffmpeg i’m using phpvibe cms already asked in their forums but they don’t know the answer which leads me that it’s probably my fault so the problem is when i upload :
6 seconds avi video which weights 817 KB it uploads perfectlly plays like it should run.
However when i try upload 12mb avi sample i see that it does not work in folder where should be that video converted it shows 0kb size
That means it didn’t start converting somewhow i think this is ffmpeg issue also i have spoted that my ffmpeg is placed in /usr/local/bin/ and in phpvibe cms systems there is different location for ffmpeg it looks like this : Img link
Why when i upload small avi video it converts good and when i try longer it fails maybe it converts while upload process is going on but than why it shows 0b in folder where converted videos should be placed ?
P.s i tried couple avi videos that weights more than 10 mb same thing and my code for ffmpeg conversation is :
$output ="{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 -movflags faststart {output}.mp4";
Also tried :
output ="{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 {output}.mp4 2>&1";
Same thing + im using Debian 7 Wheezy. Thanks !
EDIT :
i have made a test script it gives this output :
array(21) {
[0]=>
string(83) "ffmpeg version git-2014-08-25-bb29896 Copyright (c) 2000-2014 the FFmpeg developers"
[1]=>
string(61) " built on Aug 25 2014 19:52:12 with gcc 4.7 (Debian 4.7.2-5)"
[2]=>
string(62) " configuration: --enable-shared --enable-libx264 --enable-gpl"
[3]=>
string(40) " libavutil 54. 7.100 / 54. 7.100"
[4]=>
string(40) " libavcodec 56. 0.101 / 56. 0.101"
[5]=>
string(40) " libavformat 56. 3.100 / 56. 3.100"
[6]=>
string(40) " libavdevice 56. 0.100 / 56. 0.100"
[7]=>
string(40) " libavfilter 5. 0.103 / 5. 0.103"
[8]=>
string(40) " libswscale 3. 0.100 / 3. 0.100"
[9]=>
string(40) " libswresample 1. 1.100 / 1. 1.100"
[10]=>
string(40) " libpostproc 53. 0.100 / 53. 0.100"
[11]=>
string(31) "Input #0, avi, from 'test.avi':"
[12]=>
string(11) " Metadata:"
[13]=>
string(36) " encoder : Nandub v1.0rc2"
[14]=>
string(60) " Duration: 00:01:09.78, start: 0.000000, bitrate: 1517 kb/s"
[15]=>
string(126) " Stream #0:0: Video: msmpeg4v3 (DIV3 / 0x33564944), yuv420p, 640x352, 1279 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc"
[16]=>
string(83) " Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 222 kb/s"
[17]=>
string(87) "[libx264 @ 0x6c31e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX"
[18]=>
string(44) "[libx264 @ 0x6c31e0] profile High, level 3.0"
[19]=>
string(649) "[libx264 @ 0x6c31e0] 264 - core 124 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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=4 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=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00"
[20]=>
string(131) "[aac @ 0x6c3c20] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it."
}
int(1)i get this output with this :
$output ="{ffmpeg-cmd} -y -i {input} {output}.mp4 2<&1"";
simple ffmpeg command also tried :
$output ="{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 {output}.mp4 2>&1";
With this command it gives this output :
array(21) {
[0]=>
string(83) "ffmpeg version git-2014-08-25-bb29896 Copyright (c) 2000-2014 the FFmpeg developers"
[1]=>
string(61) " built on Aug 25 2014 19:52:12 with gcc 4.7 (Debian 4.7.2-5)"
[2]=>
string(62) " configuration: --enable-shared --enable-libx264 --enable-gpl"
[3]=>
string(40) " libavutil 54. 7.100 / 54. 7.100"
[4]=>
string(40) " libavcodec 56. 0.101 / 56. 0.101"
[5]=>
string(40) " libavformat 56. 3.100 / 56. 3.100"
[6]=>
string(40) " libavdevice 56. 0.100 / 56. 0.100"
[7]=>
string(40) " libavfilter 5. 0.103 / 5. 0.103"
[8]=>
string(40) " libswscale 3. 0.100 / 3. 0.100"
[9]=>
string(40) " libswresample 1. 1.100 / 1. 1.100"
[10]=>
string(40) " libpostproc 53. 0.100 / 53. 0.100"
[11]=>
string(31) "Input #0, avi, from 'test.avi':"
[12]=>
string(11) " Metadata:"
[13]=>
string(36) " encoder : Nandub v1.0rc2"
[14]=>
string(60) " Duration: 00:01:09.78, start: 0.000000, bitrate: 1517 kb/s"
[15]=>
string(126) " Stream #0:0: Video: msmpeg4v3 (DIV3 / 0x33564944), yuv420p, 640x352, 1279 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc"
[16]=>
string(83) " Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 222 kb/s"
[17]=>
string(88) "[libx264 @ 0x13046c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX"
[18]=>
string(45) "[libx264 @ 0x13046c0] profile High, level 3.0"
[19]=>
string(650) "[libx264 @ 0x13046c0] 264 - core 124 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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=4 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=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00"
[20]=>
string(132) "[aac @ 0x13055a0] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it."
}
int(1)And also tried thi command :
$output ="{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 -movflags faststart {output}.mp4";
And with this it gives :
array(0) {
}
int(1)in all cases file that weitghs 12 mb doest not convert it’s 0kb in ftp
-
How would I dynamically link FFmpeg in a C# Project for use with FFMpegCore ?
15 octobre 2024, par liamliamSo far, I have FFMpegCore working in my project with a
ffmpeg.exe
dropped into the project directory. This works, but for LGPL license compliance FFmpeg requires dynamic linking :

Use dynamic linking (on windows, this means linking to dlls) for linking with FFmpeg libraries..

While I understand the basic concept of dynamic vs static linking, my problem is likely a misunderstanding of how
.dll
s work and how they apply to C# and .NET.

Would it be possible to compile ffmpeg into a single.dll
that could be accessed by FFMpegCore cross-platform ? From what I can gather in the source, FFMpegCore looks for anffmpeg
orffmpeg.exe
file in its configuration path.

Is it possible to have .NET dynamically link FFmpeg and expose it to libraries for use or is that a complete misunderstanding and would I then need a wrapper library with different capabilities ?


I've attempted to find the answer in the relevant documentation, but I found none for this specific use of either library. I suspect my problem might be a fundamental misunderstanding of how these tools work and work together.
My ideal result would be using FFMpegCore with an
FFmpeg.dll
that works cross-platform instead of the.exe
.

Edit 1 : @taratect's answer and graphic sent me down a path that cleared up quite a bit about
exe
s anddll
s. .Net compiles source code down to platform agnostic Intermediate Language in the form of a.dll
or.exe
(completely different to C++ variants of these files), which is executed by the Common Language Runtime using a Just In Time compiler to convert that Intermediate Language to Machine Code that can be run on the specific platform .Net is installed on. C++(FFmpeg) compiles directly to platform specific Machine Code (as shown in the graphic), confusingly in the form of a.dll
or.exe
(on Windows). .Net can indeed load and run machine code unmanaged by Common Language Runtime, since everything is run as Machine Code by the end, however memory and other complexities must then be managed by me, which seems to be what FFMpegCore does in wrapping the executable. I might still be confused/incorrect on some of this, unmanaged code is beyond my understanding so far.
This does more or less confirm that FFMpegCore probably can't be expected to use FFmpeg in the way I hoped and a better workaround might be having the user just supply an FFmpeg source or implement a downloader as part of installation so that I don't have to redistribute it at all.

-
How to optimize the decoder performance in ffmpeg ?
16 mars 2018, par airHi I am trying to get the non-decoded h264 format to use in another client application using ffmpeg command. The consumer application simply reads the h264. Now How do I optimize the below command ? My machine has GPU, I see only CPU is used, is there something I can add ?
ffmpeg -pix_fmt yuv420p -hide_banner -y -f v4l2 -vcodec h264 -video_size 1280x1020 -i /dev/video0 out.h264
The verbose printed for reference is pasted below -
user@ubuntu$ ffmpeg -pix_fmt yuv420p -hide_banner -y -f v4l2 -vcodec h264 -video_size 1280x1020 -i /dev/video0 out.h264
[video4linux2,v4l2 @ 0x17e0a20] The V4L2 driver changed the video from 1280x1020 to 1280x720
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 871.695509, bitrate: N/A
Stream #0:0: Video: h264 (Constrained Baseline), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 60 tbc
No pixel format specified, yuvj420p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x1b80ac0] using SAR=1/1
[libx264 @ 0x1b80ac0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x1b80ac0] profile High, level 3.1
Output #0, h264, to 'out.h264':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: h264 (libx264), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 30 fps, 30 tbn, 30 tbc
Metadata:
encoder : Lavc56.60.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 1242 fps= 30 q=-1.0 Lsize= 4092kB time=00:00:41.33 bitrate= 811.1kbits/s dup=0 drop=4
video:4092kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
[libx264 @ 0x1b80ac0] frame I:5 Avg QP:17.23 size: 59416
[libx264 @ 0x1b80ac0] frame P:341 Avg QP:20.29 size: 8344
[libx264 @ 0x1b80ac0] frame B:896 Avg QP:24.94 size: 1170
[libx264 @ 0x1b80ac0] consecutive B-frames: 3.4% 1.1% 0.5% 95.0%
[libx264 @ 0x1b80ac0] mb I I16..4: 21.7% 46.7% 31.6%
[libx264 @ 0x1b80ac0] mb P I16..4: 1.8% 1.9% 0.4% P16..4: 33.2% 5.0% 3.9% 0.0% 0.0% skip:53.8%
[libx264 @ 0x1b80ac0] mb B I16..4: 0.1% 0.1% 0.0% B16..8: 18.8% 0.6% 0.1% direct: 0.5% skip:79.8% L0:41.7% L1:55.6% BI: 2.7%
[libx264 @ 0x1b80ac0] 8x8 transform intra:46.9% inter:56.0%
[libx264 @ 0x1b80ac0] coded y,uvDC,uvAC intra: 33.9% 42.8% 12.2% inter: 3.0% 5.9% 0.1%
[libx264 @ 0x1b80ac0] i16 v,h,dc,p: 14% 44% 12% 30%
[libx264 @ 0x1b80ac0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 32% 29% 2% 4% 3% 5% 2% 5%
[libx264 @ 0x1b80ac0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 30% 13% 4% 8% 6% 7% 3% 5%
[libx264 @ 0x1b80ac0] i8c dc,h,v,p: 57% 23% 17% 2%
[libx264 @ 0x1b80ac0] Weighted P-Frames: Y:1.8% UV:0.0%
[libx264 @ 0x1b80ac0] ref P L0: 65.9% 4.5% 21.6% 8.0% 0.1%
[libx264 @ 0x1b80ac0] ref B L0: 88.2% 10.0% 1.9%
[libx264 @ 0x1b80ac0] ref B L1: 95.6% 4.4%
[libx264 @ 0x1b80ac0] kb/s:809.79