Recherche avancée

Médias (91)

Autres articles (71)

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

  • ffmpeg itsoffset doesn't work with pcm audio and raw 264 video

    28 janvier 2019, par Danny

    I need to create an MP4 container with data from a hardware encoder. The encoder outputs PCM 16-bit signed audio and raw H.264 ES video frames.

    This ffmpeg command line I’ve got works but the audio and video are not sync’d.

    From other posts I know that itsoffset only works with video and probably doesn’t work with -v copy

    I’ve confirmed that applying an itsoffset has no effect.

    Here’s the command line. Any suggestions ?

    One post suggested itsoffset works if you re-encode the video. But doing that needs CPU power and adds latency. (And what’s the point of a hardware encoder then ?)

    ffmpeg -f s16le -ar 44.1k -ac 2      -i Audio_20190110-165736.pcm
          -fflags +genpts -itsoffset -5 -i Video_20190110-165736.264
          -c:v copy -c:a aac -b:a 128k
          -f mp4 -movflags +faststart  output.mp4

    EDIT I

    Here is a link to the audio/video input files referenced in the above command.

  • aaccoder : rewrite PNS implementation

    6 septembre 2015, par Rostislav Pehlivanov
    aaccoder : rewrite PNS implementation
    

    This commit rewrites the PNS implementation and significantly
    improves sonic quality.

    The previous implementation marked an incredibly big amount
    of SFBs to predict when there was no need for this and this
    resulted in quite a large amount of artifacts. Also the
    quantization was incorrect (av_clip(4+log2f(...))) which
    led to 3x the intensity for PNS values leading to even more
    artifacts.

    This commit rewrites the PNS search function and introduces
    a major change : the PNS values are synthesized and are compared
    to the current coefficients in addition to passing through
    the revised checks to see whether PNS can be used.

    This decreases distortions and makes the current PNS implementation
    mainly focused on replacing any low-power non-zero bands as well
    as adding any zeroed bands back.

    The current encoder’s performance is enough (especially with
    IS) so PNS isn’t really required except to fill in the occasional
    few bands as well as extend any zeroed high frequency, so this
    combination which is already enabled by default works
    to get as much quality as it can within the bits allowed.

    Signed-off-by : Rostislav Pehlivanov <atomnuker@gmail.com>

    • [DH] libavcodec/aaccoder.c
  • Moviepy/FFMPEG error while writing file : Permission denied

    26 février 2024, par rodinaxcvi

    I am using Power Automate to try to run this powershell script "python3 %Directory%%FileName%" :

    &#xA;

    What my code is supposed to do :

    &#xA;

      &#xA;
    1. Download a video from youtube
    2. &#xA;

    3. Put small clips from a folder in bottom left
    4. &#xA;

    5. Overwrite audio from downloaded Youtube video with new audio from a folder in the same directory (I am replacing the video's audio with an .mp3 of someone narrating something)
    6. &#xA;

    &#xA;

    ERROR CODE :

    &#xA;

    OSError: \[Errno 32\] Broken pipe&#xA;&#xA;MoviePy error: FFMPEG encountered the following error while writing file combined_video_1TEMP_MPY_wvf_snd.mp3:&#xA;&#xA;b&#x27;combined_video_1TEMP_MPY_wvf_snd.mp3: Permission denied\\r\\n&#x27;&#xA;

    &#xA;

    Code Snippet that seems to be throwing up error (NOT FULL CODE) :

    &#xA;

    # Combine ad clips with main video footage&#xA;def combine_videos(main_video_path, ad_video_paths, output_path, bottom_videos_folder, custom_audio_path):&#xA;    main_clip = VideoFileClip(main_video_path).subclip(0, 60)  # Keep the original aspect ratio&#xA;&#xA;    main_clip = main_clip.resize(width=1920)  # Resize based on width&#xA;    if main_clip.size[1] > 1080:&#xA;        main_clip = main_clip.resize(height=1080)  # Resize based on height if it&#x27;s still too tall&#xA;&#xA;    main_clip_x = (1920 - main_clip.size[0]) / 2&#xA;    main_clip_y = (1080 - main_clip.size[1]) / 2&#xA;    main_clip = main_clip.set_position((main_clip_x, main_clip_y))&#xA;&#xA;    ad_clip = concatenate_to_duration(ad_video_paths, 60, bottom_videos_folder)  # Assuming 60 seconds for the ad clip&#xA;    ad_clip = ad_clip.resize(width=250)  # Resize the ad clip&#xA;    ad_clip = ad_clip.set_position(("left", "bottom"))  # Position the ad clip at the bottom right&#xA;&#xA;    custom_audio = AudioFileClip(custom_audio_path)&#xA;&#xA;    # Specify the output directory for the audio file&#xA;    output_audio_directory = "C:/Temp/AIContentCreator"&#xA;    output_audio_path = os.path.join(output_audio_directory, "custom_audio.mp3")&#xA;&#xA;    # Write the custom audio to the specified directory&#xA;    custom_audio.write_audiofile(output_audio_path)&#xA;&#xA;    main_clip = main_clip.set_audio(custom_audio)&#xA;&#xA;    final_clip = CompositeVideoClip([main_clip, ad_clip], size=(1920, 1080))&#xA;    final_clip.write_videofile(output_path, fps=30)&#xA;&#xA;    main_clip.close()&#xA;    ad_clip.close()&#xA;    custom_audio.close()&#xA;&#xA;## SAVE PATHS ##&#xA;# Video Folder Paths&#xA;save_path = r"C:\Temp\Videos\YoutubeVideo"&#xA;bottom_videos_folder = r"C:\Temp\Videos\BottomVideo"&#xA;custom_audio_path = r"C:\Temp\AIContentCreator\GPTContentCreation\output.mp3"  # Existing audio file path&#xA;&#xA;# Download videos from a playlist&#xA;playlist_url1 = &#x27;&#x27;&#xA;videos_playlist1 = download_playlist(playlist_url1, save_path)&#xA;&#xA;# Prepare bottom videos&#xA;bottom_videos = list_videos_in_folder(bottom_videos_folder)&#xA;&#xA;# Combine each pair of videos and export &#xA;combined_video_counter = 1  &#xA;for main_video in videos_playlist1:&#xA;    shuffled_ads = random.sample(bottom_videos, len(bottom_videos))&#xA;    ad_video_paths = [os.path.join(bottom_videos_folder, ad) for ad in shuffled_ads[:5]]  # Adjust number as needed&#xA;&#xA;    combined_video_path = r&#x27;C:\Temp\Videos\TiktokVideos\combined_video_{combined_video_counter}.mp4&#x27;&#xA;    &#xA;    # Call the combine_videos function with the existing custom_audio_path&#xA;    combine_videos(main_video, ad_video_paths, combined_video_path, bottom_videos_folder, custom_audio_path)&#xA;    &#xA;    combined_video_counter &#x2B;= 1&#xA;`&#xA;

    &#xA;

    What I've tried :

    &#xA;

      &#xA;
    • Setting all related folders to full access
    • &#xA;

    • Setting full directory paths in my code
    • &#xA;

    • Running Power Automate and CMD as administrator
    • &#xA;

    • Moving files to a different folder like /Temp to see if permission error still consists
    • &#xA;

    &#xA;

    Reoccurring problems :

    &#xA;

      &#xA;
    • I am not sure where MoviePy is writing "b'combined_video_1TEMP_MPY_wvf_snd.mp3". Could it be trying to place that file in another directory with out proper permissions ?

      &#xA;

    • &#xA;

    • Whenever I try to de-select read-only on TiktokVideos folder and refresh it, "Read-only" is still on. Keeps doing this.

      &#xA;

    • &#xA;

    &#xA;