Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (78)

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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (4019)

  • Ffmpeg RTSP stream with size=N/A bitrate=N/A [closed]

    6 octobre 2024, par Comycos

    When I try to stream a video it seems to work but bitrate and size are N/A frame=  277 fps= 26 q=-1.0 size=N/A time=00:00:11.07 bitrate=N/A speed=1.05x

    &#xA;

    I run the following command to stream a video to a RTSP server :&#xA;ffmpeg -re -stream_loop -1 -i idurre-2024-09-17-12h33m19s.mp4 -c copy -f rtsp -rtsp_transport tcp rtsp://localhost:8554/test

    &#xA;

    The output ffmpeg is like this :

    &#xA;

    ffmpeg version 7.1 Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with Apple clang version 15.0.0 (clang-1500.1.0.2.5)&#xA;  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags=&#x27;-Wl,-ld_classic&#x27; --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon&#xA;  libavutil      59. 39.100 / 59. 39.100&#xA;  libavcodec     61. 19.100 / 61. 19.100&#xA;  libavformat    61.  7.100 / 61.  7.100&#xA;  libavdevice    61.  3.100 / 61.  3.100&#xA;  libavfilter    10.  4.100 / 10.  4.100&#xA;  libswscale      8.  3.100 /  8.  3.100&#xA;  libswresample   5.  3.100 /  5.  3.100&#xA;  libpostproc    58.  3.100 / 58.  3.100&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x127704880] st: 0 edit list: 1 Missing key frame while searching for timestamp: 0&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x127704880] st: 0 edit list 1 Cannot find an index entry before timestamp: 0.&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;idurre-2024-09-17-12h33m19s.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 0&#xA;    compatible_brands: mp41avc1&#xA;    creation_time   : 2024-09-17T10:34:16.000000Z&#xA;    encoder         : vlc 3.0.21 stream output&#xA;    encoder-eng     : vlc 3.0.21 stream output&#xA;  Duration: 00:00:55.68, start: 0.000000, bitrate: 16205 kb/s&#xA;  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 1920x1080, 16203 kb/s, 25 fps, 25 tbr, 1000k tbn (default)&#xA;      Metadata:&#xA;        creation_time   : 2024-09-17T10:34:16.000000Z&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (copy)&#xA;Output #0, rtsp, to &#x27;rtsp://localhost:8554/test&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 0&#xA;    compatible_brands: mp41avc1&#xA;    encoder         : Lavf61.7.100&#xA;  Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 1920x1080, q=2-31, 16203 kb/s, 25 fps, 25 tbr, 90k tbn (default)&#xA;      Metadata:&#xA;        creation_time   : 2024-09-17T10:34:16.000000Z&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;Press [q] to stop, [?] for help&#xA;frame=  516 fps= 26 q=-1.0 size=N/A time=00:00:20.63 bitrate=N/A speed=1.03x    &#xA;&#xA;[q] command received. Exiting.&#xA;&#xA;[out#0/rtsp @ 0x6000008e0240] video:40672KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown&#xA;frame=  528 fps= 26 q=-1.0 Lsize=N/A time=00:00:21.11 bitrate=N/A speed=1.02x    &#xA;

    &#xA;

    The server I'm streaming to is a MediaMTX which is supposed to receive the stream. It seems to be connected as it logs it :

    &#xA;

    mediamtx-rtsp  | 2024/10/06 10:35:13 INF MediaMTX v1.9.0&#xA;mediamtx-rtsp  | 2024/10/06 10:35:13 INF configuration loaded from /mediamtx.yml&#xA;mediamtx-rtsp  | 2024/10/06 10:35:13 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)&#xA;mediamtx-rtsp  | 2024/10/06 10:35:13 INF [SRT] listener opened on :8890 (UDP)&#xA;mediamtx-rtsp  | 2024/10/06 10:35:16 INF [RTSP] [conn 192.168.65.1:17069] opened&#xA;mediamtx-rtsp  | 2024/10/06 10:35:16 INF [RTSP] [session b3bb2623] created by 192.168.65.1:17069&#xA;mediamtx-rtsp  | 2024/10/06 10:35:16 INF [RTSP] [session b3bb2623] is publishing to path &#x27;test&#x27;, 1 track (H264)&#xA;

    &#xA;

    But when I try to read it with ffplay nothing is showing...

    &#xA;

  • FFmpeg - record from stream terminating unexpectedly using kokorin/Jaffree ffmpeg wrapper for Java

    18 avril 2024, par pyrmon

    I am programming a Spring Boot Application using Maven and Java 21. I am trying to record a stream from a url and save it to a mkv file. I intend to do this with kokorin/Jaffree in version 2023.09.10. The recording seems to work ok, however longer videos are terminating unexpectedly. Sometimes after 5 minutes, other times an hour or even longer. Sometimes with Exit Code 0 and sometimes with 1.

    &#xA;

    I have implemented the recording like this :

    &#xA;

    @Override&#xA;    public void startRecording(RecordingSchedule recordingSchedule) {&#xA;        logger.info("Starting recording for schedule with filename {}", recordingSchedule.getFileName());&#xA;&#xA;        String m3uUrl = recordingSchedule.getM3uUrl();&#xA;        LocalDateTime endTime = timeUtils.parseStringToLocalDateTime(recordingSchedule.getEndTime());&#xA;        LocalDateTime stopTime = endTime.plusSeconds(20);&#xA;        String timeToRecord = timeUtils.calculateTimeToRecord(stopTime);&#xA;        Path outputPath = Paths.get("/recordings/" &#x2B; recordingSchedule.getFileName());&#xA;&#xA;        try {&#xA;            FFmpeg.atPath()&#xA;                  .addInput(UrlInput.fromUrl(m3uUrl))&#xA;                  .addArgument("-xerror")&#xA;                  .addArguments("-reconnect", "5")&#xA;                  .addArguments("-reconnect_streamed", "5")&#xA;                  .addArguments("-reconnect_delay_max", "20")&#xA;                  .addArguments("-t", timeToRecord)&#xA;                  .addArguments("-c", "copy")&#xA;                  .addOutput(&#xA;                      UrlOutput.toPath(outputPath))&#xA;                  .setLogLevel(LogLevel.WARNING)&#xA;                  .execute();&#xA;            logger.info("Recording complete. Output file: {}", outputPath.toAbsolutePath());&#xA;        } catch (Exception e) {&#xA;            logger.error("Error recording M3U stream {}: {}", recordingSchedule.getFileName(), e.getMessage());&#xA;        }&#xA;    }&#xA;

    &#xA;

    And I am calling the method like this :&#xA;executorConfig.executorService().submit(() -> ffmpegService.startRecording(recording));

    &#xA;

    Any ideas what I am doing wrong ?&#xA;Here are the log lines at the beginning and end of recording of the past two attempts :

    &#xA;

    2024-04-18T00:54:48.689&#x2B;02:00  INFO 1 --- [pool-2-thread-1] m.s.r.service.impl.FfmpegServiceImpl     : Starting recording for schedule with filename Example1.mkv&#xA;2024-04-18T00:54:48.697&#x2B;02:00  WARN 1 --- [pool-2-thread-1] c.github.kokorin.jaffree.ffmpeg.FFmpeg   : ProgressListener isn&#x27;t set, progress won&#x27;t be reported&#xA;2024-04-18T00:54:48.698&#x2B;02:00  INFO 1 --- [pool-2-thread-1] c.g.k.jaffree.process.ProcessHandler     : Command constructed:&#xA;ffmpeg -loglevel level&#x2B;warning -i http://example.stream.url.com -n -xerror -reconnect 5 -reconnect_streamed 5 -reconnect_delay_max 20 -t 10771 -c copy /recordings/Example1.mkv&#xA;2024-04-18T00:54:48.698&#x2B;02:00  INFO 1 --- [pool-2-thread-1] c.g.k.jaffree.process.ProcessHandler     : Starting process: ffmpeg&#xA;2024-04-18T00:54:48.701&#x2B;02:00  INFO 1 --- [pool-2-thread-1] c.g.k.jaffree.process.ProcessHandler     : Waiting for process to finish&#xA;2024-04-18T01:31:02.633&#x2B;02:00  WARN 1 --- [         StdErr] c.g.k.jaffree.process.BaseStdReader      : [h264 @ 0x559cd22dd940] [warning] Increasing reorder buffer to 2&#xA;2024-04-18T01:31:02.633&#x2B;02:00  INFO 1 --- [pool-2-thread-1] c.g.k.jaffree.process.ProcessHandler     : Process has finished with status: 0&#xA;2024-04-18T01:31:02.734&#x2B;02:00  INFO 1 --- [pool-2-thread-1] m.s.r.service.impl.FfmpegServiceImpl     : Recording complete. Output file: /recordings/Example1.mkv&#xA;&#xA;2024-04-18T03:54:48.678&#x2B;02:00  INFO 1 --- [pool-2-thread-2] m.s.r.service.impl.FfmpegServiceImpl     : Starting recording for schedule with filename Example2.mkv&#xA;2024-04-18T03:54:48.678&#x2B;02:00  WARN 1 --- [pool-2-thread-2] c.github.kokorin.jaffree.ffmpeg.FFmpeg   : ProgressListener isn&#x27;t set, progress won&#x27;t be reported&#xA;2024-04-18T03:54:48.678&#x2B;02:00  INFO 1 --- [pool-2-thread-2] c.g.k.jaffree.process.ProcessHandler     : Command constructed:&#xA;ffmpeg -loglevel level&#x2B;warning -i http://example.stream.url.com/ -n -xerror -reconnect 5 -reconnect_streamed 5 -reconnect_delay_max 20 -t 11431 -c copy /recordings/Example2.mkv&#xA;2024-04-18T03:54:48.678&#x2B;02:00  INFO 1 --- [pool-2-thread-2] c.g.k.jaffree.process.ProcessHandler     : Starting process: ffmpeg&#xA;2024-04-18T03:54:48.679&#x2B;02:00  INFO 1 --- [pool-2-thread-2] c.g.k.jaffree.process.ProcessHandler     : Waiting for process to finish&#xA;2024-04-18T04:57:22.256&#x2B;02:00  WARN 1 --- [         StdErr] c.g.k.jaffree.process.BaseStdReader      : [h264 @ 0x55707ba988c0] [warning] Increasing reorder buffer to 3&#xA;2024-04-18T04:58:47.455&#x2B;02:00 ERROR 1 --- [         StdErr] c.g.k.jaffree.process.BaseStdReader      : [NULL @ 0x55707ba988c0] [error] Picture timing SEI payload too large&#xA;2024-04-18T04:58:47.456&#x2B;02:00 ERROR 1 --- [         StdErr] c.g.k.jaffree.process.BaseStdReader      : [NULL @ 0x55707ba988c0] [error] non-existing PPS 1 referenced&#xA;2024-04-18T04:58:47.456&#x2B;02:00  WARN 1 --- [         StdErr] c.g.k.jaffree.process.BaseStdReader      : [matroska @ 0x55707ba9a380] [warning] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly&#xA;2024-04-18T04:58:47.456&#x2B;02:00 ERROR 1 --- [         StdErr] c.g.k.jaffree.process.BaseStdReader      : [matroska @ 0x55707ba9a380] [error] Can&#x27;t write packet with unknown timestamp&#xA;2024-04-18T04:58:47.463&#x2B;02:00 ERROR 1 --- [         StdErr] c.g.k.jaffree.process.BaseStdReader      : [error] av_interleaved_write_frame(): Invalid argument&#xA;2024-04-18T04:58:47.463&#x2B;02:00  INFO 1 --- [pool-2-thread-2] c.g.k.jaffree.process.ProcessHandler     : Process has finished with status: 1&#xA;2024-04-18T04:58:47.564&#x2B;02:00 ERROR 1 --- [pool-2-thread-2] m.s.r.service.impl.FfmpegServiceImpl     : Error recording M3U stream Example2.mkv: Process execution has ended with non-zero status: 1. Check logs for detailed error message.&#xA;

    &#xA;

    They were supposed to run nearly 3 hours and the other one over 3 hours. And with the timestamps you can see that they are not running nearly as long.&#xA;Thank you for your help !

    &#xA;

  • FFMPEG - copy the SPECIFED tracks only, ignore all others

    10 janvier 2024, par GDP

    I have some very strange MP4 files that we get regularly for processing created by Wowza. Neither FFMPEG or MEDIAINFO can detect that there are subtitles soft-coded in them, but they ARE there, I can extract them with ccextractor, and when they're played, the captions appear later in the video where the actually start in the timeline.

    &#xA;

    I've tried every variation of copying with/without re-encoding, but all the answers show how to "omit" the subtitles with -sn such as these :

    &#xA;

     ffmpeg -i 3078.mp4 -c copy -sn 3078_sn.mp4&#xA; ffmpeg -i 3078.mp4 -c:v libx264 -c:a ac3 -map 0:v:0 -map 0:a:1 3078_sn.mp4&#xA; ffmpeg -i 3078.mp4 -map 0:v:0 -map 0:a:0  -map -0:s -map -0:d  -c copy 3078_sn2.mp4 -y&#xA;

    &#xA;

    FFprobe :

    &#xA;

    ffprobe 3078.mp4 -hide_banner&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001ef2bcd9e00] multiple fourcc not supported&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;3078.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : f4v&#xA;    minor_version   : 0&#xA;    compatible_brands: isommp42m4v&#xA;    creation_time   : 2024-01-09T19:59:28.000000Z&#xA;  Duration: 02:17:18.47, start: 0.000000, bitrate: 2165 kb/s&#xA;  Stream #0:0[0x1](eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 1902 kb/s, 29.96 fps, 29.97 tbr, 90k tbn (default)&#xA;    Metadata:&#xA;     creation_time   : 2024-01-09T19:59:28.000000Z&#xA;     handler_name    : WowzaStreamingEngine&#xA;     vendor_id       : [0][0][0][0]&#xA;     encoder         : WowzaStreamingEngine&#xA;  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 257 kb/s (default)&#xA;    Metadata:&#xA;     creation_time   : 2024-01-09T19:59:28.000000Z&#xA;     handler_name    : WowzaStreamingEngine&#xA;     vendor_id       : [0][0][0][0]&#xA;  Stream #0:2[0x3](eng): Data: none (amf0 / 0x30666D61), 1 kb/s (default)&#xA;    Metadata:&#xA;     creation_time   : 2024-01-09T19:59:28.000000Z&#xA;     handler_name    : WowzaStreamingEngine&#xA;Unsupported codec with id 0 for input stream 2&#xA;

    &#xA;

    The problem seems to be that FFMPEG isn't detecting they're there, and so copies them anyways. My assumption is that they're not stored in the header of the MP4 properly (or however that's done), so get because they're later detect, but weren't omitted when it checked the header (pure guesswork on that).

    &#xA;

    So, is there a way to copy ONLY the video, regardless of whatEVER tracks may or not be in the file, then do the same for audio, and then merge the two single-track files ?

    &#xA;