Recherche avancée

Médias (91)

Autres articles (100)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (8464)

  • Can't Titan Black use NVENC ?

    13 mars 2016, par SPWW

    I compiled FFMPEG with —enable-nvenc and want to encode with NVENC encoder, but I got this error message when running ffmpeg.

    [nvenc_h264 @ 0x8ed020] 4 CUDA capable devices found
    [nvenc_h264 @ 0x8ed020] [ GPU #0 - < GeForce GTX TITAN Black > has Compute SM 3.5, NVENC Not Available ]
    [nvenc_h264 @ 0x8ed020] [ GPU #1 - < GeForce GTX TITAN Black > has Compute SM 3.5, NVENC Not Available ]
    [nvenc_h264 @ 0x8ed020] [ GPU #2 - < GeForce GTX TITAN Black > has Compute SM 3.5, NVENC Not Available ]
    [nvenc_h264 @ 0x8ed020] [ GPU #3 - < GeForce GTX TITAN Black > has Compute SM 3.5, NVENC Not Available ]
    [nvenc_h264 @ 0x8ed020] No NVENC capable devices found

    I have titan black gpu and as the official document said it should be supported.

    my nvenc-sdk version is 5.0

    and the nvidia-smi info is listed below.

    ~> nvidia-smi
    Wed Jan  6 16:36:55 2016
    +------------------------------------------------------+
    | NVIDIA-SMI 352.39     Driver Version: 352.39         |
    |-------------------------------+----------------------+----------------------+
    | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
    |===============================+======================+======================|
    |   0  GeForce GTX TIT...  Off  | 0000:02:00.0     Off |                  N/A |
    | 54%   82C    P2   215W / 250W |   4422MiB /  6143MiB |     77%      Default |
    +-------------------------------+----------------------+----------------------+
    |   1  GeForce GTX TIT...  Off  | 0000:04:00.0     Off |                  N/A |
    | 55%   82C    P2   160W / 250W |   5926MiB /  6143MiB |     84%      Default |
    +-------------------------------+----------------------+----------------------+
    |   2  GeForce GTX TIT...  Off  | 0000:83:00.0     Off |                  N/A |
    | 58%   83C    P2   147W / 250W |   5926MiB /  6143MiB |     68%      Default |
    +-------------------------------+----------------------+----------------------+
    |   3  GeForce GTX TIT...  Off  | 0000:84:00.0     Off |                  N/A |
    | 53%   83C    P2   191W / 250W |   3155MiB /  6143MiB |     85%      Default |
    +-------------------------------+----------------------+----------------------+
  • Audio and video pts is not sync ffmpeg

    12 septembre 2016, par Eugene Alexeev

    I’m trying to write some sort of RTSP iOS streamer which based on ffMpeg project. Basically, I’ve got the project from https://github.com/durfu/DFURTSPPlayer. Big thanks to creator of this project, but unfortunately it has problems with playing of streams so I decided to write streaming player by myself using some author’s developments.

    Of course, for correctly stream playing I need to sync audio with video and I can do it by comparing pts of frames. But the problem is in the huge gap between audio and video pts. I have thoughts that I’m getting pts for audio and video wrong, but I couldn’t find the actual problem by my own. Here’s the function :

    - (void) decodeFrame
    {
       int frameFinished = 0;
       AVPacket newPacket;

       while (frameFinished == 0 && av_read_frame(formatCtx, &newPacket) >= 0)
       {
           if (newPacket.stream_index == videoStream)
           {
               avcodec_decode_video2(videoCodecCtx, videoFrame, &frameFinished, &newPacket);
               [self convertFrameToRGB];

               UIImage *newImage = [self currentImage];
               if (newPacket.pts != AV_NOPTS_VALUE) {
                   newPacket.pts += av_rescale_q(0, AV_TIME_BASE_Q, formatCtx->streams[audioStream]->time_base);
               }
               unsigned long tempVideoPts = newPacket.pts;                
               double presentTime = tempVideoPts * av_q2d(formatCtx->streams[videoStream]->time_base);
               [_ZFbuffer addNewImage:newImage withPts:tempVideoPts withPresentTime:presentTime];
               NSLog(@"tempVideoPts = %lu", tempVideoPts);
           }
           else if (newPacket.stream_index == audioStream)
           {
               NSMutableData *soundData = [[NSMutableData alloc] initWithBytes:newPacket.data length:newPacket.size];
               if (newPacket.pts != AV_NOPTS_VALUE) {
                   newPacket.pts += av_rescale_q(0, AV_TIME_BASE_Q, formatCtx->streams[audioStream]->time_base);
               }
               unsigned long tempAudioPts = newPacket.pts;

               double presentTime = tempAudioPts * av_q2d(formatCtx->streams[audioStream]->time_base);
               [_ZFbuffer addNewSound:soundData withPts:tempAudioPts withPresentTime:presentTime];
               NSLog(@"tempAudioPts = %lu", tempAudioPts);
           }

           av_free_packet(&newPacket);

           if(!streamIsPlaying && [_ZFbuffer bufferedTime:formatCtx->streams[audioStream]->time_base] > 2.0f)  {
               streamIsPlaying = YES;


               //launch audio translation
               if (emptyAudioBuffer != nil) {
                   [self unpackNextSound:emptyAudioBuffer];
               }
           }
       }
    }

    I was expecting that pts will be more or less equal, but here’s my log

    2016-01-05 22:03:03.918 DFURTSPPlayer[1569:76194] tempVideoPts = 180000
    2016-01-05 22:03:03.959 DFURTSPPlayer[1569:76194] tempVideoPts = 183780
    2016-01-05 22:03:04.001 DFURTSPPlayer[1569:76194] tempVideoPts = 187470
    2016-01-05 22:03:04.042 DFURTSPPlayer[1569:76194] tempAudioPts = 58368
    2016-01-05 22:03:04.042 DFURTSPPlayer[1569:76194] tempVideoPts = 191250
    2016-01-05 22:03:04.084 DFURTSPPlayer[1569:76194] tempVideoPts = 195030
    2016-01-05 22:03:04.126 DFURTSPPlayer[1569:76194] tempAudioPts = 59392
    2016-01-05 22:03:04.126 DFURTSPPlayer[1569:76194] tempVideoPts = 198720
    2016-01-05 22:03:04.168 DFURTSPPlayer[1569:76194] tempVideoPts = 202500
    2016-01-05 22:03:04.209 DFURTSPPlayer[1569:76194] tempVideoPts = 206280
    2016-01-05 22:03:04.250 DFURTSPPlayer[1569:76194] tempAudioPts = 60416
    2016-01-05 22:03:04.250 DFURTSPPlayer[1569:76194] tempAudioPts = 61440
    2016-01-05 22:03:04.251 DFURTSPPlayer[1569:76194] tempVideoPts = 209970
    2016-01-05 22:03:04.292 DFURTSPPlayer[1569:76194] tempVideoPts = 213750
    2016-01-05 22:03:04.334 DFURTSPPlayer[1569:76194] tempAudioPts = 62464
    2016-01-05 22:03:04.335 DFURTSPPlayer[1569:76194] tempVideoPts = 217530
    2016-01-05 22:03:04.375 DFURTSPPlayer[1569:76194] tempVideoPts = 221220
    2016-01-05 22:03:04.417 DFURTSPPlayer[1569:76194] tempAudioPts = 63488
    2016-01-05 22:03:04.418 DFURTSPPlayer[1569:76194] tempVideoPts = 225000
    2016-01-05 22:03:04.459 DFURTSPPlayer[1569:76194] tempVideoPts = 228780
    2016-01-05 22:03:04.501 DFURTSPPlayer[1569:76194] tempVideoPts = 232470
    2016-01-05 22:03:04.541 DFURTSPPlayer[1569:76194] tempAudioPts = 64512
    2016-01-05 22:03:04.542 DFURTSPPlayer[1569:76194] tempVideoPts = 236250
    2016-01-05 22:03:04.584 DFURTSPPlayer[1569:76194] tempVideoPts = 240030
    2016-01-05 22:03:04.626 DFURTSPPlayer[1569:76194] tempAudioPts = 65536
    2016-01-05 22:03:04.626 DFURTSPPlayer[1569:76194] tempVideoPts = 243720
    2016-01-05 22:03:04.668 DFURTSPPlayer[1569:76194] tempVideoPts = 247500
    2016-01-05 22:03:04.709 DFURTSPPlayer[1569:76194] tempVideoPts = 251280
    2016-01-05 22:03:04.750 DFURTSPPlayer[1569:76194] tempAudioPts = 66560
    2016-01-05 22:03:04.750 DFURTSPPlayer[1569:76194] tempVideoPts = 254970
    2016-01-05 22:03:04.792 DFURTSPPlayer[1569:76194] tempVideoPts = 258750
    2016-01-05 22:03:04.834 DFURTSPPlayer[1569:76194] tempAudioPts = 67584
    2016-01-05 22:03:04.834 DFURTSPPlayer[1569:76194] tempAudioPts = 68608

    If anybody was facing this problem please help me out. I understand that I’m missing something but I can’t understand what exactly. Appreciate for your time and help.

  • Cleanup FLAC__bitmath_silog2()

    3 janvier 2016, par Thomas Zander
    Cleanup FLAC__bitmath_silog2()
    

    - Retire 32bit variant of silog2(), since only the _wide variant is used
    - Rename FLAC__bitmath_silog2_wide() to FLAC__bitmath_silog2()
    - Replace existing implementation by shorter, clearer implementation
    using optimised routines from bitmath.h
    - Update Copyright string to 2016 in changed files

    Signed-off-by : Erik de Castro Lopo <erikd@mega-nerd.com>
    Closes : https://github.com/xiph/flac/pull/6

    • [DH] src/libFLAC/bitmath.c
    • [DH] src/libFLAC/include/private/bitmath.h
    • [DH] src/libFLAC/lpc.c