
Recherche avancée
Médias (2)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (111)
-
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 (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Que fait exactement ce script ?
18 janvier 2011, parCe script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
Installation de dépendances de MediaSPIP
Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)
Sur d’autres sites (9073)
-
Green overlay with multiply blend mode using FFMPEG
25 mars 2014, par BartoI'm currently working on a project which needs video editing.
Here for I'm using ffmpeg, which is working pretty well, except for 1 filter.
Every video should get an overlay with the Photoshop multiply blend mode.
I'm using the ffmpeg blend mode, but unfortunately the video gets a green overlay as you can see in the screenshots.Original Image
Edited with ffmpeg
What I'm trying to achieve
Does this has something to do with the mode I'm working in ?
Below is my current code#!/bin/bash
vagrant ssh -c "./ffmpeg \
-i /vagrant/public/uploads/video/bw_RzWecVH02p.avi -i /vagrant/public/img/red_ellipse.png \
-filter_complex "blend=all_mode='multiply'" \
/vagrant/public/uploads/video/overlay_RzWecVH02p.mp4"Here is my ffmpeg output
$ overlay_edit.sh
ffmpeg version N-61445-gdded5ed Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 14 2014 05:12:40 with gcc 4.6 (Debian 4.6.3-1)
configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags
='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/roo
t/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --en
able-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --e
nable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enabl
e-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --
enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enab
le-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
libavutil 52. 66.101 / 52. 66.101
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 34.101 / 55. 34.101
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, avi, from '/vagrant/public/uploads/video/bw_RzWecVH02p.avi':
Metadata:
comment : Converted by www.scriptcam.com
encoder : Lavf55.34.101
Duration: 00:00:06.10, start: 0.000000, bitrate: 315 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 320
x240 [SAR 1:1 DAR 4:3], 268 kb/s, 30 tbr, 30 tbn, 30 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 16000 Hz, mono, s16p, 24 kb/s
Input #1, image2, from '/vagrant/public/img/red_ellipse.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #1:0: Video: png, rgb24, 320x240 [SAR 11811:11811 DAR 4:3], 25 tbr, 2
5 tbn, 25 tbc
[libx264 @ 0xa9c70c0] using SAR=1/1
[libx264 @ 0xa9c70c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Ca
che64
[libx264 @ 0xa9c70c0] profile High, level 1.3
[libx264 @ 0xa9c70c0] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Co
pyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 de
block=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chr
oma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1
interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scene
cut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin
=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/vagrant/public/uploads/video/overlay_RzWecVH02p.mp4':
Metadata:
comment : Converted by www.scriptcam.com
encoder : Lavf55.34.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x24
0 [SAR 1:1 DAR 4:3], q=-1--1, 15360 tbn, 30 tbc (default)
Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 16000 Hz, m
ono, s16, 128 kb/s
Stream mapping:
Stream #0:0 (mpeg4) -> blend:top (graph 0)
Stream #1:0 (png) -> blend:bottom (graph 0)
blend (graph 0) -> Stream #0:0 (libx264)
Stream #0:1 -> #0:1 (mp3 -> libvo_aacenc)
Press [q] to stop, [?] for help
frame= 91 fps=0.0 q=29.0 size= 42kB time=00:00:02.90 bitrate= 117.7kbits/
frame= 140 fps=135 q=29.0 size= 105kB time=00:00:04.57 bitrate= 187.3kbits/
frame= 182 fps=106 q=29.0 Lsize= 178kB time=00:00:06.04 bitrate= 241.9kbits
/s dup=52 drop=0
video:158kB audio:16kB subtitle:0 data:0 global headers:0kB muxing overhead 2.25
8588%
[libx264 @ 0xa9c70c0] frame I:1 Avg QP:21.21 size: 9865
[libx264 @ 0xa9c70c0] frame P:128 Avg QP:25.34 size: 1149
[libx264 @ 0xa9c70c0] frame B:53 Avg QP:28.50 size: 88
[libx264 @ 0xa9c70c0] consecutive B-frames: 59.3% 3.3% 6.6% 30.8%
[libx264 @ 0xa9c70c0] mb I I16..4: 1.3% 69.3% 29.3%
[libx264 @ 0xa9c70c0] mb P I16..4: 1.0% 5.8% 0.3% P16..4: 35.1% 9.9% 5.6%
0.0% 0.0% skip:42.4%
[libx264 @ 0xa9c70c0] mb B I16..4: 0.1% 0.4% 0.0% B16..8: 11.8% 0.5% 0.1%
direct: 0.1% skip:86.9% L0:48.6% L1:47.7% BI: 3.7%
[libx264 @ 0xa9c70c0] 8x8 transform intra:80.6% inter:80.1%
[libx264 @ 0xa9c70c0] coded y,uvDC,uvAC intra: 73.1% 14.6% 5.3% inter: 13.2% 2.4
% 0.4%
[libx264 @ 0xa9c70c0] i16 v,h,dc,p: 14% 49% 28% 9%
[libx264 @ 0xa9c70c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 28% 32% 4% 4% 4% 4%
4% 6%
[libx264 @ 0xa9c70c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 30% 14% 5% 6% 8% 5%
5% 6%
[libx264 @ 0xa9c70c0] i8c dc,h,v,p: 76% 13% 11% 1%
[libx264 @ 0xa9c70c0] Weighted P-Frames: Y:0.8% UV:0.0%
[libx264 @ 0xa9c70c0] ref P L0: 72.7% 16.4% 8.1% 2.8% 0.0%
[libx264 @ 0xa9c70c0] ref B L0: 84.7% 13.1% 2.1%
[libx264 @ 0xa9c70c0] ref B L1: 95.2% 4.8%
[libx264 @ 0xa9c70c0] kb/s:213.09
[libvo_aacenc @ 0xa9c82c0] 1 frames left in the queue on closing
Connection to 127.0.0.1 closed. -
running multiple FFmpeg instances to encode udp stream gives error
24 mars 2014, par user2854116Please someone help me to fix the problem below
I am trying to encode multiple udp streams in HLS format. I run one by one instance (process) of encoding on the system. The application is working fine and I was able to encode, receive and play the streams using a player running on a STB (Set Top Box). The encoding was OK till running the 5 th instance. When I started running the 6th encoding instance on the system, the stream output starts freezing in all the 6 encoded outputs.
I am using a Intel Xeon based Server with 24 cores and 32GB of RAM.
Here is my ffmpeg build info.
ffmpeg
ffmpeg version N-61057-gec6d043 Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 4 2014 05:33:48 with gcc 4.6 (Debian 4.6.3-1)
configuration : —prefix=/root/ffmpeg-static/64bit —extra-cflags='-I/root/ffmpeg-static/64bit/include -static' —extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' —extra-libs='-lxml2 -lexpat -lfreetype' —enable-static —disable-shared —disable-ffserver —disable-doc —enable-bzlib —enable-zlib —enable-postproc —enable-runtime-cpudetect —enable-libx264 —enable-gpl —enable-libtheora —enable-libvorbis —enable-libmp3lame —enable-gray —enable-libass —enable-libfreetype —enable-libopenjpeg —enable-libspeex —enable-libvo-aacenc —enable-libvo-amrwbenc —enable-version3 —enable-libvpxI am using the below command to encode one channel :
ffmpeg -loglevel info -i "udp://@239.1.1.9:1009?fifo_size=1000000&overrun_nonfatal=1" -map 0:p:1:0 -map 0:p:1:1 -vcodec h264 -acodec aac -profile main -preset fast -g 12 -r 23.98 -s 256x144 -aspect 16:9 -b:v 166k -minrate 166k -maxrate 166k -bufsize 166k -vol 512 -b:a 128k -ac 2 -ar 48000 -strict experimental -flags -global_header -f ssegment -segment_time 10 -segment_wrap 30000 -segment_list Food_256x144_main_394.m3u8 -segment_list_flags +live -segment_list_size 6 -segment_format mpegts Food_256x144_main_394-%05d.ts -map 0:p:2:0 -map 0:p:2:1 -vcodec h264 -acodec aac -profile main -preset fast -g 12 -r 23.98 -s 640x360 -aspect 16:9 -b:v 722k -minrate 722k -maxrate 722k -bufsize 722k -vol 512 -b:a 128k -ac 2 -ar 48000 -strict experimental -flags -global_header -f ssegment -segment_time 10 -segment_wrap 30000 -segment_list Food_640x360_main_950.m3u8 -segment_list_flags +live -segment_list_size 6 -segment_format mpegts Food_640x360_main_950-%05d.ts -map 0:p:2:0 -map 0:p:2:1 -vcodec h264 -acodec aac -profile main -preset fast -g 12 -r 23.98 -s 960x540 -aspect 16:9 -b:v 1472k -minrate 1472k -maxrate 1472k -bufsize 1472k -vol 512 -b:a 128k -ac 2 -ar 48000 -strict experimental -flags -global_header -f ssegment -segment_time 10 -segment_wrap 30000 -segment_list Food_960x540_main_1700.m3u8 -segment_list_flags +live -segment_list_size 6 -segment_format mpegts Food_960x540_main_1700-%05d.ts -map 0:p:2:0 -map 0:p:2:1 -vcodec h264 -acodec aac -profile main -preset fast -g 12 -r 23.98 -s 1280x720 -aspect 16:9 -b:v 2772k -minrate 2772k -maxrate 2772k -bufsize 2772k -vol 512 -b:a 128k -ac 2 -ar 48000 -strict experimental -flags -global_header -f ssegment -segment_time 10 -segment_wrap 30000 -segment_list Food_1280x720_main_3000.m3u8 -segment_list_flags +live -segment_list_size 6 -segment_format mpegts Food_1280x720_main_3000-%05d.ts
The sample error messages I am getting after adding the 6 th encoding instance is as below ( I have pasted only few lines of error message for reference as the log message is too long )
- [list=]
2563489 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 1 5
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 10 6
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 33 7
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] ac-tex damaged at 37 8
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] slice mismatch
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] ac-tex damaged at 10 10
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 5 11
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 2 12
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 1 13
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 16 14
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 4 15
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 13 16
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 6 17
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 24 18
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 25 19
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 4 20
2563490 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 28 21
2563491 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] slice mismatch
2563491 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] ac-tex damaged at 38 23
2563491 [main] DEBUG com.ivz.streamer.FFmpegStreamer - Stream from process : [mpeg2video @ 0x24d2100] 00 motion_type at 14 24
- [list=]
-
FFMPEG error while receiving rtsp stream
8 avril 2014, par Pawel RutkaI got error with receiving rtsp stream from IPCam Edimax IC-3030 and I don't know what to do. Can anyone help me or show me a way to solution ?
/home/prog12# ffplay "rtsp://192.168.1.7/ipcam_h264.sdp"
ffplay version 2.1.4 Copyright (c) 2003-2014 the FFmpeg developers
built on Mar 22 2014 18:16:53 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable- libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable- libxvid --enable-x11grab --enable-libvpx --enable-libmp3lame
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied
[rtsp @ 0xb0c006c0] UDP timeout, retrying with TCPsq= 0B f=0/0
[rtsp @ 0xb0c006c0] method PAUSE failed: 501 Not Implemented
[rtsp @ 0xb0c006c0] Could not find codec parameters for stream 0 (Video: h264): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, rtsp, from 'rtsp://192.168.1.7/ipcam_h264.sdp':
Metadata:
title : IPCam
Duration: N/A, bitrate: 64 kb/s
Stream #0:0: Video: h264, 90k tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s
SDL_OpenAudio (1 channels):
No more channel combinations to try, audio open failed
[rtsp @ 0xb0c006c0] UDP timeout, retrying with TCPsq= 0B f=0/0
[rtsp @ 0xb0c006c0] method PAUSE failed: 501 Not Implemented
[rtsp @ 0xb0c006c0] UDP timeout, retrying with TCPsq= 0B f=0/0
[rtsp @ 0xb0c006c0] method PAUSE failed: 501 Not Implementedf=0/0
[rtsp @ 0xb0c006c0] UDP timeout, retrying with TCPsq= 0B f=0/0
[rtsp @ 0xb0c006c0] method PAUSE failed: 501 Not Implemented
nan M-V: nan fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
nan M-V: nan fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
nan M-V: nan fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
nan M-V: nan fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
nan M-V: nan fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0Thats the output.
EDIT
ps ax| grep -i pulse
8904 ? S<l></l>usr/bin/pulseaudio --start --log-target=syslog
10369 pts/1 S+ 0:00 grep --color=auto -i pulseAnd for new command :
sudo ffplay -video_size 640x480 "rtsp://192.168.1.7/ipcam_h264.sdp"
ffplay version 2.1.4 Copyright (c) 2003-2014 the FFmpeg developers
built on Mar 22 2014 18:16:53 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-libvpx --enable-libmp3lame
Option video_size not found.aq= 0KB vq= 0KB sq= 0B f=0/0