
Recherche avancée
Autres articles (28)
-
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 (...) -
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (5635)
-
ffmpeg how to open from browser and save in server
11 février 2021, par leoThe following code split one video from the server and save the video in the server , but how ffmpeg gets a video directly from browser ,(html5 video uploaded for the user )


Code


<video crossorigin="anonymous"></video>


<?php 
if (isset($_POST["submit"])){
require 'vendor/autoload.php';
$ffmpeg = FFMpeg\FFMpeg::create();
$video = $ffmpeg->open('myvideos/video.mp4'); ** how i get uservideo without upload the video into the server?** 
$video
->filters()
->clip(FFMpeg\Coordinate\TimeCode::fromSeconds(2), FFMpeg\Coordinate\TimeCode::fromSeconds(3));
$video
->save(new FFMpeg\Format\Video\WMV(), 'myvideos/clipedvideo.wmv'); 
}?> 



-
Getting this error using ffmpeg concat in ReactNative "concat imposible to open"
2 février 2021, par Josip BogdanHy, I am trying to concat multyple video using ffmpeg concat, testing on samsung j76, android version 8.1.0


const textFile = await (await writeTextFileWithAllVideoFiles(filePaths)) 
const outputPath = Platform.OS === 'ios' ? `${RNFS.DocumentDirectoryPath}/video-1.mp4` : `${RNFS.DocumentDirectoryPath}/video-1.mp4`
console.log(`-f concat -safe 0 -i ${textFile} -c copy ${outputPath}`)
const result = await RNFFmpeg.execute(`-f concat -safe 0 -i ${textFile} -c copy ${outputPath}`)



And here is how I create the txt file


const writeTextFileWithAllVideoFiles = async (filePaths) => {
var RNFS = require('react-native-fs');
var path = RNFS.DocumentDirectoryPath + '/videoList.txt';

var fileContent = ''
console.log("fileplay1");
filePaths.forEach(path => {
 fileContent += 'file ' + '\'' + path.substring(8) + '\'' + '\r\n'
});
console.log(fileContent);
return RNFS.writeFile(path, fileContent, 'utf8')
.then((success) => {
 console.log(path)
 if (RNFS.exists(path))
 console.log('FILE WRITTEN!')
 return path
})
.catch((err) => {
 console.log(err.message)
 return err.message
}); 
}



This is my console log output


file 'data/user/0/com.videoeditorapp/cache/Camera/f27579d2-1488-4a59-8a9d-7a4e7b6fe716.mp4'
file 'data/user/0/com.videoeditorapp/cache/Camera/58130175-bd20-4002-9629-070d0cdd18ac.mp4'

[Tue Feb 02 2021 16:30:45.375] LOG /data/user/0/com.videoeditorapp/files/videoList.txt
[Tue Feb 02 2021 16:30:45.376] LOG FILE WRITTEN!
[Tue Feb 02 2021 16:30:45.376] LOG -f concat -safe 0 -i /data/user/0/com.videoeditorapp/files/videoList.txt -c copy /data/user/0/com.videoeditorapp/files/video-1.mp4
[Tue Feb 02 2021 16:30:45.376] LOG [concat @ 0xe2b22000] Impossible to open '/data/user/0/com.videoeditorapp/files/data/user/0/com.videoeditorapp/cache/Camera/f27579d2-1488-4a59-8a9d-7a4e7b6fe716.mp4'
[Tue Feb 02 2021 16:30:45.377] LOG /data/user/0/com.videoeditorapp/files/videoList.txt: No such file or directory



And the txt file is not on my android device
My manifest is like this



 
 

<application></application>



-
Cannot open connection tcp ://localhost:1935 when to set up custom RTMP stream server
8 janvier 2021, par showkeyMy simple network is as following :


192.168.31.52 is my local pc 
192.168.31.251 is an ip camera.



I can open the stream
rtsp://192.168.31.251/cam/realmonitor?channel=1&subtype=0
with SMPlayer.

Build my nginx for customizing RTMP stream this way.

sudo apt update
sudo apt install build-essential git
sudo apt install libpcre3-dev libssl-dev zlib1g-dev 
git clone https://github.com/arut/nginx-rtmp-module.git
git clone https://github.com/nginx/nginx.git
cd nginx
./auto/configure --add-module=../nginx-rtmp-module
make
sudo make install



Set config file for nginx :


sudo vim /usr/local/nginx/conf/nginx.conf
rtmp { 
 server { 
 listen 1935; 
 application live { 
 live on; 
 interleave on;
 
 hls on; 
 hls_path /tmp/hls; 
 hls_fragment 15s; 
 } 
 } 
} 



Then set permission for nginx :


mkdir /tmp/hls
sudo chmod -R 755 /tmp/hls
sudo chown -R www-data:www-data /tmp/hls



Edit index.html in
/tmp/hls
.

<p>test for nginx</p>



Both
127.0.0.1/index.html
and192.168.31.52/index.html
can open the/tmp/hls/index.html
.

Now open port 1935 on my network :


sudo firewall-cmd --zone=public --add-port=1935/tcp --permanent
sudo firewall-cmd --reload 
sudo firewall-cmd --list-ports | grep 1935
1935/tcp



Start nginx :


sudo systemctl start nginx



Up stream the rtsp stream from ip camera—192.168.31.251 to local pc —192.168.31.52.


input="rtsp://192.168.31.251/cam/realmonitor?channel=1&subtype=0"
output="rtmp://192.168.31.52:1935/live/sample"
ffmpeg -i $input -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 96k -r 25 -b:v 500k -s 640*480 -f flv $output



It encounter the following errors :


[tcp @ 0x59fb700] Connection to tcp://192.168.31.52:1935 failed: Connection refused
[rtmp @ 0x59fc5c0] Cannot open connection tcp://192.168.31.52:1935
rtmp://192.168.31.52:1935/live/sample: Connection refused



To keep the issue simple,i replace
$input
with a mp4 file in local pc,same error info.

How can fix it ?

Ping my machine :

ping 192.168.31.52
PING 192.168.31.52 (192.168.31.52): 56 data bytes
64 bytes from 192.168.31.52: icmp_seq=0 ttl=64 time=0.108 ms
64 bytes from 192.168.31.52: icmp_seq=1 ttl=64 time=0.107 ms
64 bytes from 192.168.31.52: icmp_seq=2 ttl=64 time=0.111 ms



Why the port 1935 not opened,i had restarted nginx after setting ?


sudo lsof -i:1935
#nothing in the output
netstat -ltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State 
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:51413 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 
tcp 0 0 127.0.0.1:1080 0.0.0.0:* LISTEN 
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 
tcp 0 0 127.0.0.1:8123 0.0.0.0:* LISTEN 
tcp 0 0 127.0.0.1:8384 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:9091 0.0.0.0:* LISTEN 
tcp6 0 0 :::3306 :::* LISTEN 
tcp6 0 0 :::80 :::* LISTEN 
tcp6 0 0 :::22000 :::* LISTEN 
tcp6 0 0 :::51413 :::* LISTEN 
tcp6 0 0 :::21 :::* LISTEN 
tcp6 0 0 :::22 :::* LISTEN 
tcp6 0 0 ::1:25 :::* LISTEN 
tcp6 0 0 :::2681 :::* LISTEN 



Firewall command can't work :


sudo firewall-cmd --zone=public --add-port=1935/tcp --permanent
sudo firewall-cmd --reload 



My nginx version :


sudo nginx -v
nginx version: nginx/1.10.3