Recherche avancée

Médias (0)

Mot : - Tags -/organisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (91)

Sur d’autres sites (16689)

  • Non stop stream to rtmp with FFMPEG

    13 février 2020, par Надежда Перемен

    I want to stream to RTMP with FFMPEG. I need to dynamically change next play file, for that i use web urls for my localhost.

    I have PHP file located : http://127.0.0.1/mp3.php

    $file = '1.mp3';

    $mime_type = "audio/mpeg, audio/x-mpeg, audio/x-mpeg-3, audio/mpeg3";

    if(file_exists($file)){
       header('Content-type: {$mime_type}');
       header('Content-length: ' . filesize($file));
       header('Content-Disposition: filename="' . $file);
       header('X-Pad: avoid browser bug');
       header('Cache-Control: no-cache');
       readfile($file);
    }else{
       header("HTTP/1.0 404 Not Found");
    }

    And i run ffmpeg with this command line :

    ffmpeg -re -stream_loop -1 -i logo.png -stream_loop -1 -i http://127.0.0.1/mp3.php -ab 320k -c:v libx264 -f flv "rtmp://ms......."

    This works, but it playing only once time and FFMPEG returns an error :

    Seek to start failed
    http://127.0.0.1/mp3.php: Function not implemented

    How can i fix it ?

  • C# ffmpeg not working

    24 février 2018, par ViVi

    I am trying to convert an mp3 file into a flac file using ffmpeg for c#.
    I downloaded the ffmpeg.exe and placed it inside the bin/debug folder of my project.

    My input folder is testmp3 and output folder is testmp3OUTPUT. These folders are located within the debug folder itself. testmp3 folder got mp3 files.

    This is the code I am using :

    string inputfile = @"..\\testmp3\\349.mp3";
    string outputfile = @"..\\testmp3OUTPUT\\349.flac";
    Process myProcess = new Process();
    ProcessStartInfo p = new ProcessStartInfo();
    string sArgs = string.Format(" -i {0} -f wav - | neroAacEnc -ignorelength -q 0.5 -if - -of {1}", inputfile, outputfile);
    p.FileName = "ffmpeg.exe";
    p.CreateNoWindow = true;
    p.RedirectStandardOutput = true;
    //p.WindowStyle = ProcessWindowStyle.Normal
    p.UseShellExecute = false;
    p.Arguments = sArgs;
    myProcess.StartInfo = p;
    myProcess.Start();
    myProcess.WaitForExit();
    //Write details about call
    myProcess.StandardOutput.ReadToEnd();
  • fate : Use the correct, local path to samples for opus reference files

    12 juillet 2014, par Martin Storsjö
    fate : Use the correct, local path to samples for opus reference files
    

    This fixes running fate in configs where the samples are located
    in a different path on the target.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] tests/fate/opus.mak