Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (39)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

Sur d’autres sites (6168)

  • FFMPEG "Could not allocate memory" Errors through php

    10 décembre 2019, par Applepiee

    I’ve tried to find a solution online for days now but cannot find any solution.

    I just switched server (Intel Xeon to AMD) and since the switch I’ve not been able to get ffmpeg conversions working through the php script. ffmpeg was the exact same version and all php settings are set.

    All commands that the script executes (copied from log files) were tried in shell and executed with no problems.

    The errors look like this :

    [124] =>       handler_name    : Video Media Handler
       [125] =>     Stream #8:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
       [126] =>     Metadata:
       [127] =>       handler_name    : Sound Media Handler
       [128] => Stream mapping:
       [129] =>   Stream #0:0 (h264) -> concat:in0:v0
       [130] =>   Stream #1:0 (h264) -> concat:in1:v0
       [131] =>   Stream #2:0 (h264) -> concat:in2:v0
       [132] =>   Stream #3:0 (h264) -> concat:in3:v0
       [133] =>   Stream #4:0 (h264) -> concat:in4:v0
       [134] =>   Stream #5:0 (h264) -> concat:in5:v0
       [135] =>   Stream #6:0 (h264) -> concat:in6:v0
       [136] =>   Stream #7:0 (h264) -> concat:in7:v0
       [137] =>   scale -> Stream #0:0 (libvpx)
       [138] => Press [q] to stop, [?] for help
       [139] => [h264 @ 0x34f1dc0] get_buffer() failed
       [140] => [h264 @ 0x34f1dc0] thread_get_buffer() failed
       [141] => [h264 @ 0x34f1dc0] decode_slice_header error
       [142] => [h264 @ 0x34f1dc0] no frame!
       [143] => [h264 @ 0x350e680] Error splitting the input into NAL units.
       [144] => [h264 @ 0x352af40] Cannot allocate memory.
       [145] => [h264 @ 0x352af40] Could not allocate memory
       [146] => [h264 @ 0x352af40] h264_slice_header_init() failedError while decoding stream #0:0: Cannot allocate memory
       [147] => [h264 @ 0x352af40] Cannot allocate memory.
       [148] => [h264 @ 0x352af40] Could not allocate memory
       [149] => [h264 @ 0x352af40] h264_slice_header_init() failedError while decoding stream #0:0: Cannot allocate memory
       [150] => [h264 @ 0x352af40] Cannot allocate memory.
       [151] => [h264 @ 0x352af40] Could not allocate memory
       [152] => [h264 @ 0x352af40] h264_slice_header_init() failedError while decoding stream #0:0: Cannot allocate memory
       [153] => [h264 @ 0x352af40] Cannot allocate memory.
       [154] => [h264 @ 0x352af40] Could not allocate memory
       [155] => [h264 @ 0x352af40] h264_slice_header_init() failedError while decoding stream #0:0: Cannot allocate memory
       [156] => [h264 @ 0x352af40] Cannot allocate memory.
       [157] => [h264 @ 0x352af40] Could not allocate memory
    ...
    ..
     [211519] => [h264 @ 0x886a3c0] h264_slice_header_init() failedToo many errors when draining, this is a bug. Stop draining and force EOF.
       [211520] => Error while decoding stream #7:0: Internal bug, should not have happened
       [211521] => Cannot allocate memory.
       [211522] => sws: initFilter failed
       [211523] => [Parsed_scale_1 @ 0x8e0be40] Failed to configure output pad on Parsed_scale_1
       [211524] => Error reinitializing filters!
       [211525] => Error while filtering: Operation not permitted
       [211526] => Finishing stream 0:0 without any data written to it.
       [211527] => [libvpx @ 0x6f4c600] v1.8.1-301-g89375f031
       [211528] => Output #0, webm, to '/home/website/public_html/media/videos/tmb/2420/video_copy.webm':
       [211529] =>   Metadata:
       [211530] =>     major_brand     : isom
       [211531] =>     minor_version   : 512
       [211532] =>     compatible_brands: isomiso2avc1mp41
       [211533] =>     title           : Aibeya The Animation
       [211534] =>     encoder         : Lavf58.35.100
       [211535] =>     Chapter #0:0: start 0.000000, end 102.102000
       [211536] =>     Metadata:
       [211537] =>       title           : Intro
       [211538] =>     Chapter #0:1: start 102.102000, end 110.369000
       [211539] =>     Metadata:
       [211540] =>       title           : Title
       [211541] =>     Chapter #0:2: start 110.369000, end 312.179000
       [211542] =>     Metadata:
       [211543] =>       title           : Part 1
       [211544] =>     Chapter #0:3: start 312.179000, end 548.415000
       [211545] =>     Metadata:
       [211546] =>       title           : Part 2
       [211547] =>     Chapter #0:4: start 548.415000, end 706.831000
       [211548] =>     Metadata:
       [211549] =>       title           : Part 3
       [211550] =>     Chapter #0:5: start 706.831000, end 1011.052000
       [211551] =>     Metadata:
       [211552] =>       title           : Part 4
       [211553] =>     Chapter #0:6: start 1011.052000, end 1198.823000
       [211554] =>     Metadata:
       [211555] =>       title           : Part 5
       [211556] =>     Chapter #0:7: start 1198.823000, end 1501.408000
       [211557] =>     Metadata:
       [211558] =>       title           : Part 6
       [211559] =>     Chapter #0:8: start 1501.408000, end 1579.945000
       [211560] =>     Metadata:
       [211561] =>       title           : Part 7
       [211562] =>     Chapter #0:9: start 1579.945000, end 1654.293000
       [211563] =>     Metadata:
       [211564] =>       title           : Ending
       [211565] =>     Stream #0:0: Video: vp8 (libvpx), yuv420p, 400x240 [SAR 837:785 DAR 279:157], q=10-42, 250 kb/s, 23.98 fps, 1k tbn, 23.98 tbc (default)
       [211566] =>     Metadata:
       [211567] =>       encoder         : Lavc58.64.101 libvpx
       [211568] =>     Side data:
       [211569] =>       cpb: bitrate max/min/avg: 0/0/0 buffer size: 600000 vbv_delay: N/A
       [211570] => frame=    0 fps=0.0 q=0.0 Lsize=       1kB time=00:00:00.00 bitrate=N/A speed=   0x
       [211571] => video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
       [211572] => Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
       [211573] => Conversion failed!
    )

    Command example used :

    ffmpeg_command is /usr/local/bin/ffmpeg -ss 100 -t 1 -i /home/website/public_html/media/videos/iphone/2407.mp4 -ss 197 -t 2 -i /home/website/public_html/media/videos/iphone/2407.mp4 -ss 294 -t 3 -i /home/website/public_html/media/videos/iphone/2407.mp4 -ss 391 -t 3 -i /home/website/public_html/media/videos/iphone/2407.mp4 -ss 488 -t 3 -i /home/website/public_html/media/videos/iphone/2407.mp4 -ss 585 -t 3 -i /home/website/public_html/media/videos/iphone/2407.mp4 -ss 682 -t 3 -i /home/website/public_html/media/videos/iphone/2407.mp4 -ss 779 -t 3 -i /home/website/public_html/media/videos/iphone/2407.mp4 -ss 876 -t 3 -i /home/website/public_html/media/videos/iphone/2407.mp4 -filter_complex "[0][1][2][3][4][5][6][7]concat=n=8:v=1:a=0",scale=400:240 -codec:v libx264 -unsharp -b:v 250k -maxrate 250k -bufsize 600k -qmin 10 -qmax 42 -threads 4 -an -y /home/website/public_html/media/videos/tmb/2407/video_copy.mp4

    PHP Info :
    PHP 5.6
    memory_limit 2001M
    max_execution_time 7200
    upload_max_filesize 2000M
    post_max_size 2000M
    max_input_time 7200
    exec is not disabled

    Server info
    CentOS Linux 7 (Core)
    ADVANCE-4 - AMD Epyc 7351P - 128GB DDR4 ECC 2400MHz - 2x HDD SATA 4TB Datacenter Class + 2x SSD NVMe 500GB Enterprise Class Soft RAID

    All help is really appreciated ! Thanks in advance

  • How to fix "Non-monotonous DTS in output stream 0:1" when trying to convert a m3u8 file into a mp4 using ffmpeg

    23 mars 2019, par Alessandro Autiero

    I’m currently coding a desktop util that downloads Twich Clips if they meet some requirements. As the twitch api gives as a response a m3u8 file, I have to convert it into a mp4. To do with I’m executing a cmd command through my Java application using the ProcessBuilder API built into Java. The command works fine, but sometimes I get a buggy video that has broken frames and audio. Here’s my code :

    public static void convertFile(File input, File output) {
       String command = "ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -vsync 2 -i \"" + input.getAbsolutePath() + "\" -c copy " + "\"" + output.getAbsolutePath() + "\"";
       System.out.println("______________________________________________________");
       System.out.println("Converting file...");
       System.out.println("Using as input " + input.getAbsolutePath());
       System.out.println("Using as output " + output.getAbsolutePath());
       System.out.println("Using as command: " + command);
       System.out.println("______________________________________________________");
       setHasDone(false);

       ProcessBuilder pb = new ProcessBuilder();
       pb.command(command.split(" "));

       pb.redirectOutput(ProcessBuilder.Redirect.INHERIT);
       pb.redirectError(ProcessBuilder.Redirect.INHERIT);

       Process process;
       try {
           process = pb.start();
       }catch (IOException e){
           e.printStackTrace();
           return;
       }

       while (process.isAlive()){
           setHasDone(false);
       }

       setHasDone(true);
    }

    Example of broken video :
    https://youtu.be/FfFvStNl-9o

    When uploaded to youtube lot’s of the video bugs are not present, not really know why, but at the end you can clearly see what I’m talking about. Am I using ffmepg wrong ?

    I posted this as none of the 1000 answers on similar posts helped me.

  • ffmpeg issues "501 Not Implemented" while recording an RTSP stream

    28 février 2019, par atsushi

    I have a 4K camera (Sony SNC-VB770) streaming RTSP.

    I’m trying to record the stream into files (each has handy length, say, 1hour)
    using a simple script to repeatedly launch ffmpeg (ver 4.1) :

    while : ; do
     # (set $url and $outfile, and then)
     ffmpeg -rtsp_transport tcp -t 3600 -y -i $url -c copy -map 0:0 -b:v 16000k $outfile
    done

    If I run the script on a local PC directly connected to the camera, it works (longer than a week, at least).
    However, if I do the same on a server machine located in a data center, it fails randomly with no error message.
    Sometimes it runs for a few days, sometimes it dies in one minutes.

    Typical output looks like the following :

    # devname: snc-vb770
    # url: rtsp://10.40.35.90/media/video1
    # vb: 16000k
    # datefmt %d%H
    # addtimestamp 0
    no timestamp
    ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
     configuration: --prefix=/usr/local/ffmpeg-4.1 --enable-openssl --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-libx264 --enable-libvorbis --enable-filter=drawtext --enable-libfreetype --enable-libfribidi --enable-fontconfig
     libavutil      56. 22.100 / 56. 22.100
     libavcodec     58. 35.100 / 58. 35.100
     libavformat    58. 20.100 / 58. 20.100
     libavdevice    58.  5.100 / 58.  5.100
     libavfilter     7. 40.101 /  7. 40.101
     libswscale      5.  3.100 /  5.  3.100
     libswresample   3.  3.100 /  3.  3.100
     libpostproc    55.  3.100 / 55.  3.100
    Input #0, rtsp, from 'rtsp://10.40.35.90/media/video1':
     Metadata:
       title           : Sony RTSP Server
     Duration: N/A, start: 0.066667, bitrate: N/A
       Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 14.99 fps, 14.99 tbr, 90k tbn, 29.97 tbc
    Output #0, mp4, to './2811.mp4':
     Metadata:
       title           : Sony RTSP Server
       encoder         : Lavf58.20.100
       Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 16000 kb/s, 14.99 fps, 14.99 tbr, 90k tbn, 90k tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    [mp4 @ 0x24e4ec0] 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
    [mp4 @ 0x24e4ec0] pts has no value
    [mp4 @ 0x24e4ec0] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
    frame=   33 fps=0.0 q=-1.0 size=    1792kB time=00:00:02.00 bitrate=7332.9kbits/s speed=3.57x
    ...
    frame=  104 fps=8.4 q=-1.0 Lsize=    6532kB time=00:00:06.74 bitrate=7939.6kbits/s speed=0.548x
    video:6531kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.023506%

    I’ve looked into RTSP packet and found an "RTSP/1.0 501 Not Implemented" is sent from ffmpeg to the camera.
    After that the camera eventually sent back "RTSP/1.0 505 RTSP Version not supported" and then ffmpeg quits shortly.

    The "501" packet seems to be generated by libavformat/rtsp.c:ff_rtsp_read_reply(),
    when ffmpeg receive a malformed RTSP packet with method=(null), status_code=0.
    I don’t know why such packets arrive at random timing and who is wrong (maybe the camera, maybe any of network switches or routers in the middle of the network path from the camera to the server machine).
    But anyway, I don’t want the recording to be stopped
    due to those malformed packets.

    Is there any workaround to make ffmpeg ignore invalid RTSP packets and just continue the recording ?

    Additional information :

    • I’ve tested the recording with both ffmpeg ver4.1 and 2.8.4 and no difference observed.

    • No difference observed at lower resolution nor at lower bitrate.

    • I have 3 cameras from various manufacturers in the same network environment.
      All of the three are working without problem for more than a month.
      Only the Sony SNC-VB770 shows the strange behavior.