Recherche avancée

Médias (91)

Autres articles (62)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • 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

  • 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

Sur d’autres sites (9251)

  • stream video file as bytes into stdin

    21 décembre 2017, par M Leonard

    I am creating a process in which python opens a video file, and streams it into the stdin of an ffmpeg command. I think I have the right idea, but the way that the file is being opened is not working with stdin. Here is my code so far :

    def create_pipe():

       return Popen([    'ffmpeg',
                         '-loglevel', 'panic',
                         '-s', '1920x1080',
                         '-pix_fmt', 'yuvj420p',
                         '-y',
                         '-f', 'image2pipe',
                         '-vcodec', 'mjpeg',
                         '-r', self.fps,
                         '-i', '-',
                         '-r', self.fps,
                         '-s', '1920x1080',
                         '-f', 'mov',
                         '-vcodec', 'prores',
                         '-profile:v', '3',
                         '-aspect', '16:9', '-y',
                         'output_file_name' + '.mov'], stdin=PIPE)



    in_pipe = create_pipe()
    with open("~/Desktop/IMG_1973.mov", "rb") as f:
       in_pipe.communicate(input=f)

    This yields the error :

    TypeError: a bytes-like object is required, not '_io.BufferedReader'

    What would be the right way to open/stream a video file into this pipe ? I also needs to be a stream, rather than reading the whole thing into memory.

    PS. please ignore that I could natively open the file in ffmpeg... I am creating a wrapper, and it’s better if I can control the input.

  • Splitting two channels of a WAV file into separate stereo files using ffmpeg

    20 mai 2022, par niedral

    When activating RAW audio on a GoPro camera, you will get a WAV file with 4 channels. Channels 1 and two are the left and the right channel of the audio. Actually, I have no idea what channels 3 and 4 are doing. For me they are empty.
Now I want to have the channels 1 and 2 as dedicated WAV files even turned into a stereo format.
At the moment I achieved this with a two-step process using the ffmpeg command line tool like :
Splitting the channels into separate files

    


    ffmpeg -y -i source.wav -c pcm_s32le -filter_complex 'channelsplit=channel_layout=4.0[C1][C2][C3][C4]' -map '[C1]' channel1.wav -c pcm_s32le -map '[C2]' channel2.wav -map '[C3]' channel3.wav -map '[C4]' channel4.wav

    


    and then convert the mono files into stereo

    


    ffmpeg -y -i channel1.wav -c pcm_s32le -ac 2 channel1-stereo.wav

    


    My question is now if I can do this in one step and even just ignore the two channels I don't care about ?

    


    Right now I need to create temporary files for all four channels and then do a second step to convert the two channels I'm interested in into stereo.

    


  • mov : Rework the check for invalid indexes in stsc

    13 juillet 2016, par Vittorio Giovara
    mov : Rework the check for invalid indexes in stsc
    

    There are samples with invalid stsc that may work fine as is and
    do not need extradata change. So ignore any out of range index, and
    error out only when explode is set.

    Found-by : Matthieu Bouron <matthieu.bouron@stupeflix.com>

    Signed-off-by : Vittorio Giovara <vittorio.giovara@gmail.com>

    • [DBH] libavformat/mov.c