Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (54)

  • 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

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

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

Sur d’autres sites (6589)

  • How to batch convert to x265 minimal file size but keep best possible quality using hardware acceleration in Windows ?

    12 août 2023, par N.TW12

    I am new to the ffmpeg, as the matter of fact just know it for a few hours, I have a huge family videos in mp4/mov x264 format and I would like to convert them all to x265. I don't know what setting is robust for most of the cases so I use -c:v hevc_nvenc and tried :

    


    for /f "tokens=1 delims=." %a in ('dir /B *.mp4') do ffmpeg -i -c:v hevc_nvenc "%a.mp4" "%a.x265.mp4"

for /f "tokens=1 delims=." %a in ('dir /B *.mp4') do ffmpeg -i  "%a.mp4" -c:v hevc_nvenc "%a.x265.mp4" 


    


    I got an error : v was unexpected at this time. How to batch convert to x265 minimal file size but keep best possible quality using hardware acceleration in Windows ?

    


    Edit : I also would like to change the filename by adding ".x265" @ the end of the new file.

    


  • FFmpeg crashing on drawtext filter (ffmpeg-python)

    31 août 2023, par DeadSec

    Hey guys so im trying to use ffmpeg-python to add text to a video but its crashing at

    


    [Parsed_drawtext_0 @ 0000012ea115ee80] Setting 'text' to value 'hi'

    


    and I'm not sure what I can do to fix this problem. I tried pure FFmpeg command-line style and still the same issue where it gets stuck at Setting text to value and it simply outputs a 0byte mp4 after crashing.

    


    My code :

    


    os.environ['FONTCONFIG_FILE'] = r'C:\Users\NOP\NOP\NOP\NOP\binaries\fonts\fonts.conf'
    os.environ['FONTCONFIG_PATH'] = r'C:\Users\NOP\NOP\NOP\NOP\binaries\fonts'
    os.environ['FC_CONFIG_DIR'] = r'C:\Users\NOP\NOP\NOP\NOP\binaries\fonts'
    in_ = ffmpeg.input(output_video_logo)
    in_ = in_.drawtext(text='hi')
    ffmpeg.output(in_, output_video).global_args('-loglevel', 'debug').run(cmd=FFMPEG_PATH)


    


    Font config file :

    


    &lt;?xml version="1.0"?>&#xA;&#xA;&#xA;<fontconfig>&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;    <dir>WINDOWSFONTDIR</dir>&#xA;    <dir>~/fonts</dir>&#xA;    <dir prefix="cwd">.</dir>&#xA;    <dir>~/.fonts</dir>&#xA;&#xA;&#xA;    <match target="pattern">&#xA;        <test qual="any">&#xA;            <string>mono</string>&#xA;        </test>&#xA;        <edit mode="assign">&#xA;            <string>monospace</string>&#xA;        </edit>&#xA;    </match>&#xA;&#xA;&#xA;    <match target="pattern">&#xA;        <test qual="any">&#xA;            <string>sans serif</string>&#xA;        </test>&#xA;        <edit mode="assign">&#xA;            <string>sans-serif</string>&#xA;        </edit>&#xA;    </match>&#xA;&#xA;&#xA;    <match target="pattern">&#xA;        <test qual="any">&#xA;            <string>sans</string>&#xA;        </test>&#xA;        <edit mode="assign">&#xA;            <string>sans-serif</string>&#xA;        </edit>&#xA;    </match>&#xA;&#xA;&#xA;    <include>conf.d</include>&#xA;&#xA;&#xA;&#xA;    <cachedir>WINDOWSTEMPDIR_FONTCONFIG_CACHE</cachedir>&#xA;    <cachedir>~/.fontconfig</cachedir>&#xA;&#xA;    <config>&#xA;&#xA;&#xA;        <rescan>&#xA;            <int>30</int>&#xA;        </rescan>&#xA;    </config>&#xA;&#xA;</fontconfig>&#xA;

    &#xA;

    Is this a issue with any of my fontconfig or script ? I'm really lost on fixing this.

    &#xA;

    As requested by Rotem tried adding new input to drawtext and this was the output before crashing with no error message :&#xA;Successfully opened the file.

    &#xA;

    [Parsed_drawtext_0 @ 00000171a2f0f900] Setting &#x27;box&#x27; to value &#x27;1&#x27;&#xA;[Parsed_drawtext_0 @ 00000171a2f0f900] Setting &#x27;boxcolor&#x27; to value &#x27;yellow&#x27;&#xA;[Parsed_drawtext_0 @ 00000171a2f0f900] Setting &#x27;fontcolor&#x27; to value &#x27;blue&#x27;&#xA;[Parsed_drawtext_0 @ 00000171a2f0f900] Setting &#x27;fontsize&#x27; to value &#x27;72&#x27;&#xA;[Parsed_drawtext_0 @ 00000171a2f0f900] Setting &#x27;text&#x27; to value &#x27;hi&#x27;&#xA;[Parsed_drawtext_0 @ 00000171a2f0f900] Setting &#x27;x&#x27; to value &#x27;10&#x27;&#xA;[Parsed_drawtext_0 @ 00000171a2f0f900] Setting &#x27;y&#x27; to value &#x27;10&#x27;&#xA;

    &#xA;

    Full log :&#xA;https://pastebin.com/E6sHvwUz

    &#xA;

  • How to save srt file with a video to be part of the video ?

    14 septembre 2023, par abdallah mostafa

    I've an application that generate srt file for a video with AI but I want to save the video to user's storage with the srt subtitle burned on the video not just embedded.

    &#xA;

    this is the response form the API

    &#xA;

    "fotmated_subtitle": [&#xA;        {&#xA;            "display_text": "You know those cat are memes that everybody uses in their videos and the TV movie clips that people use.",&#xA;            "interval": [&#xA;                "0:00:00.000",&#xA;                "0:00:04.000"&#xA;            ]&#xA;        },&#xA;        {&#xA;            "display_text": "Well, who are the four best free websites to find a move?",&#xA;            "interval": [&#xA;                "0:00:04.000",&#xA;                "0:00:06.240"&#xA;            ]&#xA;        }&#xA;    ]&#xA;

    &#xA;

    I could add this as a widget over the video that would change accourding to intervals.&#xA;I want to know How to save that video with the subtitle

    &#xA;

     Future<void> saveSubtitle() async {&#xA;    emit(ExportSubtitleLoading());&#xA;    String subtitleFilter = "";&#xA;    for (var subtitle in subtitles!.fotmatedSubtitle!) {&#xA;      String startTime = subtitle.interval![0];&#xA;      String endTime = subtitle.interval![1];&#xA;      String text = subtitle.displayText!;&#xA;      subtitleFilter &#x2B;=&#xA;          "drawtext=text=&#x27;$text&#x27;:enable=&#x27;between(t,$startTime,$endTime)&#x27;:x=(w-text_w)/2:y=h-30:fontsize=24:fontcolor=white,";&#xA;    }&#xA;&#xA;    final dir = await getTemporaryDirectory();&#xA;    String outputPath = &#x27;${dir.path}/ex_vid.mp4&#x27;;&#xA;    final arguments = [&#xA;      &#x27;-i&#x27;,&#xA;      inputFile,&#xA;      &#x27;-vf&#x27;,&#xA;      subtitleFilter,&#xA;      &#x27;-c:v&#x27;,&#xA;      &#x27;libx264&#x27;,&#xA;      &#x27;-c:a&#x27;,&#xA;      &#x27;copy&#x27;,&#xA;      outputPath&#xA;    ];&#xA;    (arguments.join(&#x27; &#x27;)).logger;&#xA;    &#x27;==============&#x27;.logger;&#xA;    await FFmpegKit.execute(arguments.join(&#x27; &#x27;)).then((session) async {&#xA;      final returnCode = await session.getReturnCode();&#xA;&#xA;      if (ReturnCode.isSuccess(returnCode)) {&#xA;        (&#x27;The Converstion is Success&#x27;).logger;&#xA;        emit(ExportSubtitleSuccess());&#xA;      } else if (ReturnCode.isCancel(returnCode)) {&#xA;        // CANCEL&#xA;        (&#x27;The Converstion is Cancelled&#x27;).logger;&#xA;      } else {&#xA;        emit(ExportSubtitleerror());&#xA;        (&#x27;The Converstion Have an Error&#x27;).logger;&#xA;      }&#xA;    });&#xA;  }&#xA;</void>

    &#xA;

    I've tested this method but still does not worked

    &#xA;

    here is the full command

    &#xA;

        String command =&#xA;        "-y -i /data/user/0/com.amaa.aistudio/cache/file_picker/Blink-96bdc94a-17df-4f64-b560-90811a44c4f8-Original.mp4 -vf \"drawtext=text=&#x27;You know those cat are memes that everybody uses in their videos and the TV movie clips that people use.&#x27;:enable=&#x27;between(t,0,4.000)&#x27;:x=(w-text_w)/2:y=h-30:fontsize=24:fontcolor=white,drawtext=text=&#x27;Well, who are the four best free websites to find a move?&#x27;:enable=&#x27;between(t,4.000,6.240)&#x27;:x=(w-text_w)/2:y=h-30:fontsize=24:fontcolor=white\" -c:v libx264 -c:a copy /data/user/0/com.amaa.aistudio/cache/ex_vid.mp4";&#xA;

    &#xA;

    also here is the logs

    &#xA;

     FFmpegKit log message: isom&#xA;[log] FFmpegKit log message:&#xA;[log] FFmpegKit log message:     minor_version   :&#xA;[log] FFmpegKit log message: 512&#xA;[log] FFmpegKit log message:&#xA;[log] FFmpegKit log message:     compatible_brands:&#xA;[log] FFmpegKit log message: isomiso2avc1mp41&#xA;[log] FFmpegKit log message:&#xA;[log] FFmpegKit log message:     comment         :&#xA;[log] FFmpegKit log message: vid:v0f044gc0000cj6mnmrc77u1oq5pn100&#xA;[log] FFmpegKit log message:&#xA;[log] FFmpegKit log message:     aigc_info       :&#xA;[log] FFmpegKit log message: {"aigc_label_type": 0}&#xA;[log] FFmpegKit log message:&#xA;[log] FFmpegKit log message:     encoder         :&#xA;[log] FFmpegKit log message: Lavf58.76.100&#xA;[log] FFmpegKit log message:&#xA;[log] FFmpegKit log message:   Duration:&#xA;[log] FFmpegKit log message: 00:00:35.66&#xA;[log] FFmpegKit log message: , start:&#xA;[log] FFmpegKit log message: 0.000000&#xA;[log] FFmpegKit log message: , bitrate:&#xA;[log] FFmpegKit log message: 1239 kb/s&#xA;[log] FFmpegKit log message:&#xA;[log] FFmpegKit log message:   Stream #0:0&#xA;[log] FFmpegKit log message: [0x1]&#xA;[log] FFmpegKit log message: (und)&#xA;[log] FFmpegKit log message: : Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 576x1024 [SAR 1:1 DAR 9:16], 1102 kb/s&#xA;[log] FFmpegKit log message: ,&#xA;[log] FFmpegKit log message: 47.78 fps,&#xA;[log] FFmpegKit log message: 50 tbr,&#xA;[log] FFmpegKit log message: 12800 tbn&#xA;[log] FFmpegKit log message:  (default)&#xA;[log] FFmpegKit log message:&#xA;[log] FFmpegKit log message:     Metadata:&#xA;[log] FFmpegKit log message:       handler_name    :&#xA;[log] FFmpegKit log message: VideoHandler&#xA;[log] FFmpegKit log message:&#xA;[log] FFmpegKit log message:       vendor_id       :&#xA;[log] FFmpegKit log message: [0][0][0][0]&#xA;[log] FFmpegKit log message:&#xA;[log] FFmpegKit log message:   Stream #0:1&#xA;[log] FFmpegKit log message: [0x2]&#xA;[log] FFmpegKit log message: (und)&#xA;[log] FFmpegKit log message: : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s&#xA;[log] FFmpegKit log message:  (default)&#xA;[log] FFmpegKit log message:&#xA;[log] FFmpegKit log message:     Metadata:&#xA;[log] FFmpegKit log message:       handler_name    :&#xA;[log] FFmpegKit log message: SoundHandler&#xA;[log] FFmpegKit log message:&#xA;[log] FFmpegKit log message:       vendor_id       :&#xA;[log] FFmpegKit log message: [0][0][0][0]&#xA;[log] FFmpegKit log message:&#xA;FFmpegKit log message: [Parsed_drawtext_0 @ 0xb4000077140d5380] Cannot find a valid font for the family Sans&#xA;[log] FFmpegKit log message: [AVFilterGraph @ 0xb4000077a5e0afe0] Error initializing filters&#xA;[log] FFmpegKit log message: Error reinitializing filters!&#xA;[log] FFmpegKit log message: Failed to inject frame into filter network: No such file or directory&#xA;[log] FFmpegKit log message: Error while processing the decoded data for stream #0:0&#xA;[log] FFmpegKit log message: Conversion failed!&#xA;

    &#xA;