Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (20)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • 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" ;

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (6711)

  • In mp4 file created using ffmpeg audio and video not in sync

    14 juin 2017, par Shajana Basheer

    Iam using following command for creating mp4 file where video input is H264 encoded and audio is wav.

    ffmpeg -i video_fifo -f s16le -ar 16000 -ac 2 -i audio_fifo -af "highpass=f=200, lowpass=f=3000" -strict experimental output.mp4

    How to syncronize the audio and video in mp4 file.

  • How to sync DTS with PTS (ffmpeg)

    24 novembre 2017, par Damian

    Just a quick question in regards to video encoding/muxing a video file with ffmpeg. Basically, I have my muxer functioning and I’m trying to have my packets output the correct PTS/DTS.

    This is a portion of my code that encodes my AVFrame, muxing it to an output file :

    int ret;
    int got_packet = 0;

    AVPacket pkt = { 0 };
    av_init_packet(&pkt);

    pkt.data = NULL;
    pkt.size = 0;

    /* encode the image */
    ret = avcodec_encode_video2(cc, &pkt, frame, &got_packet);
    if (ret < 0)
    {
       fprintf(stderr, "rasterbench: error encoding video frame: %s\n", av_err2str(ret));
       exit(EXIT_FAILURE);
    }

    if (got_packet)
    {
       av_packet_rescale_ts(&pkt, cc->time_base, st->time_base);

       fprintf(stderr, "\npkt.pts     = %ld\n", pkt.pts);
       fprintf(stderr,   "pkt.dts     = %ld\n", pkt.dts);
       fprintf(stderr, "rasterbench: writing frame\n");

       ret = av_interleaved_write_frame(fmt_ctx, &pkt);
       av_packet_unref(&pkt);
    }
    else
    {
       ret = 0;
    }

    ...

    I’m then getting an output of the following :

    pkt.pts     = 0
    pkt.dts     = 0
    rasterbench: writing frame

    pkt.pts     = 1502
    pkt.dts     = 0
    rasterbench: writing frame

    pkt.pts     = 3003
    pkt.dts     = 1502
    rasterbench: writing frame

    pkt.pts     = 4505
    pkt.dts     = 3003
    rasterbench: writing frame

    ...

    My goal is to have my PST and DST both with the pattern : 1502, 3003, 4505, 6006, 7508, ...

    But it seems that the first DTS value is repeating once, and thus being off-sync with it’s corresponding PTS value. It’s also worth mentioning that the codec context was configured to have no b-frames, so only i- and p- frames are present here.

    Does anyone with more experience have some insight on this ?

    Addition :

    I ran the following command in terminal to check if my DTS and PTS values were consistent to my print statements :

    /opt/dreamcatcher/bin/ffprobe -show_packets -print_format json mux_test.ts | less

    And I got the following :

    {
       "packets": [
           {
               "codec_type": "video",
               "stream_index": 0,
               "pts": 0,
               "pts_time": "0.000000",
               "dts": -1501,
               "dts_time": "-0.016678",
               "duration": 1501,
               "duration_time": "0.016678",
               "convergence_duration": "N/A",
               "convergence_duration_time": "N/A",
               "size": "55409",
               "pos": "564",
               "flags": "K"
           },
           {
               "codec_type": "video",
               "stream_index": 0,
               "pts": 1502,
               "pts_time": "0.016689",
               "dts": 0,
               "dts_time": "0.000000",
               "duration": 1501,
               "duration_time": "0.016678",
               "convergence_duration": "N/A",
               "convergence_duration_time": "N/A",
               "size": "46574",
               "pos": "60160",
               "flags": "_"
           },
           {
               "codec_type": "video",
               "stream_index": 0,
               "pts": 3003,
               "pts_time": "0.033367",
               "dts": 1502,
               "dts_time": "0.016689",
               "duration": 1501,
               "duration_time": "0.016678",
               "convergence_duration": "N/A",
               "convergence_duration_time": "N/A",
               "size": "2544",
               "pos": "110356",
               "flags": "_"
           },

           ...

    Which doesn’t show my first DTS value repeated, but continues to show my DTS one cycle behind my PTS.

  • How to use Intel Quick Sync/iGPU in OVH dedicated server

    3 octobre 2022, par Meir

    I have a dedicated server with the following HW :

    


    CPU: Intel(R) Xeon(R) E-2386G CPU @ 3.50GHz
Motherboard: Manufacturer: ASRockRack, Product Name: E3C252D4U-2T/OVH


    


    According to the Intel website, E-2386G has Intel Quick Sync, and I want to use it.
I tried to check which VGA I have in the system (expected to see Intel + the local), and this is the output :

    


    05:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)


    


    I.e., the Intel iGPU doesn't recognize at all in the system, I tried to check in /dev/dri what are the existing devices there, and this is the output :

    


    ls -alh /dev/dri
total 0
drwxr-xr-x  3 root root      80 Sep 19 10:28 .
drwxr-xr-x 18 root root    4.2K Sep 20 13:05 ..
drwxr-xr-x  2 root root      60 Sep 19 10:28 by-path
crw-rw----  1 root video 226, 0 Sep 19 10:28 card0


    


    When I tried to run vainfo tool, I get the following results :

    


    Vanilla run :

    


    vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error),exit


    


    Run after setting export LIBVA_DRIVER_NAME=i965 :

    


    vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit


    


    Run with sudo :

    


    sudo vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error),exit


    


    How can I use Intel Quick Sync ?

    


    --- edit ---

    


    Running the suggested commands :

    


    vainfo --display DRM
libva info: VA-API version 1.7.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error),exit

vainfo --display wayland
error: failed to initialize display 'wayland'

vainfo --display help
Available displays:
  wayland
  x11
  DRM


sudo journalctl -b | grep i965  (no results)