
Recherche avancée
Autres articles (54)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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
Sur d’autres sites (6074)
-
How do I set a relative path for an .SO file ?
1er juillet 2015, par Eran BoudjnahThis is my error :
06-29 16:52:37.729 24144-24144/com.my.app E/AndroidRuntime﹕ FATAL
EXCEPTION : main
Process : com.my.app, PID : 24144
java.lang.UnsatisfiedLinkError : dlopen failed : could not load library "build/obj/local/armeabi/libavformat.so" needed by
"libFFmpegWrapper.so" ; caused by library
"build/obj/local/armeabi/libavformat.so" not foundbuild/obj/local/armeabi/libavformat.so looks wrong to me. The code worked with an earlier build of ffmpeg - so I suspect it’s something to do with the way I build ffmpeg.
The libavformat.so file is in the APK where I’d expect it to be.
This is my build script for ffmpeg :
#!/bin/bash
NDK=/Users/eran/Downloads/android-ndk-r10e
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64
PLATFORM=$NDK/platforms/android-12/arch-arm
PREFIX=/usr/local
function build_one
{
./configure --target-os=android --prefix=$PREFIX \
--pkg-config=./fake-pkg-config \
--enable-cross-compile \
--cpu=armv7-a \
--enable-shared \
--disable-static \
--disable-asm \
--arch=arm \
--cc=$PREBUILT/bin/arm-linux-androideabi-gcc \
--cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
--disable-stripping \
--nm=$PREBUILT/bin/arm-linux-androideabi-nm \
--sysroot=$PLATFORM \
--disable-nonfree \
--disable-version3 \
--disable-everything \
--enable-gpl \
--disable-doc \
--enable-avresample \
--disable-demuxer=rtsp \
--disable-muxer=rtsp \
--disable-ffplay \
--disable-ffserver \
--enable-ffmpeg \
--disable-ffprobe \
--enable-libx264 \
--enable-encoder=libx264 \
--enable-decoder=h264 \
--disable-protocol=rtp \
--enable-hwaccels \
--enable-zlib \
--disable-devices \
--disable-avdevice \
--extra-cflags="-I/usr/local/include -fPIC -DANDROID -Wno-deprecated -mfloat-abi=softfp -mfpu=neon -march=armv7-a" \
--extra-ldflags="-L/usr/local/lib -Wl,--fix-cortex-a8" \
--extra-cxxflags='-Wno-multichar -fno-exceptions -fno-rtti'
make -j4 install
}
build_one -
The HLS segment filename file path not incrementing
30 mai 2023, par Rakesh Lconst ffmpegProcess = spawn(ffmpeg [
'-y','-i','/home/Documents/videotrans/video-transcoder/api/videoFiles/input/sample2.mp4',
'-s:v','1280x720',
'-b:v','2000000',
'-aspect','16:9',
'-b:a','64000',
'-r', '24',
'-s:v','854x480',
'-b:v','1000000',
'-aspect','16:9',
'-b:a', '112000',
'-r', '24',
'-s:v','640x360',
'-b:v','7000000',
'-aspect','16:9',
'-b:a','80000',
'-r', '24',
'-s:v','420x420',
'-b:v','600000',
'-aspect','16:9',
'-b:a','64000',
'-r', '24',
'-sc_threshold', '0',
'-map','0:0',
'-map','0:1',
'-map','0:0',
'-map','0:1',
'-map','0:0',
'-map','0:1',
'-map','0:0',
'-map','0:1',
'-ac','2',
'-ar','44100',
'-preset','slow',
'-var_stream_map','v:0,a:0 v:1,a:1 v:2,a:2 v:3,a:3',
'-f','hls',
'-hls_list_size','0',
'-master_pl_name','master.m3u8',
'-hls_segment_filename','/home/Documents/videotrans/video-transcoder/api/videoFiles/output/v%v/fileSequence~%03d.ts',
'/home/Documents/videotrans/video-transcoder/api/videoFiles/output/v%v/prog_index.m3u8'
]);



Here I'm using the spawn of a child process of FFMPEG I need to transcode the video input into four different resolutions in m3u8 format. There will be master.m3u8 and folders v0, v1, v2, and v3 ; inside those folders, there should be pro_index.m3u8 file and multiple file-sequence files according to input file size


The HLS segment filename is not incrementing properly So the process is failing


how to increment fileSequence file names ?
fileSequence%d.ts or fileSequence%03d.ts in not work here


-
Error with LocalAudioFile(file) returns OSError : [Errno 2] No such file or directory
5 mars 2016, par beriukayMuch like the question here http://developer.echonest.com/forums/thread/3843#reply, I am having the following error :
File
"/usr/local/lib/python2.7/dist-packages/echonest/remix/audio.py", line
944, in init
sampleRate=sampleRate, numChannels=numChannels) File "/usr/local/lib/python2.7/dist-packages/echonest/remix/audio.py", line
403, in init
self.load() File "/usr/local/lib/python2.7/dist-packages/echonest/remix/audio.py", line
421, in load
numChannels=self.numChannels, sampleRate=self.sampleRate, verbose=self.verbose) File
"/usr/local/lib/python2.7/dist-packages/echonest/remix/support/ffmpeg.py",
line 91, in ffmpeg
close_fds=(not win) File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception OSError : [Errno 2] No such file or directoryI checked input and output file permissions, made sure that both files and all related file paths existed, and that I have all the relevant python tools installed. The first clue is that Subprocess.py is having trouble. Looking at ffmpeg.py on line 88, I started playing around with the Popen function call to see how and why it was misbehaving.
Solution :
After messing around with the ffmpeg.py file, I piped the input to the shell (shell=True instead of shell=False), which raised the following error :
check raise Run timeError(ffmpeg_install_instructions) RuntimeError: en-ffmpeg not found! Please make sure ffmpeg is installed and create a link as follows: sudo ln -s which ffmpeg /usr/local/bin/en-ffmpeg Alternatively, import echonest.remix.support.ffmpeg and modify ffmpeg.FFMPEG to name the appropriate binary.
So, to finalize the solution, you need to get the binary from https://ffmpeg.org/download.html#build-linux, which in Ubuntu 14.04 means you just need to :
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install ffmpeg
sudo ln -s `which ffmpeg` /usr/local/bin/en-ffmpegThat should clear this problem right up.