
Recherche avancée
Autres articles (69)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (12374)
-
FFMPEG command works in shell ! but not in my node.js
29 juillet 2021, par Kuno KimWhen my ffmpeg command is built by my node.js application it does not run.



error



Unrecognized option 'ss 3.2 -t 1.9 -i videoplayback.mp4 -vf fps=15,scale=240:-1:flags=lanczos,palettegen palette.png'.




command



ffmpeg -ss 3.2 -t 1.9 -i videoplayback.mp4 -vf \ fps=15,scale=240:-1:flags=lanczos,palettegen palette.png




this is my code



var child_process = require('child_process')

function recordVideo() {

var spawn = child_process.spawn;

var args = [
 '-y', 
 '-ss', '3.2',
 '-t', '1.9', 
 '-i', '../getback/bin/videos/videoplayback.mp4', 
 '-vf', ' \\ ', 
 'fps=', '15', 
 'scale=', '320:-1', 
 'flags=','lanczos,palettegen palette.png', 
];



var ffmpeg = spawn('ffmpeg', args);

ffmpeg.stdout.on('data', function (data) {
 console.log(data);
});

ffmpeg.stderr.on('data', function (data) {
 console.log('grep stderr: ' + data);
});

ffmpeg.on('close', (code) => {
 console.log('child process exited with code ' + code);
}); 
};
recordVideo();




what is this error ?
I think.. 'fps=', '15', In the following code 
 '=' options a problem.



I am still learning English.
I'm sorry if it was hard to understand.


-
FFmpeg (sharpFFmpeg) decoding - Protected memory error
25 août 2011, par mazharenko.aI'm trying to use C# binding of FFmpeg library calling SharpFFmpeg to decode H264 video stream that I receive by RTP. I think I correctly decapsulate NALUs from RTP-packets, but I can't decode complete frames. Function avcodec_decode_video calling throws an AccessViolationException (Attempted to read or write protected memory).
Here are some code lines ://buf is a byte array containing encoded frame
int success;
FFmpeg.avcodec_init();
FFmpeg.avcodec_register_all();
IntPtr codec = FFmpeg.avcodec_find_decoder(FFmpeg.CodecID.CODEC_ID_H264);
IntPtr codecCont = FFmpeg.avcodec_alloc_context(); //AVCodecContext
FFmpeg.avcodec_open(codecCont, codec);
IntPtr frame = FFmpeg.avcodec_alloc_frame(); //AVFrame
FFmpeg.avcodec_decode_video(codecCont, frame, ref success, (IntPtr)buf[0], buf.Length); //exceptionFunction has been imported as follows :
[DllImport("avcodec.dll", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
public unsafe static extern int avcodec_decode_video(IntPtr pAVCodecContext, IntPtr pAVFrame, ref int got_picture_ptr, IntPtr buf, int buf_size);Unfortunately, I don't know what do I have to do with the codecCont. Somebody wrote that it is needed to fill this structure by AVCDCR using session description received by RTSP. But I don't know which field(s) store this record.
I'll be glad for any help.
P.S. Excuse me for my English -
How to capture a layered window with transparency background properly ? (using BitBlt)
25 octobre 2016, par Mitra MI want to capture a WPF window (WPF layered window) with transparency background.
To do that I tried FFmpeg, But :
1 - If I set
AllowTransparency
(this is a property of WPF window) tofalse
,I can capture the window by gdigrab (this is an ffmpeg device), but output has black background.(I don’t want black background)2 - If I set
AllowTransparency
totrue
then gdigrab won’t work. (get black frame only)I have read David’s nice article, he has said :
if you use BitBlt to do this, you could “or in” the CAPTUREBLT flag if
you wanted to capture windows that are layeredThe gdigrab uses BitBlt, this is gdigrab.c code snippet :
/* Blit screen grab */
if (!BitBlt(dest_hdc, 0, 0,
clip_rect.right - clip_rect.left,
clip_rect.bottom - clip_rect.top,
source_hdc,
clip_rect.left, clip_rect.top, SRCCOPY | CAPTUREBLT)) {
WIN32_API_ERROR("Failed to capture image");
return AVERROR(EIO);
}You can see the flags . (
SRCCOPY | CAPTUREBLT
).Please tell me :
1- Why the gdigrab can not capture a WPF window properly ?
2 - What changes in this code should be done to do this ?
(Sorry for my English, I used translate.google)
Thanks