Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (13159)

  • How to download audio and video as separate files and specify the output format and filename for each ?

    14 novembre 2023, par Taako

    I'd like to download a video as separate files for both audio and video and have them named [video_id]-audio.wav and [video_id]-video.mp4

    


    How do i get yt-dlp to download the video and audio separately, then convert each to the specified output format and rename them as such ?

    


    Right now I can get them each downloaded separately but the naming isnt working out.

    


    I could also use ffmpeg separately to convert the video and audio formats after they are downloaded, so all i really need is to have the audio and video files downloaded and named

    


    Right now my args are

    


    YT_OPTIONS = {
    'format': 'bestvideo[height<=720]+bestaudio/best[height<=720]',
    'extractaudio': True,
    'keepvideo': True,
    'outtmpl': '%(id)s-%(format)s.%(ext)s',
    'restrictfilenames': True,
    'noplaylist': True
}


    


    but the format is just coming out as 247_-_1280x720_720p_+251_-_audio_only_medium and whats worse is it is the same for both the audio only and video only files just one has 251 and the other has 247.

    


  • avformat/webmdashenc : Don't use custom option for bitexactness

    17 mars 2020, par Andreas Rheinhardt
    avformat/webmdashenc : Don't use custom option for bitexactness
    

    The WebM DASH Manifest muxer can write manifests for live streams and
    these contain an entry that depends on the time the manifest is written ;
    an AVOption to make the output reproducible has been added for tests.
    But this is unnecessary, as there already is a method for reproducible
    output : The AVFMT_FLAG_BITEXACT-flag of the AVFormatContext. Therefore
    this commit removes the custom option.

    Given that the description of said option contained "private option -
    users should never set this" and that it was not documented in
    muxers.texi, no deprecation period for this option seemed necessary.

    The commands of the FATE-tests for this muxer have been changed to no
    longer use this option.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/webmdashenc.c
    • [DH] tests/fate/vpx.mak
  • how to download portion of video which was uploaded into AWS s3 bucket, though Nodejs SDKs

    22 février 2024, par rama rangeswara reddy

    I have uploaded a 1GB .mp4 file to an AWS S3 bucket. Using the AWS-SDK provided by the npm package, I am able to download the entire video. However, I have a specific requirement to generate a thumbnail at the 6-second mark of the video. Currently, I download the entire 1GB video to my local machine and then generate the thumbnail at the desired duration.

    &#xA;

    To optimize server resources and reduce disk load, I plan to download only the first 10 seconds of the video, which should be approximately 10MB or less in size. By doing so, I can significantly reduce download time and server load while still fulfilling my requirement of generating the thumbnail at the 6-second mark. Therefore, instead of downloading the entire 1GB video, I aim to download only the 10MB segment corresponding to the first 10 seconds of the video.

    &#xA;

    I am using nodejs, expressJS, as backed Technologies.

    &#xA;

    `

    &#xA;

    `async function downloadS3FileToLocalDirAndReturnPath(videoKey) {&#xA;    return new Promise(async (resolve, reject) => {&#xA;        try {&#xA;            AWS.config.update({&#xA;                accessKeyId: config.AWS.KEYS.accessKeyId,&#xA;                secretAccessKey: config.AWS.KEYS.secretAccessKey,&#xA;                region: config.AWS.KEYS.region,&#xA;                httpOptions: config.AWS.KEYS.httpOptions&#xA;            });&#xA;            const s3 = new AWS.S3();&#xA;&#xA;            // Specify the local file path where you want to save the downloaded video&#xA;            const localFilePath = `${os.tmpdir()}/${Date.now()}_sre.mp4`;&#xA;&#xA;            // Configure the parameters for the S3 getObject operation&#xA;            const params = {&#xA;                Bucket: config.AWS.S3_BUCKET,&#xA;                Key: videoKey&#xA;            };&#xA;&#xA;            const result = await s3.getObject(params).promise();&#xA;            const fileContent = result.Body;&#xA;            fs.writeFileSync(localFilePath, fileContent);&#xA;            resolve(localFilePath);&#xA;        } catch (error) {&#xA;            reject(error);&#xA;        }&#xA;    });&#xA;}`&#xA;

    &#xA;

    this code was working fine to download the whole video , but i need to download only first 10 seconds duration

    &#xA;

    S3 : How to do a partial read / seek without downloading the complete file ?

    &#xA;

    I tried this ,before posting this question with above post, video was downloading , it was not playing , by throwing this error , the file contains no playable streams

    &#xA;

    async function generateThumbnails(videoKey) {&#xA;&#xA;const s3 = new AWS.S3();&#xA;&#xA;const params = {&#xA;    Bucket: KEYS.bucket,&#xA;    Key: videoKey, // Specify the key of the video file in S3&#xA;    Range: `bytes=0-${1024 * 800}`, // Specify the range of bytes you want to retrieve&#xA;};&#xA;&#xA;const file = fs.createWriteStream(`/tmp/${Date.now()}_rama.mp4`);&#xA;&#xA;const s3Stream = s3.getObject(params).createReadStream();&#xA;&#xA;s3Stream.pipe(file);&#xA;&#xA;s3Stream.on("error", (error) => {&#xA;    console.log("Error Occured while File downloading!! ");&#xA;});&#xA;&#xA;s3Stream.on("finish", () => {&#xA;    console.log("File downloaded Successfully ");&#xA;});&#xA;

    &#xA;

    }

    &#xA;