
Recherche avancée
Autres articles (111)
-
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 (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)
Sur d’autres sites (15806)
-
Best practice to play segments of larger video files in HTML5 video format
8 octobre 2015, par zx98I have to migrate a legacy project from Windows Media to HTML5 video/audio. The system should provide video/audio content to the web user meeting following criteria :
- Playout : Segments (TcIn to TcOut) of large video/audio files should be played "on the fly" to the web user. (Cutting the source material into segments does not work because there is a high overlap rate between segments, so 3-4 times more HDD space and a lot of extra programming would be needed. Markered playout of the large source files is not an option either as there are forbidden parts of the source material which should never be available to the user).
- Cutting : In general, users are permitted to make copies of the material. Indeed, by using the dowload function, users can download selected segments. I guess, this is not a problem : a service starts a cutting software (probably ffmpeg) that cuts the video, and the user is notified by email to download the product. (That’s the way I do it now but there might be a more simple option).
- Formats : what is the preferred video/audio format that most browsers (Chrome, Firefox, Opera, Android) support ?
- Server : If possible, I would keep Windows Server because the database behind is MS SQL Server.
(Windows Media Server and WMEncoder currently works fine for all the above, however WM is not suppored by browsers any more. That is the reason for reengineering).
I would appreciate any of your suggestions on how to rebuild this video/audio system. (What software elements to use and how).
Thank you.
-------- addition -------
Dear commenters,
Thank you for your comments. Please note that the above is one single question, the rest is just a detailed description of the issue/conditions, as recommended by stackoverflow.com. I guess, the answer is also very simple, I try to write it myself :- You should keep the large video/audio files in xxx format because...
- You create a playlist file like this example... for each of the the segments.
- You install the xxx streaming software component on the web/media server to playout the segments.
- You can address and play the segments from the client side web browser like this :...
- For asynchronous cutting, yes, I recommend ffmpeg, try these profile settings.
Just a few parts in bold are missing. Thanks to anyone who can fill them.
-
Failed to compile x264 library for android, error description : clang:error no such file or directory
12 janvier 2019, par Lee.SaipengI use a shell script to compile the x264 library to the android platform, the architecture is armeabi-v7a,The x264 library was cloned from github。
I am sure I have those directories,and I checked the search engine such as google,No one encountered the same situation
ANDROID_NDK=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b
SYSROOT=$ANDROID_NDK/platforms/android-16/arch-arm
CROSS_PREFIX=$ANDROID_NDK/toolchains/arm-linux-androideabi-
4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
EXTRA_CFLAGS="-march=armv7-a -mfloat-abi=softfp -mfpu=neon -
D__ANDROID__ -D__ARM_ARCH_7__ -D__ARM_ARCH_7A__"
EXTRA_LDFLAGS="-nostdlib"
PREFIX=`pwd`/libs/armeabi-v7a
./configure --prefix=$PREFIX \
--host=arm-linux \
--sysroot=$SYSROOT \
--cross-prefix=$CROSS_PREFIX \
--extra-cflags="$EXTRA_CFLAGS" \
--extra-ldflags="$EXTRA_LDFLAGS" \
--enable-pic \
--enable-static \
--enable-strip \
--disable-cli \
--disable-asm
# --disable-win32thread \
# --disable-avs \
# --disable-swscale \
# --disable-lavf \
# --disable-ffms \
# --disable-gpac \
# --disable-lsmash \
# --disable-opencl
make clean
make STRIP= -j8 install || exit 1
cp -f $PREFIX/libx264.a $PREFIXThe error is here
enter image description here
The result is that this x264 library cannot be used. Can someone help me ? thanks very muchOk, I generated the config.log file during the compilation of x264, I hope it is an error log file, the log content is as follows :
checking for -Werror=unknown-warning-option... no
Failed commandline was:
--------------------------------------------------
/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -Werror=unknown-warning-option --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -o conftest
cc1: error: -Werror=unknown-warning-option: no option -Wunknown-warning-option
--------------------------------------------------
Failed program was:
--------------------------------------------------
int main (void) { return 0; }
--------------------------------------------------
x264 configure script
Command line options: "--prefix=/Users/Project/bishe/x264/libs/armeabi-v7a" "--host=arm-linux" "--sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm" "--cross-prefix=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-" "--extra-cflags=-march=armv5te" "-msoft-float" "-D__ANDROID__" "-D__ARM_ARCH_5TE__" "-D__ARM_ARCH_5TEJ__" "--extra-ldflags=-nostdlib" "--enable-pic" "--enable-static" "--enable-strip" "--disable-cli" "--disable-asm" "--disable-win32thread" "--disable-avs" "--disable-swscale" "--disable-lavf" "--disable-ffms" "--disable-gpac" "--disable-lsmash" "--disable-opencl"
checking whether /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc works... yes
checking whether /Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc supports for( int i = 0; i < 9; i++ ); with -std=gnu99... yes
checking for pthread_create(0,0,0,0); in pthread.h... no
Failed commandline was:
--------------------------------------------------
/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE -lpthread --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
conftest.c:1:21: fatal error: pthread.h: No such file or directory
#include
^
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include
int main (void) { pthread_create(0,0,0,0); return 0; }
--------------------------------------------------
checking for pthread_create(0,0,0,0); in pthread.h... no
Failed commandline was:
--------------------------------------------------
/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
conftest.c:1:21: fatal error: pthread.h: No such file or directory
#include
^
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include
int main (void) { pthread_create(0,0,0,0); return 0; }
--------------------------------------------------
checking for log2f(2); in math.h... no
Failed commandline was:
--------------------------------------------------
/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
conftest.c:1:18: fatal error: math.h: No such file or directory
#include
^
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include
int main (void) { log2f(2); return 0; }
--------------------------------------------------
checking for strtok_r(0, 0, 0); in string.h... no
Failed commandline was:
--------------------------------------------------
/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
conftest.c:1:20: fatal error: string.h: No such file or directory
#include
^
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include
int main (void) { strtok_r(0, 0, 0); return 0; }
--------------------------------------------------
checking for clock_gettime(CLOCK_MONOTONIC, 0); in time.h... no
Failed commandline was:
--------------------------------------------------
/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
conftest.c:1:18: fatal error: time.h: No such file or directory
#include
^
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include
int main (void) { clock_gettime(CLOCK_MONOTONIC, 0); return 0; }
--------------------------------------------------
checking for clock_gettime(CLOCK_MONOTONIC, 0); in time.h... no
Failed commandline was:
--------------------------------------------------
/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE -lrt --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
conftest.c:1:18: fatal error: time.h: No such file or directory
#include
^
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include
int main (void) { clock_gettime(CLOCK_MONOTONIC, 0); return 0; }
--------------------------------------------------
checking whether defined(MAP_PRIVATE) is true... no
--------------------------------------------------
conftest.c:1:22: fatal error: sys/mman.h: No such file or directory
#include <sys></sys>mman.h>
^
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include <sys></sys>mman.h>
#include
#if !(defined(MAP_PRIVATE))
#error
#endif
--------------------------------------------------
checking for uint32_t test_vec __attribute__ ((vector_size (16))) = {0,1,2,3}; in stdint.h... no
Failed commandline was:
--------------------------------------------------
/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
In file included from conftest.c:1:0:
/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
# include_next
^
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include
int main (void) { uint32_t test_vec __attribute__ ((vector_size (16))) = {0,1,2,3}; return 0; }
--------------------------------------------------
checking for stdio.h... no
Failed commandline was:
--------------------------------------------------
/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE -fPIC -shared -Wl,-Bsymbolic --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -o conftest
conftest.c:1:19: fatal error: stdio.h: No such file or directory
#include
^
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include
int main (void) { return 0; }
--------------------------------------------------
checking for -fno-tree-vectorize... yes
checking for fseeko(stdin,0,0); in stdio.h... no
Failed commandline was:
--------------------------------------------------
/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -O3 -ffast-math -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -s -o conftest
conftest.c:1:19: fatal error: stdio.h: No such file or directory
#include
^
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include
int main (void) { fseeko(stdin,0,0); return 0; }
--------------------------------------------------
checking for fseeko64(stdin,0,0); in stdio.h... no
Failed commandline was:
--------------------------------------------------
/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -O3 -ffast-math -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -s -o conftest
conftest.c:1:19: fatal error: stdio.h: No such file or directory
#include
^
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include
int main (void) { fseeko64(stdin,0,0); return 0; }
--------------------------------------------------
checking for _fseeki64(stdin,0,0); in stdio.h... no
Failed commandline was:
--------------------------------------------------
/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc conftest.c -O3 -ffast-math -Wall -I. -I$(SRCPATH) --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -march=armv5te -msoft-float -D__ANDROID__ -D__ARM_ARCH_5TE__ -D__ARM_ARCH_5TEJ__ -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize --sysroot=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b/platforms/android-16/arch-arm -nostdlib -lm -s -o conftest
conftest.c:1:19: fatal error: stdio.h: No such file or directory
#include
^
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include
int main (void) { _fseeki64(stdin,0,0); return 0; }
--------------------------------------------------
checking for -Wshadow... yes
checking for -Wmaybe-uninitialized... yes
platform: ARM
byte order: little-endian
system: LINUX
cli: no
libx264: internal
shared: no
static: yes
asm: no
interlaced: yes
avs: no
lavf: no
ffms: no
mp4: no
gpl: yes
thread: no
opencl: no
filters: crop select_every
lto: no
debug: no
gprof: no
strip: yes
PIC: yes
bit depth: all
chroma format: all -
FFMPEG resulting audio file is longer than input file
26 septembre 2015, par D3_JMultiplyA Foreword : I have looked at the topics on stackoverflow related to this topic. None of them answer the question or have anything to do with the issue.
I make LP videos on YouTube. I recently started using .TS (Transport Stream) files to record with through the answer here. When extracting the second audio stream from the file through ffmpeg I end up with an audio file 7 seconds longer than the video file I used as input. The file used as input is 12:50 and the audio file is 12:57.
I believe this is due to the fact that ffmpeg is changing the bitrate of the file. The source bitrate is 167 kb/s and according to the console output ffmpeg is saving it as 164.7 kb/s.
I know I can manually define the bitrate to save as via -b:a:0 167k but I want this batch file to work with any file I give it, and the bitrate of the stream in question varies, as it’s the mic/aux stream. I am writing a utility in Batch so I can just drag and drop the file to extract the second audio stream, so I’d love to avoid reading the bitrate unless there’s an ffmpeg command that returns the bitrate for a specific stream in the input file that is easy to parse.
For the codec you can use -c:a:0 copy, why can’t you use copy on the bitrate ? To me it makes no sense.
The command I’m using to extract the audio :
ffmpeg -i "%~1" -map 0:2 -c:a:0 copy "%~n1.aac"
The entire batch file :
@echo off
REM This code checks to ensure the command-line variables have been properly set.
if [%1]==[] goto ALERT
if [%2]==[] (
SET outpt="%~n1.aac"
goto END_COMMENT
)
SET outpt="%~2"
GOTO END_COMMENT
------------------------------------------
The code below actually runs the extraction of the audio stream with the configured values
ffmpeg -i -map 0:2 -c:a:0 copy
ffmpeg -i -map
The base command, map tells ffmpeg that we wish to define the order of streams
we with to operate on
0:2
Defines the stream to work on, 0 is the input, so input 0 (the file) and 2 is the stream (0=video,1+=audio, last stream may be metadata)
-c:a:0 copy
Codec of audio stream 0 for output should be an exact copy of all applicable settings from input stream
The name of the file to output. The extension should match the codec. For most intents this will be .aac
------------------------------------------
:END_COMMENT
echo %outpt%
ffmpeg -i "%~1" -map 0:2 -c:a:0 copy %outpt%
goto END
:ALERT
@echo Incorrect usage: At least 1 param is required
@echo ^ = Required
@echo [param] = Optional
@echo(
@echo extract.bat ^ [output_file]
:END
pauseAt request the following file is the full output of -v 9 -loglevel 99 (I don’t see how 8 MB worth of [mpegts @ Address] is useful, but here you go : https://www.dropbox.com/s/0ous9hc6e2kbyvp/log.txt?dl=0