
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (50)
-
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (6972)
-
Able to get HLS to play on VLC viewer but not on browser
6 mai 2022, par Tamotheeso i have been trying to get ipcamera to connect to a react app and show live video. i found and followed this tutorial https://www.youtube.com/watch?v=-a5MAaEaizU&t=185s .


i am able to get vlc viewer to run the hls server link and display what the camera sees. however when i plug the link into my code or a browser hls viewer like https://hls-js.netlify.app/demo/ , the m3u8 link does not play. there is no error and when i inspect the network, i do receive the m3u8 and .ts links.
this is what i see on the network portion


ffmpeg -i rtsp://admin:Password1234@192.168.1.64:554/Streaming/Channels/101 -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_list_size 3 -vcodec copy -y ./index.m3u8



this is the ffmpeg command that i ran to convert my rtsp output to hls.


var http = require('http');
var fs = require('fs');

const port = 1234

http.createServer(function (request, response) {
console.log('request starting...');

var filePath = '.' + request.url;

fs.readFile(filePath, function(error, content) {
 response.writeHead(200, { 'Access-Control-Allow-Origin': '*' });
 if (error) {
 if(error.code == 'ENOENT'){
 fs.readFile('./404.html', function(error, content) {
 response.end(content, 'utf-8');
 });
 }
 else {
 response.writeHead(500);
 response.end('Sorry, check with the site admin for error: '+error.code+' ..\n');
 response.end(); 
 }
 }
 else {
 response.end(content, 'utf-8');
 }
});

}).listen(port);
console.log(`Server running at http://127.0.0.1:${port}/`);



this is the code for the hls server that receives the request and sends the user the m3u8 and ts files.






and i'm trying to play the link like this using react-hls-player


hope this is not a stupid question as i'm a beginner and hope that someone could help me with this problem.


-
Can't obtain thumbnail with ffmpeg codeigniter
2 avril 2015, par DMBorgesI have used the following tutorial ( https://www.youtube.com/watch?v=qT4hN5o57hI) to try to obtain a thumbnail from a uploaded video using codeigniter as a framework. As I am new to all this I don’t understand if at the end of supposedly uploading my video the code failed to create a thumbnail, if my created thumbnail is somewhere lost in my computer of by some settings reasons ffmpeg is not working.
Where does my $imageFile goes to ?
Here is my code.
MY VIEW
<div>
<?php echo form_open_multipart('gallery/save/'); ?>
<table class="table">
<tr>
<td>Video</td>
<td><?php echo form_upload('pic'); ?></td>
</tr>
<tr>
<td>Descrição</td>
<td><?php echo form_input('description'); ?></td>
</tr>
<tr>
<td></td>
<td><?php echo form_submit('upload', 'Guardar', 'class="btn btn-primary"'); ?></td>
</tr>
</table>
</div>MY CONTROLLER
<?php
class Gallery extends CI_Controller{
public function index(){
//Load View
$data['main_content'] = 'gallery';
$this->load->view('layouts/main', $data);
}
public function save()
{
$url = $this->do_upload();
$ffmpeg = "C:\\xampp\\htdocs\\ffmpeg\\bin";
$videoFile = $_FILES["pic"]["tmp_name"];
$imageFile = "1.jpg";
$size = "120x90";
$getFromSecond = 5;
$cmd = "$ffmpeg -i $videoFile -an -ss $getFromSecond -s $size $imageFile ";
echo $cmd;
if(!shell_exec($cmd)){
echo 'thumbnail created!';
}
else {
echo 'ERROR!';
}
/* $config = array(
'source_image' => $url,
'new_image' =>"./assets/images/gallery/thumbs/",
'maintain_ration' => true,
'width' => 150,
'height'=> 100
);
$this -> load -> library('image_lib', $config);
$this ->image_lib-> resize();
$description = $_POST["description"];
$user = $this->session->userdata('user_id');
$this->Gallery_model->save($description, $url, $user);
redirect('gallery'); */
}
private function do_upload()
{
$type = explode('.', $_FILES["pic"]["name"]);
$type = strtolower($type[count($type)-1]);
$id = uniqid(rand());
$url = "./assets/images/gallery/".$id.'.'.$type;
if(in_array($type, array("wmv", "mp4", "avi", "flv")))
if(is_uploaded_file($_FILES["pic"]["tmp_name"]))
if(move_uploaded_file($_FILES["pic"]["tmp_name"],$url))
return $url;
return "";
}
} -
Two rtsp streams to youtube on a Pi3
19 mars 2020, par Sébastien BonaiméI want to stream two rtsp camera from my birdbox to youtube from my raspberry pi 3 with the entrance in Pip (picture in picture) on top left. I don’t need sound.
192.168.1.13 can do 30 fps with sound that I don’t need
192.168.1.31 is only 12 fps without soundI have some problems of lag between the two camera on the youtube stream which I think is due to the different fps. I compile ffmpeg with h264. Here is what I did
ffmpeg -re -f lavfi -i anullsrc -rtsp_transport udp -thread_queue_size 1000k -i rtsp://admin:123@192.168.1.13:554 -i rtsp://admin:@192.168.1.31:554 -filter_complex "[1]scale=iw/4:ih/4[pip]; [2][pip] overlay=0:0" -framerate 13 -bufsize 512k -b:v 1500k -threads 4 -q:v 3 -c:v h264_omx -c:a aac -f flv rtmp://a.rtmp.youtube.com/live2/XXX-XXXX-XXX
and here are the errors
[h264 @ 0x20ddd30] error while decoding MB 69 67, bytestream -6rate=1589.2kbits/s dup=0 drop=6 speed=0.997x
[h264 @ 0x20ddd30] concealing 100 DC, 100 AC, 100 MV errors in I frame
rtsp://admin:@192.168.1.31:554: corrupt decoded frame in stream 0te=1589.0kbits/s dup=0 drop=6 speed=0.997x
[rtsp @ 0x1f2cea0] max delay reached. need to consume packetbitrate=1589.2kbits/s dup=0 drop=6 speed=0.997x
[rtsp @ 0x1f2cea0] RTP: missed 35 packets
[h264 @ 0x2099580] error while decoding MB 60 30, bytestream -6rate=1589.3kbits/s dup=0 drop=6 speed=0.997x
[h264 @ 0x2099580] concealing 4549 DC, 4549 AC, 4549 MV errors in I frame
rtsp://admin:@192.168.1.31:554: corrupt decoded frame in stream 0
[rtsp @ 0x1f2cea0] max delay reached. need to consume packetbitrate=1588.9What can I do to improve the stream ? When a bird enter the box, there is also a quality problem when the image is changing and some lagging.
You can have a look here
https://www.youtube.com/watch?v=iisbinyvSFk&feature=youtu.beThank you