
Recherche avancée
Autres articles (63)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (4967)
-
Add 2 pictures to video with durations ? [duplicate]
24 juin 2013, par jesperThis question already has an answer here :
I am trying to add 2 different images into a video with ffmpeg.
image1.jpg should show the first 10 seconds of the movie and youtubeLOL.png should show the next 6 minutes of the video.
So the command should tell us also to repeat the pictures to get a length for 6 minutes and 10 seconds. How can i do this ? I have tried this :
(It's not even working)
passthru("ffmpeg -f image2 -loop 1 -vframes 100 -i /home/psafari/public_html/youtube_images/movie_" . $id . ".jpg -vcodec mpeg4 /home/psafari/public_html/youtube_videos/movie_" . time().".avi");
Here is output :
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0
Invalid value '1' for option 'loop'output memcode
MEncoder SVN-r31628-4.4.6 (C) 2000-2010 MPlayer Team
get_path("config") problem
success: format: 0 data: 0x0 - 0x1251b
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
VIDEO: [H264] 540x800 24bpp 25.000 fps 116.3 kbps (14.2 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:540x800 fps:25.000 ftime:=0.0400
videocodec: framecopy (540x800 24bpp fourcc=34363248)
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos: 0.0s 1f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.1s 2f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.1s 3f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.2s 4f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.2s 5f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.2s 6f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.3s 7f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.3s 8f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.4s 9f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.4s 10f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.4s 11f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.5s 12f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.5s 13f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.6s 14f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.6s 15f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.6s 16f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.7s 17f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.7s 18f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.8s 19f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.8s 20f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.8s 21f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.9s 22f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.9s 23f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 1.0s 24f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 1.0s 25f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 1.0s 26f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [538:0]
Pos: 1.1s 27f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [518:0]
Pos: 1.1s 28f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [500:0]
Pos: 1.2s 29f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [483:0]
Pos: 1.2s 30f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [467:0]
Pos: 1.2s 31f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [452:0]
Pos: 1.3s 32f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [438:0]
Pos: 1.3s 33f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [425:0]
Pos: 1.4s 34f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [413:0]
Pos: 1.4s 35f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [401:0]
Pos: 1.4s 36f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [390:0]
Pos: 1.5s 37f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [380:0]
Pos: 1.5s 38f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [370:0]
Pos: 1.6s 39f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [360:0]
Pos: 1.6s 40f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [351:0]
Pos: 1.6s 41f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [343:0]
Pos: 1.7s 42f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [335:0]
Pos: 1.7s 43f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [327:0]
Pos: 1.8s 44f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [320:0]
Pos: 1.8s 45f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [313:0]
Pos: 1.8s 46f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [306:0]
Pos: 1.9s 47f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [300:0]
Pos: 1.9s 48f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [294:0]
Pos: 2.0s 49f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [288:0]
Pos: 2.0s 50f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [282:0]
Pos: 2.0s 51f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [277:0]
Pos: 2.1s 52f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [272:0]
Pos: 2.1s 53f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [266:0]
Pos: 2.2s 54f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [262:0]
Pos: 2.2s 55f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [257:0]
Pos: 2.2s 56f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [252:0]
Pos: 2.3s 57f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [248:0]
Pos: 2.3s 58f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [244:0]
Pos: 2.4s 59f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [240:0]
Pos: 2.4s 60f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [236:0]
Pos: 2.4s 61f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [232:0]
Pos: 2.5s 62f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [229:0]
Pos: 2.5s 63f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [225:0]
Pos: 2.6s 64f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [222:0]
Pos: 2.6s 65f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [218:0]
Pos: 2.6s 66f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [215:0]
Pos: 2.7s 67f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [212:0]
Pos: 2.7s 68f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [209:0]
Pos: 2.8s 69f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [206:0]
Pos: 2.8s 70f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [203:0]
Pos: 2.8s 71f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [200:0]
Pos: 2.9s 72f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [197:0]
Pos: 2.9s 73f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [195:0]
Pos: 3.0s 74f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [192:0]
Pos: 3.0s 75f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [190:0]
Pos: 3.0s 76f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [187:0]
Pos: 3.1s 77f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [185:0]
Pos: 3.1s 78f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [183:0]
Pos: 3.2s 79f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [180:0]
Pos: 3.2s 80f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [178:0]
Pos: 3.2s 81f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [176:0]
Pos: 3.3s 82f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [174:0]
Pos: 3.3s 83f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [172:0]
Pos: 3.4s 84f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [170:0]
Pos: 3.4s 85f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [168:0]
Pos: 3.4s 86f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [166:0]
Pos: 3.5s 87f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [164:0]
Pos: 3.5s 88f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [162:0]
Pos: 3.6s 89f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [161:0]
Pos: 3.6s 90f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [159:0]
Pos: 3.6s 91f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [157:0]
Pos: 3.7s 92f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [156:0]
Pos: 3.7s 93f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [154:0]
Pos: 3.8s 94f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [152:0]
Pos: 3.8s 95f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [151:0]
Pos: 3.8s 96f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [149:0]
Pos: 3.9s 97f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [148:0]
Pos: 3.9s 98f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [146:0]
Pos: 4.0s 99f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [145:0]
Pos: 4.0s 100f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [144:0]
Pos: 4.0s 101f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [142:0]
Pos: 4.1s 102f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [141:0]
Pos: 4.1s 103f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [140:0]
Pos: 4.2s 104f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [138:0]
Pos: 4.2s 105f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [137:0]
Pos: 4.2s 106f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [136:0]
Pos: 4.3s 107f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [135:0]
Pos: 4.3s 108f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [133:0]
Pos: 4.4s 109f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [132:0]
Pos: 4.4s 110f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [131:0]
Pos: 4.4s 111f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [130:0]
Pos: 4.5s 112f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [129:0]
Pos: 4.5s 113f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [128:0]
Pos: 4.6s 114f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [127:0]
Pos: 4.6s 115f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [126:0]
Pos: 4.6s 116f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [124:0]
Pos: 4.7s 117f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [123:0]
Pos: 4.7s 118f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [122:0]
Pos: 4.8s 119f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [121:0]
Pos: 4.8s 120f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [120:0]
Pos: 4.8s 121f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [119:0]
Pos: 4.9s 122f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [119:0]
Pos: 4.9s 123f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [118:0]
Pos: 5.0s 124f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [117:0]
Pos: 5.0s 125f (100%) 0.00fps Trem: 0min 0mb A-V:0.000 [116:0]
success: format: 0 data: 0x0 - 0x9daf8
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
VIDEO: [H264] 640x400 24bpp 25.000 fps 21.8 kbps ( 2.7 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:640x400 fps:25.000 ftime:=0.0400
videocodec: framecopy (540x800 24bpp fourcc=34363248)
videocodec: framecopy (640x400 24bpp fourcc=34363248)
All video files must have identical fps, resolution, and codec for -ovc copy.
Exiting... -
How to convert video formats of av3 to wmv/mpeg using FFMPEG
5 août 2022, par NandhaI'm trying to convert a av3 format video into wmv format to allow it be playable in web browser. To do the conversion I'm using FFMPEG to create thumbnail & low res wmv file. But I'm getting the below errors. I have the AVHash for the video file as well.


Video codec using MediaInfo




FFMPEG version & libraries




Followings are the different options I tried,


1st command



[root@dems-otmm Installer]# ffmpeg -i oja00039_20191218070243e0_20191218070113_01_000v.av3 -f framehash out.sha256
ffmpeg version 4.2.6 Copyright (c) 2000-2022 the FFmpeg developers
 built with gcc 8 (GCC)
 configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x564ccd01ef00] invalid STSD entries 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x564ccd01ef00] error reading header
oja00039_20191218070243e0_20191218070113_01_000v.av3: Invalid data found when processing input







2nd command




[root@dems-otmm Installer]# ffmpeg -loglevel warning -y -i oja00039_20191218070243e0_20191218070113_01_000v.av3 -r 1/10 -vf scale='min(500,iw)':-2 -f image2 oja00039_20191218070243e0_20191218070113_01_000v%4d.jpg -vf scale='min(640,iw)':-2 -r 29.97 -b:v 800000 -b:a 96000 -ar 48000 oja00039_20191218070243e0_20191218070113_01_000v.wmv
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5631fc2bd140] invalid STSD entries 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5631fc2bd140] error reading header
oja00039_20191218070243e0_20191218070113_01_000v.av3: Invalid data found when processing input
[root@dems-otmm Installer]#







And few others, but with everything I'm getting the same errors attached below,




[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5631fc2bd140] invalid STSD entries 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5631fc2bd140] error reading header
oja00039_20191218070243e0_20191218070113_01_000v.av3: Invalid data found when processing input







-
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