Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (96)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (7492)

  • FFMPEG - format not available ?

    26 octobre 2020, par Julien Greard

    I'm converting some code from FFMPEG 0.8 to FFMPEG 1.2. I have an error during the call to the method avcodec_open2() :

    


    Specified pixel format %s is invalid or not supported


    


    The format I use is : AV_PIX_FMT_RGB24. It should be enabled by default, right ?

    


    Below is my code :

    


    av_register_all();

codec = avcodec_find_encoder(AV_CODEC_ID_MPEG2VIDEO);

if(!codec)
{
    throw SystemException("codec not found");
}

codecContext = avcodec_alloc_context3(codec);

codecContext->bit_rate = 200000;
codecContext->time_base.den = 1;
codecContext->time_base.num = 90000;
codecContext->gop_size = 8;
codecContext->pix_fmt = AV_PIX_FMT_RGB24;

_codecContext->width = 320
_codecContext->height = 240

if(avcodec_open2(_codecContext, _codec, NULL) < 0)
{
    throw SystemException("Unable to open codec");
}


    


  • Swift Process Fails to Properly Send Metadata Args to FFMPEG

    30 avril 2019, par Ryan Stone

    I’m writing a Swift Process that concatenates a series of audio files using FFMPEG and libfdk_aac. The concatenation works, but when I pass metadata information through the process I get a Unrecognized option 'metadata artist="ff"' ... Option not found error.

    When debugging, if I use a breakpoint and print using e print(args.joined(separator: " ")) I’m able to take the exact output and paste it in the console, FFMPEG runs and doesn’t throw an error.

    I’m assuming there’s an oddity with how Swift process works, but even there I’ve tested and I’m stumped. I created a ruby script that took the args and looped over them and printed them and there is nothing given to the script that is unexpected. (Output below)

    Swift Process

    private func export() {
           guard let ffmpegPath = Bundle.main.path(forResource: "ffmpeg", ofType: "") else { return }


           var task = Process()
           task.launchPath = ffmpegPath

           let args: [String] = [
               "-i",
               #"concat:"\#(fileContents)""#,
               title(),
               artist(),
               narrator(),
               "-c:a",
               "libfdk_aac",
               "-vn",
               #"\#(exportPath)\#(exportFilename)"#
           ].compactMap { $0 }

           task.arguments = args

           var pipe = Pipe()
           setStdErrPipe(pipe: &pipe, task: &task)
           setTerminationNotification(task: task)

           task.launch()
       }

       func title() -> String? {
           guard metadata.titleText != "" else {
               return nil
           }
           return #"-metadata title="\#(metadata.titleText)""#
       }

       func artist() -> String? {
           guard metadata.authorText != "" else { return nil }
           return #"-metadata artist="\#(metadata.authorText)""#
       }

       func narrator() -> String? {
           guard metadata.narratorText != "" else { return nil }
           return #"-metadata album_artist="\#(metadata.narratorText)""#
       }

    Arg tester Output

    -i
    concat:"/Users/sharkmaul/Downloads/Bringing Up BÈbÈ/Bringing Up BÈbÈ-Part01.mp3|/Users/sharkmaul/Downloads/Bringing Up BÈbÈ/Bringing Up BÈbÈ-Part02.mp3"
    -metadata title="title"
    -metadata artist="author"
    -metadata album_artist="narrator"
    -c:a
    libfdk_aac
    -vn
    /Users/sharkmaul/Desktop/068F4F43-89EE-47F6-838D-7AD3E02E7F8A.m4a
  • Fluent-ffmpeg : Output with label 'screen0' doesnot exist in any diferent filter graph, or was already used elsewhere

    28 avril 2019, par mandaputtra

    I’m trying to take video frame by frame using fluent-ffmpeg, to create video masking and some kin of like experiment video editor. But when I do that by screenshots it says ffmpeg exited with code 1: Output with label 'screen0' does not exist in any defined filter graph, or was already used elsewhere.

    Here example array that I use for producing timestamps. ["0.019528","0.05226","0.102188","0.13635","0.152138","0.186013","0.236149" ...]

    // read json file that contains timestaps, array
    fs.readFile(`${config.videoProc}/timestamp/1.json`, 'utf8', async (err, data) => {
     if (err) throw new Error(err.message);
     const timestamp = JSON.parse(data);
     // screenshot happens here
     // loop till there is nothing on array...
     function takeFrame() {
       command.input(`${config.publicPath}/static/video/1.mp4`)
         .on('error', error => console.log(error.message))
         .on('end', () => {
           if (timestamp.length > 0) {
             // screenshot again ...
             takeFrame();
           } else {
             console.log('Process ended');
           }
         })
         .noAudio()
         .screenshots({
           timestamps: timestamp.splice(0, 100),
           filename: '%i.png',
           folder: '../video/img',
           size: '320x240',
         });
     }
     // call the function
     takeFrame();
    });

    My expected result are, I can genereta all the 600 screenshot. on one video. but the actual result is this error ffmpeg exited with code 1: Output with label 'screen0' does not exist in any defined filter graph, or was already used elsewhere and only 100 screen generated.

    [UPDATE]

    using -filter_complex as mentioned in here doenst work.

    ffmpeg exited with code 1: Error initializing complex filters.
    Invalid argument

    [UPDATE]

    command line arg :

    ffmpeg -ss 0.019528 -i D:\Latihan\video-cms-core\public/static/video/1.mp4 -y -filter_complex scale=w=320:h=240[size0];[size0]split=1[screen0] -an -vframes 1 -map [screen0] ..\video\img\1.png