Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (79)

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

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (9426)

  • How to prepare media stream to play using dash.js web player ?

    7 avril 2016, par Paweł Tobiszewski

    I want to stream media from nginx server to Android device and play it using web player embedded into web page. Player I want to use is dash.js.
    I play the same media also using different methods (MediaPlayer and ExoPlayer) and they are working great. But when I try to use dash.js, I faced problem with codecs - they are not supported.
    I prepare my streams using ffmpeg and MP4Box, I also tried different codecs, like libx264, x264, x265 - always with the same effect.
    My based media are video in Y4M format and audio in WAV.
    How to encode it to use it in dash.js player ?

    EDIT :
    I get error "Video Element Error : MEDIA_ERR_DECODE" while trying to decode video stream.

    Here is full log :

    [16] EME detected on this user agent! (ProtectionModel_21Jan2015)
    [19] Playback Initialized
    [28] [dash.js 2.0.0] MediaPlayer has been initialized
    [102] Parsing complete: ( xml2json: 3ms, objectiron: 3ms, total: 0.006s)
    [103] Manifest has been refreshed at Thu Apr 07 2016 22:02:52 GMT+0200 (CEST)[1460059372.696]  
    [107] SegmentTimeline detected using calculated Live Edge Time
    [118] MediaSource is open!
    [118] [object Event]
    [119] Duration successfully set to: 18.58
    [119] Added 0 inline events
    [120] video codec: video/mp4;codecs="avc1.640032"
    [132] Schedule controller stopping for video
    [137] No audio data.
    [137] No text data.
    [137] No fragmentedText data.
    [137] No embeddedText data.
    [138] No muxed data.
    [139] Start Event Controller
    [141] Schedule controller starting for video
    [143] Native video element event: play
    [144] Schedule controller starting for video
    [148] loaded video:InitializationSegment:NaN (200, 0ms, 7ms)
    [149] Initialization finished loading
    [154] Getting the request for video time : 0
    [155] SegmentList: 0 / 18.58
    [164] loaded video:MediaSegment:0 (200, 7ms, 1ms)
    [169] Native video element event: loadedmetadata
    [171] Starting playback at offset: 0
    [175] Got enough buffer to start.
    [175] Buffered Range: 0 - 0.999999
    [179] Requesting seek to time: 0
    [181] Prior to making a request for time, NextFragmentRequestRule is aligning index handler's currentTime with bufferedRange.end. 0  was changed to  0.999999
    [182] Getting the request for video time : 0.999999
    [183] SegmentList: 0 / 18.58
    [183] Getting the next request at index: 1
    [184] SegmentList: 1 / 18.58
    [190] loaded video:MediaSegment:1 (200, 5ms, 0ms)
    [192] Buffered Range: 0 - 0.999999
    [195] Getting the request for video time : 2
    [196] Index for video time 2 is 1
    [197] SegmentList: 1 / 18.58
    [197] Getting the next request at index: 2
    [198] SegmentList: 2 / 18.58
    [205] loaded video:MediaSegment:2 (200, 4ms, 1ms)
    [207] Buffered Range: 0 - 0.999999
    [207] Getting the request for video time : 3
    [208] Index for video time 3 is 2
    [208] SegmentList: 2 / 18.58
    [209] Getting the next request at index: 3
    [209] SegmentList: 3 / 18.58
    [212] Video Element Error: MEDIA_ERR_DECODE
    [212] [object MediaError]
    [215] Schedule controller stopping for video
    [219] Native video element event: pause
  • ffmpeg av_interleaved_write_frame() : Broken pipe under windows

    7 avril 2016, par Allen

    I am using ffmpeg to convert original media file to rawvideo yuv format, ouputed the yuv to pipe, then my command tool receive the raw yuv as input, do some processing.

    e.g :

    D:\huang_xuezhong\build_win32_VDNAGen>ffmpeg -i test.mkv -c:v rawvideo -s 320x240 -f rawvideo - | my_tool -o output

    every time, when run the command, ffmpeg will dump this av_interleaved_write_frame(): Broken pipe error msg :

    Output #0, rawvideo, to 'pipe:':
     Metadata:
     encoder         : Lavf56.4.101
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 120:91 DAR 160:91], q=2-31, 200 kb/s, 24 fps, 24 tbn, 24 tbc (default)
     Metadata:
         encoder         : Lavc56.1.100 rawvideo
     Stream mapping:
         Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))
    Press [q] to stop, [?] for help
    av_interleaved_write_frame(): Broken pipe
    frame=    1 fps=0.0 q=0.0 Lsize=     112kB time=00:00:00.04 bitrate=22118.2kbits/s
    video:112kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
    verhead: 0.000000%
    Conversion failed!

    in my souce code : it take stdin as the input file, every time, it read a frame size content from it, if the content read is less than a frame size, then continue read, until a frame is fetched, then it use the frame content to generate something.

    int do_work (int jpg_width, int jpg_height)
    {
    int ret = 0;

    FILE *yuv_fp = NULL;
    unsigned char * yuv_buf = NULL;
    int frame_size = 0;
    int count = 0;
    int try_cnt = 0;

    frame_size = jpg_width * jpg_height * 3 / 2;
    va_log (vfp_log, "a frame size:%d\n", frame_size);

    yuv_fp = stdin;

    yuv_buf = (unsigned char *) aligned_malloc_int(
           sizeof(char) * (jpg_width + 1) * (jpg_height + 1) * 3, 128);

    if (!yuv_buf) {
       fprintf (stderr, "malloc yuv buf error\n");
       goto end;
    }

    memset (yuv_buf, 0, frame_size);
    while (1) {

       try_cnt++;
       va_log (vfp_log, "try_cnt is %d\n", try_cnt);

       //MAX_TRY_TIMES = 10
       if (try_cnt > MAX_TRY_TIMES) {
           va_log (vfp_log, "try time out\n");
           break;
       }

       count = fread (yuv_buf + last_pos, 1, frame_size - last_pos, yuv_fp);
       if (last_pos + count < frame_size) {
           va_log (vfp_log, "already read yuv: %d, this time:%d\n", last_pos + count, count);
           last_pos += count;
           continue;
       }

       // do my work here

       memset (yuv_buf, 0, frame_size);
       last_pos = 0;
       try_cnt = 0;
    }

    end:
    if (yuv_buf) {
       aligned_free_int (yuv_buf);
    }

    return ret;
    }

    my log :

    2016/04/05 15:20:38 : a frame size:115200
    2016/04/05 15:20:38 : try_cnt is 1
    2016/04/05 15:20:38 : already read yuv : 49365, this time:49365
    2016/04/05 15:20:38 : try_cnt is 2
    2016/04/05 15:20:38 : already read yuv : 49365, this time:0
    2016/04/05 15:20:38 : try_cnt is 3
    2016/04/05 15:20:38 : already read yuv : 49365, this time:0
    2016/04/05 15:20:38 : try_cnt is 4
    2016/04/05 15:20:38 : already read yuv : 49365, this time:0
    2016/04/05 15:20:38 : try_cnt is 5
    2016/04/05 15:20:38 : already read yuv : 49365, this time:0
    2016/04/05 15:20:38 : try_cnt is 6
    2016/04/05 15:20:38 : already read yuv : 49365, this time:0
    2016/04/05 15:20:38 : try_cnt is 7
    2016/04/05 15:20:38 : already read yuv : 49365, this time:0
    2016/04/05 15:20:38 : try_cnt is 8
    2016/04/05 15:20:38 : already read yuv : 49365, this time:0
    2016/04/05 15:20:38 : try_cnt is 9
    2016/04/05 15:20:38 : already read yuv : 49365, this time:0
    2016/04/05 15:20:38 : try_cnt is 10
    2016/04/05 15:20:38 : already read yuv : 49365, this time:0
    2016/04/05 15:20:38 : try_cnt is 11
    2016/04/05 15:20:38 : try time out
    ```

    my question :

    when piping used ,does ffmpeg write content to pipe buffer as soon as it has content, or it will buffer some size content, then flushes them to pipe ?Maybe some internal logic that I misunderstood,any one could help explain or fix my code ?

    PS : this command run ok under linux.

  • Anomalie #3769 : form_hidden insère un hidden en trop

    13 avril 2016, par jluc -

    Pour info voilà ce que ça affiche ( le probleme est le id_truc hidden dans le dernier résultat)

    ENV=
    Array
    (
    [page] => truc
    [id_truc] => 10
    [type-page] => truc
    [date] => 2016-04-13 19:25:44
    [date_default] => 1
    [date_redac] => 2016-04-13 19:25:44
    [date_redac_default] => 1
    )
    SELF
    ./ ?page=truc&id_truc=10
    SELF|form_hidden
    />/>
    url_pagetagada
    spip.php ?page=tagada
    URL_PAGEtagada|form_hidden
    />/>