Recherche avancée

Médias (1)

Mot : - Tags -/framasoft

Autres articles (31)

  • ANNEXE : Les extensions, plugins SPIP des canaux

    11 février 2010, par

    Un plugin est un ajout fonctionnel au noyau principal de SPIP. MediaSPIP consiste en un choix délibéré de plugins existant ou pas auparavant dans la communauté SPIP, qui ont pour certains nécessité soit leur création de A à Z, soit des ajouts de fonctionnalités.
    Les extensions que MediaSPIP nécessite pour fonctionner
    Depuis la version 2.1.0, SPIP permet d’ajouter des plugins dans le répertoire extensions/.
    Les "extensions" ne sont ni plus ni moins que des plugins dont la particularité est qu’ils se (...)

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

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

Sur d’autres sites (3795)

  • Running ffmpeg with arguments that exceed to command prompt character limit ? [duplicate]

    4 décembre 2019, par Kaxemer

    This question already has an answer here :

    I have a code where I need to stack some videos on top of each other. I create a string with some arguments and then C# executes ffmpeg with those arguments. An example would be like this

    -i "file1.webm" -i "file2.webm" (bunch of files) -i "fileN.webm" -filter_complex "[0:v]scale=1920x1080,setdar=dar=4/3[v0];[1:v]scale=1920x1080,setdar=dar=4/3[v1];(bunch of filters)[N:v]scale=1920x1080,setdar=dar=4/3[vN];[v0][v1](bunch of Vx)[vN]vstack=inputs=N[output]" -map [output] output.webm

    where N is the number of files.

    So I have a loop that automatically creates a string with these arguments. I have C# execute the process in windows and when I have a high N value, ffmpeg exits with exit code 1. I can’t execute the command with the arguments in command prompt because the commands exceed the character limit of a single command in command prompt. I hypothesize that this might be why it fails with high N. Is there a way to work around this (maybe reading the input arguments from a text file) ?

  • Running an FFprobe process in Xcode to return file duration data

    24 octobre 2019, par NCrusher

    Using this example, I was able to create a process to run ffmpeg from the main resource bundle of a MacOS app. The fact that I was able to get it to work, however, was really dumb luck.

    But now I need to be able to do something similar with ffprobe, along the lines of what is discussed in this post, to get the duration of an audio file in order to trim a set number of seconds off the end of it, using these arguments :

    ffprobe -v 0 -show_entries format=duration -of compact=p=0:nk=1 input.m4b

    But I don’t know how to implement it. This is basically what I want to accomplish :

       func insertTrimArguments() {
           conversionSelection()
           if trimStartEndClipsCheckbox.state == .on {
               ffmpegArguments.insert(contentsOf: ["-ss", "00:00:02.000", /*"-t", "duration minus 4.2secs"]*/, at: 3)
           }
           else {
           }
       }

    I haven’t been coding in Swift long and processes are entirely new for me and not something that was ever covered in any of the "fundamentals" tutorials I studied before I began my project. Taking the monkey-see/monkey-do approach from the first example I linked, I can sort of make a start imitating it for my ffprobe function, but I have no idea if I’m doing it right or where to go with it from here.

    This is all I have so far.

       // get file duration and subtract 4.2 seconds if "trim audible clips is enabled, then insert additional arguments into conversionSelection arrays
       func getFileDuration() {
           guard let ffprobePath = Bundle.main.path(forResource: "ffprobe", ofType: "") else { return }
           do {
               let ffprobeTask: Process = Process()
               ffprobeTask.launchPath = ffprobePath
               ffprobeTask.arguments = [
                   "-v", "error",
                   "-show_entries",
                   "format=duration", "-of",
                   "compact=p=0:nk=1",
                   "\(inputFilePath)"]
               ffprobeTask.standardInput = FileHandle.nullDevice
               ffprobeTask.launch()
               ffprobeTask.waitUntilExit()
           }
       }

    How do I adapt this process so that instead of converting and outputing a new file, it returning the duration of the input file so that I can do the necessary math and include it in my arguments ?

  • Laravel FFmpeg error ffprobe running command -show_streams -print_format json is not running How i can resolve it ?

    12 octobre 2019, par Shahzad Waris

    I’m using laravel FFmpeg Package v4 to change the Dimension of the video.
    This is my queue log.

    [2019-10-12 15:14:17] local.INFO : ffprobe running command
    "C :/FFmpeg/bin/ffprobe.exe"
    C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
    -show_streams -print_format json [2019-10-12 15:14:17] local.ERROR : ffprobe failed to execute command "C :/FFmpeg/bin/ffprobe.exe"
    C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
    -show_streams -print_format json [2019-10-12 15:14:17] local.ERROR : Unable to probe
    C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
    "exception" :"[object] (FFMpeg\Exception\RuntimeException(code : 0) :
    Unable to probe
    C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
    at
    C :\wamp64\www\creamer\creamer\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe.php:263,
    Alchemy\BinaryDriver\Exception\ExecutionFailureException(code : 0) :
    ffprobe failed to execute command \"C :/FFmpeg/bin/ffprobe.exe\"
    C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
    -show_streams -print_format json at C :\wamp64\www\creamer\creamer\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\ProcessRunner.php:100)
    [stacktrace]

    0 C :\wamp64\www\creamer\creamer\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe.php(206) :

    FFMpeg\FFProbe->probe(’C :\wamp64\www\c...’, ’-show_streams’,
    ’streams’)

    1 C :\wamp64\www\creamer\creamer\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFMpeg.php(92) :

    FFMpeg\FFProbe->streams(’C :\wamp64\www\c...’) [internal
    function] : Illuminate\Queue\Console\WorkCommand->handle() 1 :
    https://github.com/pascalbaljetmedia/laravel-ffmpeg?ref=madewithlaravel.com

    This is Queue code :

    namespace App\Jobs;

    use App\Video;
    use FFMpeg;
    use FFMpeg\Coordinate\Dimension;
    use FFMpeg\Format\Video\X264;
    use Illuminate\Bus\Queueable;
    use Illuminate\Contracts\Queue\ShouldQueue;
    use Illuminate\Foundation\Bus\Dispatchable;
    use Illuminate\Queue\InteractsWithQueue;
    use Illuminate\Queue\SerializesModels;

    class ConvertVideoForDownloading implements ShouldQueue
    {
       use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
       public $video;
       /**
        * Create a new job instance.
        *
        * @return void
        */
       public function __construct(Video $v)
       {
           $this->video = $v;
       }

       /**
        * Execute the job.
        *
        * @return void
        */
       public function handle()
       {
           // create a video format...
           $lowBitrateFormat = (new X264)->setKiloBitrate(500);

           // open the uploaded video from the right disk...
           FFMpeg::fromDisk('local')
               ->open('public\videos' . $this->video->videoLink)

           // add the 'resize' filter...
               ->addFilter(function ($filters) {
                   $filters->resize(new Dimension(960, 540));
               })

           // call the 'export' method...
               ->export()

           // tell the MediaExporter to which disk and in which format we want to export...
               ->toDisk('local')
               ->inFormat($lowBitrateFormat)

           // call the 'save' method with a filename...
               ->save($this->video->id . '.mp4');

           // update the database so we know the convertion is done!
           // $this->video->update([
           //     'converted_for_downloading_at' => Carbon::now(),
           // ]);

       }
    }