
Recherche avancée
Autres articles (83)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (8788)
-
How do I save `RTSP` streams as `*.mp4` files in Golang ? [closed]
14 septembre 2021, par Clancy ZengI need to use
Golang
to save the data from theRTSP
stream to a*.mp4
video file for a specified length of time.

I wanted to install an
FFmpeg
application and then call a command like this fromGolang
to solve my needs.



ffmpeg -i rtsp ://192.168.108.132:8554/profile0 -r 16 -tt 60 /tmp/test.mp4




But installing
FFMPEG
takes up hundreds of megabytes of space.So this idea was rejected by the leadership.

Is there a pure
Golang
implementation library that can address my needs ?Or is there agolang-only
library that parsesRTSP
streams and saves them as*.MP4
video files ?

-
I cant save the animation in ffmpeg
22 mai 2021, par Gokuli tried various examples though i cant find proper solution. This is the example code of my project i want to save this in a mp4 format and i used ffmpeg. the animation was saved if I use df = pd.DataFrame(np.random.rand(250,3)) but it is not working for my sample code, it showed key error = 0. Note : df1 = pd.DataFrame(np.random.randint(5,15,[250,3])).
Any suggestion for this would be appreciated. Thank you in advance


import pandas as pd
import numpy as np
import ma``tplotlib.pyplot as plt
import matplotlib.animation as animation

df = data.iloc[0:250, 4:12]
df1 = df2.iloc[:,0:3]

a1 = df.iloc[:,0]/2
a2 = df.iloc[:,1]/2
b1 = df.iloc[:,2]/2
b2 = df.iloc[:,3]/2
c1 = df.iloc[:,4]/2
c2 = df.iloc[:,5]/2
m1 = df1.iloc[:,0]
m2 = df1.iloc[:,1]
m3 = df1.iloc[:,2]

fig ,ax = plt.subplots()

l1, = ax.plot (vert1, vert2, 'ro', markersize = m1[0])
l2, = ax.plot (long1, long2, 'ro', markersize = m2[0])
l3, = ax.plot (tras1, tras2, 'ro', markersize = m3[0])

def init(): 
 l1.set_data([],[])
 l2.set_data([],[])
 l3.set_data([],[])
 
 return (l1,l2,l3)

def animate(i,l1,l2,l3):
 
 l1.set_data(vert1[i], vert2[i])
 l1.set_markersize(m1[i])
 l2.set_data(long1[i], long2[i])
 l2.set_markersize(m2[i])
 l3.set_data(tras1[i], tras2[i])
 l3.set_markersize(m3[i])

 return (l1,l2,l3)

Writer = animation.writers['ffmpeg']
writer = Writer(fps= 100, metadata = dict(artist = 'me'), bitrate = 1800)

ani = animation.FuncAnimation(fig, animate, fargs=(l1,l2,l3), init_func=init, interval=10, blit=False)
ani.save('/Users/gokulthangavel/Downloads/basic_animation.mp4', writer = writer)

plt.show()



-
How can I use ffmpeg to save only the last 60 secs recorded ?
14 septembre 2021, par Marc KhouryI'm trying to figure out a way to use ffmpeg command to save only the last 60 seconds recorded.
The way I'm doing it now is using a thread to record 60 seconds videos, and then merge the last two videos and cut the last 60 seconds (using the -t command), the method I'm trying to achieve should not save multiple videos and then merge and cut.


Below the command I'm using :


ffmpeg -sseof 60 -i "\PATH\TO\VIDEO" -c copy "\PATH\TO\OUTPUT"