
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (51)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (6956)
-
"How can we use Ffmpeg to apply blur, overlay a logo and waveform, and add a border around a video, step by step ? [closed]
1er février 2024, par itsfaisalkhalidWe're looking to enhance a video using Ffmpeg by implementing several effects sequentially. First, we aim to apply a blur effect to the entire video. Then, we want to overlay a logo and a waveform onto the blurred video. Finally, we need to add a border around the entire composition. This step-by-step process requires precise commands and careful consideration of parameters to achieve the desired result effectively.


I utilized Ffmpeg commands to sequentially apply blur, overlay the logo and waveform, and add a border to the video. I expected each effect to be applied in the specified order, resulting in a visually enhanced video with all desired elements. However, I encountered challenges in properly configuring the parameters for each effect, leading to unexpected results such as misaligned overlays or improper blur intensity.


@echo off
setlocal enabledelayedexpansion

rem Set paths and directories
set "ffmpeg_path=C:\ffmpeg\bin\ffmpeg.exe"
set "input_dir=_input"
set "output_dir=_output"

rem Ensure input and output directories exist
if not exist "%input_dir%" (
 echo Error: Input directory "%input_dir%" not found.
 exit /b 1
)

if not exist "%output_dir%" (
 mkdir "%output_dir%"
)

rem Loop through input directory
for %%t in ("%input_dir%\*.*") DO (

 rem Process each file with ffmpeg
"%ffmpeg_path%" -y -i "%%t" -i logo.png -filter_complex "\
 [0:v]eq=brightness=0.2:saturation=2.0:contrast=1.2, crop=iw/1.2:ih/1.2, \
 boxblur=1:2 [blurred_bg]; \
 [blurred_bg][1:v]overlay=(main_w-overlay_w)/2:(main_h-overlay_h-10)[bg_with_logo]; \
 [0:a]showwaves=s=1080x100:mode=line:colors=white [waveform]; \
 [bg_with_logo][waveform]overlay=10:H-h-10, \
 format=yuv420p[v]; \
 [v]pad=iw+20:ih+20:x=10:y=10:color=white[final_output]" \
 -map "[final_output]" -map 0:a -c:v h264 -c:a aac -b:a 128k -ar 44100 "%output_dir%\temp.mp4"

 rem Check if output file exists
 if exist "%output_dir%\temp.mp4" (
 rem Calculate new MD5 hash
 certutil -hashfile "%output_dir%\temp.mp4" MD5 > "%output_dir%\temp_md5.txt"

 rem Remove ID3 tag metadata
 "%ffmpeg_path%" -i "%output_dir%\temp.mp4" -map_metadata -1 -c:v copy -c:a copy "%output_dir%\%%~nt.mp4"

 rem Clean up temporary files
 del "%output_dir%\temp.mp4"
 del "%output_dir%\temp_md5.txt"
 ) else (
 echo Error: Failed to create output file for "%%~nt"
 )
)

pause




