
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 (36)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
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 (12319)
-
ffmpeg minimal linux build with only one filter [closed]
31 juillet 2024, par at8993I am aiming to compile a minimal build of ffmpeg for Ubuntu 22.04. The application requires only the concat filter for .mp4s using H.264 video encoder.


I have followed this guide and used the following commands to include libx264 only :


sudo apt-get update -qq && sudo apt-get -y install \
 autoconf \
 automake \
 build-essential \
 cmake \
 git-core \
 libass-dev \
 libfreetype6-dev \
 libgnutls28-dev \
 libmp3lame-dev \
 libsdl2-dev \
 libtool \
 libva-dev \
 libvdpau-dev \
 libvorbis-dev \
 libxcb1-dev \
 libxcb-shm0-dev \
 libxcb-xfixes0-dev \
 meson \
 ninja-build \
 pkg-config \
 texinfo \
 wget \
 yasm \
 zlib1g-dev

mkdir -p ~/ffmpeg_sources ~/bin

sudo apt-get install libx264-dev



and for the configure command I have used the following options with a view to only enable what's necessary for concat.


cd ~/ffmpeg_sources && \
wget -O ffmpeg-snapshot.tar.bz2 https://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" \
 --extra-libs="-lpthread -lm" \
 --ld="g++" \
 --bindir="$HOME/bin" \
 --disable-everything \
 --enable-filter=concat \
 --enable-avformat \
 --enable-avdevice \
 --enable-avcodec \
 --enable-decoder=h264 
 --enable-libx264 
 --enable-muxer=mp4 
 --enable-gpl

PATH="$HOME/bin:$PATH" make && \
make install && \
hash -r



However running


ffmpeg -f concat -i files_to_merge.txt -c copy output.mp4



returns error


ffmpeg -f concat -i files_to_merge.txt -c copy output.mp4
ffmpeg version N-116445-gb1d410716b Copyright (c) 2000-2024 the FFmpeg developers
 built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
 configuration: --prefix=/home/user/ffmpeg_build 
--extra-cflags=-I/home/user/ffmpeg_build/include --extra-ldflags=-L/home/user/ffmpeg_build/lib 
--extra-libs='-lpthread -lm' 
--ld=g++ --bindir=/home/user/bin --disable-everything 
--enable-filter=concat --enable-avformat 
--enable-avdevice --enable-avcodec --enable-decoder=h264
 --enable-libx264 --enable-muxer=mp4 
--enable-gpl
 libavutil 59. 30.100 / 59. 30.100
 libavcodec 61. 10.100 / 61. 10.100
 libavformat 61. 5.101 / 61. 5.101
 libavdevice 61. 2.100 / 61. 2.100
 libavfilter 10. 2.102 / 10. 2.102
 libswscale 8. 2.100 / 8. 2.100
 libswresample 5. 2.100 / 5. 2.100
 libpostproc 58. 2.100 / 58. 2.100
[in#0 @ 0x555605fab640] Unknown input format: 'concat'



I assume this is due to the omission of an enable option in the configure command.


Thanks !


-
Crontab starts again before the process of conversion in ffmpeg ends (depending on time suppose /2 minutes) How to Control that ?
4 février 2018, par A SahraI am running a bash .sh file every two minutes with crontab. the problem is that when crontab runs bash file the process of ffmpeg video conversion starts,the conversion time varies depending on length of videos, i have set the crontab to run every two minutes. crontab runs again after two minutes before end of ffmpeg conversion.
How to Figure out :
control of crontab and conversion process so the crontab doesn’t starts again until process of conversion is not completed.
#!/bin/bash
# set PATH to check existance of video file in this directory
checkfiles=/home/webuser/public_html/shareportal/convert_Up_videos/*
checkforfiles=/home/webuser/public_html/shareportal/convert_Up_videos
movetodire=/home/webuser/public_html/shareportal/uploaded_videos/
conversionprocessdir=/home/webuser/public_html/shareportal/conversion_process/
movetoArchive=/home/webuser/public_html/shareportal/Video_Archive/
blockpath=/home/webuser/public_html/shareportal/block.txt
processid=/home/webuser/public_html/shareportal/processid.txt
#format of output video file
webm='webm'
if [ "$(ls -A $checkforfiles)" ]
then
#check directory for files to convert
for f in $checkfiles
do
fullfilename="$f"
filename=$(basename "$f")
filewithoutextforimage="${filename%.*}"
nametofile=$filewithoutextforimage | cut -c1-10;
echo $filewithoutextforimage | cut -c1-10 1> $blockpath 2>&1
filewithoutext="${f%.*}"
fileextention="${f##*.}"
image_path='/home/webuser/public_html/shareportal/video_images/'$filewithoutextforimage'.png'
outputfilename=$conversionprocessdir"$filewithoutextforimage.webm"
#ffmpeg conversion process starts here
if (ffmpeg -i "$f" "$outputfilename" 1>> $blockpath 2>&1)
then
#Extract Image of video file on provided time stamp
if (ffmpeg -ss 00:00:06 -i "$f" -vframes:v 1 "$image_path")
then
echo "Image Extracted"
else
echo "Could not Extract Image"
fi
echo "Video Converted";
else
echo "Could Not Convert Video"
fi
#conversion Ends!!
mv "$outputfilename" $movetodire
mv "$fullfilename" $movetoArchive
done
else
echo "File Not Found Directory is empty!!!-----"
fi -
How to watermark text on video sliding from right top to right bottom vertically
23 juillet 2015, par Durgesh GuptaHow to watermark text on video sliding from right top to right bottom vertically ?
This is my command :
ffmpeg -i /usr/home/test.mp4 -vf "drawbox=x=iw-42:y=0:w=42:h=ih:color=black@0.5:t=80,drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:text='Hello World':fontcolor=white@1.0:fontsize=16: y=(mod(2*n\,h+th)-th):x=w-tw-10" -codec:v libx264 -codec:a copy -strict -2 /usr/home/out.mp4
please help me out