Recherche avancée

Médias (0)

Mot : - Tags -/configuration

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

Autres articles (39)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (5354)

  • How can I save local video file to django FileField ?

    11 janvier 2021, par Nina deRossi

    I create a local video file (.mp4) by adding a logo to an existing video with the following code :

    


            logo_path = os.path.join(MEDIA_ROOT, 'logo.png')

        logo = (mp.ImageClip(logo_path)
                .set_duration(video.duration)
                .resize(height=50)  # if you need to resize...
                .margin(right=8, top=8, opacity=0)  # (optional) logo-border padding
                .set_pos(("right", "top")))

        video_path = os.path.join(MEDIA_ROOT, 'test7.mp4')
        audio_path = os.path.join(MEDIA_ROOT, 'temp-audio.m4a')

        final = mp.CompositeVideoClip([video, logo])
        final.write_videofile(video_path, codec='libx264',
                              audio_codec='aac',
                              temp_audiofile=audio_path,
                              remove_temp=True
                              )


    


    I want to save the new video to a FileField of my model.
Here is the code :

    


       f = open(video_path)
   flick.videoWithWatermark.save("videoWithWaterMark.mp4", File(f))


    


    I keep getting the error :
'ascii' codec can't decode byte 0xd1 in position 42 : ordinal not in range(128)

    


    How can I save the video to a FileField ?

    


  • Applying audio to video background using ffmpeg_kit_flutter package not working in flutter

    2 décembre 2024, par MhmD Yo

    I am trying to merge video and audio and downloading the video in a flutter app using ffmpeg_kit_flutter package, it works fine with the videos that recorded by screen recorder app which records the screen of my phone, but it does not works with the videos that recorded by my phone camera or any video else and I do not know where the problem is.
Here's my code :

    


    Future<void> mergeRecordWithIntro({required String videoPath, required String audiPath, }) &#xA;async &#xA;  {&#xA; final random = Random();&#xA; final directory = await getTemporaryDirectory();&#xA;&#xA; String outputVideoPath = &#x27;${directory.path}/${random.nextInt(10000)}_merged_video.mp4&#x27;;&#xA; String ffmpegCommand = &#x27;-i $videoPath -i $audiPath -c:v copy -c:a aac $outputVideoPath&#x27;;&#xA;&#xA; await FFmpegKit.execute(ffmpegCommand)&#xA;    .then((value) async {&#xA;  await Gal.putVideo(outputVideoPath);&#xA;  emit(MergeVideoAudioSuccessState());&#xA;  }).catchError((error){&#xA;  emit(MergeVideoAudioFailureState());&#xA;  });&#xA;}&#xA;</void>

    &#xA;

  • Anomalie #2824 : Balise #CREDITS

    3 mai 2015, par b b

    @fil du coup le ticket serait à déplacer sur Medias et non le core. Un nouveau ticket serait peut-être mieux au final...