
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (50)
-
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 -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (9652)
-
How can I develop a 264 "codec format worked in VideoView API ?
31 juillet 2018, par lscodexI have got a big problem. I have a video "tc10.264" I downloaded from live555.com. I can not play the video that using videoview,exoplayer and vitamio sdk
on android.
I know that the video is codec.it is not container like mp4,flv etc.
Later, I played the video with "ffplay -f h264 tc10.264 " via on windows console.
and ffmpeg shows me this spec.
h264(baseline), yubj420p and 25 fps.Okay this video is exist.
After, I downloaded ffmpeg from on ubuntu in virtual machine. And I build(compile) the ffmpeg with x264 it as shown below.my directory path is like ffmpeg > x264 and I compiled libx264.a for ffmpeg from x264 folder.
Note : my android phone has architecturally armeabi_v7a
There is build_android_arm.sh script.
#!/bin/bash
echo starting building ....
NDK=/home/lscodex/android-sdk/ndk-bundle
PLATFORM=$NDK/platforms/android-19/arch-arm/
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
PREFIX=./android/arm
function build_one
{
./configure \
--prefix=$PREFIX \
--enable-static \
--enable-pic \
--host=arm-linux \
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
--sysroot=$PLATFORM
make clean
make
make install
}
build_one
echo Android ARM builds finished....After, I have a folder called android containing lib,include and bin files.So, I compiled script that shown below to achieve shared folder (".so") in ffmpeg folder.
there is build_android_armeabi_v7a.sh script#!/bin/bash
echo Android starting armeabi_v7a
NDK=/home/lscodex/android-sdk/ndk-bundle
PLATFORM=$NDK/platforms/android-19/arch-arm/
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
CPU=armeabi_v7a
PREFIX=$(pwd)/android/$CPU
GENERAL="\
--enable-small \
--enable-cross-compile \
--extra-libs="-lgcc" \
--arch=arm \
--cc=$PREBUILT/bin/arm-linux-androideabi-gcc \
--cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
--nm=$PREBUILT/bin/arm-linux-androideabi-nm \
--extra-cflags="-I../x264/android/arm/include" \
--extra-ldflags="-L../x264/android/arm/lib" "
MODULES="\
--enable-gpl \
--enable-libx264"
H264TEST="\
--enable-encoder=libx264 \
--enable-encoder=libx264rgb \
--enable-decoder=h264 \
--enable-muxer=h264 \
--enable-demuxer=h264 \
--enable-parser=h264"
function build_ARMv7
{
./configure \
--target-os=android \
--prefix=$PREFIX \
${GENERAL} \
--sysroot=$PLATFORM \
--enable-shared \
${H264TEST} \
--disable-static \
--extra-cflags="-march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300" \
--extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog" \
--enable-zlib \
${MODULES} \
--disable-doc \
--enable-neon
make clean
make
make install
}
build_ARMv7
echo Android ARMv7-a builds finishedfinally, I obtained another an android folder that contain shared library.
I integrated the files from the android studio. I created CMakeLists.txt and cpp folder.
So, Everything is perfectly working, I think.
this ndk code helping me for receive a duration of bugs_bunny.mp4 video.extern "C"
JNIEXPORT jint JNICALL
Java_com_lscodex_just_videoplayertesting2_VideoProcessing_videoDuration(
JNIEnv *env,
jobject obj,
jstring input) {
AVFormatContext *pFormatCtx = NULL;
if(avformat_open_input(&pFormatCtx,convertStringFileToChar(env,input),NULL,NULL)<0){
throwException(env,"Could not open input file ");
loge("Could not open input file ");
return 0;
}
if (avformat_find_stream_info(pFormatCtx,NULL)<0){
throwException(env,"Failed to retrieve input stream information");
loge("Failed to retrieve input stream information");
return 0;
}
logd("I reached it here :) ");
int64_t duration = pFormatCtx->duration;
avformat_close_input(&pFormatCtx);
avformat_free_context(pFormatCtx);
return (jint) (duration / AV_TIME_BASE);
}at least for mp4 video format.
So, my question is, How can I run tc10.264 codec video format via ffmpeg on exoplayer or on videoview api ? -
How can I develop a 264 "codec format worked in VideoView API on android ?
31 juillet 2018, par lscodexI have got a big problem. I have a video "tc10.264" I downloaded from live555.com. I can not play the video that using videoview,exoplayer and vitamio sdk
on android.
I know that the video is codec.it is not container like mp4,flv etc.
Later, I played the video with "ffplay -f h264 tc10.264 " via on windows console.
and ffmpeg shows me this spec.
h264(baseline), yubj420p and 25 fps.Okay this video is exist.
After, I downloaded ffmpeg from on ubuntu in virtual machine. And I build(compile) the ffmpeg with x264 it as shown below.my directory path is like ffmpeg > x264 and I compiled libx264.a for ffmpeg from x264 folder.
Note : my android phone has architecturally armeabi_v7a
There is build_android_arm.sh script.
#!/bin/bash
echo starting building ....
NDK=/home/lscodex/android-sdk/ndk-bundle
PLATFORM=$NDK/platforms/android-19/arch-arm/
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
PREFIX=./android/arm
function build_one
{
./configure \
--prefix=$PREFIX \
--enable-static \
--enable-pic \
--host=arm-linux \
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
--sysroot=$PLATFORM
make clean
make
make install
}
build_one
echo Android ARM builds finished....After, I have a folder called android containing lib,include and bin files.So, I compiled script that shown below to achieve shared folder (".so") in ffmpeg folder.
there is build_android_armeabi_v7a.sh script#!/bin/bash
echo Android starting armeabi_v7a
NDK=/home/lscodex/android-sdk/ndk-bundle
PLATFORM=$NDK/platforms/android-19/arch-arm/
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
CPU=armeabi_v7a
PREFIX=$(pwd)/android/$CPU
GENERAL="\
--enable-small \
--enable-cross-compile \
--extra-libs="-lgcc" \
--arch=arm \
--cc=$PREBUILT/bin/arm-linux-androideabi-gcc \
--cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
--nm=$PREBUILT/bin/arm-linux-androideabi-nm \
--extra-cflags="-I../x264/android/arm/include" \
--extra-ldflags="-L../x264/android/arm/lib" "
MODULES="\
--enable-gpl \
--enable-libx264"
H264TEST="\
--enable-encoder=libx264 \
--enable-encoder=libx264rgb \
--enable-decoder=h264 \
--enable-muxer=h264 \
--enable-demuxer=h264 \
--enable-parser=h264"
function build_ARMv7
{
./configure \
--target-os=android \
--prefix=$PREFIX \
${GENERAL} \
--sysroot=$PLATFORM \
--enable-shared \
${H264TEST} \
--disable-static \
--extra-cflags="-march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300" \
--extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog" \
--enable-zlib \
${MODULES} \
--disable-doc \
--enable-neon
make clean
make
make install
}
build_ARMv7
echo Android ARMv7-a builds finishedfinally, I obtained another an android folder that contain shared library.
I integrated the files from the android studio. I created CMakeLists.txt and cpp folder.
So, Everything is perfectly working, I think.
this ndk code helping me for receive a duration of bugs_bunny.mp4 video.extern "C"
JNIEXPORT jint JNICALL
Java_com_lscodex_just_videoplayertesting2_VideoProcessing_videoDuration(
JNIEnv *env,
jobject obj,
jstring input) {
AVFormatContext *pFormatCtx = NULL;
if(avformat_open_input(&pFormatCtx,convertStringFileToChar(env,input),NULL,NULL)<0){
throwException(env,"Could not open input file ");
loge("Could not open input file ");
return 0;
}
if (avformat_find_stream_info(pFormatCtx,NULL)<0){
throwException(env,"Failed to retrieve input stream information");
loge("Failed to retrieve input stream information");
return 0;
}
logd("I reached it here :) ");
int64_t duration = pFormatCtx->duration;
avformat_close_input(&pFormatCtx);
avformat_free_context(pFormatCtx);
return (jint) (duration / AV_TIME_BASE);
}at least for mp4 video format.
So, my question is, How can I run tc10.264 codec video format via ffmpeg on exoplayer or on videoview api ? -
FFMPEG source compilation failed with Android NDK Clang compiler (r16b) with error "the clang compiler does not support '-mcpu=arm'"
10 juillet 2018, par Prasaathvikiwhile compiling FFMPEG source with Android NDK Clang compiler (r16b), I’m getting compiler error.
for the below config :
./configure \
--prefix=/home/prasaathviki/Desktop/ffmpeg/bin/android/26/arm64_26 \
--cross-
prefix=/home/prasaathviki/Desktop/ndk/mytoolchains/r16b/arm64_26/bin/aarch64-linux-android- \
--sysroot="/home/prasaathviki/Desktop/depends/android/ndk/mytoolchains/r16b/arm64_26/sysroot" \
--disable-static \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-symver \
--enable-shared \
--enable-protocol=concat \
--enable-protocol=file \
--enable-muxer=mp4 \
--enable-demuxer=mpegts \
--target-os=android \
--enable-decoder=h264 \
--enable-cross-compile \
--arch=arm \
--cpu=arm \
--toolchain=clang-usan \
--extra-cflags="-fPIE -fPIC -ffast-math -funroll-loops -mfloat-abi=softfp -mfpu=vfpv3-d16" \
--extra-ldflags="-pie" \
--cc=/home/prasaathviki/Desktop/ndk/mytoolchains/r16b/arm64_26/bin/aarch64-linux-android-clang \
--cxx=/home/prasaathviki/Desktop/ndk/mytoolchains/r16b/arm64_26/bin/aarch64-linux-android-clang++ \
--ld=/home/prasaathviki/Desktop/ndk/mytoolchains/r16b/arm64_26/bin/aarch64-linux-android-ld \
--as=/home/prasaathviki/Desktop/ndk/mytoolchains/r16b/arm64_26/bin/aarch64-linux-android-clang \
--ar=/home/prasaathviki/Desktop/ndk/mytoolchains/r16b/arm64_26/bin/aarch64-linux-android-ar \
--strip=/home/prasaathviki/Desktop/ndk/mytoolchains/r16b/arm64_26/bin/aarch64-linux-android-stripIn ffbuild/Config.log i’m getting this below error..
/home/prasaathviki/Desktop/ndk/mytoolchains/r16b/arm64_26/bin/aarch64-linux-android-clang --sysroot=/home/prasaathviki/Desktop/depends/android/ndk/mytoolchains/r16b/arm64_26/sysroot -fsanitize=undefined -fPIE -fPIC -ffast-math -funroll-loops -mfloat-abi=softfp -mfpu=vfpv3-d16 -mcpu=arm -c -o /tmp/ffconf.Hn6wyaNC/test.o /tmp/ffconf.Hn6wyaNC/test.c
clang50: error: the clang compiler does not support '-mcpu=arm'
C compiler test failed.Also i have tried without —cpu flag, but still it reported an error as below
/home/prasaathviki/Desktop/ndk/mytoolchains/r16b/arm64_26/bin/aarch64-linux-android-clang --sysroot=/home/prasaathviki/Desktop/depends/android/ndk/mytoolchains/r16b/arm64_26/sysroot -fsanitize=undefined -fPIE -fPIC -ffast-math -funroll-loops -mfloat-abi=softfp -mfpu=vfpv3-d16 -mcpu= -c -o /tmp/ffconf.gQNwoHgC/test.o /tmp/ffconf.gQNwoHgC/test.c
clang50: warning: joined argument expects additional value: '-mcpu=' [-Wunused-command-line-argument]
clang50: error: the clang compiler does not support '-mcpu='
C compiler test failed.Please help me to resolve this issue. Thanks.