Recherche avancée

Médias (91)

Autres articles (65)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (6324)

  • How to add a time limit for ffmpeg multiple outputting download ? [closed]

    8 juillet, par Nycelia

    I've been trying to get multiple outputs with different duration of segments from a playlist url using ffmpeg. Example : 120 seconds of a live stream. One output must download 8 times 15 seconds segments. Other output must download 4 times 30 seconds segments. Both outputs will have the same content, but with different durations. It works fine when I use a single output, but with 2 outputs, it's not limited to 120 seconds. Instead it just keeps downloading.

    


    Note : I know I could get a single output and divide it into segments later, but I need this approach.

    


    ffmpeg -t 120 -i <url> -c copy -f segment -segment_time 15 -reset_timestamps 1 -strftime 1 "15sec_%Y-%m-%d_%H-%M-%S.mp4" -c copy -f segment -segment_time 30 -reset_timestamps 1 -strftime 1 "30sec_%Y-%m-%d_%H-%M-%S.mp4"&#xA;</url>

    &#xA;

  • How to download ffmpeg utilities into Python venv with pip or manual way for torchaudio

    14 décembre 2024, par Furkan Gözükara

    torchaudio requiring avutil and other binary dll files

    &#xA;

    Source : https://pytorch.org/audio/2.3.0/installation.html

    &#xA;

    However they given example only for Anaconda

    &#xA;

    I am not using Anaconda but I am using Python 3.10.11 pip venv

    &#xA;

    I can't find these DLL files anywhere

    &#xA;

    How can I find and install them into Python venv ?

    &#xA;

    Since I can't find, I am getting below error

    &#xA;

    Traceback (most recent call last):&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\gradio\queueing.py", line 625, in process_events&#xA;    response = await route_utils.call_process_api(&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api&#xA;    output = await app.get_blocks().process_api(&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\gradio\blocks.py", line 2047, in process_api&#xA;    result = await self.call_function(&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\gradio\blocks.py", line 1594, in call_function&#xA;    prediction = await anyio.to_thread.run_sync(  # type: ignore&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync&#xA;    return await get_async_backend().run_sync_in_worker_thread(&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2505, in run_sync_in_worker_thread&#xA;    return await future&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 1005, in run&#xA;    result = context.run(func, *args)&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\gradio\utils.py", line 869, in wrapper&#xA;    response = f(*args, **kwargs)&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context&#xA;    return func(*args, **kwargs)&#xA;  File "R:\MMAudio_v1\MMAudio\gradio_demo.py", line 60, in video_to_audio&#xA;    clip_frames, sync_frames, duration = load_video(video, duration)&#xA;  File "R:\MMAudio_v1\MMAudio\mmaudio\eval_utils.py", line 178, in load_video&#xA;    reader = StreamingMediaDecoder(video_path)&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\torio\io\_streaming_media_decoder.py", line 526, in __init__&#xA;    self._be = ffmpeg_ext.StreamingMediaDecoder(os.path.normpath(src), format, option)&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\torio\_extension\utils.py", line 25, in __getattr__&#xA;    self._import_once()&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\torio\_extension\utils.py", line 39, in _import_once&#xA;    self.module = self.import_func()&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\torio\_extension\utils.py", line 143, in _init_ffmpeg&#xA;    ext = _find_ffmpeg_extension(ffmpeg_vers)&#xA;  File "R:\MMAudio_v1\MMAudio\venv\lib\site-packages\torio\_extension\utils.py", line 122, in _find_ffmpeg_extension&#xA;    raise ImportError(&#xA;ImportError: Failed to intialize FFmpeg extension. Tried versions: [&#x27;6&#x27;, &#x27;5&#x27;, &#x27;4&#x27;, &#x27;&#x27;]. Enable DEBUG logging to see more details about the error.&#xA;

    &#xA;

  • Python code to download hls stream to mp4

    2 décembre 2024, par Maad A.Galil

    I wrote the following code to download a video from a website. Chrome extensions can detect the video and download it. However, my code gets the following errors. Any help ?

    &#xA;

    from bs4 import BeautifulSoup&#xA;import requests&#xA;from subprocess import check_output&#xA;&#xA;video_url = &#x27;https://www.dimakids.com/ab6al-aldigetal-s3-1415387355-21011.html#sets&#x27;&#xA;headers = {&#x27;User-Agent&#x27;: &#x27;Mozilla/5.0&#x27;}&#xA;&#xA;url = requests.get(video_url, headers=headers)&#xA;page = url.content&#xA;soup = BeautifulSoup(page, "html.parser")&#xA;&#xA;result = str(soup.find_all(&#x27;video&#x27;)[0])&#xA;result = result.split(&#x27;src="&#x27;)[1].split(&#x27;" type=&#x27;)[0] &#xA;print(result)&#xA;&#xA;# seg = requests.get(result)&#xA;# """&#xA;# Error: requests.exceptions.SSLError: HTTPSConnectionPool(host=&#x27;stream.foupix.com&#x27;, port=443): Max retries exceeded with url: /animeios/1415387355/ab6al_aldigetal_s3_01.mp4/index.m3u8?tkn=jja4Czj-AzbJx1JmvDvQeA&amp;amp;tms=1733079050 (Caused by SSLError(SSLCertVerificationError(1, &#x27;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)&#x27;)))&#xA;# """&#xA;# print(seg)&#xA;&#xA;&#xA;print(check_output(f&#x27;ffmpeg -i "{result}" -codec copy file.mp4&#x27;, shell=True))&#xA;"""&#xA;Error: https://stream.foupix.com/animeios/1415387355/ab6al_aldigetal_s3_01.mp4/index.m3u8?tkn=SWf7n3qH8MwFLlq18wngIQ&amp;amp;tms=1733079103: Server returned 403 Forbidden (access denied)&#xA;"""&#xA;

    &#xA;

    The link works as any hls downloader can capture the video and download it as seen here (of course token and timestamp values change everytime it captures the video) :

    &#xA;

    Page URL https://www.dimakids.com/ab6al-aldigetal-s3-1415387355-21011.html#sets

    &#xA;

    Thumbnail https://www.dimakids.com/images/anime/cat_1415387355.jpg

    &#xA;

    main url https://stream.foupix.com/animeios/1415387355/ab6al_aldigetal_s3_01.mp4/index.m3u8?tkn=6nyEskSbHBI713sG0uhZJQ&tms=1733171604

    &#xA;

    video component https://stream.foupix.com/animeios/1415387355/ab6al_aldigetal_s3_01.mp4/index.m3u8?tkn=6nyEskSbHBI713sG0uhZJQ&tms=1733171604

    &#xA;