
Recherche avancée
Autres articles (16)
-
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
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 (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (3948)
-
ffmpeg : Too many bits per frame requested
5 mai 2015, par nurmaSometimes there is an issue when i try to convert to mp4 using
ffmpeg
. I’m getting issueError while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
.This is the command :
ffmpeg -y -i input.mp4 -i watermark.png -filter_complex 'scale=-2:360,overlay=(main_w-overlay_w)-20:(main_h-overlay_h)-20' -codec:v libx264 -profile:v main -preset slow -b:v 300k -maxrate 300k -bufsize 600k -threads 0 -codec:a aac -strict experimental -b:a 128k -crf 20 output.mp4 1> output.log 2>&1
Here the error log :
ffmpeg version 2.4.3 Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 16 2014 22:36:57 with gcc 4.8.2 (GCC)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/man --docdir=/usr/doc/ffmpeg-2.4.3 --enable-gpl --enable-version3 --enable-avfilter --enable-avresample --enable-libass --enable-libdc1394 --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-postproc --enable-runtime-cpudetect --enable-vaapi --enable-vdpau --enable-memalign-hack --enable-pthreads --enable-x11grab --enable-bzlib --enable-zlib --enable-shared --enable-static --disable-debug --arch=x86_64 --enable-pic --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include -DRUNTIME_CPUDETECT' --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib64 -ldl -lssl -lcrypto -lz -lusb' --pkg-config-flags=--static
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.15.102
Duration: 00:00:06.76, start: 0.000000, bitrate: 1856 kb/s
Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 720x480, 1804 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 54 kb/s (default)
Metadata:
handler_name : SoundHandler
Input #1, png_pipe, from 'watermark.png':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: png, rgba, 120x35, 25 tbr, 25 tbn, 25 tbc
[libx264 @ 0x2179d80] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
[libx264 @ 0x2179d80] profile Main, level 3.0
[libx264 @ 0x2179d80] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:0:0 analyse=0x1:0x111 me=umh subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 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=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=20.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=300 vbv_bufsize=600 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
[aac @ 0x217ba40] Too many bits per frame requested
Output #0, mp4, to 'output.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.15.102
Stream #0:0: Video: h264 (libx264), yuv420p, 540x360, q=-1--1, 300 kb/s, 30 fps, 30 tbn, 30 tbc (default)
Metadata:
encoder : Lavc56.1.100 libx264
Stream #0:1(eng): Audio: aac, 0 channels, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
encoder : Lavc56.1.100 aac
Stream mapping:
Stream #0:0 (h264) -> scale (graph 0)
Stream #1:0 (png) -> overlay:overlay (graph 0)
overlay (graph 0) -> Stream #0:0 (libx264)
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height -
insert video in video ffmpeg at time exact
2 avril 2015, par Ti Amo LakyI have Video out.mp4 have 30 sec I want to put new video image1.mp4 have 5 sec in out.mp4 at 10 seconds
i have this code to put my image1.mp4 in out.mp4ffmpeg -i F:\out.mp4 -vf "movie=image2.mp4 , scale=200:-1,fade=out:200:alpha=1 , [inner]; [in][inner] overlay=70:70 [out]" -c:v libx264 -s "1080x720" completed.mp4
the output
>ffmpeg -i F:\out.mp4 -vf "movie=image2.mp4 , scale=200:-1,fade=out:100:alpha=1
[inner]; [in][inner] overlay=70:70 [out]" completed.mp4
ffmpeg version N-70411-g7da7d26 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enab
le-zlib
libavutil 54. 19.100 / 54. 19.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 24.101 / 56. 24.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'F:\out.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.24.101
Duration: 00:00:16.67, start: 0.000000, bitrate: 309 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 800x640 [
SAR 1:1 DAR 5:4], 306 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
[swscaler @ 0000000005608ea0] deprecated pixel format used, make sure you did se
t range correctly
[libx264 @ 0000000002c1c3a0] using SAR=1/1
[libx264 @ 0000000002c1c3a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0000000002c1c3a0] profile High, level 3.1
[libx264 @ 0000000002c1c3a0] 264 - core 144 r2525 40bb568 - H.264/MPEG-4 AVC cod
ec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 r
ef=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_pski
p=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 deci
mate=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=2
5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.6
0 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'completed.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.24.101
Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 8
00x640 [SAR 1:1 DAR 5:4], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc56.26.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 68 fps=0.0 q=29.0 size= 96kB time=00:00:00.63 bitrate=1245.6kbits/
frame= 111 fps=107 q=29.0 size= 161kB time=00:00:02.06 bitrate= 637.5kbits/
frame= 155 fps=100 q=29.0 size= 222kB time=00:00:03.53 bitrate= 514.3kbits/
frame= 212 fps=103 q=29.0 size= 270kB time=00:00:05.43 bitrate= 406.5kbits/
frame= 270 fps=105 q=29.0 size= 292kB time=00:00:07.36 bitrate= 324.9kbits/
frame= 314 fps=102 q=29.0 size= 465kB time=00:00:08.83 bitrate= 431.6kbits/
frame= 382 fps=106 q=29.0 size= 569kB time=00:00:11.10 bitrate= 420.0kbits/
frame= 461 fps=112 q=29.0 size= 597kB time=00:00:13.73 bitrate= 356.2kbits/
frame= 500 fps=107 q=-1.0 Lsize= 629kB time=00:00:16.60 bitrate= 310.3kbits
/s
video:623kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
verhead: 0.984177%
[libx264 @ 0000000002c1c3a0] frame I:3 Avg QP:15.65 size: 90538
[libx264 @ 0000000002c1c3a0] frame P:190 Avg QP:21.18 size: 1663
[libx264 @ 0000000002c1c3a0] frame B:307 Avg QP:30.53 size: 161
[libx264 @ 0000000002c1c3a0] consecutive B-frames: 18.0% 0.0% 1.2% 80.8%
[libx264 @ 0000000002c1c3a0] mb I I16..4: 17.4% 72.4% 10.2%
[libx264 @ 0000000002c1c3a0] mb P I16..4: 0.0% 0.3% 0.2% P16..4: 5.0% 1.3
% 0.9% 0.0% 0.0% skip:92.2%
[libx264 @ 0000000002c1c3a0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 2.1% 0.3
% 0.1% direct: 0.1% skip:97.4% L0:39.2% L1:52.6% BI: 8.2%
[libx264 @ 0000000002c1c3a0] 8x8 transform intra:68.7% inter:65.2%
[libx264 @ 0000000002c1c3a0] coded y,uvDC,uvAC intra: 79.0% 49.6% 23.6% inter: 1
.1% 1.6% 0.2%
[libx264 @ 0000000002c1c3a0] i16 v,h,dc,p: 92% 5% 1% 2%
[libx264 @ 0000000002c1c3a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 8% 22% 7% 8%
12% 5% 13% 6%
[libx264 @ 0000000002c1c3a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 18% 16% 5% 6%
8% 6% 7% 6%
[libx264 @ 0000000002c1c3a0] i8c dc,h,v,p: 63% 16% 18% 3%
[libx264 @ 0000000002c1c3a0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000000002c1c3a0] ref P L0: 59.0% 18.1% 17.1% 5.8%
[libx264 @ 0000000002c1c3a0] ref B L0: 83.8% 11.7% 4.5%
[libx264 @ 0000000002c1c3a0] ref B L1: 96.5% 3.5%
[libx264 @ 0000000002c1c3a0] kb/s:305.76 -
ffmpeg Videos Won't Play Centos
17 mai 2016, par DanMy exported videos from ffmpeg won’t play on anything. I am trying to create a simple slideshow type video from images. It will create the video, the video will add 5 seconds in duration for each image I add but it just doesn’t play on anything. It’s driving me crazy.
/usr/local/bin/ffmpeg -y -f image2 -r 1/5 -i uploads/img%03d.jpg vid/video.mp4
And here is the output :
Array ( [0] => ffmpeg version n2.8.7 Copyright (c) 2000-2016 the FFmpeg developers [1] => built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16) [2] => 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 [3] => libavutil 54. 31.100 / 54. 31.100 [4] => libavcodec 56. 60.100 / 56. 60.100 [5] => libavformat 56. 40.101 / 56. 40.101 [6] => libavdevice 56. 4.100 / 56. 4.100 [7] => libavfilter 5. 40.101 / 5. 40.101 [8] => libswscale 3. 1.101 / 3. 1.101 [9] => libswresample 1. 2.101 / 1. 2.101 [10] => libpostproc 53. 3.100 / 53. 3.100 [11] => [mjpeg @ 0x4213ac0] Changeing bps to 8 [12] => Input #0, image2, from 'uploads/img%03d.jpg': [13] => Duration: 00:00:05.00, start: 0.000000, bitrate: N/A [14] => Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 2021x1117 [SAR 100:100 DAR 2021:1117], 0.20 tbr, 0.20 tbn, 0.20 tbc [15] => No pixel format specified, yuvj444p for H.264 encoding chosen. [16] => Use -pix_fmt yuv420p for compatibility with outdated media players. [17] => [libx264 @ 0x4214040] using SAR=1/1 [18] => [libx264 @ 0x4214040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [19] => [libx264 @ 0x4214040] profile High 4:4:4 Predictive, level 5.0, 4:4:4 8-bit [20] => [libx264 @ 0x4214040] 264 - core 148 r2694 3b70645 - 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=4 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=1 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 [21] => Output #0, mp4, to 'vid/video.mp4': [22] => Metadata: [23] => encoder : Lavf56.40.101 [24] => Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj444p(pc), 2021x1117 [SAR 100:100 DAR 2021:1117], q=-1--1, 0.20 fps, 16384 tbn, 0.20 tbc [25] => Metadata: [26] => encoder : Lavc56.60.100 libx264 [27] => Stream mapping: [28] => Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264)) [29] => Press [q] to stop, [?] for help [30] => frame= 1 fps=0.0 q=17.0 Lsize= 85kB time=00:00:05.00 bitrate= 139.4kbits/s [31] => video:84kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.931709% [32] => [libx264 @ 0x4214040] frame I:1 Avg QP:10.98 size: 85605 [33] => [libx264 @ 0x4214040] mb I I16..4: 25.7% 55.1% 19.2% [34] => [libx264 @ 0x4214040] 8x8 transform intra:55.1% [35] => [libx264 @ 0x4214040] coded y,u,v intra: 28.2% 25.3% 21.6% [36] => [libx264 @ 0x4214040] i16 v,h,dc,p: 20% 54% 11% 15% [37] => [libx264 @ 0x4214040] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 27% 24% 3% 4% 1% 3% 1% 2% [38] => [libx264 @ 0x4214040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 31% 12% 3% 4% 2% 3% 2% 3% [39] => [libx264 @ 0x4214040] kb/s:136.97 )
I’ve read that adding -pix_fmt yuv420p might help but when I do that I get errors.
Array ( [0] => ffmpeg version n2.8.7 Copyright (c) 2000-2016 the FFmpeg developers [1] => built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16) [2] => 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 [3] => libavutil 54. 31.100 / 54. 31.100 [4] => libavcodec 56. 60.100 / 56. 60.100 [5] => libavformat 56. 40.101 / 56. 40.101 [6] => libavdevice 56. 4.100 / 56. 4.100 [7] => libavfilter 5. 40.101 / 5. 40.101 [8] => libswscale 3. 1.101 / 3. 1.101 [9] => libswresample 1. 2.101 / 1. 2.101 [10] => libpostproc 53. 3.100 / 53. 3.100 [11] => [mjpeg @ 0x27f9ae0] Changeing bps to 8 [12] => Input #0, image2, from 'uploads/img%03d.jpg': [13] => Duration: 00:00:05.00, start: 0.000000, bitrate: N/A [14] => Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 2021x1117 [SAR 100:100 DAR 2021:1117], 0.20 tbr, 0.20 tbn, 0.20 tbc [15] => [swscaler @ 0x28097c0] deprecated pixel format used, make sure you did set range correctly [16] => [libx264 @ 0x27fa060] width not divisible by 2 (2021x1117) [17] => Output #0, mp4, to 'vid/video.mp4': [18] => Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 0.20 fps [19] => Metadata: [20] => encoder : Lavc56.60.100 libx264 [21] => Stream mapping: [22] => Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264)) [23] => Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height )
Blockquote
Any help is much appreciated.