Recherche avancée

Médias (91)

Autres articles (87)

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

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

  • ffmpeg play raw h264 stream, dts/pts problem

    29 mars 2019, par LoganMia

    I need to use ffmpeg to play the raw h264 stream, but there is no dts/pts inside, there is a timestamp

    void h264_decode(void *h264_buffer, int buflen, double timestamp) {
       ...
       AVStream * st = ic->streams[pkt->stream_index]; //video stream
       double duration_s = av_q2d(st->time_base);
       double duration = duration_s / av_q2d(st->time_base);
       pkt_ts = pkt->dts = pkt->pts = frame_index * duration; // no B frame
       ...
    }

    But the playback speed is too slow,
    How can I use timestamp to set pts/dts correctly ?
    Thanks .

  • How play audio from a .mkv file from specific frame in python

    31 juillet 2022, par ChaseRatliff

    I would like to know how I could go about playing audio from a .mkv file. I am trying to play video. I am using opencv to display the video and ffpyplayer to play the audio. I can set the frame I want to start playing at in opencv but not in ffplayer. Any ideas or suggestions would help a ton. Here is what I have came up with.

    


    import cv2
from ffpyplayer.player import MediaPlayer

video_path=videoName

def PlayVideo(video_path):
    font = cv2.FONT_HERSHEY_SIMPLEX
    video=cv2.VideoCapture(video_path)

    video.set(cv2.CAP_PROP_POS_FRAMES, 7200)
    player = MediaPlayer(video_path)
    while True:
        font = cv2.FONT_HERSHEY_SIMPLEX
        grabbed, frame=video.read()
        audio_frame, val = player.get_frame()

    if not grabbed:
        print("End of video")
        break
        
    if cv2.waitKey(28) & 0xFF == ord("q"):
        break

    cv2.imshow("Video", frame)
    if val != 'eof' and audio_frame is not None:
        #audio
        img, t = audio_frame

video.release()
cv2.destroyAllWindows()

PlayVideo(video_path)


    


  • How to use ffmpeg to play ps stream ?

    10 février 2018, par Zhang

    I use ffmpeg api to play media based on rtsp,but print log "Could not find codec parameters for stream 0 (Video : none, none) : unknown codec" . rtp payload is ps packet,how can I demux?

    if (avformat_open_input(&avFormatCtx, pathUrl, NULL, NULL) != 0) {
       NSLog(@"Open video file fail!!!");
       return NO;
    }

    // Retrieve stream information
    if (avformat_find_stream_info(avFormatCtx, NULL) < 0) {
       NSLog(@"Retrieve stream information fail!!!");
       return NO;
    }

    // Find the first video stream
    videoStream =  av_find_best_stream(avFormatCtx, AVMEDIA_TYPE_VIDEO, -1, -1, &avCodec, 0);
    char *errstr =   av_err2str(videoStream);