
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (111)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Les notifications de la ferme
1er décembre 2010, parAfin d’assurer une gestion correcte de la ferme, il est nécessaire de notifier plusieurs choses lors d’actions spécifiques à la fois à l’utilisateur mais également à l’ensemble des administrateurs de la ferme.
Les notifications de changement de statut
Lors d’un changement de statut d’une instance, l’ensemble des administrateurs de la ferme doivent être notifiés de cette modification ainsi que l’utilisateur administrateur de l’instance.
À la demande d’un canal
Passage au statut "publie"
Passage au (...)
Sur d’autres sites (8449)
-
How to Add a Watermark to Http live streaming HLS files
1er novembre 2017, par OliWe have about 2000 movies that are streamed to HLS format. each movie is in a folder with one
.m3u8
file and lots of.ts
files. is there any way to add ourWatermark.png
to all these movies without re-encoding to.mp4
files usingffmpeg
? -
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 !
-
Segmenting an audio stream or audio only file
15 janvier 2013, par Luuk D. JansenThere is need for an audio only link for HTTP-live streaming. I now use the segmenter in FFMPEG for the video, and that works great. However, when giving an audio-file the segmenter does not seem to work, just creates one segment.
The call to FFMPEG for the segmentation is :
ffmpeg -i data/media/1/2/encoded.mp3 -y -c copy -flags global_header
-map 0 -f segment -segment_time 10 -segment_list data/media/1/2/fileList.txt -segment_format libmp3lame
data/media/1/2/segment_%05d.mp3I did put as the -segment_format 'libmp3lame' in, but it doesn't seem to make a difference.
The first step is the encoding, this is the bedbug output :
20:11:36,158 DEBUG ~ FFMPEG: ffmpeg version 0.10.2.git-d3d5e84 Copyright (c) 2000-2012 the FFmpeg developers
20:11:36,158 DEBUG ~ FFMPEG: built on May 2 2012 19:00:38 with clang 3.0 (tags/Apple/clang-211.10.1)
20:11:36,158 DEBUG ~ FFMPEG: configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm
20:11:36,158 DEBUG ~ FFMPEG: libavutil 51. 44.100 / 51. 44.100
20:11:36,158 DEBUG ~ FFMPEG: libavcodec 54. 12.100 / 54. 12.100
20:11:36,158 DEBUG ~ FFMPEG: libavformat 54. 3.100 / 54. 3.100
20:11:36,158 DEBUG ~ FFMPEG: libavdevice 53. 4.100 / 53. 4.100
20:11:36,158 DEBUG ~ FFMPEG: libavfilter 2. 66.101 / 2. 66.101
20:11:36,158 DEBUG ~ FFMPEG: libswscale 2. 1.100 / 2. 1.100
20:11:36,158 DEBUG ~ FFMPEG: libswresample 0. 10.100 / 0. 10.100
20:11:36,158 DEBUG ~ FFMPEG: libpostproc 52. 0.100 / 52. 0.100
20:11:36,162 DEBUG ~ FFMPEG: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'data/media/1/1/test.m4a':
20:11:36,162 DEBUG ~ FFMPEG: Metadata:
20:11:36,162 DEBUG ~ FFMPEG: major_brand : mp42
20:11:36,162 DEBUG ~ FFMPEG: minor_version : 1
20:11:36,163 DEBUG ~ FFMPEG: compatible_brands: mp42mp41
20:11:36,163 DEBUG ~ FFMPEG: creation_time : 2011-12-07 18:53:04
20:11:36,163 DEBUG ~ FFMPEG: Duration: 00:00:24.20, start: 0.000000, bitrate: 40 kb/s
20:11:36,163 DEBUG ~ FFMPEG: Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 22050 Hz, stereo, s16, 39 kb/s
20:11:36,163 DEBUG ~ FFMPEG: Metadata:
20:11:36,163 DEBUG ~ FFMPEG: creation_time : 2011-12-07 18:53:04
20:11:36,163 DEBUG ~ FFMPEG: handler_name : Apple Sound Media Handler
20:11:36,170 DEBUG ~ FFMPEG: [mpegts @ 0x7fe4c404d000] muxrate VBR, pcr every 4 pkts, sdt every 200, pat/pmt every 40 pkts
20:11:36,171 DEBUG ~ FFMPEG: Output #0, mpegts, to '/Users/Luuk/Documents/Java/idoms-server/data/media/1/2/encoded.mp3':
20:11:36,171 DEBUG ~ FFMPEG: Metadata:
20:11:36,171 DEBUG ~ FFMPEG: major_brand : mp42
20:11:36,171 DEBUG ~ FFMPEG: minor_version : 1
20:11:36,171 DEBUG ~ FFMPEG: compatible_brands: mp42mp41
20:11:36,171 DEBUG ~ FFMPEG: creation_time : 2011-12-07 18:53:04
20:11:36,171 DEBUG ~ FFMPEG: encoder : Lavf54.3.100
20:11:36,171 DEBUG ~ FFMPEG: Stream #0:0(eng): Audio: mp3, 48000 Hz, stereo, s16, 64 kb/s
20:11:36,171 DEBUG ~ FFMPEG: Metadata:
20:11:36,171 DEBUG ~ FFMPEG: creation_time : 2011-12-07 18:53:04
20:11:36,171 DEBUG ~ FFMPEG: handler_name : Apple Sound Media Handler
20:11:36,171 DEBUG ~ FFMPEG: Stream mapping:
20:11:36,171 DEBUG ~ FFMPEG: Stream #0:0 -> #0:0 (aac -> libmp3lame)
20:11:36,171 DEBUG ~ FFMPEG: Press [q] to stop, [?] for help
20:11:36,673 DEBUG ~ FFMPEG: size= 109kB time=00:00:12.79 bitrate= 69.5kbits/s
20:11:37,156 DEBUG ~ FFMPEG: size= 209kB time=00:00:24.24 bitrate= 70.7kbits/s
20:11:37,156 DEBUG ~ FFMPEG: video:0kB audio:190kB global headers:0kB muxing overhead 10.301383%Then the next is the segmentation (version 0.10.2 cannot do both at the same time yet) :
20:11:37,211 DEBUG ~ FFMPEG: ffmpeg version 0.10.2.git-d3d5e84 Copyright (c) 2000-2012 the FFmpeg developers
20:11:37,212 DEBUG ~ FFMPEG: built on May 2 2012 19:00:38 with clang 3.0 (tags/Apple/clang-211.10.1)
20:11:37,212 DEBUG ~ FFMPEG: configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm
20:11:37,212 DEBUG ~ FFMPEG: libavutil 51. 44.100 / 51. 44.100
20:11:37,212 DEBUG ~ FFMPEG: libavcodec 54. 12.100 / 54. 12.100
20:11:37,212 DEBUG ~ FFMPEG: libavformat 54. 3.100 / 54. 3.100
20:11:37,212 DEBUG ~ FFMPEG: libavdevice 53. 4.100 / 53. 4.100
20:11:37,212 DEBUG ~ FFMPEG: libavfilter 2. 66.101 / 2. 66.101
20:11:37,212 DEBUG ~ FFMPEG: libswscale 2. 1.100 / 2. 1.100
20:11:37,212 DEBUG ~ FFMPEG: libswresample 0. 10.100 / 0. 10.100
20:11:37,212 DEBUG ~ FFMPEG: libpostproc 52. 0.100 / 52. 0.100
20:11:37,226 DEBUG ~ FFMPEG: [mpegts @ 0x7fccc2049800] max_analyze_duration 5000000 reached at 5016000
20:11:37,226 DEBUG ~ FFMPEG: Input #0, mpegts, from '/Users/Luuk/Documents/Java/idoms-server/data/media/1/2/encoded.mp3':
20:11:37,226 DEBUG ~ FFMPEG: Duration: 00:00:24.12, start: 1.376978, bitrate: 71 kb/s
20:11:37,226 DEBUG ~ FFMPEG: Program 1
20:11:37,226 DEBUG ~ FFMPEG: Metadata:
20:11:37,226 DEBUG ~ FFMPEG: service_name : Service01
20:11:37,226 DEBUG ~ FFMPEG: service_provider: FFmpeg
20:11:37,226 DEBUG ~ FFMPEG: Stream #0:0[0x100](eng): Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 64 kb/s
20:11:37,226 DEBUG ~ FFMPEG: Output #0, segment, to '/Users/Luuk/Documents/Java/idoms-server/data/media/1/2/segment_%05d.mp3':
20:11:37,226 DEBUG ~ FFMPEG: Metadata:
20:11:37,226 DEBUG ~ FFMPEG: encoder : Lavf54.3.100
20:11:37,226 DEBUG ~ FFMPEG: Stream #0:0(eng): Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 64 kb/s
20:11:37,226 DEBUG ~ FFMPEG: Stream mapping:
20:11:37,226 DEBUG ~ FFMPEG: Stream #0:0 -> #0:0 (copy)
20:11:37,226 DEBUG ~ FFMPEG: Press [q] to stop, [?] for help
20:11:37,238 DEBUG ~ FFMPEG: size= 0kB time=00:00:24.28 bitrate= 0.0kbits/s
20:11:37,238 DEBUG ~ FFMPEG: video:0kB audio:190kB global headers:0kB muxing overhead -100.000000%