Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (60)

  • 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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (7498)

  • Trying to compile ffmpeg and mpv in Arch Linux : error "undefined reference to pl_log_create_341" [closed]

    4 février 2024, par Mike Nguyen

    Ever since yesterday, I have been struggling to compile ffmpeg, and to a further extent, mpv, on Arch Linux due to the following error that is probably unique to my install :

    


    /usr/bin/ld: libavfilter/libavfilter.so: undefined reference to pl_log_create_341
collect2: error: ld returned 1 exit status
make: *** [Makefile:133: ffplay_g] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/ld: libavfilter/libavfilter.so: undefined reference to `pl_log_create_341'
collect2: error: ld returned 1 exit status
make: *** [Makefile:133: ffprobe_g] Error 1
/usr/bin/ld: libavfilter/libavfilter.so: undefined reference to `pl_log_create_341'
collect2: error: ld returned 1 exit status
make: *** [Makefile:133: ffmpeg_g] Error 1


    


    I was trying to install mpd on my system, but pacman forced me to remove a ton of essential packages relating to multimedia, Qt, etc. I have since been able to reinstall most of these packages.

    


    However, my ffmpeg has been corrupted (as well as mpv failing to start) due to another error that apparently no one else has been getting (I have searched Google for this) :

    


    symbol lookup error: /usr/lib/libavfilter.so.9: undefined symbol: pl_tone_map_auto


    


    I have both libavfilter.so.9.12.100 and libavfilter.so.9.13.100 in my /usr/lib directory, and I am forced to run sudo ln -s /usr/lib/libavfilter.so.9.12.100 /usr/lib/libavfilter.so.9 every time I run pacman.

    


    I have spent countless hours browsing the web about what solutions are available, but as I said, I seem to be the only one getting these errors.

    


    Whether it's installing ffmpeg-git via the AUR, or removing and reinstalling mpv, nothing seems to fix the problem. And no one else is having this problem.

    


    I might be forced to do a clean install of Arch Linux, but I don't have the time for it.

    


  • FileNotFoundError when extracting audio from recently saved video using FFMPEG"

    3 août 2023, par Peter Long

    Scenario : I'm using this tool to record tiktok live. I write another script to call the main.pytool because I want to add some additional options, for example, to extract the audio of the live video that is recorded

    


    FFMPEG is used to extract the audio. First the video is saved (with FFMPEG) and after I want to extract the audio of that video (again with FFMPEG). The path where the video is recorded and saved is C:\Users\Administrator\Desktop\tiktok

    


    The problem is that I see the file and it is saved, but this error is generated as output : FileNotFoundError: [WinError 2] The system cannot find the file specified

    


    I can't figure out why it doesn't detect the last saved video file in general

    


    I try with this

    


    import os
import subprocess
import time
from moviepy.editor import VideoFileClip

def main():
    # Command to run main.py and record the video
    cmd = 'python main.py -user ryzebenny -output "C:\\Users\\Administrator\\Desktop\\tiktok" -ffmpeg -duration 30 --auto-convert'
    subprocess.run(cmd, shell=True)

    # Wait for the video file to appear in the folder
    wait_for_video("C:\\Users\\Administrator\\Desktop\\tiktok")

    # Extract audio from recorded video
    video_filename = find_latest_file("C:\\Users\\Administrator\\Desktop\\tiktok", ".mp4")
    if video_filename:
        video_path = os.path.join("C:\\Users\\Administrator\\Desktop\\tiktok", video_filename)
        audio_filename = video_filename.replace(".mp4", ".mp3")
        audio_path = os.path.join("C:\\Users\\Administrator\\Desktop\\tiktok", audio_filename)

        video_clip = VideoFileClip(video_path)
        audio_clip = video_clip.audio
        audio_clip.write_audiofile(audio_path)
        audio_clip.close()
        video_clip.close()
        print(f"Audio extraction completed: {audio_filename}")
    else:
        print("No video files found.")

def wait_for_video(directory):
    max_wait_time = 60  # Maximum time to wait in seconds
    start_time = time.time()
    while time.time() - start_time < max_wait_time:
        if find_latest_file(directory, ".mp4"):
            break
        time.sleep(1)

def find_latest_file(directory, extension):
    list_of_files = [f for f in os.listdir(directory) if f.endswith(extension) and os.path.isfile(os.path.join(directory, f))]
    if list_of_files:
        return max(list_of_files, key=os.path.getctime)
    return None

