
Recherche avancée
Autres articles (44)
-
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
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 (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (4684)
-
ffmpeg video stream to app c# [on hold]
3 septembre 2014, par Alexey MedvedevI am trying to make a video mixer for online broadcasts. To do this, I use ffmpeg and C #. I had a problem with the transfer of the video stream from ffmpeg to my program. I would like to receive a stream of ffmpeg using network protocols (e.g. TCP, UDP or others) or capturing if from ffplay window, but I don`t how I can do it. Can you give me some ideas ?
For example, I have command for ffmpeg : "ffmpeg -i video1.mp4 -f mpegts udp:127.0.0.1:5000" or same command with other output formats or network protocols. How i can read video stream from the port and convert it to Bitmap ?
I need to send video stream from my program from computer A to my program to computer B. I write program on C#. I dont know how I can compress video which I must send between my computers and I decided to use Ffmpeg. Now, I can streaming video from my program in computer A to ffmpeg and compress it with parameters which I need.
On second computer I can read this steam using ffmpeg or ffplay, but I don`t know how I can get this stream into my program.
1) How can I get this stream in my program ? Which libraries can you recommend me ?
2) Do you know any libraries which can compress video, instead of using ffmpeg ? -
Using subprocess to run multiple commands depending on the list for ffmpeg in python
25 février 2023, par 164257I'm trying to use subprocess to send some commands to ffmpeg. But I need to send different commands depending on how many items are in my list.


subs = ['https://example1.vtt', 'https://example2.vtt']
link = 'https://example.m3u8'



I tried doing this :


sub_list = []
for sub in subs:
 subtitles = "'-i' " + sub + " "
 sub_list.append(subtitles)
 result_subs = "".join(sub_list)



this makes the result_subs to be


'-i' example1.vtt '-i' example2.vtt 



then I run :


subprocess.run([ffmpeg, '-i', link, result_subs, '-vcodec', 'copy', '-acodec', 'copy', "test.mkv"])



but it gives me an error


-
stop ffmpeg gently (to allow it to finish writing mp4 file) when streaming from udp
22 juillet 2015, par user1913115i’m trying to receive a udp stream on a server and write it to an mp4 file. this works fine :
ffmpeg -i udp://127.0.0.1:12345 -codec copy out.mp4
if i press CTRL+C (or send SIGINT to the process) the ffmpeg quits and i have a working mp4 file.
however, if the data stops coming in on the udp port (e.g. after 10 minutes of streaming) and i try to stop ffmpeg it requires 2 interrupt signals at which point ffmpeg exits abruptly and results in an unplayable mp4 file.
does anyone know how to prevent ffmpeg from hanging when there’s no input data or to force it to write out the mp4 header ?
i know i can specify a url option
udp://127.0.0.1:12345?timeout=<microseconds>
</microseconds>however, i need to be able to ignore occasional (5-10 minute long) pauses during the process of recording and only quit at the end.
so even if i set timeout=60000000 it will cause my app to wait for 10 minutes when i want to stop the stream (e.g. if there’s no data) and i need it to quit immediately when i send a SIGINT to it