Recherche avancée

Médias (91)

Autres articles (104)

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

Sur d’autres sites (8600)

  • swscale/output : don't leave the alpha channel undefined in vuyx and xv36le

    13 août 2024, par James Almer
    swscale/output : don't leave the alpha channel undefined in vuyx and xv36le
    

    It's non-determistic, as shown by poisoning avfilter buffers instead of zeroing them.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libswscale/output.c
    • [DH] tests/ref/fate/filter-pixfmts-copy
    • [DH] tests/ref/fate/filter-pixfmts-crop
    • [DH] tests/ref/fate/filter-pixfmts-field
    • [DH] tests/ref/fate/filter-pixfmts-fieldorder
    • [DH] tests/ref/fate/filter-pixfmts-hflip
    • [DH] tests/ref/fate/filter-pixfmts-il
    • [DH] tests/ref/fate/filter-pixfmts-null
    • [DH] tests/ref/fate/filter-pixfmts-pad
    • [DH] tests/ref/fate/filter-pixfmts-scale
    • [DH] tests/ref/fate/filter-pixfmts-transpose
    • [DH] tests/ref/fate/filter-pixfmts-vflip
  • How to apply dynamic watermarking for users watching video in real-time ? [closed]

    3 janvier, par Barun Bhattacharjee

    I am working on a video streaming project where I need to apply a dynamic watermarking (e.g., username and email) in real-time for security purposes. The video is being streamed in DASH format, and the segment files are in .m4s format generated via FFmpeg.

    &#xA;

    Challenges :&#xA;Is it possible to directly apply dynamic watermarking to .m4s segment files ?

    &#xA;

    Video segments are generated using FFmpeg with the following command :

    &#xA;

    ffmpeg&#xA;    .input(video_path)&#xA;    .output(mpd_path,&#xA;            format=&#x27;dash&#x27;,&#xA;            map=&#x27;0&#x27;,&#xA;            video_bitrate=&#x27;2400k&#x27;,&#xA;            video_size=&#x27;1920x1080&#x27;,&#xA;            vcodec=&#x27;libx264&#x27;,&#xA;            seg_duration=&#x27;4&#x27;,  # Sets segment duration to 4 seconds&#xA;            acodec=&#x27;copy&#x27;)&#xA;    .run()&#xA;&#xA;

    &#xA;

    What I tried :&#xA;I attempted to use FFmpeg to apply a watermark dynamically to the .m4s files using the drawtext filter, but .m4s files are not always recognized as valid input for FFmpeg operations.

    &#xA;

    # FFmpeg command to add watermark to m4s file&#xA;try:&#xA;    # FFmpeg processing&#xA;    out, err = (&#xA;        ffmpeg&#xA;        .input(m4s_file_path)  # Input the segment file&#xA;        .filter(&#xA;            "drawtext",&#xA;            text=user_info,&#xA;            fontfile="font/dejavu-sans/DejaVuSans-Bold.ttf",&#xA;            fontsize=24,&#xA;            fontcolor="white",&#xA;            x=10,&#xA;            y=10&#xA;        )&#xA;        .output(&#xA;            "pipe:",  # Stream output as a byte stream&#xA;            format="mp4",  # Output format as MP4 (compatible with MPEG-DASH)&#xA;            vcodec="libx264",&#xA;            acodec="copy",&#xA;            movflags="frag_keyframe&#x2B;empty_moov"&#xA;        )&#xA;        .run(capture_stdout=True, capture_stderr=True)&#xA;    )&#xA;&#xA;    logger.info(f"FFmpeg process completed. stdout length: {len(out)}, stderr: {err.decode(&#x27;utf-8&#x27;)}")&#xA;    logger.error(f"FFmpeg stderr: {err.decode(&#x27;utf-8&#x27;)}")&#xA;    return out  # Return the processed video stream data&#xA;&#xA;&#xA;except ffmpeg.Error as e:&#xA;    stderr_output = e.stderr.decode(&#x27;utf-8&#x27;) if e.stderr else "No stderr available"&#xA;    logger.error(f"FFmpeg error: {stderr_output}")&#xA;&#xA;    raise RuntimeError(f"Error processing video: {stderr_output}")&#xA;&#xA;

    &#xA;

    Error I faced :

    &#xA;

    video-streaming-backend  | [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f1bf99cc640] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none(tv, bt709), 1920x1012): unspecified pixel format&#xA;video-streaming-backend  | Consider increasing the value for the &#x27;analyzeduration&#x27; (10000000) and &#x27;probesize&#x27; (5000000) options&#xA;video-streaming-backend  | Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;http://web:8000/media/stream_video/chunks/ec1db006-b488-47ad-8220-79a05bcaae39/segments/init-stream0.m4s&#x27;:&#xA;video-streaming-backend  |   Metadata:&#xA;video-streaming-backend  |     major_brand     : iso5&#xA;video-streaming-backend  |     minor_version   : 512&#xA;video-streaming-backend  |     compatible_brands: iso5iso6mp41&#xA;video-streaming-backend  |     encoder         : Lavf60.16.100&#xA;video-streaming-backend  |   Duration: N/A, bitrate: N/A&#xA;video-streaming-backend  |   Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661), none(tv, bt709), 1920x1012, SAR 1:1 DAR 480:253, 12288 tbr, 12288 tbn (default)&#xA;video-streaming-backend  |     Metadata:&#xA;video-streaming-backend  |       handler_name    : VideoHandler&#xA;video-streaming-backend  |       vendor_id       : [0][0][0][0]&#xA;video-streaming-backend  | Stream mapping:&#xA;video-streaming-backend  |   Stream #0:0 (h264) -> drawtext:default&#xA;video-streaming-backend  |   drawtext:default -> Stream #0:0 (libx264)&#xA;video-streaming-backend  | Press [q] to stop, [?] for help&#xA;video-streaming-backend  | Cannot determine format of input stream 0:0 after EOF&#xA;video-streaming-backend  | Error marking filters as finished&#xA;video-streaming-backend  | Error while filtering: Invalid data found when processing input&#xA;video-streaming-backend  | [out#0/mp4 @ 0x7f1bf8e73100] Nothing was written into output file, because at least one of its streams received no packets.&#xA;video-streaming-backend  | frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=N/A bitrate=N/A speed=N/A    &#xA;video-streaming-backend  | Conversion failed!&#xA;&#xA;

    &#xA;

    These errors have left me wondering if .m4s is a viable format for dynamic watermarking. If it's not, what would be the correct approach ?

    &#xA;

  • .So file for FFMPEG from NDK

    24 mai 2016, par Nikhil Lamba

    I am not able to make .So file for FFMPEG from NDK .
    I Just Download a zip file from GitHub
    https://github.com/appunite/AndroidFFmpeg
    Then i used CYGWIN for using NDK commends for making .so file from jni folder in ffmpeg library then on Cygwin i am giving path of ffmpeg up to jni folder then
    $ ndk build
    after some process error message came

     C:\Users\ADMIN\Downloads\AndroidFFmpeg-master\AndroidFFmpeg-master\FFmpegLibrary
    \jni>ndk-build
    Android NDK: ERROR:C:/Users/ADMIN/Downloads/AndroidFFmpeg-master/AndroidFFmpeg-m
     aster/FFmpegLibrary//jni/Android.mk:ffmpeg-prebuilt: LOCAL_SRC_FILES points to a
     missing file
     Android NDK: Check that C:/Users/ADMIN/Downloads/AndroidFFmpeg-master/AndroidFFm
     peg-master/FFmpegLibrary//jni/ffmpeg-build/armeabi-v7a/libffmpeg.so exists  or t
     hat its path is correct
     D:/NDK/androidndk/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting
    .  Stop.

    Any type of help is Appricated.