
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 (79)
-
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 (...) -
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (10080)
-
I have a problem with node js rtsp streaming server
11 décembre 2022, par sangeun joI made rtsp cctv streaming server with nodjs.


But it is not stable.


Some cctvs works well but others are not.


First I thought rtsp url has its own problem, but it may not.
Because the url worked well in vlc player.


I don't know what I'm missing.


below is my whole code related cctv streaming.




var express = require('express');
var router = express.Router();
var kill = require('tree-kill');
var fs = require('fs');
var path = require('path');

var ffmpeg = require('fluent-ffmpeg');
var ffmpegInstaller = require('@ffmpeg-installer/ffmpeg');
ffmpeg.setFfmpegPath(ffmpegInstaller.path)

var streams = {};

//start cctv
router.post('/', (req, res) => {

 var cname = req.body.cname;
 var url = req.body.url;

 //if there is same cctv name
 if(streams[cname] != null) {
 res.status(409).send("duplicate name");
 return;
 };

 //create dir as given cctv name;
 mkdir(cname);

 stream = ffmpeg(url).addOptions([
 '-hls_time 5', 
 '-hls_list_size 10',
 '-hls_flags delete_segments',
 '-f hls' 
 ]).output('./public/video/' + cname + '/' + cname + '.m3u8'); //save path

 console.log("Start cctv streaming");
 stream.on('error', function(err, stdout, stderr) {
 console.log("cctv has been stoped");
 console.log(err);
 });

 stream.run(); 

 streams[cname] = stream;
 res.status(201).send("OK");
});

//bring cctv pid by cctv name
router.get('/:cname', (req, res) => {
 var cname = req.params.cname;

 if(streams[cname] == null) {
 res.status(404).send("not found such a cctv");
 return;
 };

 var pid = streams[cname].ffmpegProc.pid;
 res.send({"pid": pid});
});


//stop cctv by pid 
router.delete('/:cname', async (req, res) => {
 var cname = req.params.cname;
 
 //no cctv
 if(streams[cname] == null) {
 res.status(404).send("not found such a cctv");
 return;
 };


 //del dir
 var filePath = './public/video/' + cname;
 fs.rmdir(filePath, { recursive: true }, (err) => {
 if (err) {
 console.log(err)
 } else {
 console.log('dir is deleted.');
 }
 });

 //var pid = streams[cname].ffmpegProc.pid;
 streams[cname].kill();
 res.status(204).send("OK");
});

const mkdir = (name) => {
 var root = './public/video/';
 if(!fs.existsSync(root + name)){
 fs.mkdirSync(root + name);
 }
}







And this is ts file save folder.
cctv1 dosen't work well but cctv2 works well.
(cctv1 started first but created less ts file than cctv2.)



-
How to fix Ffmpeg cut video in nextjs ?
27 juillet 2023, par Duy TịnhI'm currently working on a Next.js project where I need to use ffmpeg to cut video files. However, I've encountered an error that occurs specifically when I navigate from one page to another using ffmpeg. Strangely, I don't encounter this error when I use an element or directly redirect to the page without involving ffmpeg.
The error message I'm receiving is as follows :


ReferenceError: SharedArrayBuffer is not defined

Source
Views\EditVideo\index.tsx (264:4) @ async handleEditVideo

 262 | const ffmpegInstance = createFFmpeg({ log: true });
 263 | // error
> 264 | await ffmpegInstance.load();
 | ^
 265 | // if (srcVideoEdit) {
 266 | // ffmpegInstance.FS(
 267 | // "writeFile",



you can see more details at : https://i.stack.imgur.com/Z1OBx.png
This is my code in page have using ffmpeg :


const handleEditVideo = async () => {
 const { createFFmpeg, fetchFile } = ffmpeg;
 const ffmpegInstance = createFFmpeg({ log: true });
 // error
 await ffmpegInstance.load();
 };

 return (
 <>
 <button>Test</button>



code the page navigation to it


import { useRouter } from 'next/router'

export default function Upload() {
 const route = useRouter();
 const onOk = () => {
 route.push("/editvideo");
 setIsLoading(false);
 }
}



-
Opencv VideoCapture not streaming RTSP link and returns "no frame !"
6 septembre 2023, par Asadullah NaeemI am trying to stream my HikVision IP camera throough python. I am using
cv2.VideoCapture("rtsp_link")
which works fine on my Laptop but when I try to run the same python script with same Opencv and FFmpeg version it gives me following error :

Error :


[h264 @ 000002124c7f9a40] missing picture in access unit with size 47
[h264 @ 000002124c7f9a40] no frame!



I have so far tried to run this script on 5 computer devices but it gives the same error. I am using the following python script and my Opencv version is
4.6.0.66
and ffmpeg version2022-06-20-git-56419428a8-essentials_build-www.gyan.dev
:

Python Script :


import cv2

# RTSP stream URL
rtsp_url = "rtsp://username:password@ip_address:port/Streaming/Channels/501"

# Open the RTSP stream
cap = cv2.VideoCapture(rtsp_url)

# Check if the stream was successfully opened
if not cap.isOpened():
 print("Failed to open RTSP stream.")
 exit()

# Read and display frames from the stream
while True:
 # Read a frame from the stream
 ret, frame = cap.read()

 # Check if the frame was successfully read
 if not ret:
 print("Failed to read frame from RTSP stream.")
 break

 # Display the frame
 cv2.imshow("RTSP Stream", frame)

 # Exit if 'q' is pressed
 if cv2.waitKey(1) & 0xFF == ord('q'):
 break

# Release the resources
cap.release()
cv2.destroyAllWindows()




Update :


Code runs on a laptop on both wifi and mobile internet (4G) but on other devices rtsp link is accessible only with mobile internet (4G).