-
cap.isOpened() : returns false in CentOS for Python 3 and OpenCV 3.1.0
29 octobre 2017, par Mona JalalSo cap from opencv 3 doesn’t work in CentOS. I had no problem in OSX or Windows 7 which I tried initially.
Here is the example code :import cv2
cap = cv2.VideoCapture('/home/grad3/jalal/PycharmProjects/hw4_cs585/Concession_LAN_800k.mp4',cv2.CAP_FFMPEG)
if not cap.isOpened():
print('not opened')
while True:
ret,frame = cap.read()
if ret == False:
print('frame empty')
break
cv2.imshow('frame', frame)
if cv2.waitKey(1) == ord('q'):
breakAnd I get :
/usr/local/anaconda3/bin/python /home/grad3/jalal/PycharmProjects/hw4_cs585/test.py
not opened
frame empty
Process finished with exit code 0I can open the video using ffplay vid_name and also here is the result of https://pastebin.com/YGk2DDCi here https://pastebin.com/HSyHSsEZ (ffmpeg codecs). How should I fix this ?
I have opencv 3.1.0 and here’s some sys info.
$ uname -a
Linux goku.bu.edu 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linuxand
$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.4.1708 (Core)
Release: 7.4.1708
Codename: Core
cv2. getBuildInformation()
General configuration for OpenCV 3.1.0 =====================================
Version control: unknown
Platform:
Host: Linux 4.8.0-46-generic x86_64
CMake: 3.6.3
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/gmake
Configuration: Release
C/C++:
Built as dynamic libs?: YES
C++ Compiler: /opt/rh/devtoolset-2/root/usr/bin/c++ (ver 4.8.2)
C++ flags (Release): -I/cs/software/anaconda3/include -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -I/cs/software/anaconda3/include -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -g -O0 -DDEBUG -D_DEBUG
C Compiler: /opt/rh/devtoolset-2/root/usr/bin/cc
C flags (Release): -I/cs/software/anaconda3/include -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fopenmp -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -I/cs/software/anaconda3/include -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fopenmp -g -O0 -DDEBUG -D_DEBUG
Linker flags (Release):
Linker flags (Debug):
Precompiled headers: YES
Extra dependencies: /cs/software/anaconda3/lib/libjpeg.so /cs/software/anaconda3/lib/libpng.so /cs/software/anaconda3/lib/libtiff.so /cs/software/anaconda3/lib/libhdf5.so /usr/lib64/librt.so /usr/lib64/libpthread.so /cs/software/anaconda3/lib/libz.so /usr/lib64/libdl.so /usr/lib64/libm.so dl m pthread rt
3rdparty dependencies: libwebp libjasper IlmImf libprotobuf
OpenCV modules:
To be built: core flann hdf imgproc ml photo reg surface_matching video dnn fuzzy imgcodecs shape videoio highgui objdetect plot superres xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib datasets rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco optflow stitching python3
Disabled: world contrib_world
Disabled by dependency: -
Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 ts viz cvv matlab sfm
GUI:
QT: NO
GTK+: NO
GThread : NO
GtkGlExt: NO
OpenGL support: NO
VTK support: NO
Media I/O:
ZLib: /cs/software/anaconda3/lib/libz.so (ver 1.2.8)
JPEG: /cs/software/anaconda3/lib/libjpeg.so (ver 80)
WEBP: build (ver 0.3.1)
PNG: /cs/software/anaconda3/lib/libpng.so (ver 1.6.27)
TIFF: /cs/software/anaconda3/lib/libtiff.so (ver 42 - 4.0.6)
JPEG 2000: build (ver 1.900.1)
OpenEXR: build (ver 1.7.1)
GDAL: NO
Video I/O:
DC1394 1.x: NO
DC1394 2.x: NO
FFMPEG: NO
codec: NO
format: NO
util: NO
swscale: NO
resample: NO
gentoo-style: NO
GStreamer: NO
OpenNI: NO
OpenNI PrimeSensor Modules: NO
OpenNI2: NO
PvAPI: NO
GigEVisionSDK: NO
UniCap: NO
UniCap ucil: NO
V4L/V4L2: YES/YES
XIMEA: NO
Xine: NO
gPhoto2: NO
Parallel framework: OpenMP
Other third-party libraries:
Use IPP: 9.0.1 [9.0.1]
at: /opt/conda/conda-bld/opencv_1491943704081/work/opencv-3.1.0/3rdparty/ippicv/unpack/ippicv_lnx
Use IPP Async: NO
Use VA: NO
Use Intel VA-API/OpenCL: NO
Use Eigen: YES (ver 3.2.8)
Use Cuda: NO
Use OpenCL: NO
Use custom HAL: NO
Python 2:
Interpreter: (ver 3.5.3)
Python 3:
Interpreter: /cs/software/anaconda3/bin/python (ver 3.5.3)
Libraries: /cs/software/anaconda3/lib/libpython3.5m.so (ver 3.5.3)
numpy: /cs/software/anaconda3/lib/python3.5/site-packages/numpy/core/include (ver 1.12.1)
packages path: /cs/software/anaconda3/lib/python3.5/site-packages
Python (for build):
Java:
ant: NO
JNI: NO
Java wrappers: NO
Java tests: NO
Matlab: NO
Tests and samples:
Tests: NO
Performance tests: NO
C/C++ Examples: NO
Install path: /cs/software/anaconda3
cvconfig.h is in: /opt/conda/conda-bld/opencv_1491943704081/work/opencv-3.1.0/build
-----------------------------------------------------------------UPDATE : tried .avi and .flv formats and the same problem !
-
lavc : AV-prefix all codec capabilities
7 juillet 2015, par Vittorio Giovaralavc : AV-prefix all codec capabilities
Express bitfields more simply.
Signed-off-by : Vittorio Giovara <vittorio.giovara@gmail.com>
- [DBH] avconv.c
- [DBH] avplay.c
- [DBH] cmdutils.c
- [DBH] doc/examples/avcodec.c
- [DBH] doc/examples/output.c
- [DBH] libavcodec/4xm.c
- [DBH] libavcodec/8bps.c
- [DBH] libavcodec/8svx.c
- [DBH] libavcodec/a64multienc.c
- [DBH] libavcodec/aacdec.c
- [DBH] libavcodec/aacenc.c
- [DBH] libavcodec/aasc.c
- [DBH] libavcodec/ac3dec.c
- [DBH] libavcodec/adpcm.c
- [DBH] libavcodec/adxdec.c
- [DBH] libavcodec/aic.c
- [DBH] libavcodec/alac.c
- [DBH] libavcodec/alacenc.c
- [DBH] libavcodec/aliaspixdec.c
- [DBH] libavcodec/alsdec.c
- [DBH] libavcodec/amrnbdec.c
- [DBH] libavcodec/amrwbdec.c
- [DBH] libavcodec/anm.c
- [DBH] libavcodec/ansi.c
- [DBH] libavcodec/apedec.c
- [DBH] libavcodec/asvdec.c
- [DBH] libavcodec/atrac1.c
- [DBH] libavcodec/atrac3.c
- [DBH] libavcodec/atrac3plusdec.c
- [DBH] libavcodec/aura.c
- [DBH] libavcodec/avcodec.h
- [DBH] libavcodec/avs.c
- [DBH] libavcodec/bethsoftvideo.c
- [DBH] libavcodec/bfi.c
- [DBH] libavcodec/bink.c
- [DBH] libavcodec/binkaudio.c
- [DBH] libavcodec/bmp.c
- [DBH] libavcodec/bmvaudio.c
- [DBH] libavcodec/bmvvideo.c
- [DBH] libavcodec/brenderpix.c
- [DBH] libavcodec/c93.c
- [DBH] libavcodec/cavsdec.c
- [DBH] libavcodec/cdgraphics.c
- [DBH] libavcodec/cdxl.c
- [DBH] libavcodec/cinepak.c
- [DBH] libavcodec/cljrdec.c
- [DBH] libavcodec/cllc.c
- [DBH] libavcodec/cngdec.c
- [DBH] libavcodec/cook.c
- [DBH] libavcodec/cscd.c
- [DBH] libavcodec/cyuv.c
- [DBH] libavcodec/dcadec.c
- [DBH] libavcodec/dds.c
- [DBH] libavcodec/dfa.c
- [DBH] libavcodec/dnxhddec.c
- [DBH] libavcodec/dnxhdenc.c
- [DBH] libavcodec/dpcm.c
- [DBH] libavcodec/dpx.c
- [DBH] libavcodec/dsicinaudio.c
- [DBH] libavcodec/dsicinvideo.c
- [DBH] libavcodec/dss_sp.c
- [DBH] libavcodec/dvdec.c
- [DBH] libavcodec/dvenc.c
- [DBH] libavcodec/dxa.c
- [DBH] libavcodec/dxtory.c
- [DBH] libavcodec/eacmv.c
- [DBH] libavcodec/eamad.c
- [DBH] libavcodec/eatgq.c
- [DBH] libavcodec/eatgv.c
- [DBH] libavcodec/eatqi.c
- [DBH] libavcodec/escape124.c
- [DBH] libavcodec/escape130.c
- [DBH] libavcodec/exr.c
- [DBH] libavcodec/ffv1dec.c
- [DBH] libavcodec/ffv1enc.c
- [DBH] libavcodec/fic.c
- [DBH] libavcodec/flacdec.c
- [DBH] libavcodec/flacenc.c
- [DBH] libavcodec/flashsv.c
- [DBH] libavcodec/flicvideo.c
- [DBH] libavcodec/flvdec.c
- [DBH] libavcodec/fraps.c
- [DBH] libavcodec/frwu.c
- [DBH] libavcodec/g2meet.c
- [DBH] libavcodec/g722dec.c
- [DBH] libavcodec/g722enc.c
- [DBH] libavcodec/g723_1.c
- [DBH] libavcodec/g726.c
- [DBH] libavcodec/gifdec.c
- [DBH] libavcodec/gsmdec.c
- [DBH] libavcodec/h261dec.c
- [DBH] libavcodec/h263dec.c
- [DBH] libavcodec/h264.c
- [DBH] libavcodec/hapdec.c
- [DBH] libavcodec/hevc.c
- [DBH] libavcodec/hnm4video.c
- [DBH] libavcodec/hq_hqa.c
- [DBH] libavcodec/hqx.c
- [DBH] libavcodec/huffyuvdec.c
- [DBH] libavcodec/idcinvideo.c
- [DBH] libavcodec/iff.c
- [DBH] libavcodec/imc.c
- [DBH] libavcodec/indeo2.c
- [DBH] libavcodec/indeo3.c
- [DBH] libavcodec/indeo4.c
- [DBH] libavcodec/indeo5.c
- [DBH] libavcodec/intelh263dec.c
- [DBH] libavcodec/interplayvideo.c
- [D