
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (31)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (4452)
-
LGPD : Demystifying Brazil’s New Data Protection Law
31 août 2023, par Erin — Privacy -
Web Analytics : The Quick Start Guide
25 janvier 2024, par Erin -
ffmpeg conversion fails for 640x360 video size
12 novembre 2015, par user3132858Can somebody advice how I can fix the ffmpeg error below :
Array ( [0] => ffmpeg version 2.0.1 Copyright (c) 2000-2013 the FFmpeg developers
[1] => built on Nov 11 2015 12:17:12 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16) [2]
=> configuration: --enable-gpl --enable-version3 --enable-shared --enable-nonfree
--enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libxvid [3] => libavutil 52. 38.100 / 52. 38.100 [4]
=> libavcodec 55. 18.102 / 55. 18.102 [5] => libavformat 55. 12.100 / 55. 12.100 [6]
=> libavdevice 55. 3.100 / 55. 3.100 [7] => libavfilter 3. 79.101 / 3. 79.101 [8]
=> libswscale 2. 3.100 / 2. 3.100 [9] => libswresample 0. 17.102 / 0. 17.102 [10]
=> libpostproc 52. 3.100 / 52. 3.100 [11] => Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '3.mov': [12]
=> Metadata: [13] => major_brand : qt [14] => minor_version : 537199360 [15] => compatible_brands: qt [16]
=> creation_time : 2005-10-17 22:54:32 [17] => Duration: 00:01:25.50, start: 0.000000,
bitrate: 307 kb/s [18] => Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D),
yuv420p, 640x480 [SAR 1:1 DAR 4:3], 261 kb/s, 10 fps, 10 tbr, 3k tbn, 25 tbc [19]
=> Metadata: [20] => creation_time : 2005-10-17 22:54:33 [21] => handler_name :
Apple Video Media Handler [22] => Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D),
32000 Hz, mono, fltp, 43 kb/s [23] => Metadata: [24] => creation_time : 2005-10-17 22:54:34 [25]
=> handler_name : Apple Sound Media Handler [26] => [libx264 @ 0x19fbb00] using SAR=944/945 [27]
=> [libx264 @ 0x19fbb00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [28]
=> Output #0, mp4, to '4.mp4': [29] => Metadata: [30] => major_brand : qt [31]
=> minor_version : 537199360 [32] => compatible_brands: qt [33] => Stream #0:0
(eng): Video: h264, yuv420p, 630x472 [SAR 944:945 DAR 4:3], q=-1--1, 900 kb/s, 90k tbn,
10 tbc [34] => Metadata: [35] => creation_time : 2005-10-17 22:54:33 [36]
=> handler_name : Apple Video Media Handler [37] => Stream #0:1(eng): Audio: aac, 32000 Hz,
mono, fltp, 128 kb/s [38] => Metadata: [39] => creation_time : 2005-10-17 22:54:34 [40]
=> handler_name : Apple Sound Media Handler [41] => Stream mapping: [42]
=> Stream #0:0 -> #0:0 (mpeg4 -> libx264) [43] => Stream #0:1 -> #0:1 (aac -> aac) [44]
=> Error while opening encoder for output stream #0:0 - maybe incorrect parameters
such as bit_rate, rate, width or height )This is my code :
$width=640;
$height=360;
$aspect=round($width/$height, 1);
$command = "/usr/bin/ffmpeg -threads 1 -y -i 3.mov -vf \"scale=min(1\,gt(iw\,".$width.")+gt(ih\,".$height.")) * (gte(a\,".$aspect.")*".$width." + \
lt(a\,".$aspect.")*((".$height."*iw)/ih)) + not(min(1\,gt(iw\,".$width.")+gt(ih\,".$height.")))*iw : \
min(1\,gt(iw\,".$width.")+gt(ih\,".$height.")) * (lte(a\,".$aspect.")*".$height." + \
gt(a\,".$aspect.")*((".$width."*ih)/iw)) + not(min(1\,gt(iw\,".$width.")+gt(ih\,".$height.")))*ih\" -b:v 900k -acodec aac -strict -2 -ab 96k 4.mp4 ";It is rather strange but when I change the width and height parameters to 300 and 200 respectively, the command executes, the error appears when the width x height is 640x360.
Any ideas of what might be wrong ?
UPDATE : I am pretty sure the error has got something to do with the audio encoding. If I change the
-ab 96k
part to-c:a copy
, command executes.
I cannot however use-c:a copy
because for some audio formats the video does not play on mobile devices. Therefore i need the audio settings to be fixed and the same for all videos.