Recherche avancée

Médias (91)

Autres articles (60)

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

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • 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 (5068)

  • aacenc_tns : tune and reduce artifacts

    6 décembre 2015, par Rostislav Pehlivanov
    aacenc_tns : tune and reduce artifacts
    

    There are a couple of major changes here :

    1. Start using TNS coefficient compression.
    2. Start using 3 bits per coefficient maximum for short windows.
    The bits we save from these 2 changes seem to make a nice impact on the
    rest of the file/windows.

    3. Remove special case gain checking for short windows.
    4. Modify the coefficient loop to support up to 3 windows.
    The additional restrictions on TNS were something that was no in the
    specifications and furthermore restricting TNS to only low energy short
    windows was done to compensate for bugs elsewhere in the code.

    Overall, the improvements here reduce crackling artifacts heard in very
    noisy tracks.

    Signed-off-by : Rostislav Pehlivanov <atomnuker@gmail.com>

    • [DH] libavcodec/aacenc_tns.c
  • lavc/vaapi_hevc : fill rext luma/chroma offset in the right way

    10 juin 2022, par Xu Guangxin
    lavc/vaapi_hevc : fill rext luma/chroma offset in the right way
    

    For range extension, the luma/chroma offset is larger than 8 bits, we
    need fill the 16 bits version.

    Signed-off-by : Xu Guangxin <guangxin.xu@intel.com>
    Signed-off-by : Linjie Fu <linjie.justin.fu@gmail.com>
    Signed-off-by : Fei Wang <fei.w.wang@intel.com>

    • [DH] libavcodec/vaapi_hevc.c
  • FFMPEG hanging on a frame while streaming to YouTube (streaming incomplete video) - no errors

    12 janvier 2024, par ThePrince

    I have a Flask application that is running an FFMPEG command.

    &#xA;

      &#xA;
    1. I extract frames from a local video file (7 seconds long, 235 frames) and process each frame into a JPEG format. I then restream the images one by one to youtube through the pipe (stdin).
    2. &#xA;

    3. Simultaneously, I extract the video from the original file and I use -copy to just use the audio from the original file.
    4. &#xA;

    &#xA;

    Here is my command which I run in python :

    &#xA;

    command = [&#xA;    &#x27;ffmpeg&#x27;,&#xA;    &#x27;-loglevel&#x27;, &#x27;trace&#x27;,  # detailed log level&#xA;    &#xA;    # VIDEO STREAM&#xA;    &#x27;-f&#x27;, &#x27;image2pipe&#x27;,&#xA;    &#x27;-c:v&#x27;, &#x27;mjpeg&#x27;,&#xA;    &#x27;-i&#x27;, &#x27;-&#x27;,  &#xA;&#xA;    # AUDIO STREAM&#xA;    &#x27;-i&#x27;, f"{input_folder}{filename}",  &#xA;&#xA;    # MAPPING&#xA;    &#x27;-map&#x27;, &#x27;0:v&#x27;,  # video from the pipe&#xA;    &#x27;-map&#x27;, &#x27;1:a&#x27;,  # audio from original file&#xA;&#xA;    # OUTPUT STREAM&#xA;    &#x27;-c:v&#x27;, &#x27;libx264&#x27;,  # video codec&#xA;    &#x27;-c:a&#x27;, &#x27;copy&#x27;,  # copy from original&#xA;    &#xA;    &#x27;-f&#x27;, &#x27;flv&#x27;,&#xA;    f&#x27;{youtube_url}{stream_key}&#x27;&#xA;]&#xA;

    &#xA;

    I get all the debugging info in the console.&#xA;It stops on frame 179 out of 235 frames and just hangs there.

    &#xA;

    frame=  179 fps=4.2 q=28.0 size=    1020kB time=00:00:07.08 bitrate=1180.8kbits/s speed=0.165x&#xA;

    &#xA;

    Ignore the FPS and speed since these are just the effect of it hanging. The FPS and speed will decrease gradually each second that passes.

    &#xA;

    After I Ctrl+C out of it, I see that all 235 frames were encoded and only 180 were muxed.

    &#xA;

    I increased the buffer size in case that was the issue and it seemed to mux all of them, but the content was still cut short.

    &#xA;

    To be clear, in my YouTube stream I only got the first 5 out of 7 seconds of video before cutting off.

    &#xA;

    When I increased the buffer, it hung only on the very last frame... and showed no errors, but again the output video was 7 seconds and was cut short.

    &#xA;

    A typical output from the log is this :

    &#xA;

    [libx264 @ 0000021e913b67c0] frame= 233 QP=25.95 NAL=2 Slice:P Poc:106 I:21   P:310  SKIP:1289 size=3403 bytes&#xA;[mjpeg @ 0000021e913f9240] marker=d8 avail_size_in_buf=68061&#xA;[mjpeg @ 0000021e913f9240] marker parser used 0 bytes (0 bits)&#xA;[mjpeg @ 0000021e913f9240] marker=e0 avail_size_in_buf=68059&#xA;[mjpeg @ 0000021e913f9240] marker parser used 16 bytes (128 bits)&#xA;[mjpeg @ 0000021e913f9240] marker=db avail_size_in_buf=68041&#xA;[mjpeg @ 0000021e913f9240] index=0&#xA;[mjpeg @ 0000021e913f9240] qscale[0]: 3&#xA;[mjpeg @ 0000021e913f9240] marker parser used 67 bytes (536 bits)&#xA;[mjpeg @ 0000021e913f9240] marker=db avail_size_in_buf=67972&#xA;[mjpeg @ 0000021e913f9240] index=1&#xA;[mjpeg @ 0000021e913f9240] qscale[1]: 6&#xA;[mjpeg @ 0000021e913f9240] marker parser used 67 bytes (536 bits)&#xA;[mjpeg @ 0000021e913f9240] marker=c0 avail_size_in_buf=67903&#xA;[mjpeg @ 0000021e913f9240] sof0: picture: 852x480&#xA;[mjpeg @ 0000021e913f9240] component 0 2:2 id: 1 quant:0&#xA;[mjpeg @ 0000021e913f9240] component 1 1:1 id: 2 quant:1&#xA;[mjpeg @ 0000021e913f9240] component 2 1:1 id: 3 quant:1&#xA;[mjpeg @ 0000021e913f9240] pix fmt id 22111100&#xA;[mjpeg @ 0000021e913f9240] marker parser used 17 bytes (136 bits)&#xA;[mjpeg @ 0000021e913f9240] marker=c4 avail_size_in_buf=67884&#xA;[mjpeg @ 0000021e913f9240] class=0 index=0 nb_codes=12&#xA;[mjpeg @ 0000021e913f9240] marker parser used 31 bytes (248 bits)&#xA;[mjpeg @ 0000021e913f9240] marker=c4 avail_size_in_buf=67851&#xA;[mjpeg @ 0000021e913f9240] class=1 index=0 nb_codes=162&#xA;[mjpeg @ 0000021e913f9240] marker parser used 181 bytes (1448 bits)&#xA;[mjpeg @ 0000021e913f9240] marker=c4 avail_size_in_buf=67668&#xA;[mjpeg @ 0000021e913f9240] class=0 index=1 nb_codes=12&#xA;[mjpeg @ 0000021e913f9240] marker parser used 31 bytes (248 bits)&#xA;[mjpeg @ 0000021e913f9240] marker=c4 avail_size_in_buf=67635&#xA;[mjpeg @ 0000021e913f9240] class=1 index=1 nb_codes=162&#xA;[mjpeg @ 0000021e913f9240] marker parser used 181 bytes (1448 bits)&#xA;[mjpeg @ 0000021e913f9240] escaping removed 740 bytes&#xA;[mjpeg @ 0000021e913f9240] marker=da avail_size_in_buf=67452&#xA;[mjpeg @ 0000021e913f9240] component: 1&#xA;[mjpeg @ 0000021e913f9240] component: 2&#xA;[mjpeg @ 0000021e913f9240] component: 3&#xA;[mjpeg @ 0000021e913f9240] marker parser used 66711 bytes (533681 bits)&#xA;[mjpeg @ 0000021e913f9240] marker=d9 avail_size_in_buf=0&#xA;[mjpeg @ 0000021e913f9240] decode frame unused 0 bytes&#xA;[libx264 @ 0000021e913b67c0] frame= 234 QP=26.34 NAL=2 Slice:P Poc:108 I:23   P:368  SKIP:1229 size=3545 bytes&#xA;

    &#xA;

    There really are no errors other than not finding end of file when it hangs and I Ctrl+C.

    &#xA;

    I have tested the following :

    &#xA;

      &#xA;
    1. I decided to loop Frame #1 repeatedly to make sure it wasn't the actual frame content that was the issue (problem still remained).
    2. &#xA;

    3. I adjusted buffer size, fps, re, FPS on both sources and target.
    4. &#xA;

    5. I even switched to another video and it still hung.
    6. &#xA;

    7. When I tried a higher definition video it would hang at a later frame (since there were more frames to work with) but it still would hang close to the 5 second mark on a 7 second video.
    8. &#xA;

    9. I also changed the audio to a silent stream and it didn't work (same issue happened).
    10. &#xA;

    11. I even changed the output target to an actual mp4 file instead of a youtube stream, and the output video was cut off !
    12. &#xA;

    &#xA;

    Note : I notice the default FPS is 25 for the video stream, yet the original FPS from video was 30 FPS so I don't know if this might be causing the issue.

    &#xA;

    Guys I'm ready to throw in the towel here. I read the ffmpeg documentation in detail and nothing helped (also the online chatrooms for ffmpeg don't work). Looked at video tutorials and learned deeply about MPEG. I am lost for what to do and ready to move on to another tool.

    &#xA;