
Recherche avancée
Autres articles (44)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
MediaSPIP Player : les contrôles
26 mai 2010, parLes contrôles à la souris du lecteur
En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...) -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (7248)
-
Problems transcoding GoToMeeting output using FFmpeg
20 avril 2014, par user3466413I’m having a nightmare of a time transcoding output from GoToMeeting, recorded using the latest OS X version, to something web-playable. No matter what settings I use, I end up with time syncing problems, at least with this particular recording.
The
.mov
file looks like this. Note that it’s variable framerate, and because it’s mostly just a screencast of a PowerPoint presentation with occasional mouse movement, the output should be VFR too to produce a small file yet still preserve occasional motion.$ ffmpeg -i original.mov
ffmpeg version N-58273-g18df75f Copyright (c) 2000-2013 the FFmpeg developers
built on Nov 19 2013 10:34:42 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libass --enable-libcelt --enable-libfaac --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-openssl --enable-libopus --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local
libavutil 52. 53.100 / 52. 53.100
libavcodec 55. 43.101 / 55. 43.101
libavformat 55. 21.100 / 55. 21.100
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 91.100 / 3. 91.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f822980a000] decoding for stream 0 failed
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'original.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2014-03-20 02:09:22
Duration: 03:08:26.72, start: 0.000000, bitrate: 75 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1368x728 [SAR 1:1 DAR 171:91], 20 kb/s, 0.60 fps, 600 tbr, 600 tbn, 1200 tbc (default)
Metadata:
creation_time : 2014-03-20 02:09:22
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 47 kb/s (default)
Metadata:
creation_time : 2014-03-20 02:09:22
handler_name : Apple Alias Data Handler
Stream #0:2(eng): Data: none (rtp / 0x20707472), 6 kb/s
Metadata:
creation_time : 2014-03-20 02:09:22
handler_name : Apple Alias Data Handler
Stream #0:3(und): Data: none (rtp / 0x20707472), 0 kb/s
Metadata:
creation_time : 2014-03-20 02:09:22
handler_name : Apple Alias Data HandlerThe
.mov
file (which I unfortunately cannot publicly post) plays back properly in any application I use : VLC, Media Player Classic, and QuickTime. However, playing the transcoded output always exhibits the following symptoms :- Audio out of sync with what the video is showing, sometimes to the order of minutes off towards the end of this three hour recording
- In the case of Media Player Classic, clicking a spot on the timeline actually moves the playhead to a spot on the timeline near where I clicked, but not directly on it.
There are the arguments I’m using for a
.mp4
encoding that is playable in all browsers that support H.264. Note that this is on Windows but Linux exhibits the same problems.ffmpeg.exe -y -i original.mov -i watermark.png -filter_complex "[0:v] crop=1184:720:178:6,scale=1184:720,setsar=1/1; [0:v][1:v] overlay=1242:648 [0:v]" -vcodec libx264 -acodec libvo_aacenc -q:a 80 -crf 30 -ac 1 -ar 16000 -strict -2 -profile:v baseline -level 3 outout.mkv
The arguments, other than those that are self-explanatory or trivial :
-filter_complex
: Crop excess letterboxing/pillarboxing from the video and set the aspect ratio to 1:1 for square pixels (something Safari needed), then overlay a watermark from a PNG and resize the output to 720p-crf 30
: encode the video at constant quality, variable bitrate-ac 1 -ar 16000
: encode with mono audio at 16 KHz-strict -2 -profile:v baseline -level 3
: encode using FFmpeg’s "experimental" H.264 encoder using the Baseline level 3 profile for web compatibility
Note that yes, this goes to an MKV container initially because, for some reason, encoding directly to a
.mp4
container hangs FFmpeg. I then use-acodec copy -vcodec copy
to copy the audio and video streams directly into a.mp4
container. Finally I pass the output through MP4Box to interleave it so it can be progressively downloaded.When transcoding, FFmpeg does drop frames, which I suspect is related to the problem, with output like this :
FFmpeg: frame= 232 fps= 26 q=24.0 size= 5983kB time=00:32:44.57 bitrate= 24.9kbits/s dup=0 drop=1487
When I then later attempt to mux it into the
.mp4
container from this temporary.mkv
container, I get a flood of warnings like this :[mp4 @ 0297cd00] Non-monotonous DTS in output stream 0:0; previous: 6341306, current: 6007024; changing to 6341307. This may result in incorrect timestamps in the output file.
Now I wouldn’t be surprised if there is indeed some problem with the source file. However, if so, I need to definitively prove just how it’s broken.
Any thoughts ?
-
Multiply blend mode using FFMPEG adds green overlay
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. -
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.