
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (59)
-
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 (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
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 (7166)
-
Saving frames from a network camera (RTSP) to a mp4 file
24 novembre 2015, par Dídac PérezI am quite confused about how to save a video stream into a mp4 file. I am using ffmpeg. Let me explain the problem :
- I connect to a network camera via RTSP (H.264 stream) with avformat_open_input(), avformat_find_stream_info(), av_read_play(), and I get frames with av_read_frame().
- Each time I get a frame with av_read_frame(), I store the corresponding AVPacket in a circular buffer.
- In some points in my application, a range of this circular buffer is selected. I find a key frame used to start from.
- Once I have a list of AVPacket’s starting from a key frame, I write header, frames, and tail, as I described below in the code.
The problem is that the resulting mp4 video has artifacts if I try to watch it using VLC, Windows Media Player, or another one.
I have also realized that the pts of that packets are not continuous, while dts are continuous. I know about B frames, but is this a problem in my case ?
// Prepare the output
AVFormatContext* oc = avformat_alloc_context();
oc->oformat = av_guess_format(NULL, "video.mp4", NULL);
// Must write header, packets, and trailing
avio_open2(&oc->pb, "video.mp4", AVIO_FLAG_WRITE, NULL, NULL);
// Write header
AVStream* stream = avformat_new_stream(oc, (AVCodec*) context->streams[video_stream_index]->codec->codec);
avcodec_copy_context(stream->codec, context->streams[video_stream_index]->codec);
stream->sample_aspect_ratio = context->streams[video_stream_index]->codec->sample_aspect_ratio;
avformat_write_header(oc, NULL);
// FOR EACH FRAME...
... av_write_frame(oc, circular[k]); ...
// Write trailer and close the file
av_write_trailer(oc);
avcodec_close(stream->codec);
avio_close(oc->pb);
avformat_free_context(oc);Thank you so much,
-
ffmepg always get broken video streaming from rtsp protocol [on hold]
6 janvier 2014, par pocI'm trying to capture rtsp streaming from Ip Camera by the command
ffmpeg -t 10 -i rtsp://172.19.1.42/live.sdp -ss 00:00:02.500 -c:v copy download.mp4
However I always get the broken streaming, but if I used the VLC or Qucicktime to watch the RTSP streaming, it worked fine , there was no broken streaming.
Is there any setting or options for ffmpeg can improve the streaming quality ? Thanks
[rtsp @ 0x7f9a84017c00] Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://172.19.1.42/live.sdp':
Metadata:
title : RTSP server
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p, 2048x1536, 13.33 tbr, 90k tbn, 180k tbc
-t is not an input option, keeping it for the next output; consider fixing your command line.
Output #0, mp4, to 'c0_s1_h264_1920x1536_10_cbr_500_6000000_imagequality.mp4':
Metadata:
title : RTSP server
encoder : Lavf54.63.104
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 2048x1536, q=2-31, 90k tbn, 90k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[NULL @ 0x7f9a83805200] RTP: missed 3 packets
Last message repeated 1 times
RTP: missed 3 packets=-1.0 size= 521kB time=00:00:00.80 bitrate=5303.8kbits/s
[NULL @ 0x7f9a83805200] RTP: missed 3 packets
RTP: missed 3 packets=-1.0 size= 895kB time=00:00:01.40 bitrate=5224.0kbits/s
[NULL @ 0x7f9a83805200] RTP: missed 3 packets
RTP: missed 3 packets=-1.0 size= 1271kB time=00:00:02.00 bitrate=5192.3kbits/s
[NULL @ 0x7f9a83805200] RTP: missed 3 packets
RTP: missed 3 packets=-1.0 size= 1646kB time=00:00:02.60 bitrate=5175.1kbits/s
RTP: missed 2 packets=-1.0 size= 2029kB time=00:00:03.20 bitrate=5183.5kbits/s
RTP: missed 3 packets=-1.0 size= 2420kB time=00:00:03.80 bitrate=5207.3kbits/s
RTP: missed 2 packets=-1.0 size= 2801kB time=00:00:04.40 bitrate=5206.0kbits/s
[NULL @ 0x7f9a83805200] RTP: missed 3 packets
RTP: missed 2 packets=-1.0 size= 3180kB time=00:00:05.00 bitrate=5201.6kbits/s
[NULL @ 0x7f9a83805200] RTP: missed 3 packets
RTP: missed 3 packets=-1.0 size= 4708kB time=00:00:07.41 bitrate=5204.6kbits/s
RTP: missed 2 packets=-1.0 size= 5088kB time=00:00:08.01 bitrate=5202.7kbits/s
RTP: missed 2 packets=-1.0 size= 5857kB time=00:00:09.21 bitrate=5207.3kbits/s
[NULL @ 0x7f9a83805200] RTP: missed 2 packets
frame= 100 fps= 10 q=-1.0 Lsize= 6382kB time=00:00:09.96 bitrate=5246.4kbits/s -
Displaying text on video while recording and if saved then also(add text to video when start recording)
25 novembre 2017, par J4GD33P 51NGHi’m using this android project from git hub and now want to add text to video when start recording. text should also there if we watch saved video later. can anyone suggest me an idea to do this.