Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (45)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

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

  • Combining Video and Audio of different length in bulk

    25 mai 2017, par user2981223

    I am going through a tv series right now and editing the files to be to my liking. I have one set which has the video I want and one set that has the audio. I have a batch file that I can run that takes the video from every file in folder "A" and the audio from every file in folder "B" and outputs it to a folder named "output." But with this particular series, that is only half of what I need done.

    At the end of every episode of the files in the "B" folder there are some extra things. What I would like to do is take the audio and video from "A" and the audio from "B", combine it all into one file and also take the "A" and "B" files, compare the time stamps, and add the extra video from "B" to the output file.

    Let me put it another way. Let’s say "A" is 1080p with Japanese audio and is 20 minutes long. Let’s say "B" is 720p with English audio and is 23 minutes long. I want the whole 1080p video with both audio tracks, plus the 720p video spliced onto the end. Both files start at the same spot so syncing isn’t an issue. The issue is that the difference in time is different for every episode. So some episodes are 3 minutes longer, some only 30 seconds. Is there a way to make ffmpeg or another tool look at the difference in times and just add the excess to the output file ?

    Sorry for being long winded. Thanks for any help and guidance.

  • Python, Flask, ffmpeg video streaming : Video does not work in Firefox

    12 avril 2018, par user3187926

    I am writing a preview portion for video management system, it works like a charm in chrome with standard tag but firefox does not recognize MIME type for some reason and it bugs me a lot.

    Here is my stream class :

    class Stream:
       run = False
       FNULL = open(os.devnull, 'w')
       overlay = ffmpeg.input("somelogo.png")

       def __init__(self, camid):
           camUtil = CameraUtil()
           self.camid = camid
           self.streamurl = camUtil.get_stream_from_id(self.camid)['streamURL']
           print(self.streamurl)
           self.args = ffmpeg.input(self.streamurl)
           # vcodec="libvpx",
           # acodec="libvorbis",
           self.args = ffmpeg.output(self.args, "-",
                                     f="matroska",
                                     vcodec="copy",
                                     acodec="copy",
                                     blocksize="1024",
                                     # strftime="1",
                                     # segment_time="60",
                                     # segment_format="matroska"
                                     preset="ultrafast",
                                     metadata="title='test'"
                                     )
           self.args = ffmpeg.get_args(self.args)
           print(self.args)
           self.pipe = subprocess.Popen(['ffmpeg'] + self.args,
                                        stdout=subprocess.PIPE,)
                                        #stderr=self.FNULL)

       def dep_stream(self):
           def gen():
               try:
                   f = self.pipe.stdout
                   byte = f.read(1024)
                   while byte:
                       yield byte
                       byte = f.read(1024)
               finally:
                   self.pipe.kill()

           return Response(gen(), status=200,
                           mimetype='video/webm',
                           headers={'Access-Control-Allow-Origin': '*',
                                    "Content-Type": "video/webm",
                                    })

    My html playback portion :

       <video preload="auto" autoplay="autoplay" width="1280" height="720">
         <source src="/stream/{{ camid }}" type="video/webm;codecs=&quot;vp8, vorbis&quot;"></source>
         YOUR BROWSER DOES NOT SUPPORT HTML5, WHAT YEAR ARE YOU FROM?!
       </video>

    Firefox says "No video with supported format and MIME type found" and in console it says

    error : Error Code : NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006)

    Did I do something dumb ?! Or am I missing something, because it works google chrome like a charm

    I need fresh eyes.

    Help plez

  • Android Audio Mixing FMPEG, Mediarecorder file only merging to left channel, delayed

    12 avril 2016, par Jeremy

    working on an app that takes two sounds, and merges them together. I currently have two problems with it I cannot seem to figure out so would appreciate another set of eyes.

    1. File from MediaRecorder (voice file) merges into Left Channel Only. (I can only hear voice in left ear)
    2. The two files seem like there is a slight delay in the position as they are not aligned perfectly with the merge. Here is the method I have written.

      private void mixAudio(File mVoiceFile, File mBeatFile, File mRapFile){
         String files = "-i " + mVoiceFile.getAbsolutePath() + " -i " + mBeatFile.getAbsolutePath();
         String filter = " -filter_complex [0:a]volume=1.5[a1];[1:a]volume=0.6[a2];[a1][a2]amerge=inputs=2,volume=1.3,pan=stereo|c0code>

      }
      `

    and here is how I setup my MediaRecorder

    public void setRecorderSource(){
           mRapRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
           mRapRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
           mRapRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
           mRapRecorder.setAudioEncodingBitRate(128000);
           mRapRecorder.setAudioSamplingRate(44100);
           mRapRecorder.setAudioChannels(2);
           mRapRecorder.setOutputFile(mVoiceFile.getAbsolutePath());
    }`