Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (78)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (10537)

  • Does there exist fonts that supprot all languages in the FFmpeg ?

    20 novembre 2024, par phil lx

    I encountered an issue while using FFmpeg to composite a video. After analyzing the user's request, I discovered that the subtitles included Korean text, which caused the process to hang. To address this, I downloaded a Korean font and placed it in the server's fonts directory. This resolved the problem temporarily.

    


    However, this solution is not comprehensive. Another user later requested a video that included traditional Chinese characters, which caused the process to hang again.

    


    成吉思汗,传统蒙古文写作ᠴᠢᠩᠭᠢᠰ ᠬᠠᠭᠠᠨ,拉丁蒙古文写作Činggis Qaγan,西里尔蒙古文写作Чингис Хаан,他是蒙古族乞颜部人

    


    I would like to know if there is a universal font style that supports all languages to prevent such issues in the future.

    


    For reference, I currently use the Alibaba PuHuiTi font, which I downloaded from this link : https://www.zitijia.com/downloadpage?itemid=250417369808129081.

    


    Here is the relevant portion of my code :

    


    filters1 = []
    filters1.append(f"[0:v]crop={int(0.8*width)}:{int(0.8*height)}:{int(0.1*width)}:0,scale={width}:{height}[vout]")
    if add_sub == 1:
        filters1.append(f"[vout]subtitles={srt_path}:force_style='Fontname=Alibaba PuHuiTi,Fontsize={font_size},PrimaryColour={font_color},OutlineColour={font_border_color},MarginV={font_position*(288-font_size)}'[vout]")

    filter_complex1 = ';'.join(filters1)

    command = [
        'ffmpeg',
        '-y',  # 覆盖输出文件
        '-threads', '12',
        # '-loglevel', 'error',
        
        # 第一个输入
        '-f', 'rawvideo',  # 输入为原始视频数据
        '-vcodec', 'rawvideo',
        '-s', f'{width}x{height}',  # 图像尺寸
        '-pix_fmt', 'rgb24',  # 输入像素格式
        '-r', '30',  # 帧率
        '-i', '-',  # 输入从stdin

        # 复杂过滤器
        '-filter_complex', filter_complex1,

        # 映射输出流
        '-map', '[vout]',  # 使用裁剪后的视频
        # '-map', '[audio_out]',  # 使用混合后的音频

        # 输出选项
        '-vcodec', 'h264_nvenc',  # 输出视频编码
        '-pix_fmt', 'yuv420p',  # 输出像素格式
        # '-acodec', 'aac',  # 输出音频编码
        '-strict', 'experimental',  # 兼容性模式

        # 输出文件
        video_withoutspeed_path
    ]


    


    As shown above. hey-hey-hey

    


  • How do I configure codec parameters for a RTSP stream ?

    16 mai 2024, par Kermit

    I am trying to stream a network camera source into /dev/video0. However, all attempts keep telling me I have set incorrect codec parameters. Any suggestions ?

    


    # works
ffplay rtsp://admin:password@172.16.0.184:554/live


    


    Then trying any of these to feed into /dev/video0 (valid from list of ls /dev/video*) :

    


    ffmpeg -rtsp_transport tcp -i "rtsp://admin:password@172.16.0.184:554/live" -c:v rawvideo -pix_fmt yuv420p -f v4l2 /dev/video0


    


    Results in

    


    ffmpeg version 5.1.4-0+rpt3+deb12u1 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr --extra-version=0+rpt3+deb12u1 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, rtsp, from 'rtsp://admin:password@172.16.0.184:554/live':
  Metadata:
    title           : Media Server
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: hevc (Main), yuv420p(tv), 3840x2160, 30 fps, 100 tbr, 90k tbn
  Stream #0:1: Audio: aac (LC), 32000 Hz, mono, fltp
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> rawvideo (native))
Press [q] to stop, [?] for help
[video4linux2,v4l2 @ 0x55562d9faa70] ioctl(VIDIOC_G_FMT): Invalid argument
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 -- 
Conversion failed!


    


  • where to save mpd file in raspberry pi so dash.js can access it remotely ?

    11 mai 2016, par Djm

    This is very high level question. I want to stream a live video from raspberry pi. I want to be able to watch live video in the browser remotely being streamed by the Raspberry pi.I want to use DASH stream protocol, and Dash.js as client to HTML5. I have looked through different tutorials but i am still puzzled about how this works.I understand that (assuming you have already prepared your videos with FFMPEG tool) from the client Dash.js
    you have to make a call/request and pass a url to your mpd file. My question is where would you save the file in raspberry pi especially if the Dash client is in a different web app(i want to make the call remotely) ?