
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (53)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
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 (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (8187)
-
Streaming .264 file while it is being encoded
1er décembre 2017, par 123435258I have been digging around on the internet for a solution of my problem but I still haven’t found any solution yet.
Let me describe my trouble.
I have an IP camera that is connected to the another system. The system has a UDP output and transmits every data that is taken from the camera at each 20ms in real-time.
I have written a Python code that takes the camera data from socket and turns it to a .264 video file while it is being encoded. To display it ;
I first create a rtp server for streaming and open the URL address in VLC and wait for the second command.
ffmpeg -i rtp://127.0.0.1:1234 -c copy -f flv rtp://127.0.0.1:1234/PSIA/Streaming/channels/2?videoCodecType=H.264
Then I give this second command as soon as I run my Python code.
ffmpeg -re -i C:\Python27\myVideo.264 -c copy -f rtp_mpegts rtp://127.0.0.1:1234 -c copy -f flv
What I would like to do is to display the video at real-time with 3 seconds delay forever. However, as mentioned above, the system gives the data at every each 20ms and ffmpeg can’t find the key frames to play the video at real-time at such a speed. I can display the video for 30 seconds with 5 seconds delay, then video turns into images in every 1s which is not a continuous video and which is not I want.
Any help would be appreciated. Thanks in advance !
-
running ffmpeg from Popen inside (twisted) timer.LoopingCall() stalls
14 février 2014, par user1913115I have an RTSP stream which i need to re-stream as HLS. When RTSP stream goes down (e.g. camera disconnects) I put a blue screen to let the user know that the camera went offline. HLS segmenter is running separately, listening on port 22200 for incoming packets.
in python the code essentially boils down to this :
import psutil, subprocess as sb
from twisted.internet import reactor, task
from cameraControls import camStatus, camURL
ffOn = False
psRef = False
def monitor():
print "TIMER TICK"
if camStatus()=='ON' and not ffOn: #camera just came online
cmd = ["ffmpeg", "-i", camURL, "-codec", "copy", "-f", "mpegts", "udp://127.0.0.1:22200"]
ps = sb.Popen(cmd,stderr=sb.PIPE)
psRef=ps
#check the stream:
psmon = psutil.Process(psRef.pid)
if psmon.status!=psutil.STATUS_RUNNING:
print "FFMPEG STOPPED"
tmr = task.LoopingCall(monitor)
tmr.start(2)
reactor.run()it works fine for 5-6 minutes, then i see the video stall and if i check the cpu usage of the ffmpeg it shows 0, the ffmpeg output doesn't change, as if paused. however psmon.status shows as running, and the timer is still going (i see "TIMER TICK" message pop up every 2 seconds in the command line.
if i simply run the ffmpeg command from the command line (not from python) then it works for hours no problem.
does anybody know if the twisted reactor is stalling the process ? or is it the subprocess.Popen itself issue ? or the timer itself is glitching somehow(even though it gets to the 'monitor' function) ? i have other timers running also in the same reactor (same thread), could that be an issue ?
-
How to re-encode to rgb pixel_format properly in ffmpeg
1er février 2020, par captain_majidI’m using this command to record from multiple inputs :
ffmpeg -y
-f dshow -rtbufsize 1024M -thread_queue_size 1024 -probesize 64M -i video="screen-capture-recorder" -framerate 30
-f dshow -rtbufsize 16M -i audio="virtual-audio-capturer"
-f dshow -rtbufsize 16M -i audio="Microphone (DroidCam Virtual Audio)"
-f dshow -rtbufsize 512M -thread_queue_size 512 -probesize 50M -i video="DroidCam Source 3"
-stream_loop -1 -i ".\media\background sounds\blue.mp4"
-i ".\media\pictures\Webcam Overlay\blue_.png"
-i ".\media\pictures\Webcam Overlay\red.png"
-f gdigrab -rtbufsize 512M -thread_queue_size 512 -probesize 64M -itsoffset 0.80 -i title="NohBoard v1.2.2" -framerate 60 -draw_mouse 0
-filter_complex "
[0:v] scale=1366x768 [desktop];
[3:v] hue=s=-5, scale=240x160 [webcam];
[desktop][webcam] overlay=x=W-w-285:y=H-h-7:format=rgb [deskCam];
[4:v] format=rgba,colorchannelmixer=aa=0.5, scale=240x160 [vid];
[deskCam][vid] overlay=x=W-w-5:y=H-h-245:format=rgb [deskCamVid];
[deskCamVid][5:v] overlay=x=W-w-280:y=H-h-0:format=rgb [deskCamVidBlue];
[deskCamVidBlue][6:v] overlay=x=W-w-0:y=H-h-238:format=rgb [deskCamVidBlueRed];
[7:v] chromakey=0x00FF00:similarity=.200, scale=420x140 [kb];
[deskCamVidBlueRed][kb] overlay=x=W-w-945:y=H-h-285:format=rgb [final];
[1][2] amix [aud1]; [1][2][4] amix=inputs=3 [aud2]"
-map "[final]" -map "[aud1]" -map "[aud2]" -metadata:s:a:0 title="No Music" -metadata:s:a:1 title="All sounds" out.mkvThe problem is the colors are not as bright as I want unless adding
:format=rgb
to all overlays like seen above, but this delays my encoding a lot, also when I press ’Q’, only a small part of the video (like 1m of 3m) is produced.Also If you see any unnecessary switches or non-optimal ones, please advise.