
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (1)
-
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (2558)
-
PHP passthru with proper child process closing
6 juin 2022, par Bluchip StudioI am currently using the code below to try and restream a hls live stream via php the reason for this is php is all i have access to on the system i am using i can not use or install anything else and i like to watch my home tv in my current location my hls streams come direct from my own tbs octo encoder at my home so i know thats all good.


my issue is that the stream randomly stops after around 30-50 seconds of playing it can be restarted no problem so i know the reading of the stream is not the issue.


also when i disconnect and stop watching the stream the ffmpeg / streamlink processes do not stop and stay running in the back ground this has led to me getting some rather frustrating emails from the owner of the system i am using


does anyone know if this is the best way to handel this task and how to possibly close the child processes created by passthru ?


PS : I know all caps is not the correct way to code in production but as this is my personal code and it does not effect the way in witch the code is run it makes it so much easier for me to read being dyslexic !


<?php

ini_set('output_buffering', '0');
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

set_time_limit(0);
ob_implicit_flush();

include './core/functions.php';

$PROCESS_URL = 'HTTP STREM URL GOES HERE';
 
$ENCODING_TYPE = 'mpegts';
 
$ENCODING_SETTINGS = 'streamlink '. $PROCESS_URL . ' best -O | '. FFMPEG .
 ' -threads 0' .
 ' -re' .
 ' -probesize 9000000'.
 ' -analyzeduration 9000000'.
 ' -i pipe:0' .
 ' -c:v copy -c:a copy' .
 ' -tune zerolatency' .
 ' -preset ultrafast' .
 ' -fflags +genpts' .
 ' -mpegts_flags initial_discontinuity' .
 ' -f ' . $ENCODING_TYPE . 
 ' pipe:1 2>' . LOG_DIRECTORY . '/' . MD5($PROCESS_URL) . '_ffmpeg.txt';

header('Content-type: application/octet-stream');
header('X-Accel-Buffering: no');

@passthru($ENCODING_SETTINGS);

?>



-
Record Desktop Audio, Microphone Audio, and Desktop Video with FFMPEg [closed]
16 juillet 2022, par MypantsrtooobigI have a personal project where I am trying to use FFmpeg as a custom screen recorder on my computer.


I managed to make a command that records my microphone audio and desktop video and a different one to record my desktop video and audio but not one that does all three.


ffmpeg -f gdigrab -video_size 1360x768 -i desktop -f dshow -i audio="virtual-audio-capturer" -i audio="Microphone (Logitech G432 Gaming Headset)" D:\Untitled\attempt.mkv



If my idea is not possible can I make a command that can record all three at the same time and merge them into one .mp4 file ?
this is the command that I would think to work but it does not.
I would appreciate any help, thank you.


-
Random Weird HLS generation with ffmpeg
16 août 2022, par user15006279I am doing some live streaming setup for my personal project and I noticed that sometime ffmpeg will not generate any hls auto it was running. I copied the same command and run in shell and it was generating HLS files successfully but somehow it was not generating with nginx.


Enter image description here




The more weird thing is that if i restart nginx for like a couple of times, it will regenerate. I am only playing youtube video from browser somehow ffmpeg process is not generating hls. Even after a couple of restarts, it will generate sometimes but its random. Mostly not generating at all. Can you guys help me with it ?


image