
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (60)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Les sons
15 mai 2013, par -
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" (...)
Sur d’autres sites (5129)
-
OpenCL generating YUV420P black pixel
2 mai 2021, par Albert TinonI'm working on an FFmpeg OpenCL filter for converting GoPro Max .360 files in Google EAC projected files.
For doing that I need to "stack" the 2 input streams to a twice height output.
It is working very well at a realtime speed. (The working code is in comment)


For going further I need to replace some pixels with some specific colors.
I wrote some macros for making RGB->YUV conversion. But I get only some green or pink pixel (only grey is OK).
this is my test code (with stacking in comment)


#define Y(R,G,B) 0.299 * R + 0.587 * G + 0.114 * B
#define U(R,G,B) -0.147 * R - 0.289 * G + 0.436 * B
#define V(R,G,B) 0.615 * R - 0.515 * G - 0.100 * B
#define YUV(R,G,B) (float4)(Y(R,G,B),U(R,G,B),V(R,G,B),0)

__kernel void gopromax_stack(__write_only image2d_t dst,
 __read_only image2d_t gopromax_front,
 __read_only image2d_t gopromax_rear)
{
 const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE |
 CLK_FILTER_NEAREST);
 
 float4 val;
 int2 dst_size = get_image_dim(dst);
 int2 loc = (int2)(get_global_id(0), get_global_id(1));
 int split_loc = dst_size.y/2;

 if (loc.y < split_loc)
 {
 // working code for stacking
 // val = read_imagef(gopromax_front, sampler, (int2)(loc.x, loc.y));

 // testing to put grey (working)
 val = YUV(0.5f,0.5f,0.5f);
 }
 else
 {
 // working code for stacking
 // val = read_imagef(gopromax_rear, sampler, (int2)(loc.x, loc.y-split_loc));

 // testing to put black (gives green !)
 val = YUV(0,0,0);
 }

 if ((loc.xcode>


I tried many think I cannot succeed to generate black or anything except grey.
What did I make wrong ?
I supposed that my pixels are YUV because I specified yuv420p as the format in my filter :


-filter_complex '[0:0]format=yuv420p,hwupload[a] , [0:4]format=yuv420p,hwupload[b], [a][b]gopromax_opencl, hwdownload,format=yuv420p'



The source streams are in hevc / nv12.


Thanks all for your help.


-
ffmpeg : How to make -vf "movie=..." point to another folder [closed]
21 mars 2013, par evilheinzI'm trying to watermark a video with another video placed in a different folder.
Source video [video.mov] is placed in a folder like
x :\test1
Overlay video [overlay.mov] is placed in
x :\test2
I'm using this command :
ffmpeg.exe -y -i x:\test1\video.mov -vf "movie=x:\test2\overlay.mov [watermark]; [in][watermark] overlay=0:0 [out]" x:\test3\video_overlay.mov
But I'm getting an error saying
Missing key or no key/value separator found after key 'test2overlay.mov'
When placing all files in the same folder and using this :
ffmpeg.exe -y -i video.mov -vf "movie=overlay.mov [watermark]; [in][watermark] overlay=0:0 [out]" video_overlay.mov
everything works fine...
So how do I get the video filter to load the overlay file from a different folder on Windows ?
-
Use ffmpeg to generate a video of black/blank frames [duplicate]
2 novembre 2016, par BirdThis question already has an answer here :
I want to generate a 3 second video of just black frames using ffmpeg on Windows 7. Based on the answer to this question, it seems possible.
Running the command :
ffmpeg -t 3 -s 640x480 -f rawvideo -pix_fmt rgb24 -r 25 -i /dev/zero empty.mpeg
returns the error :
/dev/zero: No such file or directory
and no file is generated.
I also tried changing
/dev/zero
toNUL
as suggested here, but the result is a size 0 KB file that does not play.Anyone know how to generate a black video using ffmpeg on Windows ?