
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (25)
-
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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
Sur d’autres sites (4472)
-
linking against SDL library on ubuntu
18 novembre 2013, par ali129this is my first post
I have this problem with SDL library and "ffmpeg's ffplay" and "dosbox" on ubuntu. Here is what happenning :
I have installed SDL and code::blocks.
I also wrote a simple sdl program that shows a picture and tried to compile it tree ways :1- On command prompt which compiled and works perfectly. ( i mean : gcc -o hellosdl hellosd.c -lsdlmain -lsdl)
2- On code::blocks by choosing file->new->project->SDL project
which compiled but gives an error regarding i can't initialize graphicand finally
3- On code::blocks but this time i manually configured sdl. i mean i simply choosed a blanked c file.then added sdl linker options "-lsdlmain and -lsdl" in code::blocks linker settings. and this time the program workes perfectly.Now the problem i have with dosbox and ffmpeg. I tried to compile these programs by running ./configure and make and they compiled without any error. but when i try to run dosbox or ffplay they give me these errors :
ffplay error :
ffplay version 0.11.1.git Copyright (c) 2003-2012 the FFmpeg developers
built on Oct 15 2013 04:34:36 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration :
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 56.100 / 54. 56.100
libavformat 54. 27.101 / 54. 27.101
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 16.104 / 3. 16.104
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
Could not initialize SDL - No available video device
(Did you set the DISPLAY variable ?)and yes my DISPLAY variable is set correctly
echo $DISPLAY
:0.0and
dosbox error :
Exit to error : Can't init SDL No available video device
i also tried installing dosbox using sudo apt-get install dosbox and it works perfectly.
i don't know why for some occasion my sdl library works and for some doesn't .
it would be great if you could help me. -
encode h264 video using ffmpeg library memory issues
31 mars 2015, par ZeppaI’m trying to do screen capture on OS X using ffmpeg’s
avfoundation
library. I capture frames from the screen and encode it using H264 into an flv container.Here’s the command line output of the program :
Input #0, avfoundation, from 'Capture screen 0':
Duration: N/A, start: 9.253649, bitrate: N/A
Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1440x900, 14.58 tbr, 1000k tbn, 1000k tbc
raw video is inCodec
FLV (Flash Video)http://localhost:8090/test.flv
[libx264 @ 0x102038e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x102038e00] profile High, level 4.0
[libx264 @ 0x102038e00] 264 - core 142 r2495 6a301b6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=1 weightp=2 keyint=50 keyint_min=5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=400 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[tcp @ 0x101a5fe70] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
[tcp @ 0x101a5fe70] Connection to tcp://localhost:8090 failed: Connection refused
url_fopen failed: Operation now in progress
[flv @ 0x102038800] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
encoded frame #0
encoded frame #1
......
encoded frame #49
encoded frame #50
testmee(8404,0x7fff7e05c300) malloc: *** error for object 0x102053e08: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
(lldb) bt
* thread #10: tid = 0x43873, 0x00007fff95639286 libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT
* frame #0: 0x00007fff95639286 libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x00007fff9623742f libsystem_pthread.dylib`pthread_kill + 90
frame #2: 0x00007fff977ceb53 libsystem_c.dylib`abort + 129
frame #3: 0x00007fff9ab59e06 libsystem_malloc.dylib`szone_error + 625
frame #4: 0x00007fff9ab4f799 libsystem_malloc.dylib`small_malloc_from_free_list + 1105
frame #5: 0x00007fff9ab4d3bc libsystem_malloc.dylib`szone_malloc_should_clear + 1449
frame #6: 0x00007fff9ab4c877 libsystem_malloc.dylib`malloc_zone_malloc + 71
frame #7: 0x00007fff9ab4b395 libsystem_malloc.dylib`malloc + 42
frame #8: 0x00007fff94aa63d2 IOSurface`IOSurfaceClientLookupFromMachPort + 40
frame #9: 0x00007fff94aa6b38 IOSurface`IOSurfaceLookupFromMachPort + 12
frame #10: 0x00007fff92bfa6b2 CoreGraphics`_CGYDisplayStreamFrameAvailable + 342
frame #11: 0x00007fff92f6759c CoreGraphics`CGYDisplayStreamNotification_server + 336
frame #12: 0x00007fff92bfada6 CoreGraphics`display_stream_runloop_callout + 46
frame #13: 0x00007fff956eba07 CoreFoundation`__CFMachPortPerform + 247
frame #14: 0x00007fff956eb8f9 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
frame #15: 0x00007fff956eb86b CoreFoundation`__CFRunLoopDoSource1 + 475
frame #16: 0x00007fff956dd3e7 CoreFoundation`__CFRunLoopRun + 2375
frame #17: 0x00007fff956dc858 CoreFoundation`CFRunLoopRunSpecific + 296
frame #18: 0x00007fff95792ef1 CoreFoundation`CFRunLoopRun + 97
frame #19: 0x0000000105f79ff1 CMIOUnits`___lldb_unnamed_function2148$$CMIOUnits + 875
frame #20: 0x0000000105f6f2c2 CMIOUnits`___lldb_unnamed_function2127$$CMIOUnits + 14
frame #21: 0x00007fff97051765 CoreMedia`figThreadMain + 417
frame #22: 0x00007fff96235268 libsystem_pthread.dylib`_pthread_body + 131
frame #23: 0x00007fff962351e5 libsystem_pthread.dylib`_pthread_start + 176
frame #24: 0x00007fff9623341d libsystem_pthread.dylib`thread_start + 13I’ve attached the code I used below.
#include <libavcodec></libavcodec>avcodec.h>
#include <libavformat></libavformat>avformat.h>
#include <libswscale></libswscale>swscale.h>
#include <libavdevice></libavdevice>avdevice.h>
#include <libavutil></libavutil>opt.h>
#include
#include
#include
/* compile using
gcc -g -o stream test.c -lavformat -lavutil -lavcodec -lavdevice -lswscale
*/
// void show_av_device() {
// inFmt->get_device_list(inFmtCtx, device_list);
// printf("Device Info=============\n");
// //avformat_open_input(&inFmtCtx,"video=Capture screen 0",inFmt,&inOptions);
// printf("===============================\n");
// }
void AVFAIL (int code, const char *what) {
char msg[500];
av_strerror(code, msg, sizeof(msg));
fprintf(stderr, "failed: %s\nerror: %s\n", what, msg);
exit(2);
}
#define AVCHECK(f) do { int e = (f); if (e < 0) AVFAIL(e, #f); } while (0)
#define AVCHECKPTR(p,f) do { p = (f); if (!p) AVFAIL(AVERROR_UNKNOWN, #f); } while (0)
void registerLibs() {
av_register_all();
avdevice_register_all();
avformat_network_init();
avcodec_register_all();
}
int main(int argc, char *argv[]) {
//conversion variables
struct SwsContext *swsCtx = NULL;
//input stream variables
AVFormatContext *inFmtCtx = NULL;
AVCodecContext *inCodecCtx = NULL;
AVCodec *inCodec = NULL;
AVInputFormat *inFmt = NULL;
AVFrame *inFrame = NULL;
AVDictionary *inOptions = NULL;
const char *streamURL = "http://localhost:8090/test.flv";
const char *name = "avfoundation";
// AVFrame *inFrameYUV = NULL;
AVPacket inPacket;
//output stream variables
AVCodecContext *outCodecCtx = NULL;
AVCodec *outCodec;
AVFormatContext *outFmtCtx = NULL;
AVOutputFormat *outFmt = NULL;
AVFrame *outFrameYUV = NULL;
AVStream *stream = NULL;
int i, videostream, ret;
int numBytes, frameFinished;
registerLibs();
inFmtCtx = avformat_alloc_context(); //alloc input context
av_dict_set(&inOptions, "pixel_format", "uyvy422", 0);
av_dict_set(&inOptions, "probesize", "7000000", 0);
inFmt = av_find_input_format(name);
ret = avformat_open_input(&inFmtCtx, "Capture screen 0:", inFmt, &inOptions);
if (ret < 0) {
printf("Could not load the context for the input device\n");
return -1;
}
if (avformat_find_stream_info(inFmtCtx, NULL) < 0) {
printf("Could not find stream info for screen\n");
return -1;
}
av_dump_format(inFmtCtx, 0, "Capture screen 0", 0);
// inFmtCtx->streams is an array of pointers of size inFmtCtx->nb_stream
videostream = av_find_best_stream(inFmtCtx, AVMEDIA_TYPE_VIDEO, -1, -1, &inCodec, 0);
if (videostream == -1) {
printf("no video stream found\n");
return -1;
} else {
printf("%s is inCodec\n", inCodec->long_name);
}
inCodecCtx = inFmtCtx->streams[videostream]->codec;
// open codec
if (avcodec_open2(inCodecCtx, inCodec, NULL) > 0) {
printf("Couldn't open codec");
return -1; // couldn't open codec
}
//setup output params
outFmt = av_guess_format(NULL, streamURL, NULL);
if(outFmt == NULL) {
printf("output format was not guessed properly");
return -1;
}
if((outFmtCtx = avformat_alloc_context()) < 0) {
printf("output context not allocated. ERROR");
return -1;
}
printf("%s", outFmt->long_name);
outFmtCtx->oformat = outFmt;
snprintf(outFmtCtx->filename, sizeof(outFmtCtx->filename), streamURL);
printf("%s\n", outFmtCtx->filename);
outCodec = avcodec_find_encoder(AV_CODEC_ID_H264);
if(!outCodec) {
printf("could not find encoder for H264 \n" );
return -1;
}
stream = avformat_new_stream(outFmtCtx, outCodec);
outCodecCtx = stream->codec;
avcodec_get_context_defaults3(outCodecCtx, outCodec);
outCodecCtx->codec_id = AV_CODEC_ID_H264;
outCodecCtx->codec_type = AVMEDIA_TYPE_VIDEO;
outCodecCtx->flags = CODEC_FLAG_GLOBAL_HEADER;
outCodecCtx->width = inCodecCtx->width;
outCodecCtx->height = inCodecCtx->height;
outCodecCtx->time_base.den = 25;
outCodecCtx->time_base.num = 1;
outCodecCtx->pix_fmt = AV_PIX_FMT_YUV420P;
outCodecCtx->gop_size = 50;
outCodecCtx->bit_rate = 400000;
//setup output encoders etc
if(stream) {
ret = avcodec_open2(outCodecCtx, outCodec, NULL);
if (ret < 0) {
printf("Could not open output encoder");
return -1;
}
}
if (avio_open(&outFmtCtx->pb, outFmtCtx->filename, AVIO_FLAG_WRITE ) < 0) {
perror("url_fopen failed");
}
avio_open_dyn_buf(&outFmtCtx->pb);
ret = avformat_write_header(outFmtCtx, NULL);
if (ret != 0) {
printf("was not able to write header to output format");
return -1;
}
unsigned char *pb_buffer;
int len = avio_close_dyn_buf(outFmtCtx->pb, (unsigned char **)(&pb_buffer));
avio_write(outFmtCtx->pb, (unsigned char *)pb_buffer, len);
numBytes = avpicture_get_size(PIX_FMT_UYVY422, inCodecCtx->width, inCodecCtx->height);
// Allocate video frame
inFrame = av_frame_alloc();
swsCtx = sws_getContext(inCodecCtx->width, inCodecCtx->height, inCodecCtx->pix_fmt, inCodecCtx->width,
inCodecCtx->height, PIX_FMT_YUV420P, SWS_BILINEAR, NULL, NULL, NULL);
int frame_count = 0;
while(av_read_frame(inFmtCtx, &inPacket) >= 0) {
if(inPacket.stream_index == videostream) {
avcodec_decode_video2(inCodecCtx, inFrame, &frameFinished, &inPacket);
// 1 Frame might need more than 1 packet to be filled
if(frameFinished) {
outFrameYUV = av_frame_alloc();
uint8_t *buffer = (uint8_t *)av_malloc(numBytes);
int ret = avpicture_fill((AVPicture *)outFrameYUV, buffer, PIX_FMT_YUV420P,
inCodecCtx->width, inCodecCtx->height);
if(ret < 0){
printf("%d is return val for fill\n", ret);
return -1;
}
//convert image to YUV
sws_scale(swsCtx, (uint8_t const * const* )inFrame->data,
inFrame->linesize, 0, inCodecCtx->height,
outFrameYUV->data, outFrameYUV->linesize);
//outFrameYUV now holds the YUV scaled frame/picture
outFrameYUV->format = outCodecCtx->pix_fmt;
outFrameYUV->width = outCodecCtx->width;
outFrameYUV->height = outCodecCtx->height;
AVPacket pkt;
int got_output;
av_init_packet(&pkt);
pkt.data = NULL;
pkt.size = 0;
outFrameYUV->pts = frame_count;
ret = avcodec_encode_video2(outCodecCtx, &pkt, outFrameYUV, &got_output);
if (ret < 0) {
fprintf(stderr, "Error encoding video frame: %s\n", av_err2str(ret));
return -1;
}
if(got_output) {
if(stream->codec->coded_frame->key_frame) {
pkt.flags |= AV_PKT_FLAG_KEY;
}
pkt.stream_index = stream->index;
if(pkt.pts != AV_NOPTS_VALUE)
pkt.pts = av_rescale_q(pkt.pts, stream->codec->time_base, stream->time_base);
if(pkt.dts != AV_NOPTS_VALUE)
pkt.dts = av_rescale_q(pkt.dts, stream->codec->time_base, stream->time_base);
if(avio_open_dyn_buf(&outFmtCtx->pb)!= 0) {
printf("ERROR: Unable to open dynamic buffer\n");
}
ret = av_interleaved_write_frame(outFmtCtx, &pkt);
unsigned char *pb_buffer;
int len = avio_close_dyn_buf(outFmtCtx->pb, (unsigned char **)&pb_buffer);
avio_write(outFmtCtx->pb, (unsigned char *)pb_buffer, len);
} else {
ret = 0;
}
if(ret != 0) {
fprintf(stderr, "Error while writing video frame: %s\n", av_err2str(ret));
exit(1);
}
fprintf(stderr, "encoded frame #%d\n", frame_count);
frame_count++;
av_free_packet(&pkt);
av_frame_free(&outFrameYUV);
av_free(buffer);
}
}
av_free_packet(&inPacket);
}
av_write_trailer(outFmtCtx);
//close video stream
if(stream) {
avcodec_close(outCodecCtx);
}
for (i = 0; i < outFmtCtx->nb_streams; i++) {
av_freep(&outFmtCtx->streams[i]->codec);
av_freep(&outFmtCtx->streams[i]);
}
if (!(outFmt->flags & AVFMT_NOFILE))
/* Close the output file. */
avio_close(outFmtCtx->pb);
/* free the output format context */
avformat_free_context(outFmtCtx);
// Free the YUV frame populated by the decoder
av_free(inFrame);
// Close the video codec (decoder)
avcodec_close(inCodecCtx);
// Close the input video file
avformat_close_input(&inFmtCtx);
return 1;
}I’m not sure what I’ve done wrong here. But, what I’ve observed is that for each frame thats been encoded, my memory usage goes up by about 6MB. Backtracking afterward usually leads one of the following two culprits :
- avf_read_frame function in avfoundation.m
- av_dup_packet function in avpacket.h
Can I also get advice on the way I’m using avio_open_dyn_buff function to be able to stream over http? I’ve also attached my ffmpeg library versions below :
ffmpeg version N-70876-g294bb6c Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
configuration: --prefix=/usr/local --enable-gpl --enable-postproc --enable-pthreads --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libvorbis --disable-mmx --disable-ssse3 --disable-armv5te --disable-armv6 --disable-neon --enable-shared --disable-static --disable-stripping
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 29.100 / 56. 29.100
libavformat 56. 26.101 / 56. 26.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 13.101 / 5. 13.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Hyper fast Audio and Video encoderValgrind analysis attached here because I exceeded stack overflow’s character limit. http://pastebin.com/MPeRhjhN
-
Is there a media server which just receives any rtsp streams and serves them ?
7 mai 2015, par Given92I have some rtmp streams served over nginx-rtmp-module and the number of them will be changed dynamically.
But for the limit of client, I have to serve them in rtsp protocol. Obviously, It’s not supported by nginx-rtmp-module. So I plan to run a rtsp server in the same device, and convert the rtmp stream into rtsp stream with ffmpeg, then send the rtsp stream to the rtsp server. So that client could play the stream from the rtsp server.
The trouble is that I could not found a stable server which just receive any rtsp streams and serve them.
There is an example that fits all my need but it’s a little unstable.
I run it in verbose mode and send stream with :
ffmpeg -i rtmp://localhost/<name> -codec copy -ar 44100 -ac 1 -f rtsp rtsp://localhost:5545/<name>
</name></name>and play the stream with :
gst-launch-0.10 playbin2 uri=rtsp://<server>/<name>
</name></server>The video does not appear and there are some repeated warnning like this :
WARNING: from element /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstRtpVorbisDepay:rtpvorbisdepay0: Could not decode stream.
Additional debug info:
gstrtpvorbisdepay.c(633): gst_rtp_vorbis_depay_process (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstRtpVorbisDepay:rtpvorbisdepay0:When I try :
gst-launch-1.0 playbin uri=rtsp://<server>/<name>
</name></server>it is stuck and no video appear :
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://211.68.127.12/box
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY requestWhen I play with :
ffplay rtsp://<server>/<name>
</name></server>The video appears but the quality depress me.
Here is the output :
```ffplay version 2.6.2 Copyright (c) 2003-2015 the FFmpeg developers
built with gcc 4.9.2 (GCC) 20150304 (prerelease)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
Last message repeated 2 times
[h264 @ 0x7f97f4000cc0] ref 7 overflow
[h264 @ 0x7f97f4000cc0] error while decoding MB 19 23
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 615 DC, 615 AC, 615 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 370 DC, 370 AC, 370 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] ref 4 overflow
[h264 @ 0x7f97f4000cc0] error while decoding MB 37 23
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 597 DC, 597 AC, 597 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 3 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq= 0B f=0/0
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 473 DC, 473 AC, 473 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 564 DC, 564 AC, 564 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 605 DC, 605 AC, 605 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq= 0B f=0/0
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 17 packets0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] ref 4 overflow
[h264 @ 0x7f97f4000cc0] error while decoding MB 27 20
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 742 DC, 742 AC, 742 MV errors in P frame
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 23 packets0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] out of range intra chroma pred mode at 9 4
[h264 @ 0x7f97f4000cc0] error while decoding MB 9 4
[h264 @ 0x7f97f4000cc0] concealing 1480 DC, 1480 AC, 1480 MV errors in I frame
[h264 @ 0x7f97f4000cc0] RTP: missed 7 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] Cannot use next picture in error concealment
[h264 @ 0x7f97f4000cc0] concealing 278 DC, 278 AC, 278 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets 0KB sq= 0B f=0/0
Last message repeated 2 times
[mp3 @ 0x7f97f4009280] RTP: missed 2 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
Last message repeated 1 times
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets 0KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 5 packets
Input #0, rtsp, from 'rtsp://211.68.127.12/box':B sq= 0B f=0/0
Metadata:
title :
Duration: N/A, start: 0.000033, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p(tv), 720x576 [SAR 1:1 DAR 5:4], 24 fps, 24 tbr, 90k tbn, 48 tbc
Stream #0:1: Audio: mp3, 44100 Hz, mono, s16p, 56 kb/s
[h264 @ 0x7f97f4263d40] ref 7 overflow vq= 226KB sq= 0B f=0/0
[h264 @ 0x7f97f4263d40] error while decoding MB 19 23
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 615 DC, 615 AC, 615 MV errors in P frame
[h264 @ 0x7f97f4264580] Cannot use next picture in error concealment
[h264 @ 0x7f97f4264580] concealing 370 DC, 370 AC, 370 MV errors in P frame
[h264 @ 0x7f97f41699a0] ref 4 overflow
[h264 @ 0x7f97f41699a0] error while decoding MB 37 23
[h264 @ 0x7f97f41699a0] Cannot use next picture in error concealment
[h264 @ 0x7f97f41699a0] concealing 597 DC, 597 AC, 597 MV errors in P frame
[h264 @ 0x7f97f4264580] Cannot use next picture in error concealment
[h264 @ 0x7f97f4264580] concealing 473 DC, 473 AC, 473 MV errors in P frame
[h264 @ 0x7f97f4264580] Cannot use next picture in error concealment
[h264 @ 0x7f97f4264580] concealing 564 DC, 564 AC, 564 MV errors in P frame
[h264 @ 0x7f97f41699a0] Cannot use next picture in error concealment
[h264 @ 0x7f97f41699a0] concealing 605 DC, 605 AC, 605 MV errors in P frame
[h264 @ 0x7f97f4264580] out of range intra chroma pred mode at 9 4
[h264 @ 0x7f97f4264580] error while decoding MB 9 4
[h264 @ 0x7f97f4264580] concealing 1480 DC, 1480 AC, 1480 MV errors in I frame
[h264 @ 0x7f97f416a200] ref 4 overflow
[h264 @ 0x7f97f416a200] error while decoding MB 27 20
[h264 @ 0x7f97f416a200] Cannot use next picture in error concealment
[h264 @ 0x7f97f416a200] concealing 742 DC, 742 AC, 742 MV errors in P frame
[h264 @ 0x7f97f416a200] Cannot use next picture in error concealment
[h264 @ 0x7f97f416a200] concealing 278 DC, 278 AC, 278 MV errors in P frame
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets53KB sq= 0B f=0/0
Last message repeated 1 times
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets 60KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 10 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
Last message repeated 2 times
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -4 -4
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -1 -1
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -1 -1
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
Last message repeated 3 times
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -5 -5
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -4 -4
Last message repeated 1 times
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -7 -7
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -5 -5
[mp3 @ 0x7f97f4009280] overread, skip -10 enddists: -6 -6
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
Last message repeated 2 times
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -7 -7
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -6 -6
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -3 -3
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f416a200] Cannot use next picture in error concealment
[h264 @ 0x7f97f42630e0] Cannot use next picture in error concealment
[h264 @ 0x7f97f416a200] concealing 327 DC, 327 AC, 327 MV errors in P frame
[h264 @ 0x7f97f42630e0] concealing 327 DC, 327 AC, 327 MV errors in P frame
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 325 DC, 325 AC, 325 MV errors in P frame
[h264 @ 0x7f97f41699a0] Cannot use next picture in error concealment
[h264 @ 0x7f97f41699a0] concealing 371 DC, 371 AC, 371 MV errors in P frame
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -4 -4 0B f=0/0
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -2 -2
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -7 -7 0B f=0/0
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -2 -2
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets08KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets05KB sq= 0B f=0/0
[h264 @ 0x7f97f4263d40] ref 3 overflow vq= 207KB sq= 0B f=0/0
[h264 @ 0x7f97f4263d40] error while decoding MB 20 34
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 119 DC, 119 AC, 119 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
Last message repeated 1 times
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -2 -2 0B f=0/0
[h264 @ 0x7f97f4263d40] out of range intra chroma pred mode at 37 23
[h264 @ 0x7f97f4263d40] error while decoding MB 37 23
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 597 DC, 597 AC, 597 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -2 -2 0B f=0/0
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -3 -3
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -4 -4
[h264 @ 0x7f97f4000cc0] RTP: missed 16 packets
[h264 @ 0x7f97f41699a0] Cannot use next picture in error concealment
[h264 @ 0x7f97f41699a0] concealing 435 DC, 435 AC, 435 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
Last message repeated 1 times
[mp3 @ 0x7f97f4009280] RTP: missed 2 packets211KB sq= 0B f=0/0
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -2 -2
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -2 -2
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -6 -6
[h264 @ 0x7f97f42630e0] Cannot use next picture in error concealment
[h264 @ 0x7f97f42630e0] concealing 519 DC, 519 AC, 519 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
Last message repeated 1 times
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets158KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 8 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets58KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets55KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets55KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets56KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets66KB sq= 0B f=0/0
[h264 @ 0x7f97f416a200] ref 11 overflowvq= 158KB sq= 0B f=0/0
[h264 @ 0x7f97f416a200] error while decoding MB 13 29
[h264 @ 0x7f97f416a200] Cannot use next picture in error concealment
[h264 @ 0x7f97f416a200] concealing 351 DC, 351 AC, 351 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets54KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets61KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 6 packets57KB sq= 0B f=0/0
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -2 -2 0B f=0/0
[mp3 @ 0x7f97f4009280] overread, skip -8 enddists: -5 -5
[h264 @ 0x7f97f416a200] out of range intra chroma pred mode at 34 8
[h264 @ 0x7f97f416a200] error while decoding MB 34 8
[h264 @ 0x7f97f416a200] concealing 1275 DC, 1275 AC, 1275 MV errors in I frame
[h264 @ 0x7f97f4264580] Cannot use next picture in error concealment
[h264 @ 0x7f97f4264580] concealing 327 DC, 327 AC, 327 MV errors in P frame
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets152KB sq= 0B f=0/0
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -5 -5 0B f=0/0
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -5 -5 0B f=0/0
[h264 @ 0x7f97f42630e0] P sub_mb_type 12 out of range at 9 26=0/0
[h264 @ 0x7f97f42630e0] error while decoding MB 9 26
[h264 @ 0x7f97f42630e0] Cannot use next picture in error concealment
[h264 @ 0x7f97f42630e0] concealing 490 DC, 490 AC, 490 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 3 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 10 packets3KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets29KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets16KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets21KB sq= 0B f=0/0
[h264 @ 0x7f97f42630e0] Cannot use next picture in error concealment
[h264 @ 0x7f97f42630e0] concealing 513 DC, 513 AC, 513 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets19KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets27KB sq= 0B f=0/0
Last message repeated 1 times
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets32KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 3 packets
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets135KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets
[mp3 @ 0x7f97f4009280] overread, skip -9 enddists: -2 -2
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -4 -4 0B f=0/0
[h264 @ 0x7f97f4264580] Cannot use next picture in error concealment
[h264 @ 0x7f97f4264580] concealing 230 DC, 230 AC, 230 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 4 packets21KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 3 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 2 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets05KB sq= 0B f=0/0
Last message repeated 3 times
[h264 @ 0x7f97f4000cc0] RTP: missed 7 packets16KB sq= 0B f=0/0
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets
[h264 @ 0x7f97f4263d40] ref 13 overflowvq= 110KB sq= 0B f=0/0
[h264 @ 0x7f97f4263d40] error while decoding MB 12 33
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 172 DC, 172 AC, 172 MV errors in P frame
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets12KB sq= 0B f=0/0
Last message repeated 2 times
[h264 @ 0x7f97f416a200] Cannot use next picture in error concealment
[h264 @ 0x7f97f416a200] concealing 414 DC, 414 AC, 414 MV errors in P frame
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets116KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
Last message repeated 1 times
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets12KB sq= 0B f=0/0
[h264 @ 0x7f97f4000cc0] RTP: missed 6 packets
[h264 @ 0x7f97f4000cc0] RTP: missed 1 packets
[mp3 @ 0x7f97f4009280] RTP: missed 1 packets126KB sq= 0B f=0/0
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 327 DC, 327 AC, 327 MV errors in P frame
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -1 -1 0B f=0/0
[mp3 @ 0x7f97f4009280] overread, skip -5 enddists: -4 -4
[mp3 @ 0x7f97f4009280] overread, skip -7 enddists: -6 -6
^C[h264 @ 0x7f97f4263d40] ref 7 overflowq= 107KB sq= 0B f=0/0
[h264 @ 0x7f97f4263d40] error while decoding MB 8 24
[h264 @ 0x7f97f4263d40] Cannot use next picture in error concealment
[h264 @ 0x7f97f4263d40] concealing 581 DC, 581 AC, 581 MV errors in P frameI’m not sure whether ffmpeg or rtsp-server is the problem, does anyone have some ideas ?
Thanks very much.