Recherche avancée

Médias (91)

Autres articles (93)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (7154)

  • can't stream rtsp with ffmpeg

    7 novembre 2017, par xswxw222

    I want to stream rtsp with ffmpeg and ffserver

    I use on this config

    <feed>


    File /tmp/feed1.ffm
    FileMaxSize 200K

    # You could specify
    # ReadOnlyFile /saved/specialvideo.ffm
    # This marks the file as readonly and it will not be deleted or updated.

    # Specify launch in order to start ffmpeg automatically.
    # First ffmpeg must be defined with an appropriate path if needed,
    # after that options can follow, but avoid adding the http:// field
    #Launch ffmpeg

    # Only allow connections from localhost to the feed.
    ACL allow 127.0.0.1

    </feed>
    #<stream>
    #Format rtp
    #Feed feed1.ffm
    #VideoCodec libx264
    #VideoFrameRate 24
    #VideoBitRate 100
    #VideoSize 480x272
    #AVPresetVideo default
    #AVPresetVideo baseline
    #AVOptionVideo flags +global_header
    #
    #AudioCodec libfaac
    #AudioBitRate 32
    #AudioChannels 2
    #AudioSampleRate 22050
    #AVOptionAudio flags +global_header
    #</stream>

    and run ffserver.
    Now i run the ffmpeg like ffmpeg -i input.mp4 http://x.x.x.x:8090/out.h264.

    When i tried to watch on this url with ffplayer i got 2 error :

    1 : On ffplay terminal I see stream ends prematurely al 0 should be (SOME NUMBER) .

    2 : On ffserver terminal I see max packet size 0 too low   Error writing output header for stream live.h264

    I tried to add -packetsize 9999 but it stil show me those errors

    What can I do to fix that ?

  • FFMPEG bash > folder processing > AI upscale - script ERROR ">" [closed]

    13 novembre 2022, par Jason Paul Michaels

    Trying to port a single file manual command from Topaz AI so I can run it as a part of a simple script allowing me to run multiple sessions from terminal. I am running MacOS with BASH 5.2 and when I run the script I get dumped to ">" instead of command prompt and no error message is displayed.

    &#xA;

    This is my command -

    &#xA;

    for f in *.mp4; do&#xA;  /Applications/Topaz\ Video\ AI.app/Contents/MacOS/ffmpeg \&#xA;    -hide_banner \&#xA;    -nostdin \&#xA;    -y \&#xA;    -nostats \&#xA;    -i “$f” \&#xA;    -vsync 0 \&#xA;    -avoid_negative_ts 1 \&#xA;    -sws_flags spline&#x2B;accurate_rnd&#x2B;full_chroma_int \&#xA;    -color_trc 1 \&#xA;    -colorspace 1 \&#xA;    -color_primaries 1 \&#xA;    -filter_complex veai_up=model=prob-3:scale=0:w=1920:h=1080:preblur=0:noise=0:details=0:halo=0:blur=0:compression=0:estimate=20:device=0:vram=1:instances=1,scale=w=1920:h=1080:flags=lanczos:threads=0,scale=out_color_matrix=bt709 \&#xA;    -c:v prores_videotoolbox \&#xA;    -profile:v lt \&#xA;    -pix_fmt p210le \&#xA;    -allow_sw 1 \&#xA;    -map_metadata 0 \&#xA;    -movflags frag_keyframe&#x2B;empty_moov&#x2B;delay_moov&#x2B;use_metadata_tags&#x2B;write_colr \&#xA;    -map_metadata:s:v 0:s:v \&#xA;    -map_metadata:s:a 0:s:a \&#xA;    -c:a aac \&#xA;    "encoded/${f%.*}.mp4”;&#xA;done&#xA;

    &#xA;

    I have a feeling it's something really simple I'm missing but I've gone through it a dozen times and can't seem to modify in any way to success.

    &#xA;

    Thank you !

    &#xA;

    Getting dumped back to ">" terminal prompt.

    &#xA;

  • How do you run ffmpeg from Java, without crashing ?

    30 juin 2024, par WinnieTheDampoeh

    I try running ffmpeg from Java, and for a couple of moments everything is working fine. I want ffmpeg to record my screen, and split the recording into small clips. The command is working fine from the terminal, but when I run it from Java I get at most 3 clips. Ffmpeg doesn't write anything to the InputStream, so I have no idea what's going wrong.

    &#xA;

    public static void execute(int frameRate, int width, int height, String windowTitle) {&#xA;      String[] args = new String[]{&#xA;              path,&#xA;              "-hide_banner",&#xA;              "-f", "gdigrab",&#xA;              "-thread_queue_size", "1024",&#xA;              "-rtbufsize", "256M",&#xA;              "-framerate", "" &#x2B; frameRate,&#xA;              "-offset_x", "0",&#xA;              "-offset_y", "0",&#xA;              "-video_size", "" &#x2B; width &#x2B; "x" &#x2B; height,&#xA;              "-draw_mouse", "1",&#xA;              "-i", "title=" &#x2B; windowTitle,&#xA;              "-c:v", "libx264",&#xA;              "-r", "" &#x2B; frameRate,&#xA;              "-preset", "ultrafast",&#xA;              "-tune", "zerolatency",&#xA;              "-crf", "28",&#xA;              "-pix_fmt", "yuv420p",&#xA;              "-movflags", "&#x2B;faststart",&#xA;              "-y",&#xA;              "-f", "segment",&#xA;              "-reset_timestamps", "1",&#xA;              "-segment_time", "1",&#xA;              "output%06d.mp4"&#xA;      };&#xA;&#xA;      try {&#xA;          Process p = Runtime.getRuntime().exec(args);&#xA;          Thread thread = new Thread(() -> {&#xA;              String line;&#xA;              BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));&#xA;&#xA;              System.out.println("TEST");&#xA;              try {&#xA;                  while ((line = input.readLine()) != null)&#xA;                      System.out.println(line);&#xA;&#xA;                  System.out.println("Stopping with reading");&#xA;                  input.close();&#xA;              } catch (IOException e) {&#xA;                  e.printStackTrace();&#xA;              }&#xA;          });&#xA;          int exitCode = p.waitFor();&#xA;          thread.start();&#xA;          thread.join();&#xA;          if (exitCode != 0) {&#xA;              throw new RuntimeException("FFmpeg exited with code " &#x2B; exitCode);&#xA;          }&#xA;      } catch (IOException | InterruptedException e) {&#xA;          throw new RuntimeException(e);&#xA;      }&#xA;  }&#xA;

    &#xA;

    I've run the same command in the terminal. That worked fine. I ran the code above, but that resulted in ffmpeg stopping after 3 clips. It kept showing as working from the task manager. As said before, ffmpeg doesn't write anything to the InputStream, even though it normally does write a lot in the terminal. The weird thing is, when I stop my Java program, but accidentally keep ffmpeg running, it suddenly does everything I wanted it to. It didn't capture the things between stopping and closing Java, but after that it continues like it should have.

    &#xA;