Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (104)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP 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 (...)

Sur d’autres sites (8939)

  • ffmpeg : i cant make tee working for restreaming

    24 avril 2018, par Jorge Vértiz

    I’ve been trying to overlay an image on a rtmp stream and resend it to Facebook Live and Twitch, using a nginx with a rtmp module and ffmpe. I have used this code for each service :

    ffmpeg -i rtmp://localhost/app/streamkey -i logo.png -filter_complex "[0:v][1:v] overlay=0:0" -c:v libx264 -preset veryfast -bufsize 4000k -c:a aac -b:a 160k -ar 44100  -f flv rtmp://live-api.facebook.com:80/rtmp/streamkey;

    I have one command for Facebook Live and another for Twitch, but it consumes much hardware, so looking around I found a work around using tee seudo-mixer :

    ffmpeg -i rtmp://localhost/app/streamkey -i logo.png -filter_complex "[0:v][1:v]overlay=10:10" -c:v libx264 -preset veryfast -bufsize 4000k -c:a aac -b:a 160k -ar 44100  -f tee "[f=flv]rtmp://live-api.facebook.com:80/rtmp/streamkey|[f=flv]rtmp://live-jfk.twitch.tv/app/streamkey"

    It works fine with Facebook Live, but when Twitch starts the live streaming there is no image, only a black screen.

    What am I doing wrong, and how do I get this stream working ?

  • How can upload audio on dropbox after converted it from the video format using ffmpeg in nodejs and angular

    21 septembre 2021, par Amir Shahzad

    nodejs server side code

    


    This is my nodejs server side where i want to convert the video into the audio format and then want to upload the converted audio on the dropbox is there any way to do that ??

    


    const express = require('express'),
path = require('path'),
cors = require('cors'),
ffmpeg = require('fluent-ffmpeg'),
fs = require("fs"),
access_token = "My-Access-Token";

ffmpeg.setFfmpegPath('/usr/bin/ffmpeg');

const app = express();
app.use(cors());
app.use(express.json());
app.use(express.urlencoded({
  extended: false
}));


app.post('/api/upload', upload.single('mp4'), function (req, res) {
  if (!req.file) {
    console.log("No file is available!");
    return res.send({
     success: false
  });

  } else {
   function convert(input, output, callback) {
      ffmpeg(input)
          .output(output)
          .on('end', function() {                    
           console.log('conversion ended');
            callback(null);
          }).on('error', function(err){
           console.log('error: ', err);
            callback(err);
          }).run();
    }
     const filepath = req.file.path;
     var content = fs.readFileSync(filepath);

 options = {
    method: "POST",
    url: 'https://content.dropboxapi.com/2/files/upload',
    headers: {
     "Content-Type": "text/plain; charset=dropbox-cors-hack" ,
     "Authorization": "Bearer " + access_token,
      "Dropbox-API-Arg": "{\"path\": \"/youtube- 
       radio/"+req.file.originalname+"\",\"mode\": \"overwrite\",\"autorename\": 
       true,\"mute\": false}",
    },
     body:content
};
convert(filepath,  options+'.mp3', function(err,res, body){
   if(!err) {
    console.log('File Name is',req.file.originalname);
    console.log('File Path Is = ',req.file.path)
    console.log('conversion complete');   
    console.log('ERR', err);
   }
});
console.log('File is available!');
return res.send({
  success: true
})
}
 });


  const PORT = process.env.PORT || 8080;
  const server = app.listen(PORT, () => {
  console.log('Connected to port ' + PORT)
  })


    


    i have read many documentations of dropbox and ffmpeg and angular file upload but i could not understand Please anyone can resolve my code Thanks in advance

    


    This is my typescript file

    


    import { Component, OnInit } from '@angular/core';
import { FileUploader } from 'ng2-file-upload';
import { ToastrService } from 'ngx-toastr';
import { Track } from 'ngx-audio-player'; 
import { PlayerServiceService } from './services/player-service.service';


const URL = 'http://localhost:8080/api/upload';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit{

public uploader: FileUploader = new FileUploader({
  url: URL,
  itemAlias: 'mp4'
});
 constructor(private toastr: ToastrService,
    private playerService: PlayerServiceService) { }

 ngOnInit(): void {
   this.uploader.onAfterAddingFile = (file) => {
     file.withCredentials = false;
 };
  this.uploader.onCompleteItem = (item: any, status: any) => {
    console.log('Uploaded File Details:', item);
     this.toastr.success('File successfully uploaded!');
  };

}
}


    


    This is html code

    


     <div class="container mt-5">&#xA;  <div class="file-upload">&#xA;     <input type="file" ng2fileselect="ng2fileselect" />&#xA;     <button type="button" class="btn btn-info">&#xA;      Upload&#xA;    </button>&#xA;  </div>&#xA;</div>&#xA;

    &#xA;

  • ffmpeg, we reported the error of av_interleaved_write_frame() : End of fileB Error writing trailer of rtmps ://live-api-s.facebook.com:443/rtmp/*

    21 octobre 2022, par yong zhang

    We want to implement such a small function, using webrtc technology on the web side to push the stream to the webrtc service of SRS, and then push the rtmp stream of SRS to the go live of facebook through ffmpeg to push the live broadcast. But we encountered a problem. When we forwarded and pushed the stream with ffmpeg, we reported the error of av_interleaved_write_frame() : End of fileB Error writing trailer of rtmps ://live-api-s.facebook.com:443/rtmp/. Please help and guide the heroes to see where the problem may occur.&#xA;The command we executed is : ./ffmpeg -threads 2 -thread_queue_size 9512 -re -i "rtmp ://xxx.xxx.xxx:1935/live/" -max_muxing_queue_size 1024 -force_key_frames "expr:gte (t,n_forced2)" -vf crop=in_w:in_w9/16,scale=1280:720 -reorder_queue_size 4000 -max_delay 10000000 -c:v libx264 -preset veryfast -b:v 3000k -maxrate 1500k -bufsize 4000k -g 50 -c:a aac -ac 2 -ar 48000 -f flv -r 30 -flvflags no_duration_filesize "rtmps ://live-api-s.facebook.com:443/rtmp/"&#xA;The ffmpeg version is : 4.13 and above all the same error.&#xA;SRS version : 5.56

    &#xA;