Recherche avancée

Médias (91)

Autres articles (32)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

Sur d’autres sites (3909)

  • avcodec/v4l2_context : send start decode command after dynamic resolution change event

    4 janvier 2022, par Ming Qian
    avcodec/v4l2_context : send start decode command after dynamic resolution change event
    

    Fixes decoding of sample https://streams.videolan.org/ffmpeg/incoming/720p60.mp4
    on RPi4 after kernel driver commit :
    staging : bcm2835-codec : Format changed should trigger drain

    Reference :
    linux/Documentation/userspace-api/media/v4l/dev-decoder.rst
    "A source change triggers an implicit decoder drain, similar to the
    explicit Drain sequence. The decoder is stopped after it completes.
    The decoding process must be resumed with either a pair of calls to
    VIDIOC_STREAMOFF and VIDIOC_STREAMON on the CAPTURE queue, or a call to
    VIDIOC_DECODER_CMD with the V4L2_DEC_CMD_START command."

    Reviewed-by : Andriy Gelman <andriy.gelman@gmail.com>
    Signed-off-by : Ming Qian <ming.qian@nxp.com>

    • [DH] libavcodec/v4l2_context.c
  • ffmpeg commands to concatenate different type and resolution videos into 1 video and can be played in android [duplicate]

    24 août 2021, par Aalap

    I want to concatinate 4 different videos of 4 different resolution and type into 1 video which can be played in android. I am using ffmpeg ported on android using https://github.com/guardianproject/android-ffmpeg

    &#xA;&#xA;

    So I have these 4 different types of videos&#xA;1)

    &#xA;&#xA;

    ./ffmpeg -i 1.mp4 &#xA;Video: h264 (High), yuv420p, 1920x1080, 16959 kb/s, 29.85 fps, 90k tbr, 90k tbn, 180k tbc&#xA;Audio: aac, 48000 Hz, stereo, s16, 106 kb/s&#xA;

    &#xA;&#xA;

    2)

    &#xA;&#xA;

    ffmpeg -i 2.mp4&#xA;Video: h264 (Constrained Baseline), yuv420p, 640x480, 3102 kb/s, 29.99 fps, 90k tbr, 90k tbn, 180k tbc&#xA;Audio: aac, 48000 Hz, stereo, s16, 93 kb/s&#xA;

    &#xA;&#xA;

    3)

    &#xA;&#xA;

    ffmpeg -i 3.3gp&#xA;Video: h263, yuv420p, 1408x1152 [PAR 12:11 DAR 4:3], 2920 kb/s, 15 fps, 15 tbr, 15360 tbn, 29.97 tbc&#xA;Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s&#xA;

    &#xA;&#xA;

    4)

    &#xA;&#xA;

    ffmpeg -i 4.3gp&#xA;Video: h264 (High), yuv420p, 352x288 [PAR 12:11 DAR 4:3], 216 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc&#xA;

    &#xA;&#xA;

    Audio : aac, 44100 Hz, stereo, s16, 92 kb/s

    &#xA;&#xA;

    So I am converting them to mpegts using following commands

    &#xA;&#xA;

    ./ffmpeg -i 1.mp4 -c:v libx264 -vf scale=1920:1080 -r 60 -c:a aac -ar 48000 -b:a 160k -strict experimental -f mpegts 1.ts&#xA;./ffmpeg -i 2.mp4 -c:v libx264 -vf scale=1920:1080 -r 60 -c:a aac -ar 48000 -b:a 160k -strict experimental -f mpegts 2.ts&#xA;./ffmpeg -i 3.3gp -c:v libx264 -vf scale=1920:1080 -r 60 -c:a aac -ar 48000 -b:a 160k -strict experimental -f mpegts 3.ts&#xA;./ffmpeg -i 4.3gp -c:v libx264 -vf scale=1920:1080 -r 60 -c:a aac -ar 48000 -b:a 160k -strict experimental -f mpegts 4.ts&#xA;

    &#xA;&#xA;

    then concatenating the .ts files into f.ts and then creating a final .mp4 file from it using

    &#xA;&#xA;

    cat 1.ts 2.ts 3.ts 4.ts > f.ts&#xA;./ffmpeg -i f.ts -c copy -bsf:a aac_adtstoasc output.mp4&#xA;

    &#xA;&#xA;

    But my f.ts also doesnt seem to play correctly in VLC on linux, it plays first 2 mp4's video + audio and it plays last .3gp's audio only.(Same for output.mp4 too) Could you please help me in figuring out what am I missing ?

    &#xA;&#xA;

    Thanks in advance

    &#xA;

  • NodeMediaServer MP4 change default video resolution 540p

    11 août 2021, par Farooq Zaman

    I have setup a nginx RTMP server and the purpose is to store videos streamed from mobile devices in MP4 format for later analysis. Although mobile devices are streaming videos in 720p resolution NodeMediaServer always store video in 540p resolution. How can I change this behaviour ? Following is NodeMediaServer configuration :

    &#xA;

    const nodeMediaServerConfig = {&#xA;  rtmp: {&#xA;    port: 1936,&#xA;    chunk_size: 60000,&#xA;    gop_cache: true,&#xA;    ping: 60,&#xA;    ping_timeout: 10,&#xA;  },&#xA;  http: {&#xA;    port: 8000,&#xA;    mediaroot: &#x27;./media&#x27;,&#xA;    allow_origin: &#x27;*&#x27;,&#xA;  },&#xA;  trans: {&#xA;    ffmpeg: &#x27;/usr/bin/ffmpeg&#x27;,&#xA;    tasks: [&#xA;      {&#xA;        app: &#x27;live&#x27;,&#xA;        vcParam: [&#xA;          "-c:v",&#xA;          "libx264",&#xA;          "-vf",&#xA;          "scale=720:-1",&#xA;          "-b:v",&#xA;          "2800k",&#xA;          "-bufsize",&#xA;          "4200k",&#xA;          "-preset",&#xA;          "fast",&#xA;        ],&#xA;        ac: &#x27;aac&#x27;,&#xA;        acParam:["-b:a", "128k", "-ar", 48000],&#xA;        mp4: true,&#xA;        mp4Flags: &#x27;[movflags=faststart]&#x27;,&#xA;      },&#xA;    ],&#xA;  },&#xA;};&#xA;

    &#xA;

    Any help in this matter is highly appreciated.

    &#xA;