Recherche avancée

Médias (91)

Autres articles (67)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (5418)

  • 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;

  • How to use ffmpeg read realtime microphone audio volume ?

    7 juin 2020, par Cyrus

    I have Google this proplem, Here is a simliar problem

    &#xA;&#xA;

    But when i exectue following command

    &#xA;&#xA;

    val command = arrayOf("/usr/local/bin/ffmpeg",&#xA;    "-f", "avfoundation",&#xA;    "-i", ":2",&#xA;    "-t", "5",&#xA;    "-ar", "11025",&#xA;    "-ac", "1",&#xA;    "-acodec","aac", "-")&#xA;

    &#xA;&#xA;

    I got this error Unknown input format: &#x27;avfoundation&#x27;&#xA;Who has ideas for this problem ?

    &#xA;&#xA;

    PS : My platform is android, i am using android-ffmpeg lib.

    &#xA;

  • ffplay keep video/audio sync when using select filter

    24 août 2016, par arrietaeguren

    I’m trying to play/skip some clips of a video using ffplay. My first approach to skip say frames 100 to 400 was :

    ffplay -vf "select='lte(n\,100)+gte(n\,400)'" -i INPUT

    this skips the desired frames, however it also freezes the video during the skipped frames. I tried to fix this by modifying the video presentation time stamp (PTS) with the setpts option :

    ffplay -vf "select='lte(n\,100)+gte(n\,400)',setpts='PREV_OUTPTS'" -i INPUT

    this seems to work (stills freeze a bit, guess is because of buffering), but now the audio is out of sync. I’ve tried applying a select filter and modifying the PTS on the audio as well

    ffplay -vf "select='lte(n\,100)+gte(n\,400)',setpts='PREV_OUTPTS'" -af "aselect='lte(n\,100)+gte(n\,400)',asetpts='PREV_OUTPTS'" -i INPUT

    this skips some audio frames, but still out of sync. I’ve tried with the aresample=async=10000 option with similar results. Moving some/all of the filters to the output (placing them after the -i INPUT) doesn’t work either.

    Does someone know how to skip parts of a video using ffplay ? Many thanks