Recherche avancée

Médias (91)

Autres articles (77)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (8941)

  • Where to (long time) host Spring Boot Application with Data Base Backup and Linux Root Access [closed]

    22 mai 2024, par Lord Helmchen

    I developed a small application for my father. It uses Spring Boot, MySQL and FFMPEG, which I currently installed on Linux.

    


    I want to host it, deploy it automatically, have a back up and root access for FFMPEG installation.

    


    It runs smoothly locally on Windows / Linux, now I want to host it somewhere.

    


    What I would like to have :

    


      

    • Ease of deployment : I got experience in adminstration of linux root servers, but I look for something easy to integrate and maybe automatically deploy it from Github or Gitlab
    • 


    • Backup : I want to backup the database ideally to another service provider in case something goes wrong.
    • 


    • Linux : One Part of it, amongs others is to convert different audio formats using ffmpeg.
So, (I think) I need linux root access as well.
    • 


    • Time Horzion : I would like to make sure it still runs in ten+ years, so it should be a reliable provider where I only update the application from time to time if needed.
    • 


    • Money : As it is only for personal use at this moment, I don't want to invest a fortune.
    • 


    


    What provider and deployment pipeline would you recommend to me ?

    


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

  • Joining/Concatenating more than one video files in Java Spring Boot

    7 décembre 2020, par Rohan Shah

    I am trying to join/concate multiple files in Java, so far the procedure that I was following (https://github.com/bramp/ffmpeg-cli-wrapper) was going alright, but in this procedure, there were a couple of lines that I could not understand.

    &#xA;

    Code I am following :

    &#xA;

    FFmpeg ffmpeg = new FFmpeg("/path/to/ffmpeg");&#xA;FFprobe ffprobe = new FFprobe("/path/to/ffprobe");&#xA;&#xA;FFmpegBuilder builder = new FFmpegBuilder()&#xA;&#xA;  .setInput("input.mp4")     // Filename, or a FFmpegProbeResult&#xA;  .addInput("input2.mp4")    // &lt;--------------------------------  Second file that I added&#xA;  .overrideOutputFiles(true) // Override the output if it exists&#xA;&#xA;  .addOutput("output.mp4")   // Filename for the destination&#xA;    .setFormat("mp4")        // Format is inferred from filename, or can be set&#xA;    .setTargetSize(250_000)  // Aim for a 250KB file&#xA;&#xA;    .disableSubtitle()       // No subtiles&#xA;&#xA;    .setAudioChannels(1)         // Mono audio&#xA;    .setAudioCodec("aac")        // using the aac codec&#xA;    .setAudioSampleRate(48_000)  // at 48KHz&#xA;    .setAudioBitRate(32768)      // at 32 kbit/s&#xA;&#xA;    .setVideoCodec("libx264")     // Video using x264&#xA;    .setVideoFrameRate(24, 1)     // at 24 frames per second&#xA;    .setVideoResolution(640, 480) // at 640x480 resolution&#xA;&#xA;    .setStrict(FFmpegBuilder.Strict.EXPERIMENTAL) // Allow FFmpeg to use experimental specs&#xA;    .done();&#xA;&#xA;FFmpegExecutor executor = new FFmpegExecutor(ffmpeg, ffprobe);&#xA;&#xA;// Run a one-pass encode&#xA;executor.createJob(builder).run();&#xA;&#xA;// Or run a two-pass encode (which is better quality at the cost of being slower)&#xA;executor.createTwoPassJob(builder).run();&#xA;

    &#xA;

    These are the lines throwing error :

    &#xA;

    FFmpeg ffmpeg = new FFmpeg("/path/to/ffmpeg");&#xA;FFprobe ffprobe = new FFprobe("/path/to/ffprobe");&#xA;

    &#xA;

    In these lines, I am providing a path like this,

    &#xA;

    FFmpeg ffmpeg = new FFmpeg("D:/");&#xA;FFprobe ffprobe = new FFprobe("D:/");&#xA;

    &#xA;

    which leads to an error

    &#xA;

    java.io.IOException: CreateProcess error=5&#xA;

    &#xA;

    I believe the ffmpeg in /path/to/ffmpeg and ffprobe in /path/to/ffprobe are files, not directories, which is why it threw an execution permission error, but as I looked into the repository (link given above) I was not able to find this particular file in the given link.

    &#xA;

    There were a couple of Java files named ffmpeg.java and ffprobe.java, but when I tried using them in the code then I got the same error, so I want to know which files am I supposed to have in these paths

    &#xA;