Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

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

Autres articles (99)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • 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" (...)

Sur d’autres sites (12889)

  • ffmpeg concat two videos with different sizes encounter "do not match" error

    1er juillet 2019, par baojieqh

    I’m trying to concat 4 mp4 files. I’m using the command below but not able to concat

    ffmpeg -i L00.mp4 -i L01.mp4 \
     -filter_complex "[0:v] [0:a] [1:v] [1:a] concat=n=2:v=1:a=1 [v] [a]" \
     -map "[v]" -map "[a]" output.mp4

    Getting this error :

    Input link in1:v0 parameters (size 1150x722, SAR 1:1) do not match the corresponding output link in0:v0 parameters (1158x690, SAR 1:1)

    This command from this post

    ffmpeg -i L00.mp4 -i L01.mp4 -filter_complex \
    "[0:v]scale=1158:722:force_original_aspect_ratio=decrease,pad=1158:722:(ow-iw)/2:(oh-ih)/2[v0]; \
    [1:v]scale=1158:722:force_original_aspect_ratio=decrease,pad=1158:722:(ow-iw)/2:(oh-ih)/2[v1]; \
    [v0][0:a][1:v][1:a]concat=n=2:v=1:a=1[v][a]" \
    -map "[v]" -map "[a]" -c:v libx264 -c:a aac -movflags +faststart output.mp4

    getting this error :

    Filter pad has an unconnected output

    the dimensions of L00.mp4 is 1158 × 690, L01.mp4 is 1150 × 722.

    how to fix this ?

  • Output video file of ffmpeg command video and audio doesn't match

    6 juillet 2022, par Barry

    i'm trying to trim a video file using ffmpeg using this command
ffmpeg -i input.mp4 -ss 00:05:20 -t 00:10:00 -c:v copy -c:a copy output.mp4 . The problem is when i open the output video, the audio starts normally but the video appears only 5 seconds after. I tried removing the -c copy option and output is accurate but the process is very slow. So my question is how to make output video/audio match when using -c copy option, or how to make the process faster when not using -c copy option. It's my first time using this so i don't know much about video/audio encoding, i am just trying to extract a video clip from a php script.

    


  • Open cv.VideoCapture(index) - ffmpeg list camera names - How to match ?

    15 novembre 2024, par Chris P
        def fetch_camera_input_settings(self):
        try:
            self.database_functions = database_functions

            self.camera_input_device_name = database_functions.read_setting("camera_input_device_name")["value"]
            self.camera_input_device_number = int(self.database_functions.read_setting("camera_input_device_number")["value"])

            self.camera_input_devices = [[0,-1,"Καμία συσκευή κάμερας"]]
            self.available_cameras = [{"device_index":-1,"device_name":"Καμία συσκευή κάμερας"}]

            # FFmpeg command to list video capture devices on Windows
            cmd = ["ffmpeg", "-list_devices", "true", "-f", "dshow", "-i", "dummy"]
            result = subprocess.run(cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE, text=True)
            output = result.stderr  # FFmpeg sends device listing to stderr

            # Updated regular expression to capture both video and audio devices
            device_pattern = re.compile(r'\[dshow @ .+?\] "(.*?)" \(video\)')
            cameras = device_pattern.findall(output)
            counter = 0
            for camera in cameras:
                counter += 1
                self.camera_input_devices.append([counter,counter-1,camera])
                self.available_cameras.append({"device_index": counter-1, "device_name": camera})

            self.to_emitter.send({"type":"available_devices","devices":self.camera_input_devices,"device_index":self.camera_input_device_number})
        except:
            error_message = traceback.format_exc()
            self.to_emitter.send({"type":"error","error_message":error_message})



    


    How to match ffmpeg camera device names output with cv2.VideoCapture which wants camera index as input ?