
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 (112)
-
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 ;
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...)
Sur d’autres sites (9931)
-
FFMPEG - Concat 3 videos with one of the videos becoming a picture in picture overlay
7 décembre 2022, par JohnI have been getting to grips with FFMPEG for the last few days...so please excuse my lack of knowledge. It's very much early days.


I need to join 3 video elements together with one of the videos becoming an overlay at a specific time.


intro.mp4


mainvideo.mp4


endboard.mp4


I need the intro.mp4 to bolt on to the front of the mainvideo.mp4 and then ideally with 20 seconds to go before the end of the mainvideo.mp4, I need the endboard.mp4 video to be bolted on to the sequence and take over the frame. When this happens, I then need the mainvideo.mp4 to be overlayed in the top left corner and continue playing seamlessly through the transition.


I also need the audio from the main video to play until the end of the video.


I currently achieve this but putting all of the video elements into Premiere and exporting them out but I know this process can be much quicker with FFMPEG. For reference, here is an example of how it looks. If you skip to the end of the video below (just after 45 mins into the video) as the credits are rolling you will see the main video transition to the picture in picture overlay, and the endboard video take over the main frame.


https://www.youtube.com/watch?v=RtgIvWxZUwM&t=2723s


There will be lots of mainvideo.mp4 files that this will be applied to individually, and the lengths of these videos will always be different. I am hoping that there is a way to have the transition to the endboard.mp4 happen relative to 20secs before the end of the files. If not I guess I would have to manually input the time I want this change over transition to happen.


I roughly understand in theory what needs to be done, but being so new to this world I am really unsure of how something this complicated would be pieced together.


If there is anyone out there that can help me , it would be greatly appreciated !


I have got my head around the process of merging videos together with a simple concat command and I can see that overlaying a video in the top left corner of the frame is also possible...but my brain cannot figure out the sequence of events that needs to happen to bolt the intro video on to the main video....and then have the main video transition into the picture in picture overlay video at a specific time, while also bolting on the endboard video for the main video to overlay onto.


Any help for a complete newb would be so unbelievably appreciated !


-
OpenCV Python, reading video from named-pipe
29 février 2020, par BlueNutI am trying to achieve results as shown on the video (Method 3 using netcat) https://www.youtube.com/watch?v=sYGdge3T30o
It is to stream video from raspberry pi to PC and process it using openCV and python.I use command
raspivid -vf -n -w 640 -h 480 -o - -t 0 -b 2000000 | nc 192.168.1.137 8000
to stream the video to my PC and then on the PC I created name pipe ’fifo’ and redirected the output
nc -l -p 8000 -v > fifo
then i am trying to read the pipe and display the result in the python script
import cv2
import subprocess as sp
import numpy
FFMPEG_BIN = "ffmpeg.exe"
command = [ FFMPEG_BIN,
'-i', 'fifo', # fifo is the named pipe
'-pix_fmt', 'bgr24', # opencv requires bgr24 pixel format.
'-vcodec', 'rawvideo',
'-an','-sn', # we want to disable audio processing (there is no audio)
'-f', 'image2pipe', '-']
pipe = sp.Popen(command, stdout = sp.PIPE, bufsize=10**8)
while True:
# Capture frame-by-frame
raw_image = pipe.stdout.read(640*480*3)
# transform the byte read into a numpy array
image = numpy.frombuffer(raw_image, dtype='uint8')
image = image.reshape((480,640,3)) # Notice how height is specified first and then width
if image is not None:
cv2.imshow('Video', image)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
pipe.stdout.flush()
cv2.destroyAllWindows()But I got this error :
Traceback (most recent call last):
File "C:\Users\Nick\Desktop\python video stream\stream.py", line 19, in <module>
image = image.reshape((480,640,3)) # Notice how height is specified first and then width
ValueError: cannot reshape array of size 0 into shape (480,640,3)
</module>It seems that the numpy array is empty, so any ideas to fix this ?
-
FFmpeg avutil.lib unresolved external symbol
2 août 2022, par Serei'm trying to use FFmpeg with visual sudio 2022 .NET 6 through an MSVC project.
I followed this tutorial : https://www.youtube.com/watch?v=qMNr1Su-nR8&ab_channel=HakanSoyalp.
I mean I have configureg Include (.h) file, library (.lib) files and dynamic (.dll) file copied into bin folder.
If I call for example the avformat_alloc_context() method inside the avformat.lib all work rightly, if I call for example av_file_map(...) inside the avutil.lib the compiler give me an error :
LNK2019 unresolved external symbol "int __cdecl av_file_map ...
But the avutil.lib is linked !!!
The same happen if I call other methods inside avutil.lib module.


Thanks for help...


Code :


extern "C"
{
 #include <libavformat></libavformat>avformat.h>
 #include <libavutil></libavutil>file.h> // av_file_map
}

int ConvertJPEGtoNALs(int argc, char* argv[])
{
 AVFormatContext* fmt_ctx = NULL;
 AVIOContext* avio_ctx = NULL;
 uint8_t* buffer = NULL, * avio_ctx_buffer = NULL;
 size_t buffer_size, avio_ctx_buffer_size = 4096;
 char* input_filename = NULL;
 int ret = 0;
 struct buffer_data bd = { 0 };
 if (argc != 2) {
 fprintf(stderr, "usage: %s input_file\n"
 "API example program to show how to read from a custom buffer "
 "accessed through AVIOContext.\n", argv[0]);
 return 1;
 }
 input_filename = argv[1];
 /* register codecs and formats and other lavf/lavc components*/
 //av_register_all(); //!deprecated
 /* slurp file content into buffer */
 ret = av_file_map(input_filename, &buffer, &buffer_size, 0, NULL);
 /* fill opaque structure used by the AVIOContext read callback */
 bd.ptr = buffer;
 bd.size = buffer_size; ???
 if (!(fmt_ctx = avformat_alloc_context())) {
 ret = AVERROR(ENOMEM);
 goto end;
 }
 //... to be continue ...
}