
Recherche avancée
Médias (3)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (50)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
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 (...) -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (8017)
-
Editing and restreaming rtmp stream in python
31 mai 2020, par REgorionThere is an nginx rtmp lan server that is being streamed from OBS. There is a Python script that determines whether there is nsfw content on the screen based on a screenshot. The result is calculated in real time and sent over tcp. The task of another script is to Get the result over tcp - it can do this. Receive a stream from an rtmp lan server and overlay the video stream a second before nsfw content appears. In theory, I need to receive the stream and send it with a delay of a second, and if the signal comes over tcp, then overlay the video.



I don't understand how I can implement this buffer, write stream to it, process it, and publish it. The overlay can be applied via opencv, but the issue of implementing the buffer and posting it remains open. I looked in the direction of ffmpeg, but I don't understand how to organize streaming.



What libraries can help me solve this problem ? Is there any related literature ?



Sorry for my english


-
Révision 24489 : [Salvatore] [source : ecrire] Export depuis https://trad.spip.net de la langue de
4 février 2020, par salvatore@rezo.netCredits : klaus++ <klaus@spip.de>
-
Run PHP exec() asynchronously, but check for completion ?
1er septembre 2015, par PeregrineStudiosI’m coding up a website back-end that will include user-uploaded video. In order to ensure maximum accessibility, I’m compressing the uploaded videos and re-saving them as .mp4 and .webm format to cover all browsers (or as many as possible anyway). To do this, I’m running an avconv command in the PHP exec() function.
I don’t want to make the user wait for the script to finish before the page loads, so I’m running the code asynchronously. My code so far is below.
exec('bash -c "exec nohup setsid avconv -i ' . $tempPath . ' -c:v libx264 ' . $transpose . ' ' . $newPath . 'mp4 > /dev/null 2>/dev/null &"');
exec('bash -c "exec nohup setsid avconv -i ' . $tempPath . ' -c:v libvpx ' . $transpose . ' ' . $newPath . 'webm > /dev/null 2>/dev/null &"');In addition to running the exec functions, I also save the video to a database and send the user an email thanking them for uploading their video.
Here’s the rub : I want the server to WAIT until the video conversion is finished, and THEN add it to the database and send the user an email. Basically, the program flow would be :
User uploads video.
Video is placed in a temp folder.
User is taken to a thank you page indicating their video will be up shortly.
The server executes two avconv commands to convert and compress the video for web use.
Once BOTH conversions are finished, the video info is added to a MySQL database, an email is sent to the user, and the original uploaded video is deleted.It may just be my ignorance of the command line (in fact it almost definitely is), but how could I ’queue up’ these commands ? First do both conversions, then call a PHP script to add to the database, then delete the original video, all while being asynchronous with the original PHP script ?
EDIT : I’ve tried queuing them up with an ’&&’ operator, like below :
exec('bash -c "exec nohup setsid avconv -i ' . $tempPath . ' -c:v libx264 ' . $transpose . ' ' . $newPath . 'mp4 && avconv -i ' . $tempPath . ' -c:v libvpx ' . $transpose . ' ' . $newPath . 'webm > /dev/null 2>/dev/null &"');
However, that seems to cancel out the fact that I’m running it asynchronously, since the page now seems to wait for the command to finish.