Recherche avancée

Médias (91)

Autres articles (49)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (10625)

  • lavu/opt : Clarify the scope of AVOptions

    24 avril 2024, par Andrew Sayers
    lavu/opt : Clarify the scope of AVOptions
    

    See discussion on the mailing list :
    https://ffmpeg.org/pipermail/ffmpeg-devel/2024-April/326054.html

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavutil/opt.h
  • React-Native FFmpeg-kit VideoCompress command not working

    6 septembre 2024, par Brian

    I'm Using FFmpeg-kit's React-Native Kit

    &#xA;

    And I want to encode H264 to HEVC.&#xA;But the Videotoolbox in ios not working

    &#xA;

    I use "ffmpeg-kit-react-native" : "^6.0.2"&#xA;And here is my Code

    &#xA;

            // hevc_videotoolbox&#xA;        await FFmpegKit.execute(`-i ${videoUri} -c:v hevc_videotoolbox  -c:a aac -tag:v hvc1 -movflags &#x2B;faststart -y ${outputUri}`);&#xA;      } else {&#xA;        await FFmpegKit.execute(`-i ${videoUri} -c:v hevc_omx -c:a aac -tag:v hvc1 -movflags &#x2B;faststart -y ${outputUri}`);&#xA;      }&#xA;

    &#xA;

    But I got the error follwed like this

    &#xA;

     LOG    libavutil      58.  2.100 / 58.  2.100&#xA; LOG    libavcodec     60.  3.100 / 60.  3.100&#xA; LOG    libavformat    60.  3.100 / 60.  3.100&#xA; LOG    libavdevice    60.  1.100 / 60.  1.100&#xA; LOG    libavfilter     9.  3.100 /  9.  3.100&#xA; LOG    libswscale      7.  1.100 /  7.  1.100&#xA; LOG    libswresample   4. 10.100 /  4. 10.100&#xA; LOG  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#xA; LOG    Metadata:&#xA; LOG      major_brand     :&#xA; LOG  mp42&#xA; LOG  &#xA; LOG      minor_version   :&#xA; LOG  1&#xA; LOG  &#xA; LOG      compatible_brands:&#xA; LOG  isommp41mp42&#xA; LOG  &#xA; LOG      creation_time   :&#xA; LOG  2024-08-29T02:42:24.000000Z&#xA; LOG  &#xA; LOG    Duration:&#xA; LOG  00:00:23.10&#xA; LOG  , start:&#xA; LOG  0.000000&#xA; LOG  , bitrate:&#xA; LOG  1223 kb/s&#xA; LOG  &#xA; LOG    Stream #0:0&#xA; LOG  [0x1]&#xA; LOG  (und)&#xA; LOG  : Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], 1220 kb/s&#xA; LOG  ,&#xA; LOG  30 fps,&#xA; LOG  30 tbr,&#xA; LOG  600 tbn&#xA; LOG   (default)&#xA; LOG  &#xA; LOG      Metadata:&#xA; LOG        creation_time   :&#xA; LOG  2024-08-29T02:42:24.000000Z&#xA; LOG  &#xA; LOG        handler_name    :&#xA; LOG  Core Media Video&#xA; LOG  &#xA; LOG        vendor_id       :&#xA; LOG  [0][0][0][0]&#xA; LOG  &#xA; LOG  Stream mapping:&#xA; LOG    Stream #0:0 -> #0:0&#xA; LOG   (h264 (native) -> hevc (hevc_videotoolbox))&#xA; LOG  &#xA; LOG  Press [q] to stop, [?] for help&#xA; LOG  [hevc_videotoolbox @ 0x11af89120] Error encoding frame: -12905&#xA; LOG  [hevc_videotoolbox @ 0x11af89120] popping: -542398533&#xA; LOG  [vost#0:0/hevc_videotoolbox @ 0x11af88e50] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height&#xA; LOG  Conversion failed!&#xA;

    &#xA;

    How can I fix this error ?

    &#xA;

    I read the&#xA;stack overflow

    &#xA;

      &#xA;
    1. Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
    2. &#xA;

    &#xA;

    2.https://stackoverflow.com/questions/77734601/react-native-ffmpeg-producing-unplayable-hevc-videos-that-still-have-audio

    &#xA;

    But that links doesn't work for me&#xA;I want to compress video's compressing with react-native on ios and android for reducing server cost

    &#xA;

  • Pyinstaller Hidden import 'ffmpeg-python' not found

    13 août 2024, par petunia rose

    Trying to convert Python scripts to exe with PyInstaller.

    &#xA;

    In my code, I use ffmpeg-python :

    &#xA;

    import ffmpeg&#xA;....&#xA;def ffmpeg_save_clip(self,output_video: str, clip_start: str, clip_end: str): &#xA;  (ffmpeg &#xA;   .input(self.file.get_videopath(), ) &#xA;   .output(output_video, vcodec=&#x27;copy&#x27;, ss=clip_start, to=clip_end, acodec=&#x27;copy&#x27;) &#xA;   .global_args(&#x27;-y&#x27;) &#xA;   .run())&#xA;

    &#xA;

    So Ii call PyInstaller from terminal with related flag :

    &#xA;

    pyinstaller --windowed --hidden-import "ffmpeg-python" --noconsole --icon=app.ico --name "app" main.py &#xA;

    &#xA;

    I checked also :

    &#xA;

    pip install ffmpeg-python &#xA;Requirement already satisfied: ffmpeg-python in c:\python38\lib\site-packages (0.2.0) &#xA;Requirement already satisfied: future in c:\python38\lib\site-packages (from ffmpeg-python) (0.18.3)&#xA;

    &#xA;

    But I get from PyInstaller :

    &#xA;

    Hidden import &#x27;ffmpeg-python&#x27; not found&#xA;

    &#xA;

    App works in visual-studio, but when I run pyinstaller exe and try to save clip, it freeze without response.

    &#xA;

    Note : I also :

    &#xA;

      &#xA;
    1. try to add ffmpeg.exe into root folder of pyinstaller app.

      &#xA;

    2. &#xA;

    3. try to use .spec file with :

      &#xA;

      binaries=[(&#x27;C:\\ffmpeg\\bin\\ffmpeg.exe&#x27;, &#x27;ffmpeg/),(&#x27;C:\\ffmpeg\\bin\\ffplay.exe&#x27;,&#x27;ffplay/&#x27;), (&#x27;C:\\ffmpeg\\bin\\ffprobe.exe&#x27;, &#x27;ffprobe/&#x27;)],

      &#xA;

    4. &#xA;

    &#xA;

    Nothing changes

    &#xA;

    UPDATE&#xA;Tank you @happy_code_egg, you explained me such a things.&#xA;I tried what you said and I don't have error any more.

    &#xA;

    But I can't make work ffmpeg anywhere on Pyinstaller exe.&#xA;I added a try/except block to isolate problem&#xA;(when I launch app on Visualstudio it works, but not when use exe).

    &#xA;

    block is (very symilar to past def) :

    &#xA;

    def ffmpeg_save_clip(self,output_video: str, clip_start: str, clip_end: str):&#xA;    input = &#x27;C:\Users\x\Desktop\input.mp4&#x27;&#xA;    output = &#x27;C:\Users\x\Desktop\output.mp4&#x27;&#xA;    try:&#xA;        (ffmpeg&#xA;        .input(input)&#xA;        .output(output, vcodec=&#x27;copy&#x27;, ss=clip_start, to=clip_end, acodec=&#x27;copy&#x27;)&#xA;        .global_args(&#x27;-y&#x27;)&#xA;        .run(capture_stdout=True))&#xA;    except Exception as e:&#xA;        self.logger.error(&#x27;Video window -> ffmpeg_save_clip -> error &#x27; &#x2B; str(e))&#xA;        self.logger.error(&#x27;Video window -> ffmpeg_save_clip -> input file: &#x27; &#x2B; input)&#xA;        self.logger.error(&#x27;Video window -> ffmpeg_save_clip -> output file &#x27; &#x2B; output)&#xA;        raise ValueError(str(e))&#xA;

    &#xA;

    Note : (input and output fixed are only as simple path examples)

    &#xA;

    When I open log I have :

    &#xA;

    2024-08-09 11:28:50,293 - ERROR - Video window -> ffmpeg_save_clip -> error [WinError 2] File not found error&#xA;2024-08-09 11:28:50,293 - ERROR - Video window -> ffmpeg_save_clip -> input file: C:\Users\x\Desktop\input.mp4&#xA;2024-08-09 11:28:50,293 - ERROR - Video window -> ffmpeg_save_clip -> output file C:\Users\x\Desktop\ouput.mp4&#xA;

    &#xA;

    (I tried with '/' and also '\' to create path)&#xA;File paths are correct and, on Visualstudio, they can be processed by ffmpeg (no error), but the exe seems to not find (input or output)

    &#xA;

    I tried solution described here :&#xA;Python ffmpeg won't accept path&#xA;(without effects)

    &#xA;

    I found also these discussions :

    &#xA;

    github ffmpeg-python issue1

    &#xA;

    github ffmpeg-python issue2

    &#xA;

    in both discussions seems to be a problem with ffmpeg + ffmpeg-python libs cohexistence.

    &#xA;

    I tried (as said) to uninstal both and reinstall ffmpeg-python,&#xA;but nothing change.

    &#xA;

    Note :&#xA;I've also three other warning during Pyinstaller :&#xA;(I write them only to complete context, but i think they have no repercussions on this problem.)

    &#xA;

    57283 ERROR: Hidden import &#x27;fiona._shim&#x27; not found&#xA;57298 WARNING: Hidden import "fiona._shim" not found!&#xA;57392 WARNING: Hidden import "importlib_resources.trees" not found!&#xA;

    &#xA;

    tried with :

    &#xA;

    --hidden-import fiona._shim --hidden-import fiona.schema&#xA;

    &#xA;

    tried also with :

    &#xA;

    --add-data="fiona/*;fiona”&#xA;

    &#xA;

    but warnings still remains.

    &#xA;