
Recherche avancée
Médias (2)
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (61)
-
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 (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (6207)
-
Ffmpeg generated movie (png -> mp4) has no video
21 avril 2016, par ILiveForVRI have a whole bunch of png’s which I would like to convert into a mp4 video.
I am using the following command to stich them together :
ffmpeg -i _2016-04-20_14-51-00-500_%06d.png -pix_fmt yuv420p movie.mp4
I am getting a file, which has a size so it isn’t empty. But when I play it in VLC or Quicktime it shows the time going by, but it has no video in it. Any idea what I’m doing wrong ?
I also tried :ffmpeg -framerate 1/5 -i _2016-04-20_14-51-00-500_%06d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
and
ffmpeg -r 45 -f image2 -s 1920x1080 -i _2016-04-20_14-51-00-500_%06d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p test.mp4
But still no video.
This is the commandline output :>ffmpeg -i _2016-04-20_14-51-00-500_%06d.png -pix_fmt yuv420p movie.mp4
ffmpeg version N-79546-g13406b6 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 22.100 / 55. 22.100
libavcodec 57. 35.100 / 57. 35.100
libavformat 57. 34.102 / 57. 34.102
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 44.100 / 6. 44.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, image2, from '_2016-04-20_14-51-00-500_%06d.png':
Duration: 00:00:02.60, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 8192x4096 [SAR 3779:3779 DAR 2:1], 25 tbr, 25 tbn
[libx264 @ 00000000025851e0] using SAR=1/1
[libx264 @ 00000000025851e0] frame MB size (512x256) > level limit (36864)
[libx264 @ 00000000025851e0] DPB size (4 frames, 524288 mbs) > level limit (1 frames, 184320 mbs)
[libx264 @ 00000000025851e0] MB rate (3276800) > level limit (2073600)
[libx264 @ 00000000025851e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 00000000025851e0] profile High, level 5.2
[libx264 @ 00000000025851e0] 264 - core 148 r2665 a01e339 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=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 chroma_qp_offset=-2 threads=18 lookahead_threads=3 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 scenecut=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
[mp4 @ 0000000002583fc0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, mp4, to 'movie.mp4':
Metadata:
encoder : Lavf57.34.102
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 8192x4096 [SAR 1:1 DAR 2:1], q=2-31, 25 fps, 12800 tbn
Metadata:
encoder : Lavc57.35.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 65 fps=3.2 q=-1.0 Lsize= 13498kB time=00:00:02.48 bitrate=44585.2kbits/s speed=0.123x 6x
video:13497kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.009971%
[libx264 @ 00000000025851e0] frame I:1 Avg QP:16.71 size:1373751
[libx264 @ 00000000025851e0] frame P:52 Avg QP:23.59 size:234822
[libx264 @ 00000000025851e0] frame B:12 Avg QP:21.17 size: 19609
[libx264 @ 00000000025851e0] consecutive B-frames: 73.8% 3.1% 4.6% 18.5%
[libx264 @ 00000000025851e0] mb I I16..4: 14.7% 73.8% 11.5%
[libx264 @ 00000000025851e0] mb P I16..4: 3.1% 5.9% 0.5% P16..4: 23.2% 7.7% 2.0% 0.0% 0.0% skip:57.5%
[libx264 @ 00000000025851e0] mb B I16..4: 0.1% 0.1% 0.0% B16..8: 9.0% 0.2% 0.0% direct: 0.2% skip:90.3% L0:33.0% L1:66.6% BI: 0.4%
[libx264 @ 00000000025851e0] 8x8 transform intra:63.5% inter:78.5%
[libx264 @ 00000000025851e0] coded y,uvDC,uvAC intra: 33.7% 3.1% 1.0% inter: 10.1% 0.4% 0.0%
[libx264 @ 00000000025851e0] i16 v,h,dc,p: 24% 57% 3% 17%
[libx264 @ 00000000025851e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 31% 38% 2% 3% 2% 5% 2% 4%
[libx264 @ 00000000025851e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 63% 10% 2% 2% 1% 5% 1% 4%
[libx264 @ 00000000025851e0] i8c dc,h,v,p: 94% 2% 3% 0%
[libx264 @ 00000000025851e0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 00000000025851e0] ref P L0: 71.6% 13.1% 10.8% 4.4%
[libx264 @ 00000000025851e0] ref B L0: 69.0% 30.6% 0.4%
[libx264 @ 00000000025851e0] ref B L1: 89.7% 10.3%
[libx264 @ 00000000025851e0] kb/s:42522.38 -
avconv : from multiple png to movie not exporting correctly
13 avril 2016, par abhraI am trying to generate a mp4 movie from a set of pngs using avconv on my debian8 system. The mp4 file its generating basically looping over the first figure for some time. Here is the command I am using
avconv -r 10 -start_number 8 -i images_%06d.png -b:v 1000k -vf scale=640 :-1 test.mp4
Output is
avconv version 11.6-6:11.6-1 deb8u1, Copyright (c) 2000-2014 the Libav developers built on Mar 2 2016 23:00:02 with gcc 4.9.2
(Debian 4.9.2-10) Input #0, image2, from ’images_%06d.png’ :
Duration : 00:00:16.00, start : 0.000000, bitrate : N/A
Stream #0.0 : Video : png, rgb24, 2400x1801, 25 fps, 25 tbn File ’test.mp4’ already exists. Overwrite ? [y/N] y [scale @ 0x820c60] The
::flags= option syntax is deprecated. Use either
: : or w=:h=:flags=. [libx264 @ 0x837760]
using cpu capabilities : MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT
BMI2 [libx264 @ 0x837760] profile High, level 2.2 [libx264 @ 0x837760]
264 - core 142 r2431 a5831aa - H.264/MPEG-4 AVC codec - Copyleft
2003-2014 - http://www.videolan.org/x264.html - options : cabac=1 ref=3
deblock=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 chroma_qp_offset=-2 threads=12
lookahead_threads=2 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=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr
mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4
ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to ’test.mp4’ : Metadata :
encoder : Lavf56.1.0
Stream #0.0 : Video : libx264, yuv420p, 640x480, q=-1—1, 1000 kb/s, 10 fps, 10 tbn, 10 tbc
Metadata :
encoder : Lavc56.1.0 libx264 Stream mapping : Stream #0:0 -> #0:0 (png (native) -> h264 (libx264)) Press ctrl-c to stop encoding frame= 17 fps= 0 q=0.0 size= 0kB time=10000000000.00
bitrate= 0.0kbitframe= 34 fps= 32 q=0.0 size= 0kB
time=10000000000.00 bitrate= 0.0kbitframe= 51 fps= 32 q=0.0 size=
0kB time=10000000000.00 bitrate= 0.0kbitframe= 393 fps= 32 q=0.0
Lsize= 139kB time=39.00 bitrate= 29.2kbits/s video:132kB
audio:0kB other streams:0kB global headers:0kB muxing overhead :
5.284794% [libx264 @ 0x837760] frame I:2 Avg QP : 3.69 size : 51320 [libx264 @ 0x837760] frame P:99 Avg QP : 0.32 size : 242 [libx264
@ 0x837760] frame B:292 Avg QP : 0.15 size : 26 [libx264 @
0x837760] consecutive B-frames : 0.8% 0.5% 0.0% 98.7% [libx264 @
0x837760] mb I I16..4 : 45.5% 19.2% 35.3% [libx264 @ 0x837760] mb P
I16..4 : 0.0% 0.0% 0.0% P16..4 : 0.9% 0.0% 0.0% 0.0% 0.0%
skip:99.0% [libx264 @ 0x837760] mb B I16..4 : 0.0% 0.0% 0.0%
B16..8 : 0.2% 0.0% 0.0% direct : 0.0% skip:99.8% L0:22.3% L1:77.7%
BI : 0.0% [libx264 @ 0x837760] final ratefactor : -21.09 [libx264 @
0x837760] 8x8 transform intra:18.9% inter:41.7% [libx264 @ 0x837760]
coded y,uvDC,uvAC intra : 34.1% 0.0% 0.0% inter : 0.1% 0.0% 0.0%
[libx264 @ 0x837760] i16 v,h,dc,p : 81% 14% 5% 0% [libx264 @
0x837760] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu : 49% 14% 36% 0% 0% 0% 0%
0% 0% [libx264 @ 0x837760] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu : 36% 28% 19%
3% 3% 2% 4% 2% 3% [libx264 @ 0x837760] i8c dc,h,v,p : 100% 0% 0%
0% [libx264 @ 0x837760] Weighted P-Frames : Y:0.0% UV:0.0% [libx264 @
0x837760] ref P L0 : 99.3% 0.0% 0.6% 0.1% [libx264 @ 0x837760] ref B
L0 : 4.2% 95.8% [libx264 @ 0x837760] ref B L1 : 99.8% 0.2% [libx264 @
0x837760] kb/s:27.34I have also tried
cat *.png | avconv -f image2pipe -i - -b:v 1000k -vf scale=640 :-1 test2.mp4
output shows
avconv version 11.6-6:11.6-1 deb8u1, Copyright (c) 2000-2014 the Libav developers built on Mar 2 2016 23:00:02 with gcc 4.9.2
(Debian 4.9.2-10) Codec AVOption b (set bitrate (in bits/s)) specified
for output file #0 (test2.mp4) has not been used for any stream. The
most likely reason is either wrong type (e.g. a video option with no
video streams) or that it is a private option of some encoder which
was not actually used for any stream. Output #0, image2pipe, to
’test2.mp4’ : Output file #0 does not contain any streamWhen getting frames fromtest.mp4
avconv -i test.mp4 -r 30 -f image2 %04d.png
I found 1000 or more copies of the images_000001.png.
Would you please help, whether I have made any mistake in commands ? Or am I missing some codec options ? Thanks for the help.
-
Rails Streamio FFMPEG taking a screenshot of the movie and upload with carrierwave
5 juin 2016, par FelixI have got a Form where I can upload a movie. Its uploaded with carrierwave.
In this process I want to Make a screenshot of the movie while uploading.
How can I do this with Streamio FFMPEG.
My code Looks like this at the moment.
#Laedt ein Video hoch
def uploadMovie
@channels = Channel.all
@vid = Movie.new(movies_params)
@channel = Channel.find(params[:channel_id])
@vid.channel = @channel
if @vid.save
flash[:notice] = t("flash.saved")
render :add
else
render :add
end
endDo I have to do this in controller method or in the carrierwave uplaoder ?
Update : I tried it this way :
if @vid.save
flash[:notice] = t("flash.saved")
movieFile = FFMPEG::Movie.new(@vid.video.to_s)
screenshot = movieFile.screenshot("uploads/screenshot", :seek_time => 10)
render :add
elseBut then I got tis error :
s3.amazonaws.com/uploads/movie/video/6/2016-04-24_16.26.10.mp4' does not exist