Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (72)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (9868)

  • FFMPEG concat causing audio glitches in segments boundaries

    28 mai 2017, par Idan

    I am segmenting a video file to 10sec segments, transcoding each of them and then run a concat to merge them all back together.
    While the whole process works without errors and the final file is valid and playable, I’ve noticed some sort of glitches/interruptions in the audio stream when passing over the original segments boundaries.

    For example, in a 60sec video that was segmented to 10sec segments and stitched back again, the final output will show audio interruptions in 10/20/30/40/50 sec timestamps.

    For segmenting the files I use :

    ffmpeg -y -i $INPUT_FILE -c copy -flags -global_header -segment_time 10 -break_non_keyframes 0 -reset_timestamps 1 -segment_list file_segs.list -segment_list_type ffconcat -write_empty_segments 0 -segment_format mp4  -f segment file_seg-%d.mp4

    And for concat I use :

    ffmpeg -y -f concat -i file_segs.list -c copy -movflags +faststart file_video.mp4

    Transcoding is to libx264 / aac

    What might be the cause ? Is there any way to work around this problem ?

  • How can i parse strings as the inputs to subprocess.Popen ?

    26 juillet 2013, par rash

    Here I tried to cut first and second 30sec long video file from "path/connect.flv" to the files output1.flv and output2.flv. It works. I able to concatenate these two files to form a new file "final.flv" of 60sec long. So this works and i am getting the outputs output1.flv [30sec], output2.flv[30sec] and final.flv[1min].

    Here is the python code :

    import subprocess

    ffmpeg_command1 = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:00", "-t", "00:00:30", "/home/xincoz/test/output1.flv"]

    ffmpeg_command2 = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:30", "-t", "00:00:30", "/home/xincoz/test/output2.flv"]

    ffmpeg_command3 = ["mencoder", "-forceidx", "-ovc", "copy", "-oac", "pcm", "-o", "/home/xincoz/test/final.flv", "/home/xincoz/test/output1.flv", "/home/xincoz/test/output2.flv"]

    subprocess.call(ffmpeg_command1)

    subprocess.call(ffmpeg_command2)

    subprocess.Popen(ffmpeg_command3)

    But what i really want is to concatenate two strings out1 and out2 and concatinate these two to a file instead of concatenating "/home/xincoz/test/output1.flv" and "/home/xincoz/test/output2.flv". So how can i parse string out1 and out2 as the inputs to mencoder ? Please edit my code to achieve the result.

    import subprocess,os

    ffmpeg_command = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:00", "-t", "00:00:30","-f", "flv", "pipe:1"]

    p = subprocess.Popen(ffmpeg_command,stdout=subprocess.PIPE)

    out1, err = p.communicate()

    ffmpeg_command1 = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:30", "-t", "00:00:30","-f", "flv", "pipe:1"]

    p1 = subprocess.Popen(ffmpeg_command1,stdout=subprocess.PIPE)

    out2, err1 = p1.communicate()

    ffmpeg_command2 = ["mencoder", "-forceidx", "-ovc", "copy", "-oac", "pcm", "-o", "/home/xincoz/test/final.flv", out1, out2 ]

    p2=subprocess.Popen(ffmpeg_command2)

    Please help me. Thanks a lot in advance.

  • AWS MediaConvert generating double length video

    1er mai 2024, par user1hjgjhgjhggjhg

    I am new to aws media convert. I am trying to convert the video but the final output video becomes double the length from the original one. for example if I have a video 30 seconds long, it will create 60 seconds long final video. Below is my son.

    &#xA;

    {&#xA;  "Queue": "arn:aws:mediaconvert:us-west-2:730335xxxxx:queues/Default",&#xA;  "UserMetadata": {},&#xA;  "Role": "arn:aws:iam::73033541xxxx:role/service-role/MediaConvert_Default_Role",&#xA;  "Settings": {&#xA;    "TimecodeConfig": {&#xA;      "Source": "ZEROBASED"&#xA;    },&#xA;    "OutputGroups": [&#xA;      {&#xA;        "Name": "DASH ISO",&#xA;        "Outputs": [&#xA;          {&#xA;            "ContainerSettings": {&#xA;              "Container": "MPD"&#xA;            },&#xA;            "VideoDescription": {&#xA;              "CodecSettings": {&#xA;                "Codec": "H_264",&#xA;                "H264Settings": {&#xA;                  "MaxBitrate": 3500000,&#xA;                  "RateControlMode": "QVBR",&#xA;                  "SceneChangeDetect": "TRANSITION_DETECTION"&#xA;                }&#xA;              }&#xA;            },&#xA;            "NameModifier": "_output1"&#xA;          }&#xA;        ],&#xA;        "OutputGroupSettings": {&#xA;          "Type": "DASH_ISO_GROUP_SETTINGS",&#xA;          "DashIsoGroupSettings": {&#xA;            "SegmentLength": 30,&#xA;            "Destination": "s3://tutorial/video/",&#xA;            "FragmentLength": 2,&#xA;            "SegmentControl": "SINGLE_FILE"&#xA;          }&#xA;        }&#xA;      }&#xA;    ],&#xA;    "FollowSource": 1,&#xA;    "Inputs": [&#xA;      {&#xA;        "AudioSelectors": {&#xA;          "Audio Selector 1": {&#xA;            "DefaultSelection": "DEFAULT"&#xA;          }&#xA;        },&#xA;        "VideoSelector": {},&#xA;        "TimecodeSource": "ZEROBASED",&#xA;        "FileInput": "s3://tutorial/video/11 - video.mp4"&#xA;      }&#xA;    ]&#xA;  },&#xA;  "BillingTagsSource": "JOB",&#xA;  "AccelerationSettings": {&#xA;    "Mode": "DISABLED"&#xA;  },&#xA;  "StatusUpdateInterval": "SECONDS_60",&#xA;  "Priority": 0&#xA;}&#xA;

    &#xA;

    Please help

    &#xA;