
Recherche avancée
Autres articles (42)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
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 (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (5853)
-
Giving Thanks For VP8
25 novembre 2010, par Multimedia Mike — VP8It’s the Thanksgiving holiday here in the United States. I guess that’s as good a reason as any to release a first cut of my VP8 encoder. In order to remind people that they shouldn’t expect phenomenal quality from it — and to discourage inexperienced people from trying to create useful videos with it — I have hardcoded the quantizers to their maximum settings. For those not skilled in the art, this is the setting that yields maximum compression and worst quality. When compressing the Big Buck Bunny logo image, the resulting file is only 2839 bytes but observe the reconstructed quality :
It really just looks like a particularly stormy day in the forest.
First VP8 File From An Independent Encoder
I found a happy medium on the quantizer scale and encoded the first 30 seconds of Big Buck Bunny for your inspection. I guess this makes it the first VP8/WebM file from an independent encoder (using FFmpeg’s Matroska muxer as well).Download : bbb-360p-30sec-q40.webm ( 13 MBytes)
I think the quality makes it look like it was digitized from an old VHS tape.
For fun, here’s the version with the quantizer cranked to the max : bbb-360p-30sec-q127.webm ( 1.3 MBytes)
Aside : I was going to encapsulate the video in this post using a bare HTML5 <video> tag for the benefit of the small browsing population who could view that (indeed, it works fine in Chrome). But that would be insane due to the fact that supporting browsers preload the video with no easy (read : without the help of JavaScript) method for overriding this unacceptable default.
The Code
I’m still trying to get over my fear of git. To that end, I have posted the code on Github :https://github.com/multimediamike/ffvp8enc
I still don’t like you, git. But I’m sure we’ll find some way to make this work.
Other required code changes in the basic FFmpeg tree :
- Of course, copy vp8enc.c into libavcodec/
- In libavcodec/allcodecs.c, ’
REGISTER_DECODER (VP8, vp8);
’ turns into ’REGISTER_ENCDEC (VP8, vp8);
’ - Add ’
OBJS-$(CONFIG_VP8_ENCODER) += vp8enc.o
’ to libavcodec/Makefile
Further Work
About the limitations and work yet to do :- it’s still intra-only, no interframes (which is where a lot of compression occurs)
- no rate control or distortion optimization, obviously
- no intra 4x4 coding (that’s close to working but didn’t my little T-day deadline)
- no quantization control ; this should really be hooked up to the FFmpeg command line but I’m not sure how
- encoder writes into a static-sized, 1/2 MB memory buffer ; this can overflow
- code is a mess (what did you expect at this stage of the game ?)
- lots and lots of other things, surely
-
PHP ffmpeg conversion error
6 mars 2016, par Enn FennI tried to convert some videos with ffmpeg and PHP.
When I execute the following command in PHP exec()
/usr/local/bin/ffmpeg -i /home/test/public_html/test.m4v -vcodec libx264 -acodec libmp3lame -r 30 -s 640x480 -b 100k /home/test/public_html/output_640x480_test.m4v
Output :
/usr/local/bin/ffmpeg: line 4: /var/log/ffmpeg.log: Permission denied
FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
built on Apr 18 2012 05:19:10 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
configuration: --prefix=/usr/local/src/ffmpeg --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab --enable-libxvid --enable-libvorbis --enable-libtheora
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.93. 0 / 52.93. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.74. 0 / 1.74. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
Seems stream 1 codec frame rate differs from container frame rate: 1200.00 (1200/1) -> 10.00 (10/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/test/public_html/test.m4v':
Metadata:
major_brand : M4VP
minor_version : 1
compatible_brands: M4VPM4V M4A mp42isom
creation_time : 2013-03-14 10:08:25
encoder : Mac OS X v10.7.4 (CMA 891, CM 705.78, x86_64)
date : 2013-03-10T14:05:41+1100
Duration: 00:00:02.30, start: 0.000000, bitrate: 245 kb/s
Stream #0.0(und): Audio: aac, 32000 Hz, 2 channels (FC), s16, 31 kb/s
Metadata:
creation_time : 2013-03-14 10:08:25
Stream #0.1(und): Video: h264, yuv420p, 400x226 [PAR 1:1 DAR 200:113], 216 kb/s, 10.35 fps, 10 tbr, 600 tbn, 1200 tbc
Metadata:
creation_time : 2013-03-14 10:08:25
[buffer @ 0xf6093c0] w:400 h:226 pixfmt:yuv420p
[scale @ 0xf609790] w:400 h:226 fmt:yuv420p -> w:640 h:480 fmt:yuv420p flags:0xa0000004
[libx264 @ 0xf605cd0] broken ffmpeg default settings detected
[libx264 @ 0xf605cd0] use an encoding preset (e.g. -vpre medium)
[libx264 @ 0xf605cd0] preset usage: -vpre <speed> -vpre <profile>
[libx264 @ 0xf605cd0] speed presets are listed in x264 --help
[libx264 @ 0xf605cd0] profile is optional; x264 defaults to high
Output #0, ipod, to '/home/test/public_html/output_640x480_test.m4v':
Stream #0.0(und): Video: libx264, yuv420p, 640x480 [PAR 150:113 DAR 200:113], q=2-31, 800 kb/s, 90k tbn, 10 tbc
Metadata:
creation_time : 2013-03-14 10:08:25
Stream #0.1(und): Audio: libmp3lame, 32000 Hz, 2 channels, s16, 64 kb/s
Metadata:
creation_time : 2013-03-14 10:08:25
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
</profile></speed>The same conversion is working fine in another server. But not in our current server. What should I do to get rid of this error ?
-
FFmpeg wrapper for android
30 avril 2020, par AloDevI succeed to compile ffmpeg and to get
.so
files for different arch such as amreabi, armeabi-v7a, etc.


I managed to integrate these pre-built libraries to my android project using
CMakeLists.txt
through own.cpp
wrapper. The problem is I have no skills in C++. So another way to useffmpeg
is to make a callmain()
function offfmpeg.c
. This link describes the steps how to do that.


In my project :





structure










Application.mk





APP_ABI := armeabi-v7a
APP_PLATFORM := android-21






Android.mk





LOCAL_PATH := $(call my-dir)
#$(warning $(LOCAL_PATH))

include $(CLEAR_VARS)
LOCAL_MODULE := libffmpeg
LOCAL_LDLIBS := -llog -ljnigraphics -lz -landroid
LOCAL_CFLAGS := -Wdeprecated-declarations
ANDROID_LIB := -landroid
LOCAL_C_INCLUDES:=./ffmpeg
LOCAL_SRC_FILES := ffmpeg_controller.c ffmpeg.c ffmpeg_filter.c ffmpeg_opt.c cmdutils.c
LOCAL_SHARED_LIBRARIES := libavformat libavcodec libswscale libavutil libswresample libavfilter libavdevice

include $(BUILD_SHARED_LIBRARY)
$(call import-add-path,D:/My-Project/app/src/main/jni)
$(call import-module,ffmpeg/android/armeabi-v7a)






ffmpeg/android/armeabi-v7a/Android.mk





LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE:= libavdevice
LOCAL_SRC_FILES:= lib/libavdevice-57.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= libavcodec
LOCAL_SRC_FILES:= lib/libavcodec-57.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= libavformat
LOCAL_SRC_FILES:= lib/libavformat-57.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= libswscale
LOCAL_SRC_FILES:= lib/libswscale-4.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= libavutil
LOCAL_SRC_FILES:= lib/libavutil-55.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= libavfilter
LOCAL_SRC_FILES:= lib/libavfilter-6.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= libswresample
LOCAL_SRC_FILES:= lib/libswresample-2.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)






build.gradle





...
 ndk {
 abiFilters "armeabi", "armeabi-v7a"
 }
...
 packagingOptions {
 exclude 'META-INF/LICENSE'
 doNotStrip "*/armeabi/*.so"
 doNotStrip "*/armeabi-v7a/*.so"
 doNotStrip "*/x86/*.so"
 doNotStrip "*/x86_64/*.so"
 doNotStrip "*/arm64-v8a/*.so"
 }
...
 sourceSets.main {
 jniLibs.srcDir 'src/main/libs'
 jni.srcDirs = ["jni"] //disable automatic ndk-build call
 }
 lintOptions {
 warning 'InvalidPackage'
 warning 'MissingPermission'
 warning 'MissingConstraints'
 }
 externalNativeBuild {
 ndkBuild {
 path 'src/main/jni/Android.mk'
 }
 }




After the build project it gives many errors in
ffmpeg/*.c
,ffmpeg/*.h
files and injni/ffmpeg.c
,jni/cmdutils.c
, ect. The errors are like "config.h not found", "libavformat/os_support.h not found". If I add theconfig.h
file to thejni/
folder fromffmpeg/
and replacelibavformat/os_support.h
withffmpeg/libavformat/os_support.h
then the errors are gone, but.c
syntax errors still there. According to the tutorial I mustn't do such changes in sources and all should be ok.


What did I do wrong ? How else I can use ffmpeg command line tool in Android Project ?



Android NDK version - 13b,
FFmpeg version - 3.0.12