
Recherche avancée
Autres articles (64)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (8159)
-
Create a thumbnail with play icon inside with ffmpeg
14 décembre 2016, par somenxavierI want to create a thubnail with ffmpeg with a play inside (like a picture above ; taking from Dan Meyer site) for showing that it’s a video and not an image.
-
ffmpeg play raw h264 stream, dts/pts problem
29 mars 2019, par LoganMiaI 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 ChaseRatliffI 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)