
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (80)
-
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 (...) -
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 (12203)
-
python imageio.get_reader() returns odd exception
17 août 2020, par tristan_jiaimport imageio

reader = imageio.get_reader("./t.mp4")



As shown above, with python 3.6.10, it returns :


>>> reader = imageio.get_reader("../")
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/functions.py", line 129, in get_reader
 return format.get_reader(request)
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/format.py", line 168, in get_reader
 return self.Reader(self, request)
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/format.py", line 217, in __init__
 self._open(**self.request.kwargs.copy())
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 357, in _open
 self._initialize()
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 430, in _initialize
 shell=ISWIN)
 File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
 restore_signals, start_new_session)
 File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
 raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/tristan_jia/.imageio/ffmpeg/ffmpeg-linux64-v3.3.1'

</module></stdin>


I searched everywhere but haven't seen any similar questions. The script runs on Opensuse Leap 15.1, is it related to the system I use ?


-
Invoking ffmpeg from Java correctly
10 mars 2015, par Srinivas SureshI would like to call on ffmpeg to split a video into frames, I used
Process p=Runtime.getRuntime().exec("ffmpeg -i /home/video.mp4 -t 100 -filter:v \"fps=fps=60\" /home/%d.jpeg");
p.waitFor();But I don’t get the desired result. Nothing happens to the video. How do invoke ffmpeg from java correctly
EDIT
Additionally when I invoke ffmpeg without any arguments that have quotes in them it works fine.
Why is this getting voted down ??
-
Compile FFmpeg with libfdk_aac
26 mars 2024, par ToydorI been reading on how to convert mp3 to m4a, and found that I must compile FFmpeg if I'll use the AAC encoder, libfdk_aac.



But reading FFmpeg guide on how to compile FFmpeg with libfdk_aac makes no sense for a beginner like me.



To use libfdk_aac the encoding guide says :





Requires ffmpeg to be configured with —enable-libfdk_aac
 —enable-nonfree.





Where do I put those flags ?



Do I put it here somewhere ? :



cd ~/ffmpeg_sources
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git
cd fdk-aac
autoreconf -fiv
./configure --prefix="$HOME/ffmpeg_build" --disable-shared
make
make install
make distclean




Or maybe here somewhere ?



cd ~/ffmpeg_sources
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"
export PKG_CONFIG_PATH
./configure --prefix="$HOME/ffmpeg_build" \
 --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
 --bindir="$HOME/bin" --extra-libs="-ldl" --enable-gpl --enable-libass --enable-libfdk-aac \
 --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx \
 --enable-libx264 --enable-nonfree --enable-x11grab
make
make install
make distclean
hash -r




If I'm reading the compile guide right I guess that these two chunks of code is what I need to compile FFmpeg.



I'm using Ubuntu server 12.4



UPDATE



After upgrading my system to Ubuntu 16.04 I had to install ffmpeg again. 
I still needed libfdk-aac. Fortunately there's a good step-by-step guide at http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu on how to compile ffmpeg.



I thought I would share how to compile if just interested in compiling ffmpeg with libfdk-aac and libmp3lame.



If you haven't already a bin in home directory :



mkdir ~/bin 




Install dependencies. Didn't need the non-server packages :



sudo apt-get update
sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libtheora-dev libtool libvorbis-dev pkg-config texinfo zlib1g-dev 




Then install the encoders. Had to install yasm as well, otherwise I got errors when compiling.



sudo apt-get install libfdk-aac-dev
sudo apt-get install libmp3lame-dev
sudo apt-get install yasm




Then compile ffmpeg with needed flags



cd ~/ffmpeg_sources
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="$HOME/ffmpeg_build" \
--pkg-config-flags="--static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--bindir="$HOME/bin" \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libtheora \
--enable-libvorbis \
--enable-libmp3lame \
--enable-nonfree \
--enable-gpl
PATH="$HOME/bin:$PATH" make
make install
make distclean
hash -r