Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (39)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (5481)

  • CDN Stream Play Video + Audio With Referer ?

    30 avril 2020, par lavara123

    This is orginal site play script :

    



    

    

    const player = jwplayer("player").setup({
					title: "Extraction",
					description: "2020",
					file: "https://cdn.rapidvideocdn.xyz/videoplayback/1598e8ae991e78c6d87cf31b5e5db280be1012101221e017b1b20f8331f820fbh",
					tracks: [{"file":"https:\/\/sinefy.com\/subtitles\/tt8936646.tr.vtt","label":"T\u00fcrk\u00e7e","kind":"captions","default":true}],					image: "https://sinefy.com/uploads/series/cover/extraction-2020.jpg",					type: "application/vnd.apple.mpegurl",
					playbackRateControls: true,
					preload: "auto",
					autostart: autopl,
					hlshtml: true,
					androidhls: true,
					stagevideo: false,
					"primary": "html5"
				})

    


    


    




    this is HLS (Fragmented MP4) url open with referer :

    



    https://cdn.rapidvideocdn.xyz/videoplayback/1598e8ae991e78c6d87cf31b5e5db280be1012101221e017b1b20f8331f820fbh


    



    referer :

    



    https://sinefy.com/api/runner/80d4d32765c4d9466bf646958663f902


    



    i'm play code :

    



    ffmpeg -referer "https://sinefy.com/api/runner/80d4d32765c4d9466bf646958663f902" -i "https://e1-ad930d.rapidvideocdn.xyz/videoplayback/6d3d454e9fd30ac1a7ed678ff1d77e325" -f hls -vcodec libx264 -crf 27 -preset veryfast  -c:a copy - | ffplay -


    



    but no sound ?

    


  • Unable to play clear content packaged using ffmpeg mpeg-dash -single_file option

    20 novembre 2017, par diS

    Able to package the mpeg-dash clear content into a single file using -single_file option but unable to play the content.

    ffmpeg command :

    ffmpeg -y -loglevel info -loglevel verbose -err_detect careful -analyzeduration 8000000 -probesize 4000000 -rtbufsize 300000 -flush_packets 0 -fflags +genpts+discardcorrupt -f mpegts -i Sample_Input.ts -i -map 0:p:1:0 -c copy -f dash -window_size 24 -min_seg_duration 4 -use_timeline true -use_template true -single_file true live.mpd

    Able to package and play using below command :

    MP4Box -dash 150000 -dash-profile onDemand -segment-name chunk-stream clear.mp4

    Am I Missing any parameters while packaging with ffmpeg command ?

    FFMPEG latest code from https://git.ffmpeg.org/ffmpeg.git
    commit :- ce001bb8fc6677541c401a614e05e5058d58dde1

    Thank you in advance.

  • FFmpeg. Reading and writing multiple files from a stream

    17 février 2023, par Stiven Diplet

    The problem is the following. I need to convert a video to a set of pictures using the ffmpeg process. I have successfully done this before with the following code :

    


    public void VideoToImages1()
    {
        var inputFile = @"D:\testVideo.avi";
        var outputFilesPattern = @"D:\image%03d.jpg";

        using var process = new Process
        {
            StartInfo = new ProcessStartInfo
            {
                UseShellExecute = false,
                CreateNoWindow = true,
                Arguments = $"-y -i {inputFile} {outputFilesPattern}",
                FileName = "ffmpeg.exe"
            },
            EnableRaisingEvents = true
        };

        process.Start();

        process.WaitForExit();
    }


    


    Now I need to stream video through the input Stream and receive data from the output Stream. For this I have the following code. It's fully working since I used it to convert video and successfully streamed input via Stream and received output via Stream and produced a valid file.

    


    public void VideoToImages2()
    {
        var inputFile = @"D:\testVideo.avi";
        var outputFile = @"D:\resultImages.png";

        var process = new Process
        {
            StartInfo = new ProcessStartInfo
            {
                RedirectStandardInput = true,
                RedirectStandardOutput = true,
                UseShellExecute = false,
                CreateNoWindow = true,
                Arguments = "-y -i - -f image2 -",
                FileName = _ffmpeg
            },
            EnableRaisingEvents = true
        };

        process.Start();

        //Write input data to input stream
        var inputTask = Task.Run(() =>
        {
            using (var input = new FileStream(inputFile, FileMode.Open))
            {
                input.CopyTo(process.StandardInput.BaseStream);
                process.StandardInput.Close();
            }
        });


        //Read multiple files from output stream
        var outputTask = Task.Run(() =>
        {
            //Problem here
            using (var output = new FileStream(outputFile, FileMode.Create))
                process.StandardOutput.BaseStream.CopyTo(output);
        });


        Task.WaitAll(inputTask, outputTask);

        process.WaitForExit();
    }


    


    The problem here is that instead of creating files in a directory according to the specified pattern, it returns these files in a stream. As a result, I do not know how to write all the files from the Stream and how to process this output, since it contains many files. At the moment I have only 1 image created.
Help me please.

    


    I tried googling but didn't find anything useful