
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (54)
-
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)
Sur d’autres sites (9208)
-
Encode video with H.264 using FFmpeg in Windows
4 novembre 2019, par cbuchartI’m trying to encode a video with H.264 using FFmpeg (
AV_CODEC_ID_H264
), but I’m unable to init the codec correctly. No issues at all when using other codec likeAV_CODEC_ID_MPEG1VIDEO
.avcodec_register_all();
auto codec = avcodec_find_encoder(AV_CODEC_ID_H264);
if (!codec) { return false; }
auto codec_context = avcodec_alloc_context3(codec);
if (!codec_context) { return false; }
codec_context->codec_id = codec->id;
codec_context->codec_type = AVMEDIA_TYPE_VIDEO;
codec_context->width = w; // w = 1280 on tests
codec_context->height = h; // h = 1024 on tests
codec_context->bit_rate = w * h * 4;
codec_context->time_base = { 1, fps }; // fps = 50 on tests
codec_context->framerate = { fps, 1 };
codec_context->gop_size = 10;
codec_context->pix_fmt = AV_PIX_FMT_YUV420P;
if (codec->id == AV_CODEC_ID_H264) {
av_opt_set(codec_context->priv_data, "preset", "veryfast", 0);
}
if (avcodec_open2(codec_context, codec, nullptr) < 0) { return false; } // < Fails hereThe first error message I received is :
[h264_amf @ 08e75900] DLL amfrt32.dll failed to open
As far as I was able to find, that DLL belongs to the Advanced Media Framework, a SDK to access HW acceleration from AMD hardware. I don’t own an AMD card, so I don’t have such drivers nor SDK installed in my computer. Anyway, I downloaded the SDK and copied driver’s DLLs to my binaries directory. The missing DLL error was removed, but, as expected, the module was not correctly initialized :
[h264_amf @ 0375b600] CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 13
Question : Am I missing anything (parameters, dependencies) ? Is there any way to disable the AMF acceleration or to mark it as optional / auto-detect / whatever ?
PS : I’m expecting to run the encoding executable in a very heterogeneous client-base, assuming Windows 10 and barely anything else, so I can’t mark as mandatory vendor-specific accelerations.
PS : I’m using the pre-compiled LGPL build of FFmpeg 4.2.1 from https://ffmpeg.zeranoe.com/builds/ for Windows 32 bits. My code is being compiled using Visual Studio 2017.
If the problem is in the pre-compiled version, I’m happy with re-building it. If so, which configuration parameters should I use when building x264 or ffmpeg then ?
-
Is there a way to pick up a file based on the date modified in batchfile or direct cmd : Windows
10 octobre 2019, par A PersonMy goal is to be able to pick up files based on the date modified. The files has same name with the ending string being different as it has date and time stamp on the file. I’m trying to either use that value or use the actual date modified/created value to pick up the correct file.
my script so far picks up every video file from one folder and find its matching audio channels and merges them together in ffmpeg. However sometimes there are multiple version of that file. i want to be able to pick up the new file and use that in the transcoding.
My Research : (Tried these methods and tried to adapt but was not able to)
https://askubuntu.com/questions/61179/find-the-latest-file-by-modified-date
Batch file to copy the newest file created (not modified)
Example of file names.
BA_MUS_006615Highc450277201903201834100272.m2v
This can have a pair with the beginning being same just the ending different.BA_MUS_006615Highc450
this part remains same with the identifier beingHighc450
and the file name changing. the file name isBA_MUS_006615
this string can change unless it a new version of same file where only the date portion and time change.277201903201834100272
. Date starts after227
the one above is shown as20190320
and time is183410
.This time reflects to actual time of the date modified tab in windows and is slight off by a minute or two as the time is stamped when the file enters the software not exiting.
Is there any help i can get on this. If you require more information please let me know.
The code i am using to match the file is using a software called RoboTask, where is like a programming but with GUI. Then the file calls cmd to run the ffmpeg and then exits cmd to go back to picking the next file.
Thanks.
EDIT
Goal : Be able to find a file that matches the exact same name for example
BA_MUS_006615
then when it picks up all the files that has the same name - it find the file which is the newest and assigns that to a variable.
The code i am currently using is one made by Ben Personick (https://stackoverflow.com/users/3985011/ben-personick) which is Finding File Matches & Variable Assignment using a .BAT Script
-
ffmpeg for windows : error when concatenating videos
20 août 2019, par Ginsoi have extracted a few clips from a video file of resolution 1920x816 called ca0.mp4...ca9.mp4 using the command
ffmpeg -i ./ca.mkv -ss 00:53:24 -t 00:01:30 ca0.mp4
Then i created a black video using
ffmpeg -f lavfi -i color=black:s=1920x816:r=24000/1001 -f lavfi -i anullsrc -ar 48000 -ac 2 -t 00:00:02 empty.mp4
now i want to concencate the clips with the black video between them. Therefore i created a file list.txt :
file 'ca0.mp4'
file 'empty.mp4'
file 'ca1.mp4'
file 'empty.mp4'
file 'ca2.mp4'
file 'empty.mp4'
file 'ca3.mp4'
file 'empty.mp4'
file 'ca4.mp4'
file 'empty.mp4'
file 'ca5.mp4'
file 'empty.mp4'
file 'ca6.mp4'
file 'empty.mp4'
file 'ca7.mp4'
file 'empty.mp4'
file 'ca8.mp4'
file 'empty.mp4'
file 'ca9.mp4'and tried the command
ffmpeg -f concat -i list.txt -c:v qtrle -c:a copy ca.mp4
however, i get the following output :
ffmpeg version N-89940-gb1af0e23a3 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libmfx --enable-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth
libavutil 56. 7.100 / 56. 7.100
libavcodec 58. 9.100 / 58. 9.100
libavformat 58. 7.100 / 58. 7.100
libavdevice 58. 0.101 / 58. 0.101
libavfilter 7. 11.101 / 7. 11.101
libswscale 5. 0.101 / 5. 0.101
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001e2cd155900] Auto-inserting h264_mp4toannexb bitstream filter
Guessed Channel Layout for Input Stream #0.1 : 5.1
Input #0, concat, from 'list.txt':
Duration: N/A, start: -0.021333, bitrate: 1894 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x816 [SAR 1:1 DAR 40:17], 1500 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(ger): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 394 kb/s
Metadata:
handler_name : SoundHandler
Stream #0:2(eng): Data: bin_data (text / 0x74786574), 0 kb/s
Metadata:
handler_name : SubtitleHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> qtrle (native))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 000001e2cd213080] Could not find tag for codec qtrle in stream #0, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 --
Conversion failed!can anyone tell me, what i did wrong ?