Recherche avancée

Médias (91)

Autres articles (68)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (10985)

  • avutil/tests/color_utils : reduce accuracy threshold to pass to 1e-7

    7 décembre 2024, par Hendrik Leppkes
    avutil/tests/color_utils : reduce accuracy threshold to pass to 1e-7
    

    Fixes FATE on a variety of configurations due to accuracy problems in
    floating point math. Most constants tested against here are not even
    specified with 7 decimal digits.

    Reviewed-by : Niklas Haas <git@haasn.dev>

    • [DH] libavutil/tests/color_utils.c
  • DVR + FFMPEG + IOS Authentication and Live Streaming Fails

    6 août 2013, par user1744691

    How to grab video from a DVR using ffmpeg and DVR is password protected. Is there a way to grab live stream from IP-Cam connected to DVR.

    I was able to stream a channel (may be recorded video) but whenever i tried to connect to a DVR could not get it done.

    this
    http://www.wowza.com/_h264/BigBuckBunny_175k.mov and this rtsp ://live.sabah.com.tr:443/atv/atv3/
    link works great for getting me stream
    but when i try my DVR's (http://admril:56789@mysite.com) (mysite.com = 213.115.94.108) link it fails to establish a connection using FFMEG.

    I have used a variety of variation of DVR's url but all in vein.

    Please let me know where i am wrong and how i can get live stream.

  • Button "Clean FFMeta" does nothing after compiling with PyInstaller

    6 mai, par Leonie Holdermann

    I’m working on my first Python project and I’ve compiled it into an executable using PyInstaller with the following command :

    &#xA;

    pyinstaller --onefile --noconsole app.py&#xA;

    &#xA;

    However, when I run the executable, the button "Clean FFMeta" which triggers the clean_ffmeta() function does nothing. Additionally, changing the language or the chapter settings under the "Options -> Chapter settings" menu doesn’t seem to affect anything either. It all works perfectly in the Python script before compilation, but once compiled into an .exe, none of these functions respond.

    &#xA;

    I've reviewed the code, and the button is correctly linked to the function, but I suspect something might be going wrong during the compilation process.

    &#xA;

    What I have tried :

    &#xA;

      &#xA;
    • Checked that all dependencies are included.
    • &#xA;

    • Verified that the configuration and language changes are being correctly applied before compilation.
    • &#xA;

    • Tried running the executable from a console to check for error messages, but there are none visible (since I used —noconsole).
    • &#xA;

    &#xA;

    What I expect :

    &#xA;

      &#xA;
    • The "Clean FFMeta" button should clean the FFMeta file based on the&#xA;user settings.
    • &#xA;

    • Language and chapter settings should be updated and reflected in the GUI immediately.
    • &#xA;

    &#xA;

    Code :&#xA;Below is a simplified version of my code, especially the sections related to the "Clean FFMeta" functionality and language/chapter settings.

    &#xA;

    def clean_ffmeta():&#xA;if not config.get("cd_in_path"):&#xA;    show_error(texts[current_language]["error"] &#x2B; " No CD_IN path configured.")&#xA;    return&#xA;&#xA;chapter_path = os.path.join(config["cd_in_path"], "chapters.ffmeta")&#xA;cleaned_chapter_path = os.path.join(config["cd_in_path"], "chapters_cleaned.ffmeta")&#xA;&#xA;if not os.path.exists(chapter_path):&#xA;    show_error(texts[current_language]["no_chapters_file"])&#xA;    return&#xA;&#xA;write_to_console("Starting to clean FFMeta...")&#xA;thread = threading.Thread(target=clean_ffmeta_thread, args=(chapter_path, cleaned_chapter_path))&#xA;thread.start()&#xA;&#xA;def clean_ffmeta_thread(chapter_path, cleaned_chapter_path):&#xA;    try:&#xA;        chapter_action = config.get("chapter_action", "clean")&#xA;        keep_empty = config.get("chapter_keep_empty", False)&#xA;&#xA;        write_to_console(f"Chapter action: {chapter_action}, Keep empty: {keep_empty}")&#xA;&#xA;        with open(chapter_path, "r", encoding="utf-8") as f:&#xA;            lines = f.readlines()&#xA;&#xA;        new_lines = []&#xA;        chapter_counter = 0&#xA;&#xA;        for line in lines:&#xA;            stripped_line = line.strip()&#xA;            if stripped_line.startswith("title="):&#xA;                title_content = stripped_line[6:]&#xA;                &#xA;                if chapter_action == "clean":&#xA;                    if title_content == "":&#xA;                        if keep_empty:&#xA;                            new_lines.append(line)&#xA;                        else:&#xA;                            write_to_console("Empty title skipped.")&#xA;                            continue&#xA;                    else:&#xA;                        new_lines.append(line)&#xA;                &#xA;                elif chapter_action == "number":&#xA;                    chapter_counter &#x2B;= 1&#xA;                    chapter_title = f"{texts[current_language][&#x27;chapter&#x27;]} {chapter_counter}"&#xA;                    new_lines.append(f"title={chapter_title}\n")&#xA;                    write_to_console(f"Renamed to: {chapter_title}")&#xA;            else:&#xA;                new_lines.append(line)&#xA;&#xA;        with open(cleaned_chapter_path, "w", encoding="utf-8") as f:&#xA;            f.writelines(new_lines)&#xA;&#xA;        write_to_console(f"FFMeta cleaned and saved as &#x27;{cleaned_chapter_path}&#x27;.")&#xA;&#xA;    except Exception as e:&#xA;        write_to_console(f"Error cleaning FFMeta: {str(e)}")&#xA;&#xA;def open_chapter_settings():&#xA;    global chapter_settings_window, chapter_action_var&#xA;    global chapter_keep_empty_checkbox, chapter_save_button&#xA;&#xA;    chapter_settings_window = tk.Toplevel(root)&#xA;    chapter_settings_window.title(texts[current_language]["chapter_setting_title"])&#xA;    chapter_settings_window.geometry("300x250")&#xA;    chapter_settings_window.resizable(False, False)&#xA;    &#xA;    chapter_action_var = tk.StringVar(value=config.get("chapter_action", "clean"))&#xA;    chapter_keep_empty_var = tk.BooleanVar(value=config.get("chapter_keep_empty", False))&#xA;    &#xA;    tk.Label(&#xA;        chapter_settings_window,&#xA;        text=texts[current_language]["chapter_setting_choose_option"]&#xA;    ).pack(pady=(10, 5))&#xA;    &#xA;    tk.Radiobutton(&#xA;        chapter_settings_window,&#xA;        text=texts[current_language]["chapter_setting_clean"],&#xA;        variable=chapter_action_var,&#xA;        value="clean"&#xA;    ).pack(pady=5)&#xA;&#xA;    tk.Radiobutton(&#xA;        chapter_settings_window,&#xA;        text=texts[current_language]["chapter_setting_number"],&#xA;        variable=chapter_action_var,&#xA;        value="number"&#xA;    ).pack(pady=5)&#xA;&#xA;    chapter_keep_empty_checkbox = tk.Checkbutton(&#xA;        chapter_settings_window,&#xA;        text=texts[current_language]["chapter_setting_keep_empty"],&#xA;        variable=chapter_keep_empty_var&#xA;    )&#xA;    chapter_keep_empty_checkbox.pack(pady=5)&#xA;&#xA;    chapter_save_button = tk.Button(&#xA;        chapter_settings_window,&#xA;        text=texts[current_language]["chapter_setting_save"],&#xA;        command=lambda: save_chapter_settings(chapter_keep_empty_var, chapter_settings_window)&#xA;    )&#xA;    chapter_save_button.pack(pady=10)&#xA;&#xA;def save_chapter_settings(keep_empty_var, window):&#xA;    config["chapter_action"] = chapter_action_var.get()&#xA;    config["chapter_keep_empty"] = keep_empty_var.get()&#xA;    save_config()&#xA;    write_to_console(f"Chapter settings saved: Action={config[&#x27;chapter_action&#x27;]}, Keep empty={config[&#x27;chapter_keep_empty&#x27;]}")&#xA;    window.destroy()&#xA;&#xA;options_menu = tk.Menu(menu, tearoff=0)&#xA;options_menu.add_command(label="Check pip-ffmpeg", command=check_pip_ffmpeg)&#xA;options_menu.add_command(label=texts[current_language]["menu_chapter_settings"], command=open_chapter_settings)&#xA;menu.add_cascade(label="Options", menu=options_menu)&#xA;&#xA;btn3 = tk.Button(btn_frame, text="3. Clean FFMeta", command=clean_ffmeta)&#xA;btn3.grid(row=0, column=2, padx=5)&#xA;

    &#xA;

    Here you find the entire project code of the entire project : https://www.pythonmorsels.com/p/32hkh/

    &#xA;

    Why is the clean_chapters function not working ?

    &#xA;