Recherche avancée

Médias (91)

Autres articles (47)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • 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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (10692)

  • mp4 generated by moviepy no sound with tweepy

    2 décembre 2020, par Will Rowe

    I'm using MoviePy to edit a mp4 file and then Tweepy to tweet out the video.

    


    Here's what I have currently :

    


    clip = VideoFileClip("c:/users/.../UNIQUENAME2.mp4").subclip(8) #cut off the first 8 seconds of the clip
clip.write_videofile("c:/users/.../UNIQUENAME2-finished.mp4")
clip.close()
highlightz = TweetMachine()
highlightz.makeAVidTweet('c:/users/.../UNIQUENAME2-finished.mp4','audio test')


    


    Here's my TweetMachine :

    


    def makeAVidTweet(self,fileLoc,text):
        upload_result = self.api.media_upload(fileLoc)
        time.sleep(120) #wait just in case things are still processing
        media_ids = [upload_result.media_id_string]
        self.api.update_status(status=text, media_ids=media_ids)


    


    Currently, the video is cut fine and UNIQUENAME2-finished.mp4 is constructed correctly such that if I open the file on my computer, the video is cut correctly and the sound works. However, the video posted on Twitter has no sound.

    


    I'm assuming it's some sort of issue with how MoviePy makes the mp4 file and Twitter not liking something with the sound settings, but I'm pretty unfamiliar with mp4 stuff and I couldn't find anything about it on the MoviePy or Tweepy docs.

    


    Any tips or thoughts would be greatly appreciated !

    


    Stream info from VLC :
Codec : MPEG Audio layer 1/2 (mpga),
Type : Audio,
Channels : Stereo,
Sample Rate : 44100 Hz,
Bits per sample : 32,
Bitrate : 128 kb/s

    


  • Get the actual duration of a sound file in C++ (libavformat)

    1er avril 2017, par user3734670

    I want to get the duration of a sound file in my C++ application. I want to support a lot of sound codecs, so I decided to use libavformat.

    I get the duration, but I get also a notification that the duration can be inaccurate. In another Stackoverflow question (How to get the real, actual duration of an MP3 file (VBR or CBR) server-side) it was mentioned that you can decode the file completely to get the actual duration. How can I this archive with libavformat ?

    My code to get the inaccurate duration :

    av_register_all();
    AVFormatContext* pFormatCtx = avformat_alloc_context();
    avformat_open_input(&pFormatCtx, audio_file, NULL, NULL);
    avformat_find_stream_info(pFormatCtx, 0);
    av_dump_format(pFormatCtx, 0, audio_file, 0);
    int64_t duration = pFormatCtx->duration;
    std::cout << ceil((double) duration / AV_TIME_BASE) << std::endl;
    avformat_close_input(&pFormatCtx);
    avformat_free_context(pFormatCtx);
  • Windows Ffmpeg - send audio to sound card's output

    30 mars 2021, par halitsafa

    I have a sound card (Behringer UMC202HD) which connected to a Windows 10 computer by usb cable, i am able to recieve audio from input device with the following ffmpeg command :
ffmpeg -f dshow -i audio="IN 1-2 (BEHRINGER UMC 202HD 192k)" -map_channel 0.0.0 -c:a pcm_s24le first_channel.wav -map_channel 0.0.1 -c:a pcm_s24le second_channel.wav

    


    But i can't send audio to sound card's output with the ffmpeg, is there any way to do this ? if there is, how can i do it ?

    


    Linux version (pseudo command) of what i'm trying to do in Windows :

    


    ffmpeg -i my_input.wav -f alsa alsa.behringer_out