
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (67)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (9154)
-
matplotlib funcanimation save issue
20 avril 2015, par Richie AbrahamI have been trying some animation recently using matplotlib animations. It has been going great, i create an ffmpeg writer and save it as a video file. However i face an issue whenever the function that FuncAnimation calls returns more than one object.
Below is a small snippet of my code base. When I return both im0 and im1, the video file created only has im1 , although the plt.show command works as expected ( showing both the videos ). If i return just a single im0, then it works as expected. IT also works as expected if i return both im0 and im1 with alpha=0.5.
Can anyone shed some light on what is happening underneath the hood ?
fig, ax = plt.subplots(1)
def animate(i):
im0=ax.imshow(np.ma.masked_array(imgl[i][:,:,0], mask=get_blob(i)),cmap='cubehelix')
im1=ax.imshow(imgl[(i-100)%len(imgl)][:,:,0],cmap='cubehelix')
return [im1,im0]
ani = animation.FuncAnimation(fig, animate, frames=200,
interval=10, blit=True,repeat=False)
ani.save('ps.mp4', writer=writer)
plt.show() -
How to stream frames from OpenCV C++ code to Video4Linux or ffmpeg ?
6 juillet 2022, par usamazfI am experimenting with OpenCV to process frames from a video stream. The goal is to fetch a frame from a stream, process it and then put the processed frame to a new / fresh stream.


I have been able to successfully read streams using OpenCV video capture functionality. But do not know how I can create an output stream with the processed frames.


In order to do some basic tests, I created a stream from a local video file using ffmpeg like so :


ffmpeg -i sample.mp4 -v 0 -vcodec mpeg4 -f mpegts \
 "udp://@127.0.0.1:23000?overrun_nonfatal=1&fifo_size=50000000"



And in my C++ code using the VideoCapture functionality of the OpenCV library, I am able to capture the above created stream. A basic layout of what I am trying to achieve is attached below :


cv::VideoCapture capture("udp://@127.0.0.1:23000?overrun_nonfatal=1&fifo_size=50000000", cv::CAP_FFMPEG);

cv::Mat frame;

while (true) 
{
 // use the above stream to capture a frame
 capture >> frame;
 
 // process the frame (not relevant here)
 ...

 // finally, after all the processing is done I 
 // want to put this frame on a new stream say at
 // udp://@127.0.0.1:25000, I don't know how to do
 // this, ideally would like to use Video4Linux but
 // solutions with ffmpeg are appreciated as well
}



As you can see from comment in above code, I don't have any idea how I should even begin handling this, I tried searching for similar questions but all I could find was how to do VideoCapture using streams, nothing related to outputting to a stream.


I am relatively new to this and this might seem like a very basic question to many of you, please do excuse me.


-
ffmpeg batch process issue mac
22 octobre 2023, par e eI'm using ffmpeg to batch process all files(with names containing spaces) in a directory. The script is like :


echo my converter
read -p "Enter give folder: " folder
echo '//////////////////////START CONVERTING FROM FOLDER///////////////////////'

find $folder -type f -name "*[[:space:]]*" | while read file; do
 release="${file%%.*}"'_t.mp4';
 echo "$file";
 ffmpeg -i "$file" -c copy "$release" -loglevel error -stats
 echo $release;
done



the script searches all the files in the address and ffmpeg one by one. However the first file will always fail due to some unknown issues :


[mpegts @ 0x7fb8e9904a40] Continuity check failed for pid 17 expected 2 got 3
[mpegts @ 0x7fb8e9904a40] Continuity check failed for pid 0 expected 0 got 2
[mpegts @ 0x7fb8e9904a40] Continuity check failed for pid 4096 expected 0 got 2
[mpegts @ 0x7fb8e9904a40] Continuity check failed for pid 256 expected 2 got 7
[mpegts @ 0x7fb8e9904a40] Packet corrupt (stream = 0, dts = 203523000).
/Users/xy/Downloads/aaa/aa vv.ts: corrupt input packet in stream 0
[NULL @ 0x7fb8e9905a40] Decoding VUI




If there is only one file, the process works fine.
If comment out the ffmpeg command, it echoes as expected :


/Users/xy/Downloads/aaa/aa vv_t.mp4
/Users/xy/Downloads/aaa/aa vv_t_t.mp4
/Users/xy/Downloads/aaa/aa vv.ts
/Users/xy/Downloads/aaa/aa vv_t.mp4
/Users/xy/Downloads/aaa/cc ee.ts
/Users/xy/Downloads/aaa/cc ee_t.mp4



it first find the target files and then converts into another with different file names.
Any suggestions, thank you !!