Recherche avancée

Médias (91)

Autres articles (111)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

Sur d’autres sites (9326)

  • TCP or UDP ? Delays building up on production for video stream

    31 janvier 2020, par Ben Beri

    I am creating a video stream from a camera with FFMPEG and nodejs stream Duplex class.

    this.ffmpegProcess = spawn('"ffmpeg"', [

     '-i', '-',
     '-loglevel', 'info',

     /**
      * MJPEG Stream
      */

     '-map', '0:v',
     '-c:v', 'mjpeg',
     '-thread_type', 'frame', // suggested for performance on StackOverflow.
     '-q:v', '20', // force quality of image. 2-31 when 2=best, 31=worst
     '-r', '25', // force framerate
     '-f', 'mjpeg',
     `-`,

    ], {
     shell: true,
     detached: false,
    });

    On local network, we are testing it with a few computers and every thing works very stable with latency of maximum 2 seconds.

    However, we have imported the service to AWS production, when we connect the first computer we have a latency of around 2 seconds, but if another client connects to the stream, they both start delaying a lot, where the latency builds up to 10+ seconds, and in addition the video is very slow, as in the motion between frames.

    Now I asked about TCP or UDP is because we are using TCP for the stream, which means that every packet that is sent is implementing the TCP syn-ack-synack protocol and sequence.

    My question is, could TCP really be causing such an issue that the delays get up to 10 seconds with very slow motion ? because on local network it works very just fine.

  • Python FFMPEG Heroku|Remove audio from video with Byte to Byte. No web processes running Error on Heroku

    15 mai 2021, par samoel

    I'm trying to get a .mp4 file from an address and remove the sound from it.I also want the data sent to FFMPEG to be bytes and return the result in byte

    


    i tried different command for my code like using -movflags frag_keyframe+empty_moov.
When I run this code in Heroku and receive the log...

    


    Buildpacks on Heroku are :

    


    https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git

    


    https://github.com/codeinteger6/heroku-buildpack-libopus.git

    


    git ://github.com/heroku/heroku-buildpack-python.git

    


    def from_bytes_to_byte(input_bytes):
    command = f"ffmpeg -f mp4 -i /dev/stdin -vcodec copy -an -f mp4 -movflags frag_keyframe+empty_moov -"
    convert_cmd = subprocess.Popen(
        shlex.split(command),
        stdin=subprocess.PIPE,
        stdout=subprocess.PIPE,
        shell=False
    )
    b = b''
    convert_cmd.stdin.write(input_bytes)
    convert_cmd.stdin.close()
    while True:
        output = convert_cmd.stdout.read()
        if len(output) > 0:
            b += output
        else:
            error_msg = convert_cmd.poll()
            if error_msg is not None:
                break
    print("----------FINISHED------------")
    return b


result=requests.get("https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_480_1_5MG.mp4") #.MP4 File
byterecieved=from_bytes_to_byte(result.content)


    


    heroku logs :

    


    ffmpeg version N-57204-gc7c138e411-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil      57.  0.100 / 57.  0.100
libavcodec     59.  0.100 / 59.  0.100
libavformat    59.  0.100 / 59.  0.100
libavdevice    59.  0.100 / 59.  0.100
libavfilter     8.  0.101 /  8.  0.101
libswscale      6.  0.100 /  6.  0.100
libswresample   4.  0.100 /  4.  0.100
libpostproc    56.  0.100 / 56.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/dev/stdin':
Metadata:
major_brand     : mp42
minor_version   : 0
compatible_brands: mp42mp41isomavc1
creation_time   : 2015-08-07T09:13:02.000000Z
Duration: 00:00:30.53, start: 0.000000, bitrate: N/A
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 1:1 DAR 16:9], 301 kb/s, 30 fps, 30 tbr, 30 tbn (default)
Metadata:
creation_time   : 2015-08-07T09:13:02.000000Z
handler_name    : L-SMASH Video Handler
vendor_id       : [0][0][0][0]
encoder         : AVC Coding
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 112 kb/s (default)
Metadata:
creation_time   : 2015-08-07T09:13:02.000000Z
handler_name    : L-SMASH Audio Handler
vendor_id       : [0][0][0][0]
Output #0, mp4, to 'pipe:':
Metadata:
major_brand     : mp42
minor_version   : 0
compatible_brands: mp42mp41isomavc1
encoder         : Lavf59.0.100
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 1:1 DAR 16:9], q=2-31, 301 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
Metadata:
creation_time   : 2015-08-07T09:13:02.000000Z
handler_name    : L-SMASH Video Handler
vendor_id       : [0][0][0][0]
encoder         : AVC Coding
Stream mapping:
**2021-05-14T21:32:09.639203+00:00** app[worker.1]: Stream #0:0 -> #0:0 (copy)
**2021-05-14T22:12:36.527864+00:00** heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=desolate-inlet-50581.herokuapp.com request_id=cc985185-6ba7-4530-95f8-f4512f465039 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https
2021-05-14T22:12:37.303089+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=desolate-inlet-50581.herokuapp.com request_id=f26b18a5-30ac-41e2-9b63-8f945b746b12 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https
2021-05-14T22:13:39.737155+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=desolate-inlet-50581.herokuapp.com request_id=12a28261-d746-4067-ab4b-05d3e2e8c379 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https
2021-05-14T22:13:40.372446+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=desolate-inlet-50581.herokuapp.com request_id=c2e2ebc8-9fb2-4d30-8876-2fede3dfd141 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https


    


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