if __name__ == "__main__":
    main()


    


    but i get this error

    


    [*] 2023-08-03 15:57:09 - INFO - START RECORDING FOR 30 SECONDS&#xA;[*] 2023-08-03 15:57:09 - INFO - [PRESS &#x27;q&#x27; TO STOP RECORDING]&#xA;[*] 2023-08-03 15:57:31 - INFO - FINISH: C:\Users\Administrator\Desktop\tiktok\TK_ryzebenny_2023.08.03_15-57-09_flv.mp4&#xA;&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\Administrator\Desktop\tiktok\TikTok-Live-Recorder\run_main.py", line 45, in <module>&#xA;    main()&#xA;  File "C:\Users\Administrator\Desktop\tiktok\TikTok-Live-Recorder\run_main.py", line 12, in main&#xA;    wait_for_video("C:\\Users\\Administrator\\Desktop\\tiktok")&#xA;  File "C:\Users\Administrator\Desktop\tiktok\TikTok-Live-Recorder\run_main.py", line 34, in wait_for_video&#xA;    if find_latest_file(directory, ".mp4"):&#xA;       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&#xA;  File "C:\Users\Administrator\Desktop\tiktok\TikTok-Live-Recorder\run_main.py", line 41, in find_latest_file&#xA;    return max(list_of_files, key=os.path.getctime)&#xA;           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&#xA;  File "<frozen genericpath="genericpath">", line 65, in getctime&#xA;FileNotFoundError: [WinError 2] The system cannot find the file specified: &#x27;TK_ryzebenny_2023.08.03_15-57-09.mp4&#x27;&#xA;</frozen></module>

    &#xA;

    Instead, I expect that once I save the video (in .mp4) the audio of that video will be extracted afterwards

    &#xA;

  • "Relocation cannot be used against local symbol" only for one platform (x86)

    10 janvier 2023, par JonasVautherin

    Problem

    &#xA;

    I am cross-compiling gstreamer using Meson, and it works for 3 different platforms (android-arm, android-arm64, android-x86_64) but fails for android-x86 with errors like :

    &#xA;

    ld: error: relocation R_386_32 cannot be used against local symbol; recompile with -fPIC&#xA;

    &#xA;

    I can't seem to understand which component was not built with -fPIC, and I don't understand why this would differ between the 4 platforms. If 3 are built with -fPIC, why would the fourth be different ?

    &#xA;

    Details

    &#xA;

    More specifically, it fails with a bunch of the following errors :

    &#xA;

    FAILED: subprojects/FFmpeg/test_avcodec_utils&#xA;/usr/i686-linux-android/bin/clang  -o subprojects/FFmpeg/test_avcodec_utils subprojects/FFmpeg/test_avcodec_utils.p/libavcodec_tests_utils.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -pie -Wl,-Bsymbolic -fPIC -Wl,--start-group subprojects/FFmpeg/libavcodec-static.a subprojects/FFmpeg/libavutil.a subprojects/FFmpeg/libavutil-static.a subprojects/FFmpeg/libswresample.a subprojects/FFmpeg/libswresample-static.a -pthread -lm -lz -lz -Wl,--end-group&#xA;ld: error: relocation R_386_32 cannot be used against local symbol; recompile with -fPIC&#xA;>>> defined in subprojects/FFmpeg/libavcodec-static.a(libavcodec-static.a.p/dirac_dwt.o)&#xA;>>> referenced by x86util.asm:1315 (/work/build/android-x86/dependencies/gstreamer/gstreamer/src/gstreamer/subprojects/FFmpeg/libavutil/x86/x86util.asm:1315)&#xA;>>>               libavcodec-static.a.p/dirac_dwt.o:(.text&#x2B;0x9F) in archive subprojects/FFmpeg/libavcodec-static.a&#xA;

    &#xA;

    I essentially run $ meson setup --cross-file my-crossfile build . in a Dockcross container, with some options, so nothing special there as far as I can tell.

    &#xA;

    My cross-file looks like this (similar to the other 3 that work, except for cpu and cpu_family that differ) :

    &#xA;

    [constants]&#xA;cross_triple = &#x27;i686-linux-android&#x27;&#xA;cross_root = &#x27;/usr/&#x27; &#x2B; cross_triple&#xA;&#xA;[properties]&#xA;pkg_config_libdir = &#x27;&#x27;&#xA;&#xA;[binaries]&#xA;c = cross_root &#x2B; &#x27;/bin/clang&#x27;&#xA;cpp = cross_root &#x2B; &#x27;/bin/clang&#x2B;&#x2B;&#x27;&#xA;ar = cross_root &#x2B; &#x27;/bin/llvm-ar&#x27;&#xA;as = cross_root &#x2B; &#x27;/bin/llvm-as&#x27;&#xA;ranlib = cross_root &#x2B; &#x27;/bin/llvm-ranlib&#x27;&#xA;ld = cross_root &#x2B; &#x27;/bin/ld&#x27;&#xA;strip = cross_root &#x2B; &#x27;/bin/llvm-strip&#x27;&#xA;pkgconfig = &#x27;pkg-config&#x27;&#xA;&#xA;[host_machine]&#xA;system = &#x27;android&#x27;&#xA;cpu_family = &#x27;x86&#x27;&#xA;cpu = &#x27;i686&#x27;&#xA;endian = &#x27;little&#x27;&#xA;

    &#xA;