
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (57)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (7913)
-
configure : Only redefine inline to __inline for msvc if necessary
25 juillet 2015, par Martin Storsjö -
Node.js ffmetadata incorrect codec parameters
21 juillet 2015, par Ahmed HamdyI’m making a song downloader app in Node.js. I managed to get everything to work, the app downloads the song and downloads its artwork (image). So I have the mp3 file and jpg file. The only problem is attaching the jpg file to the mp3 file.
I’m using the ffmetadata node.js module. I downloaded and installed its dependency "ffmpeg" cli.
Now when I try to write the metadata to the mp3 file and attach the artwork it spits this error :
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
My code :
ffmetadata.write('test.mp3', {}, {attachments: ['test.jpg']}, function(err) {
if (err) console.error(err);
});The error :
[Error: ffmpeg version N-73872-g6b96c70 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (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-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-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 --enable-zlib
libavutil 54. 28.100 / 54. 28.100
libavcodec 56. 50.101 / 56. 50.101
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 25.100 / 5. 25.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'songs/Irresistible - Fall Out Boy (Lyrics).mp3':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6mp41
creation_time : 2015-04-03 10:45:25
Duration: 00:03:26.94, start: 0.000000, bitrate: 128 kb/s
Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2015-04-03 10:45:25
handler_name : SoundHandler
Input #1, image2, from 'songs/albumart/Irresistible - Fall Out Boy (Lyrics).jpg':
Duration: 00:00:00.04, start: 0.000000, bitrate: 24578 kb/s
Stream #1:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 640x640 [SAR 300:300 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
[mp3 @ 0000000004865d80] Invalid audio stream. Exactly one MP3 audio stream is required.
Output #0, mp3, to 'songs\Irresistible - Fall Out Boy (Lyrics).ffmetadata.mp3':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6mp41
dryRun : true
encoder : Lavf56.40.101
Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 125 kb/s (default)
Metadata:
creation_time : 2015-04-03 10:45:25
handler_name : SoundHandler
Stream #0:1: Video: mjpeg, yuvj444p, 640x640 [SAR 300:300 DAR 1:1], q=2-31, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
] -
Transcoding video using ffmpeg from the internet or over http
19 juillet 2015, par RobinI have a project for transcoding videos. Right now I am passing the absolute path of the video as the input variable, as such :
inputfile = str(MEDIA_ROOT)+'/'+str(video.original_video)
Here the MEDIA_ROOT is /home/user/code/Project/Viu/static/media
And then
subprocess.call(
'ffmpeg -i '+ inputfile +' -codec:v libx264 -crf 23 -preset faster -codec:a libfdk_aac -vbr 4 \-movflags faststart -vf scale="720:trunc(ow/a/2)*2",format=yuv420p '+ outputfile,
shell=True
)This is ok for now. But I will be keeping those videos on different location from the server, how can I convert videos from that location over the internet or http?
I tried this :
inputfile = 'http://localhost:8000/media/'+str(video.original_video)
But I get this error :
[2015-07-19 13:27:14,933: INFO/MainProcess] Received task: vids.tasks.convert_video[41e36bc6-0d6a-4756-99fb-cb8005a4fbe3]
[2015-07-19 13:27:14,944: INFO/Worker-2] running
ffmpeg version N-73632-g39a04eb Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
libavutil 54. 28.100 / 54. 28.100
libavcodec 56. 47.100 / 56. 47.100
libavformat 56. 40.100 / 56. 40.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 21.100 / 5. 21.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
[h264 @ 0x9d46060] AVC: nal size 371788
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -530775991
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size 1666002647
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -1986130888
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -710433401
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -723464079
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size 378679291
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size 1766542096
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -470898291
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -402699497
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size 64441658
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size 1892506351
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size 1362707160
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -1845744002
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -327264949
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -14647022
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size 332446592
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -673972274
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size 2091272674
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -1219100086
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -1117890504
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -1221891828
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size 1674360084
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size 1114909540
[h264 @ 0x9d46060] no frame!
[h264 @ 0x9d46060] AVC: nal size -1619615275
[h264 @ 0x9d46060] no frame!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x9d43be0] decoding for stream 0 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x9d43be0] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none(bt470bg/bt709/bt709), 1920x1080, 43842 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://localhost:8000/media/uploaded_files/1437312433_3_test1.MOV':
Metadata:
major_brand : qt
minor_version : 537331968
compatible_brands: qt CAEP
creation_time : 2014-07-25 22:11:02
Duration: 00:00:48.68, start: 0.000000, bitrate: 8611 kb/s
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), none(bt470bg/bt709/bt709), 1920x1080, 43842 kb/s, 25 fps, 25 tbr, 25k tbn, 50k tbc (default)
Metadata:
creation_time : 2014-07-25 22:11:02
Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
creation_time : 2014-07-25 22:11:02
[buffer @ 0x9d47c40] Unable to parse option value "-1" as pixel format
Last message repeated 1 times
[buffer @ 0x9d47c40] Error setting option pix_fmt to value -1.
[graph 0 input from stream 0:0 @ 0x9de4d00] Error applying options to the filter.
Error opening filters!I will really appreciate your help and guidance. Thank you.