Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (38)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (6832)

  • Combining All MP4s in Directory with ffmpeg

    13 octobre 2015, par Eric Marcinowski

    I’ve been wrestling trying to get the syntax right on this batch file and I can’t for the LIFE of me figure out why some things aren’t working.

    1) The variable ’i’ is not getting incremented.
    and
    2) Concatenation on strc doesn’t seem to want to...well, concatenate.

    set i=0
    set "strc=concat:"

    for %%f in (*.mp4) do (
       set /a i+=1
       set "str=intermediate%i%.ts"

       set strc="%strc% %str%|"

       ffmpeg -i "%%f" -c copy -bsf:v h264_mp4toannexb -f mpegts "%str%"
    )

    set strc="%strc:-1%"
    ffmpeg -i "%strc%" -c copy -bsf:a aac_adtstoasc Output.mp4
  • Size of files was increased after splitting by Ffmpeg

    29 avril 2014, par user3584205

    I use this code to split file to multiple parts :

    @echo off
    for %%i in (*.mp4) do (
     ffmpeg -i "%%~i" -vcodec copy -acodec copy -ss 00:00:00 -t 00:00:05 "D:\Ebook\%%~ni_1.mp4"
     ffmpeg -i "%%~i" -vcodec copy -acodec copy -ss 00:00:05 -t 00:00:10 "D:\Ebook\%%~ni_2.mp4"
     ffmpeg -i "%%~i" -vcodec copy -acodec copy -ss 00:00:10 "D:\Ebook\%%~ni_3.mp4"
     )
    pause

    It worked but I have a problem. It is total size of parts is larger than original file.

    Original : 700 MB and after splitting :

    Part 1: 225
    Part 1: 500
    Part 2: 250

    Why ? And how to keep same quality and size of files after splitting ? Thank you very much !

  • How to use Jaffree with Spring Boot for streaming a RTSP flow

    25 août 2022, par Jmarchi

    Im trying to build a APIRest and one of the things i want to do is recirculate the rtsp video provided by some security cameras to the frontend.

    


    I have found the Jaffree, a dependency that integrates the ffmpeg into spring, until then all is good.

    


    The problem is when i try to send the video to the frontend (make in React) i recieve this error :

    


    


    Starting process : ffmpeg

    


    Waiting for process to finish

    


    ...

    


    Input #0, mpjpeg, from __________

    


    Duration : N/A, bitrate : N/A

    


    Stream #0:0 : Video : mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn

    


    [warning] Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (tcp ://127.0.0.1:52225) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.

    


    Output #0, ismv, to 'tcp ://127.0.0.1:52225' :

    


    Metadata :

    


    encoder : Lavf59.27.100

    


    Stream #0:0 : Video : mjpeg (Baseline) (mp4v / 0x7634706D), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 tbr, 10000k tbn

    


    Stream mapping :

    


    Stream #0:0 -> #0:0 (copy)

    


    frame= 21 fps=7.2 q=-1.0 size= 252kB time=00:00:00.80 bitrate=2580.9kbits/s speed=0.275x

    


    ...

    


     : Interrupting starter thread (task-1) because of exception : TCP negotiation failed

    


    


    The code in the backend is this :

    


    @GetMapping(value = "/{id}/video")&#xA;public ResponseEntity<streamingresponsebody> getVideo() {&#xA;        String url = "**********";&#xA;&#xA;        return ResponseEntity.ok()&#xA;                .contentType(MediaType.APPLICATION_OCTET_STREAM)&#xA;                .body(os ->{&#xA;                    FFmpeg.atPath()&#xA;                            .addArgument("-re")&#xA;                            .addArguments("-acodec", "pcm_s16le")&#xA;                            // .addArguments("-rtsp_transport", "tcp")&#xA;                            .addArguments("-i", url)&#xA;                            .addArguments("-vcodec", "copy")&#xA;                            .addArguments("-af", "asetrate=22050")&#xA;                            .addArguments("-acodec", "aac")&#xA;                            .addArguments("-b:a", "96k" )&#xA;                            .addOutput(PipeOutput.pumpTo(os)&#xA;                                    .disableStream(StreamType.AUDIO)&#xA;                                    .disableStream(StreamType.SUBTITLE)&#xA;                                    .disableStream(StreamType.DATA)&#xA;                                    .setFrameCount(StreamType.VIDEO, 100L)&#xA;                                     //1 frame every 10 seconds&#xA;                                    .setFrameRate(0.1)&#xA;                                    .setDuration(1, TimeUnit.HOURS)&#xA;                                    .setFormat("ismv"))&#xA;                            .addArgument("-nostdin")&#xA;                            .execute();&#xA;                });&#xA;    }&#xA;</streamingresponsebody>

    &#xA;

    And this is the html part :

    &#xA;

    <video width="100%" height="auto" controls="controls" autoplay="autoplay" muted="muted" src="http://localhost:7500/***/1/video">&#xA;                Sorry, your browser doesn&#x27;t support embedded videos.&#xA;            </video>&#xA;

    &#xA;

    What is it missing for the TCP negotiation ?

    &#xA;