Memory leak in sout

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
alexkarnaukhov
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jul 2013 13:25

Memory leak in sout

Postby alexkarnaukhov » 09 Jul 2013 14:17

Good day (and sorry for my english),

I need to get rtsp stream from some video server in my local network and retranslate stream to local port using rtp (or http, doesn`t matter). I want to use this retranslated stream in another app. This is a command i used (Ubuntu 12.04, VLC 2.0.5):

Code: Select all

cvlc rtsp://192.168.25.252/live0-1.sdp --sout '#duplicate{dst=display, dst=rtp{mux=ts,dst=127.0.0.1,port=16068}}'
Everything works fine, but sometimes video server begins to produce rtsp stream without video data, only audio packets are coming. This leads to increasing memory consumption and later to vlc crashing. If i use only

Code: Select all

cvlc rtsp://192.168.25.252/live0-1.sdp
there is no memory leak, so problem is definitely in sout module.

Another annoying thing is that when I use libvlc to embed this in my app, there is no any media_event, which I could use to process such situation when video stream has lost. Furthermore, even video_lock/unlock callbacks are calling with period of about 15 fps, but every time picture contains only the latest frame sent by videoserver. So I don`t see the way to somehow prevent memory leakage even in my app using libvlc.
Upd. There is no any information even in verbose (-vvv) output, when video data has been lost.

This is the graph of vlc process memory consumption.Values [kB] are obtained from /proc/[pid]/status. Blue line is max memory consumtion (VmPeak), orange line is current memory(VmSize).
Image

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Memory leak in sout

Postby Jean-Baptiste Kempf » 09 Jul 2013 15:28

You should valgrind it.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

alexkarnaukhov
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jul 2013 13:25

Re: Memory leak in sout

Postby alexkarnaukhov » 10 Jul 2013 10:15

This is valgrind output without --leak-check=full. Output with --leak-check=full is very big, but I can provide it if you would like.

Code: Select all

alexkarnaukhov@alexkarnaukhov-pc:~$ valgrind vlc rtsp://192.168.25.252/live0-1.sdp --sout '#rtp{mux=ts,dst=127.0.0.1,port=16090}' ==2683== Memcheck, a memory error detector ==2683== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==2683== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==2683== Command: vlc rtsp://192.168.25.252/live0-1.sdp --sout #rtp{mux=ts,dst=127.0.0.1,port=16090} ==2683== VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d) ==2683== Warning: invalid file descriptor -1 in syscall close() --2683-- WARNING: Serious error when reading debug info --2683-- When reading debug info from /usr/lib/nvidia-304/libGL.so.304.88: --2683-- Can't make sense of .got.plt section mapping --2683-- WARNING: Serious error when reading debug info --2683-- When reading debug info from /usr/lib/nvidia-304/libnvidia-glcore.so.304.88: --2683-- Can't make sense of .got section mapping ==2683== Warning: invalid file descriptor -1 in syscall close() --2683-- WARNING: Serious error when reading debug info --2683-- When reading debug info from /usr/lib/nvidia-304/libGL.so.304.88: --2683-- Can't make sense of .got.plt section mapping --2683-- WARNING: Serious error when reading debug info --2683-- When reading debug info from /usr/lib/nvidia-304/libnvidia-glcore.so.304.88: --2683-- Can't make sense of .got section mapping ==2748== ==2748== HEAP SUMMARY: ==2748== in use at exit: 1,669,491 bytes in 19,930 blocks ==2748== total heap usage: 60,397 allocs, 40,467 frees, 14,875,732 bytes allocated ==2748== ==2748== LEAK SUMMARY: ==2748== definitely lost: 18,490 bytes in 10 blocks ==2748== indirectly lost: 8,288 bytes in 8 blocks ==2748== possibly lost: 1,070 bytes in 23 blocks ==2748== still reachable: 1,641,643 bytes in 19,889 blocks ==2748== suppressed: 0 bytes in 0 blocks ==2748== Rerun with --leak-check=full to see details of leaked memory ==2748== ==2748== For counts of detected and suppressed errors, rerun with: -v ==2748== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==2749== ==2749== HEAP SUMMARY: ==2749== in use at exit: 1,669,491 bytes in 19,930 blocks ==2749== total heap usage: 60,397 allocs, 40,467 frees, 14,875,732 bytes allocated ==2749== ==2749== LEAK SUMMARY: ==2749== definitely lost: 18,490 bytes in 10 blocks ==2749== indirectly lost: 8,288 bytes in 8 blocks ==2749== possibly lost: 1,070 bytes in 23 blocks ==2749== still reachable: 1,641,643 bytes in 19,889 blocks ==2749== suppressed: 0 bytes in 0 blocks ==2749== Rerun with --leak-check=full to see details of leaked memory ==2749== ==2749== For counts of detected and suppressed errors, rerun with: -v ==2749== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==2750== ==2750== HEAP SUMMARY: ==2750== in use at exit: 1,669,491 bytes in 19,930 blocks ==2750== total heap usage: 60,397 allocs, 40,467 frees, 14,875,732 bytes allocated ==2750== ==2750== LEAK SUMMARY: ==2750== definitely lost: 18,490 bytes in 10 blocks ==2750== indirectly lost: 8,288 bytes in 8 blocks ==2750== possibly lost: 1,070 bytes in 23 blocks ==2750== still reachable: 1,641,643 bytes in 19,889 blocks ==2750== suppressed: 0 bytes in 0 blocks ==2750== Rerun with --leak-check=full to see details of leaked memory ==2750== ==2750== For counts of detected and suppressed errors, rerun with: -v ==2750== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==2751== ==2751== HEAP SUMMARY: ==2751== in use at exit: 1,669,491 bytes in 19,930 blocks ==2751== total heap usage: 60,397 allocs, 40,467 frees, 14,875,732 bytes allocated ==2751== ==2751== LEAK SUMMARY: ==2751== definitely lost: 18,490 bytes in 10 blocks ==2751== indirectly lost: 8,288 bytes in 8 blocks ==2751== possibly lost: 1,070 bytes in 23 blocks ==2751== still reachable: 1,641,643 bytes in 19,889 blocks ==2751== suppressed: 0 bytes in 0 blocks ==2751== Rerun with --leak-check=full to see details of leaked memory ==2751== ==2751== For counts of detected and suppressed errors, rerun with: -v ==2751== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) [0x43afeb0] main libvlc: Запуск vlc с интерфейсом по умолчанию. Используйте 'cvlc' для запуска vlc без интерфейса. ==2683== Thread 3: ==2683== Invalid read of size 4 ==2683== at 0x5ADC4A2: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5ADEB09: FcConfigFilename (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF31EB: FcConfigParseAndLoad (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AE8065: FcInitLoadConfig (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AE8188: FcInitLoadConfigAndFonts (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AE840C: FcInit (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x64B9600: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x643AC0B: QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6DE7477: ??? ==2683== Address 0x6de657c is 20 bytes inside a block of size 22 alloc'd ==2683== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2683== by 0x5ADC407: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5ADEB09: FcConfigFilename (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF31EB: FcConfigParseAndLoad (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AE8065: FcInitLoadConfig (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AE8188: FcInitLoadConfigAndFonts (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AE840C: FcInit (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x64B9600: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x643AC0B: QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6DE7477: ??? ==2683== ==2683== Invalid read of size 4 ==2683== at 0x5ADC4B6: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x900642D: ??? ==2683== Address 0x6e3efd8 is 16 bytes inside a block of size 18 alloc'd ==2683== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2683== by 0x5ADC407: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x900642D: ??? ==2683== ==2683== Invalid read of size 4 ==2683== at 0x5ADC4B6: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF31EB: FcConfigParseAndLoad (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF36A8: FcConfigParseAndLoad (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF3A63: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== Address 0x722c898 is 40 bytes inside a block of size 42 alloc'd ==2683== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2683== by 0x5ADC407: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF31EB: FcConfigParseAndLoad (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF36A8: FcConfigParseAndLoad (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF3A63: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== ==2683== Invalid read of size 4 ==2683== at 0x5ADC4A2: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF31EB: FcConfigParseAndLoad (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF36A8: FcConfigParseAndLoad (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF3A63: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== Address 0x70380a4 is 36 bytes inside a block of size 39 alloc'd ==2683== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2683== by 0x5ADC407: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF31EB: FcConfigParseAndLoad (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF36A8: FcConfigParseAndLoad (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x5AF3A63: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== ==2683== Invalid read of size 4 ==2683== at 0x5ADC4B6: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x2E73746D: ??? ==2683== Address 0x7309348 is 32 bytes inside a block of size 34 alloc'd ==2683== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2683== by 0x5ADC407: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x2E73746D: ??? ==2683== ==2683== Invalid read of size 4 ==2683== at 0x5ADC4A2: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x6F632E6B: ??? ==2683== Address 0x6ea73d4 is 20 bytes inside a block of size 22 alloc'd ==2683== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2683== by 0x5ADC407: ??? (in /usr/lib/i386-linux-gnu/libfontconfig.so.1.4.4) ==2683== by 0x6F632E6B: ??? ==2683== ==2683== Conditional jump or move depends on uninitialised value(s) ==2683== at 0x5C4EDD8: inflateReset2 (in /lib/i386-linux-gnu/libz.so.1.2.3.4) ==2683== by 0x5C4EEC7: inflateInit2_ (in /lib/i386-linux-gnu/libz.so.1.2.3.4) ==2683== ==2683== Conditional jump or move depends on uninitialised value(s) ==2683== at 0x65F7EC9: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x65F80F4: QRegion::QRegion(QBitmap const&) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== ==2683== Conditional jump or move depends on uninitialised value(s) ==2683== at 0x65F7EC9: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x65F80F4: QRegion::QRegion(QBitmap const&) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0xCBB4A37: ??? ==2683== ==2683== Invalid read of size 8 ==2683== at 0x6429763: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6624036: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x66293D7: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6635C76: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x65AD423: QPainter::drawPixmap(QPointF const&, QPixmap const&) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x5F68948: ??? (in /home/alexkarnaukhov/plugins/gui/libqt4_plugin.so) ==2683== by 0x648D151: QWidget::event(QEvent*) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6432ED3: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x64383A1: QApplication::notify(QObject*, QEvent*) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== Address 0xda956f0 is 8 bytes before a block of size 65,536 alloc'd ==2683== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2683== by 0x6503348: QImageData::create(QSize const&, QImage::Format, int) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6504588: QImage::QImage(int, int, QImage::Format) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6E1FFFF: ??? ==2683== ==2683== Invalid read of size 8 ==2683== at 0x642986D: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6624036: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x66293D7: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6635C76: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x65AD423: QPainter::drawPixmap(QPointF const&, QPixmap const&) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x5F68948: ??? (in /home/alexkarnaukhov/plugins/gui/libqt4_plugin.so) ==2683== by 0x648D151: QWidget::event(QEvent*) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6432ED3: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x64383A1: QApplication::notify(QObject*, QEvent*) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== Address 0xdaa56f8 is 0 bytes after a block of size 65,536 alloc'd ==2683== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2683== by 0x6503348: QImageData::create(QSize const&, QImage::Format, int) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6504588: QImage::QImage(int, int, QImage::Format) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6E1FFFF: ??? ==2683== ==2683== Invalid read of size 8 ==2683== at 0x6429763: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6624036: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x662AE21: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6635554: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x65AF5BB: QPainter::drawPixmap(QRectF const&, QPixmap const&, QRectF const&) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6778904: QStyle::drawItemPixmap(QPainter*, QRect const&, int, QPixmap const&) const (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0xF: ??? ==2683== Address 0x6dda970 is 8 bytes before a block of size 1,024 alloc'd ==2683== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2683== by 0x6503348: QImageData::create(QSize const&, QImage::Format, int) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6504588: QImage::QImage(int, int, QImage::Format) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x44CFFFF: ??? ==2683== ==2683== Invalid read of size 8 ==2683== at 0x642986D: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6624036: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x662AE21: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6635554: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x65AF5BB: QPainter::drawPixmap(QRectF const&, QPixmap const&, QRectF const&) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6778904: QStyle::drawItemPixmap(QPainter*, QRect const&, int, QPixmap const&) const (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0xF: ??? ==2683== Address 0x6ddad78 is 0 bytes after a block of size 1,024 alloc'd ==2683== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2683== by 0x6503348: QImageData::create(QSize const&, QImage::Format, int) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6504588: QImage::QImage(int, int, QImage::Format) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x44CFFFF: ??? ==2683== ==2683== Invalid read of size 8 ==2683== at 0x6429AA9: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6624036: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x662AE21: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6635554: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x65AF5BB: QPainter::drawPixmap(QRectF const&, QPixmap const&, QRectF const&) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x5FB2E9F: ??? (in /home/alexkarnaukhov/plugins/gui/libqt4_plugin.so) ==2683== by 0xCB35A4F: ??? ==2683== Address 0x78b7c68 is 0 bytes after a block of size 8,840 alloc'd ==2683== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2683== by 0x6503348: QImageData::create(QSize const&, QImage::Format, int) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6504588: QImage::QImage(int, int, QImage::Format) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0xCB7FFFF: ??? ==2683== ==2683== Invalid read of size 8 ==2683== at 0x6429AA9: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6624036: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x66293D7: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6635C76: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x65AD423: QPainter::drawPixmap(QPointF const&, QPixmap const&) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x681C7FE: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x681FFFF: ??? (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== Address 0x5429468 is 896 bytes inside a block of size 900 alloc'd ==2683== at 0x402BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2683== by 0x6503348: QImageData::create(QSize const&, QImage::Format, int) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== by 0x6504588: QImage::QImage(int, int, QImage::Format) (in /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1) ==2683== [0x7b61718] main input error: ES_OUT_RESET_PCR called [0x7b61718] main input error: ES_OUT_RESET_PCR called ==2683== ==2683== HEAP SUMMARY: ==2683== in use at exit: 1,343,158 bytes in 11,481 blocks ==2683== total heap usage: 425,766 allocs, 414,285 frees, 119,354,568 bytes allocated ==2683== ==2683== LEAK SUMMARY: ==2683== definitely lost: 23,829 bytes in 78 blocks ==2683== indirectly lost: 24,806 bytes in 572 blocks ==2683== possibly lost: 552,465 bytes in 3,205 blocks ==2683== still reachable: 742,058 bytes in 7,626 blocks ==2683== suppressed: 0 bytes in 0 blocks ==2683== Rerun with --leak-check=full to see details of leaked memory ==2683== ==2683== For counts of detected and suppressed errors, rerun with: -v ==2683== Use --track-origins=yes to see where uninitialised values come from ==2683== ERROR SUMMARY: 243 errors from 15 contexts (suppressed: 0 from 0)
Unfortunately I failed to run cvlc under valgrind (i dont understand what i am doing wrong) - it just produce several lines:

Code: Select all

valgrind --leak-check=full cvlc rtsp://192.168.25.252/live3-1.sdp --sout '#rtp{mux=ts,dst=127.0.0.1,port=16090}' ==3378== Memcheck, a memory error detector ==3378== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==3378== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==3378== Command: /usr/bin/cvlc rtsp://192.168.25.252/live3-1.sdp --sout #rtp{mux=ts,dst=127.0.0.1,port=16090} ==3378== VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d) [0x8ff78d8] dummy interface: using the dummy interface module... [0xb50005f0] main input error: ES_OUT_RESET_PCR called [0xb50005f0] main input error: ES_OUT_RESET_PCR called ^Calexkarnaukhov@alexkarnaukhov-pc:~$
And what are you expecting from valgrind? As I know, it can just detect such leaks, when you forget to clear memory before reusing a pointer. In this case, I think it can be something like infinitely growing audio buffer, which waits for video data, that doesnt comes. Or something else, in other word not "leak" in classical understanding.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Memory leak in sout

Postby Jean-Baptiste Kempf » 10 Jul 2013 16:41

I don't see that much leaks there, do you? 19kB? And all of those seem to not be in VLC...

Can you share your vlc -vvv logs?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

alexkarnaukhov
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jul 2013 13:25

Re: Memory leak in sout

Postby alexkarnaukhov » 11 Jul 2013 14:41

Video stream was abrupted after line

Code: Select all

[0xb4c038b8] mux_ts mux warning: packet with too strange dts (dts=21269579133,old=21269596155,pcr=21269596155)
As you see, there is no any information appeared after abrupting the video stream. As I think, vlc just waiting for the next video data packet, as it should, and meanwhile it buffers audio data, so it isn`t true memory leak. But because there is no any timeout, and video data doesn`t comes for a long time, buffer grows infinitely , while available memory not ended, and then crashes.

Code: Select all

alexkarnaukhov@alexkarnaukhov-pc:~$ cvlc -vvv rtsp://192.168.20.252/live0-1.sdp --sout '#rtp{mux=ts,dst=127.0.0.1,port=16090}' VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d) [0x8082908] main libvlc debug: VLC media player - 2.0.5 Twoflower [0x8082908] main libvlc debug: Copyright © 1996-2012 VLC authors and VideoLAN [0x8082908] main libvlc debug: revision 2.0.5-0-g1661b7d [0x8082908] main libvlc debug: configured with ./configure '--enable-static' '--build=i686-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=0ubuntu0.12.04.1' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-dbus' '--enable-dca' '--enable-dirac' '--enable-directfb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-oss' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-fbosd' '--enable-libva' '--enable-linsys' '--enable-omxil' '--enable-pvr' '--enable-udev' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'build_alias=i686-linux-gnu' [0x8082908] main libvlc debug: searching plug-in modules [0x8082908] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat [0x8082908] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins' [0x8082908] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat [0x8082908] main libvlc debug: loading plugins cache file /home/alexkarnaukhov/plugins/plugins.dat [0x8082908] main libvlc debug: recursively browsing `/home/alexkarnaukhov/plugins' [0x8082908] main libvlc debug: saving plugins cache /home/alexkarnaukhov/plugins/plugins.dat [0x8082908] main libvlc debug: plug-ins loaded: 839 modules [0x8082908] main libvlc debug: opening config file (/home/alexkarnaukhov/.config/vlc/vlcrc) [0x8082908] main libvlc debug: translation test: code is "ru" [0x8082908] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU [0x8082908] main libvlc debug: looking for memcpy module: 8 candidates [0x8082908] main libvlc debug: using memcpy module "memcpymmxext" [0x80ff3d0] main input debug: Creating an input for 'Медиатека' [0x80ff3d0] main input debug: Input is a meta file: disabling unneeded options [0x80ff3d0] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0x80ff3d0] main input debug: `file/xspf-open:///home/alexkarnaukhov/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/alexkarnaukhov/.local/share/vlc/ml.xspf' [0x80ff3d0] main input debug: creating demux: access='file' demux='xspf-open' location='/home/alexkarnaukhov/.local/share/vlc/ml.xspf' file='/home/alexkarnaukhov/.local/share/vlc/ml.xspf' [0x80fda08] main demux debug: looking for access_demux module: 6 candidates [0x80fda08] main demux debug: no access_demux module matching "file" could be loaded [0x80fda08] main demux debug: TIMER module_need() : 2.523 ms - Total 2.523 ms / 1 intvls (Avg 2.523 ms) [0x80ff3d0] main input debug: creating access 'file' location='/home/alexkarnaukhov/.local/share/vlc/ml.xspf', path='/home/alexkarnaukhov/.local/share/vlc/ml.xspf' [0x82e3010] main access debug: looking for access module: 4 candidates [0x82e3010] filesystem access debug: opening file `/home/alexkarnaukhov/.local/share/vlc/ml.xspf' [0x82e3010] main access debug: using access module "filesystem" [0x82e3010] main access debug: TIMER module_need() : 1.033 ms - Total 1.033 ms / 1 intvls (Avg 1.033 ms) [0x82e3a88] main stream debug: Using stream method for AStream* [0x82e3a88] main stream debug: starting pre-buffering [0x82e3a88] main stream debug: received first data after 0 ms [0x82e3a88] main stream debug: pre-buffering done 301 bytes in 0s - 2470 KiB/s [0x82e3b48] main stream debug: looking for stream_filter module: 14 candidates [0x82e3b48] main stream debug: no stream_filter module matching "any" could be loaded [0x82e3b48] main stream debug: TIMER module_need() : 3.229 ms - Total 3.229 ms / 1 intvls (Avg 3.229 ms) [0x82e3b48] main stream debug: looking for stream_filter module: 2 candidates [0x82e3b48] main stream debug: using stream_filter module "stream_filter_record" [0x82e3b48] main stream debug: TIMER module_need() : 0.480 ms - Total 0.480 ms / 1 intvls (Avg 0.480 ms) [0x80ff3d0] main input debug: creating demux: access='file' demux='xspf-open' location='/home/alexkarnaukhov/.local/share/vlc/ml.xspf' file='/home/alexkarnaukhov/.local/share/vlc/ml.xspf' [0x80a2818] main demux debug: looking for demux module: 2 candidates [0x80a2818] playlist demux debug: using XSPF playlist reader [0x80a2818] main demux debug: using demux module "playlist" [0x80a2818] main demux debug: TIMER module_need() : 0.798 ms - Total 0.798 ms / 1 intvls (Avg 0.798 ms) [0x80f9e58] main demux meta debug: looking for meta reader module: 4 candidates [0x80f9e58] lua demux meta debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/reader [0x80f9e58] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x80f9e58] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x80f9e58] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x80f9e58] lua demux meta debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/reader [0x80f9e58] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x80f9e58] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x80f9e58] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x80f9e58] main demux meta debug: no meta reader module matching "any" could be loaded [0x80f9e58] main demux meta debug: TIMER module_need() : 6.408 ms - Total 6.408 ms / 1 intvls (Avg 6.408 ms) [0x80ff3d0] main input debug: `file/xspf-open:///home/alexkarnaukhov/.local/share/vlc/ml.xspf' successfully opened [0x81027b0] main xml reader debug: looking for xml reader module: 2 candidates [0x81027b0] main xml reader debug: using xml reader module "xml" [0x81027b0] main xml reader debug: TIMER module_need() : 1.279 ms - Total 1.279 ms / 1 intvls (Avg 1.279 ms) [0x80a2818] playlist demux debug: parsed 0 tracks successfully [0x80ff3d0] main input debug: EOF reached [0x80a2818] main demux debug: removing module "playlist" [0x82e3b48] main stream debug: removing module "stream_filter_record" [0x82e3010] main access debug: removing module "filesystem" [0x80ff3d0] main input debug: TIMER input launching for 'Медиатека' : 16.771 ms - Total 16.771 ms / 1 intvls (Avg 16.771 ms) [0x8102190] main interface debug: looking for interface module: 2 candidates [0x8102190] main interface debug: using interface module "hotkeys" [0x8102190] main interface debug: TIMER module_need() : 0.213 ms - Total 0.213 ms / 1 intvls (Avg 0.213 ms) [0x8208780] main interface debug: looking for interface module: 2 candidates [0x8096900] main playlist debug: playlist threads correctly activated [0x8208780] main interface debug: using interface module "inhibit" [0x8096900] main playlist debug: rebuilding array of current - root Плейлист [0x8096900] main playlist debug: rebuild done - 0 items, index -1 [0x8208780] main interface debug: TIMER module_need() : 4.751 ms - Total 4.751 ms / 1 intvls (Avg 4.751 ms) [0x8096900] main playlist debug: adding item `rtsp://192.168.20.252/live0-1.sdp' ( rtsp://192.168.20.252/live0-1.sdp ) [0x8096900] main playlist debug: meta ok for (null), need to fetch art [0x8092298] main interface debug: looking for interface module: 2 candidates [0xb4e005f0] main demux meta debug: looking for meta fetcher module: 2 candidates [0xb4e005f0] lua demux meta debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/fetcher [0xb4e005f0] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/fetcher [0xb4e005f0] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/fetcher/tvrage.luac [0x8092298] main interface debug: using interface module "globalhotkeys" [0x8092298] main interface debug: TIMER module_need() : 0.973 ms - Total 0.973 ms / 1 intvls (Avg 0.973 ms) [0x80f98c8] main interface debug: looking for interface module: 2 candidates [0xb4e005f0] main demux meta debug: using meta fetcher module "lua" [0xb4e005f0] main demux meta debug: TIMER module_need() : 1.131 ms - Total 1.131 ms / 1 intvls (Avg 1.131 ms) [0xb4e005f0] main demux meta debug: removing module "lua" [0x80f98c8] dummy interface: using the dummy interface module... [0x80f98c8] main interface debug: using interface module "dummy" [0x8096900] main playlist debug: searching art for rtsp://192.168.20.252/live0-1.sdp [0x80f98c8] main interface debug: TIMER module_need() : 0.263 ms - Total 0.263 ms / 1 intvls (Avg 0.263 ms) [0x8096900] main playlist debug: processing request item: null, node: Плейлист, skip: 0 [0x8096900] main playlist debug: rebuilding array of current - root Плейлист [0x8096900] main playlist debug: rebuild done - 1 items, index -1 [0x8096900] main playlist debug: starting playback of the new playlist item [0x8096900] main playlist debug: resyncing on rtsp://192.168.20.252/live0-1.sdp [0x8096900] main playlist debug: rtsp://192.168.20.252/live0-1.sdp is at 0 [0x8096900] main playlist debug: creating new input thread [0xb50005f0] main input debug: Creating an input for 'rtsp://192.168.20.252/live0-1.sdp' [0xb4e04080] main art finder debug: looking for art finder module: 4 candidates [0xb4e04080] lua art finder debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/art [0xb4c007d8] main stream output debug: using sout chain=`rtp{mux=ts,dst=127.0.0.1,port=16090}' [0xb4c007d8] main stream output debug: stream=`rtp' [0xb4e04080] lua art finder debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/art [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/00_musicbrainz.luac [0xb4c00a40] main stream out debug: looking for sout stream module: 2 candidates [0xb4c00a40] main stream out debug: set config option: sout-rtp-mux to ts [0xb4c00a40] main stream out debug: set config option: sout-rtp-dst to 127.0.0.1 [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/01_googleimage.luac [0xb4c00a40] main stream out debug: set config option: sout-rtp-port to 16090 [0xb4c038b8] main mux debug: looking for sout mux module: 2 candidates [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/02_frenchtv.luac [0xb4c038b8] mux_ts mux debug: shaping=200000 pcr=70000 dts_delay=400000 [0xb4c038b8] main mux debug: using sout mux module "mux_ts" [0xb4c038b8] main mux debug: TIMER module_need() : 0.611 ms - Total 0.611 ms / 1 intvls (Avg 0.611 ms) [0xb4c007d8] main stream output debug: muxer support adding stream at any time [0xb4c007d8] main stream output debug: muxer prefers to wait for all ES before starting to mux [0xb4c00a40] stream_out_rtp stream out debug: maximum RTP packet size: 1400 bytes [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/03_lastfm.luac [0xb4c00a40] main stream out debug: net: connecting to [127.0.0.1]:16090 [0xb4c00a40] main stream out debug: net: connecting to [127.0.0.1]:16091 from [127.0.0.1]:53819 [0xb4c00a40] stream_out_rtp stream out debug: sdp= v=0 o=- 15386863276749073558 15386863276749073558 IN IP4 alexkarnaukhov-pc s=Unnamed i=N/A c=IN IP4 127.0.0.1 t=0 0 a=tool:vlc 2.0.5 a=recvonly a=type:broadcast a=charset:UTF-8 m=video 16090 RTP/AVP 33 b=RR:0 a=rtpmap:33 MP2T/90000 [0xb4c00a40] main stream out debug: using sout stream module "stream_out_rtp" [0xb4e04080] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art [0xb4c00a40] main stream out debug: TIMER module_need() : 1.706 ms - Total 1.706 ms / 1 intvls (Avg 1.706 ms) [0xb4e04080] lua art finder debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/art [0xb50005f0] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0xb4e04080] lua art finder debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/art [0xb50005f0] main input debug: `rtsp://192.168.20.252/live0-1.sdp' gives access `rtsp' demux `' path `192.168.20.252/live0-1.sdp' [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/00_musicbrainz.luac [0xb50005f0] main input debug: creating demux: access='rtsp' demux='' location='192.168.20.252/live0-1.sdp' file='(null)' [0xb4c04dc8] main demux debug: looking for access_demux module: 2 candidates [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/01_googleimage.luac [0xb4c04dc8] live555 demux debug: version 2011.12.23 [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/02_frenchtv.luac Opening connection to 192.168.20.252, port 554... ...remote connection opened Sending request: OPTIONS rtsp://192.168.20.252/live0-1.sdp RTSP/1.0 CSeq: 2 User-Agent: LibVLC/2.0.5 (LIVE555 Streaming Media v2011.12.23) [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/03_lastfm.luac [0xb4e04080] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art [0xb4e04080] main art finder debug: no art finder module matching "any" could be loaded [0xb4e04080] main art finder debug: TIMER module_need() : 5.015 ms - Total 5.015 ms / 1 intvls (Avg 5.015 ms) [0x8096900] main playlist debug: art not found for rtsp://192.168.20.252/live0-1.sdp Received 106 new bytes of response data. Received a complete OPTIONS response: RTSP/1.0 200 OK CSeq: 2 Public: DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, SET_PARAMETER, GET_PARAMETER Sending request: DESCRIBE rtsp://192.168.20.252/live0-1.sdp RTSP/1.0 CSeq: 3 User-Agent: LibVLC/2.0.5 (LIVE555 Streaming Media v2011.12.23) Accept: application/sdp Received 708 new bytes of response data. Received a complete DESCRIBE response: RTSP/1.0 200 OK CSeq: 3 Content-Base: rtsp://192.168.20.252/live0-1.sdp/ Content-Type: application/sdp Content-Length: 578 v=0 o=RTSP 1373544502 235890 IN IP4 0.0.0.0 s=RTSP server c=IN IP4 0.0.0.0 t=0 0 a=charset:Shift_JIS a=range:npt=0- a=control:* a=etag:1234567890 m=video 0 RTP/AVP 96 b=AS:56 a=rtpmap:96 H264/90000 a=control:trackID=1 a=fmtp:96 packetization-mode=1;profile-level-id=64401e;sprop-parameter-sets=J2RAHqwsagLQSaagoMCoAAAfSAAHUwAg,KO4G4sA= m=audio 0 RTP/AVP 97 a=control:trackID=2 a=rtpmap:97 mpeg4-generic/16000/1 a=fmtp:97 streamtype=5;profile-level-id=15;mode=AAC-hbr;config=1408;SizeLength=13;IndexLength=3;IndexDeltaLength=3;CTSDeltaLength=0;DTSDeltaLength=0 [0xb4c04dc8] live555 demux debug: RTP subsession 'video/H264' Sending request: SETUP rtsp://192.168.20.252/live0-1.sdp/trackID=1 RTSP/1.0 CSeq: 4 User-Agent: LibVLC/2.0.5 (LIVE555 Streaming Media v2011.12.23) Transport: RTP/AVP;unicast;client_port=55458-55459 Received 121 new bytes of response data. Received a complete SETUP response: RTSP/1.0 200 OK CSeq: 4 Session: 22292940 Transport: RTP/AVP;unicast;client_port=55458-55459;server_port=8904-8905 [0xb50005f0] main input debug: selecting program id=0 [0xb4c04dc8] live555 demux debug: RTP subsession 'audio/MPEG4-GENERIC' Sending request: SETUP rtsp://192.168.20.252/live0-1.sdp/trackID=2 RTSP/1.0 CSeq: 5 User-Agent: LibVLC/2.0.5 (LIVE555 Streaming Media v2011.12.23) Transport: RTP/AVP;unicast;client_port=36314-36315 Session: 22292940 Received 121 new bytes of response data. Received a complete SETUP response: RTSP/1.0 200 OK CSeq: 5 Session: 22292940 Transport: RTP/AVP;unicast;client_port=36314-36315;server_port=8906-8907 [0xb4c04dc8] live555 demux debug: setup start: 0.000000 stop:0.000000 Sending request: PLAY rtsp://192.168.20.252/live0-1.sdp/ RTSP/1.0 CSeq: 6 User-Agent: LibVLC/2.0.5 (LIVE555 Streaming Media v2011.12.23) Session: 22292940 Range: npt=0.000- Received 251 new bytes of response data. Received a complete PLAY response: RTSP/1.0 200 OK CSeq: 6 Session: 22292940 RTP-Info: url=rtsp://192.168.20.252/live0-1.sdp//trackID=1;seq=0;rtptime=0;ssrc=22292940,url=rtsp://192.168.20.252/live0-1.sdp//trackID=2;seq=0;rtptime=0;ssrc=22292940 Range: npt=0- RTCP-Interval: 250 [0xb4c04dc8] live555 demux debug: play start: 0.000000 stop:0.000000 [0xb4c04dc8] main demux debug: using access_demux module "live555" [0xb4c04dc8] main demux debug: TIMER module_need() : 17.234 ms - Total 17.234 ms / 1 intvls (Avg 17.234 ms) [0xb4c11510] main decoder debug: looking for packetizer module: 42 candidates [0xb4c11510] packetizer_h264 decoder debug: found NAL_SPS (sps_id=0) [0xb4c11510] packetizer_h264 decoder debug: found NAL_PPS (pps_id=0 sps_id=0) [0xb4c11510] main decoder debug: using packetizer module "packetizer_h264" [0xb4c11510] main decoder debug: TIMER module_need() : 3.823 ms - Total 3.823 ms / 1 intvls (Avg 3.823 ms) [0xb4c32af0] main decoder debug: looking for packetizer module: 42 candidates [0xb4c32af0] packetizer_mpeg4audio decoder debug: running MPEG4 audio packetizer [0xb4c32af0] packetizer_mpeg4audio decoder debug: AAC 16000Hz 1024 samples/frame [0xb4c32af0] main decoder debug: using packetizer module "packetizer_mpeg4audio" [0xb4c32af0] main decoder debug: TIMER module_need() : 1.169 ms - Total 1.169 ms / 1 intvls (Avg 1.169 ms) [0xb50005f0] main input debug: starting in async mode [0xb4c39328] main demux meta debug: looking for meta reader module: 4 candidates [0xb4c39328] lua demux meta debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/reader [0xb4c39328] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0xb4c39328] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0xb4c39328] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0xb4c39328] lua demux meta debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/reader [0xb4c39328] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0xb4c39328] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0xb4c39328] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0xb4c39328] main demux meta debug: no meta reader module matching "any" could be loaded [0xb4c39328] main demux meta debug: TIMER module_need() : 2.836 ms - Total 2.836 ms / 1 intvls (Avg 2.836 ms) [0xb50005f0] main input debug: `rtsp://192.168.20.252/live0-1.sdp' successfully opened [0xb50005f0] main input debug: switching to sync mode [0xb4c04dc8] live555 demux debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() [0xb50005f0] main input error: ES_OUT_RESET_PCR called [0xb4c007d8] main stream output debug: adding a new sout input (sout_input:0xb4e004c0) [0xb4c038b8] main mux debug: adding a new input [0xb4c038b8] mux_ts mux debug: adding input codec=mp4a pid=68 [0xb4c038b8] mux_ts mux debug: new PCR PID is 68 [0xb50005f0] main input debug: Buffering 0% [0xb4c04dc8] live555 demux debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() [0xb50005f0] main input error: ES_OUT_RESET_PCR called [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 3% [0xb50005f0] main input debug: Buffering 11% [0xb4c007d8] main stream output debug: adding a new sout input (sout_input:0xb4903480) [0xb4c038b8] main mux debug: adding a new input [0xb4c038b8] mux_ts mux debug: adding input codec=h264 pid=69 [0xb4c038b8] mux_ts mux debug: new PCR PID is 69 [0xb50005f0] main input debug: Buffering 11% [0xb50005f0] main input debug: Buffering 11% [0xb50005f0] main input debug: Buffering 19% [0xb50005f0] main input debug: Buffering 23% [0xb50005f0] main input debug: Buffering 23% [0xb50005f0] main input debug: Buffering 23% [0xb50005f0] main input debug: Buffering 31% [0xb50005f0] main input debug: Buffering 39% [0xb50005f0] main input debug: Buffering 39% [0xb50005f0] main input debug: Buffering 39% [0xb50005f0] main input debug: Buffering 43% [0xb50005f0] main input debug: Buffering 43% [0xb50005f0] main input debug: Buffering 49% [0xb50005f0] main input debug: Buffering 51% [0xb50005f0] main input debug: Buffering 59% [0xb50005f0] main input debug: Buffering 59% [0xb50005f0] main input debug: Buffering 63% [0xb50005f0] main input debug: Buffering 63% [0xb50005f0] main input debug: Buffering 71% [0xb50005f0] main input debug: Buffering 79% [0xb50005f0] main input debug: Buffering 79% [0xb50005f0] main input debug: Buffering 79% [0xb50005f0] main input debug: Buffering 83% [0xb50005f0] main input debug: Buffering 83% [0xb50005f0] main input debug: Buffering 87% [0xb50005f0] main input debug: Buffering 91% [0xb50005f0] main input debug: Buffering 99% [0xb50005f0] main input debug: Buffering 99% [0xb50005f0] main input debug: Stream buffering done (1007 ms in 1069 ms) [0xb50005f0] main input debug: Decoder buffering done in 0 ms [0xb4c038b8] main mux warning: late buffer for mux input (70693) [0xb4c038b8] main mux warning: late buffer for mux input (6762) [0xb4c038b8] mux_ts mux warning: packet with too strange dts (dts=21269579133,old=21269596155,pcr=21269596155) ^C[0x8082908] main libvlc debug: deactivating the playlist [0x8096900] main playlist debug: deactivating the playlist [0x8096900] main playlist debug: incoming request - stopping current input [0x8096900] main playlist debug: dying input [0xb50005f0] main input debug: control: stopping input [0x8096900] main playlist debug: dying input [0xb4c11510] main decoder debug: removing module "packetizer_h264" [0xb4c11510] main decoder debug: killing decoder fourcc `h264', 0 PES in FIFO [0xb4c007d8] main stream output debug: removing a sout input (sout_input:0xb4903480) [0xb4c038b8] mux_ts mux debug: removing input pid=69 [0xb4c038b8] mux_ts mux debug: new PCR PID is 68 [0xb4c32af0] main decoder debug: removing module "packetizer_mpeg4audio" [0xb4c32af0] main decoder debug: killing decoder fourcc `mp4a', 0 PES in FIFO [0xb4c007d8] main stream output debug: removing a sout input (sout_input:0xb4e004c0) [0xb4c038b8] mux_ts mux debug: removing input pid=68 [0xb4c038b8] mux_ts mux debug: new PCR PID is 8191 [0xb4c038b8] main mux warning: no more input streams for this mux [0xb4c04dc8] main demux debug: removing module "live555" Sending request: TEARDOWN rtsp://192.168.20.252/live0-1.sdp/ RTSP/1.0 CSeq: 7 User-Agent: LibVLC/2.0.5 (LIVE555 Streaming Media v2011.12.23) Session: 22292940 [0xb50005f0] main input debug: Program doesn't contain anymore ES [0x8096900] main playlist debug: dead input [0xb4c007d8] main stream output debug: destroying useless sout [0xb4c00a40] main stream out debug: destroying chain... (name=rtp) [0xb4c00a40] main stream out debug: removing module "stream_out_rtp" [0xb4c038b8] main mux debug: removing module "mux_ts" [0xb4c00a40] main stream out debug: destroying chain done [0x8208b98] main playlist export debug: saving Медиатека to file /home/alexkarnaukhov/.local/share/vlc/ml.xspf [0x8208b98] main playlist export debug: looking for playlist export module: 2 candidates [0x8208b98] main playlist export debug: using playlist export module "export" [0x8208b98] main playlist export debug: TIMER module_need() : 0.658 ms - Total 0.658 ms / 1 intvls (Avg 0.658 ms) [0x8208b98] main playlist export debug: removing module "export" [0x8096900] main playlist debug: playlist correctly deactivated [0x8082908] main libvlc debug: removing all services discovery tasks [0x8082908] main libvlc debug: removing all interfaces [0x8082908] main libvlc debug: exiting [0x80f98c8] main interface debug: removing module "dummy" [0x8092298] main interface debug: removing module "globalhotkeys" [0x8208780] main interface debug: removing module "inhibit" [0xb50005f0] main input debug: TIMER input launching for 'rtsp://192.168.20.252/live0-1.sdp' : 28.436 ms - Total 28.436 ms / 1 intvls (Avg 28.436 ms) [0x8102190] main interface debug: removing module "hotkeys" [0x8096900] main playlist debug: destroying [0x8082908] main libvlc debug: TIMER ML Load : Total 18.490 ms / 1 intvls (Avg 18.490 ms) [0x8082908] main libvlc debug: TIMER Items array build : Total 0.487 ms / 2 intvls (Avg 0.243 ms) [0x8082908] main libvlc debug: TIMER ML Dump : Total 1.098 ms / 1 intvls (Avg 1.098 ms) [0x8082908] main libvlc debug: removing stats [0x8082908] main libvlc debug: removing module "memcpymmxext" alexkarnaukhov@alexkarnaukhov-pc:~$

alexkarnaukhov
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jul 2013 13:25

Re: Memory leak in sout

Postby alexkarnaukhov » 11 Jul 2013 15:07

And if there is no audio stream, translation is ended, and memory doesn`t grows.

Code: Select all

alexkarnaukhov@alexkarnaukhov-pc:~$ cvlc -vvv rtsp://192.168.20.252/live3-1.sdp --sout '#rtp{mux=ts,dst=127.0.0.1,port=16090}' VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d) [0x8fff908] main libvlc debug: VLC media player - 2.0.5 Twoflower [0x8fff908] main libvlc debug: Copyright © 1996-2012 VLC authors and VideoLAN [0x8fff908] main libvlc debug: revision 2.0.5-0-g1661b7d [0x8fff908] main libvlc debug: configured with ./configure '--enable-static' '--build=i686-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=0ubuntu0.12.04.1' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-dbus' '--enable-dca' '--enable-dirac' '--enable-directfb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-oss' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-fbosd' '--enable-libva' '--enable-linsys' '--enable-omxil' '--enable-pvr' '--enable-udev' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'build_alias=i686-linux-gnu' [0x8fff908] main libvlc debug: searching plug-in modules [0x8fff908] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat [0x8fff908] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins' [0x8fff908] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat [0x8fff908] main libvlc debug: loading plugins cache file /home/alexkarnaukhov/plugins/plugins.dat [0x8fff908] main libvlc debug: recursively browsing `/home/alexkarnaukhov/plugins' [0x8fff908] main libvlc debug: saving plugins cache /home/alexkarnaukhov/plugins/plugins.dat [0x8fff908] main libvlc debug: plug-ins loaded: 839 modules [0x8fff908] main libvlc debug: opening config file (/home/alexkarnaukhov/.config/vlc/vlcrc) [0x8fff908] main libvlc debug: translation test: code is "ru" [0x8fff908] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU [0x8fff908] main libvlc debug: looking for memcpy module: 8 candidates [0x8fff908] main libvlc debug: using memcpy module "memcpymmxext" [0x907c3d0] main input debug: Creating an input for 'Медиатека' [0x907c3d0] main input debug: Input is a meta file: disabling unneeded options [0x907c3d0] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0x907c3d0] main input debug: `file/xspf-open:///home/alexkarnaukhov/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/alexkarnaukhov/.local/share/vlc/ml.xspf' [0x907c3d0] main input debug: creating demux: access='file' demux='xspf-open' location='/home/alexkarnaukhov/.local/share/vlc/ml.xspf' file='/home/alexkarnaukhov/.local/share/vlc/ml.xspf' [0x907aa08] main demux debug: looking for access_demux module: 6 candidates [0x907aa08] main demux debug: no access_demux module matching "file" could be loaded [0x907aa08] main demux debug: TIMER module_need() : 2.234 ms - Total 2.234 ms / 1 intvls (Avg 2.234 ms) [0x907c3d0] main input debug: creating access 'file' location='/home/alexkarnaukhov/.local/share/vlc/ml.xspf', path='/home/alexkarnaukhov/.local/share/vlc/ml.xspf' [0x9260010] main access debug: looking for access module: 4 candidates [0x9260010] filesystem access debug: opening file `/home/alexkarnaukhov/.local/share/vlc/ml.xspf' [0x9260010] main access debug: using access module "filesystem" [0x9260010] main access debug: TIMER module_need() : 0.980 ms - Total 0.980 ms / 1 intvls (Avg 0.980 ms) [0x9260a88] main stream debug: Using stream method for AStream* [0x9260a88] main stream debug: starting pre-buffering [0x9260a88] main stream debug: received first data after 0 ms [0x9260a88] main stream debug: pre-buffering done 301 bytes in 0s - 4818 KiB/s [0x9260b48] main stream debug: looking for stream_filter module: 14 candidates [0x9260b48] main stream debug: no stream_filter module matching "any" could be loaded [0x9260b48] main stream debug: TIMER module_need() : 2.990 ms - Total 2.990 ms / 1 intvls (Avg 2.990 ms) [0x9260b48] main stream debug: looking for stream_filter module: 2 candidates [0x9260b48] main stream debug: using stream_filter module "stream_filter_record" [0x9260b48] main stream debug: TIMER module_need() : 0.389 ms - Total 0.389 ms / 1 intvls (Avg 0.389 ms) [0x907c3d0] main input debug: creating demux: access='file' demux='xspf-open' location='/home/alexkarnaukhov/.local/share/vlc/ml.xspf' file='/home/alexkarnaukhov/.local/share/vlc/ml.xspf' [0x901f818] main demux debug: looking for demux module: 2 candidates [0x901f818] playlist demux debug: using XSPF playlist reader [0x901f818] main demux debug: using demux module "playlist" [0x901f818] main demux debug: TIMER module_need() : 0.628 ms - Total 0.628 ms / 1 intvls (Avg 0.628 ms) [0x9076e58] main demux meta debug: looking for meta reader module: 4 candidates [0x9076e58] lua demux meta debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/reader [0x9076e58] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x9076e58] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x9076e58] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x9076e58] lua demux meta debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/reader [0x9076e58] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x9076e58] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x9076e58] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x9076e58] main demux meta debug: no meta reader module matching "any" could be loaded [0x9076e58] main demux meta debug: TIMER module_need() : 3.808 ms - Total 3.808 ms / 1 intvls (Avg 3.808 ms) [0x907c3d0] main input debug: `file/xspf-open:///home/alexkarnaukhov/.local/share/vlc/ml.xspf' successfully opened [0x907f7b0] main xml reader debug: looking for xml reader module: 2 candidates [0x907f7b0] main xml reader debug: using xml reader module "xml" [0x907f7b0] main xml reader debug: TIMER module_need() : 0.392 ms - Total 0.392 ms / 1 intvls (Avg 0.392 ms) [0x901f818] playlist demux debug: parsed 0 tracks successfully [0x907c3d0] main input debug: EOF reached [0x901f818] main demux debug: removing module "playlist" [0x9260b48] main stream debug: removing module "stream_filter_record" [0x9260010] main access debug: removing module "filesystem" [0x907c3d0] main input debug: TIMER input launching for 'Медиатека' : 12.199 ms - Total 12.199 ms / 1 intvls (Avg 12.199 ms) [0x907f190] main interface debug: looking for interface module: 2 candidates [0x907f190] main interface debug: using interface module "hotkeys" [0x907f190] main interface debug: TIMER module_need() : 0.165 ms - Total 0.165 ms / 1 intvls (Avg 0.165 ms) [0x9185780] main interface debug: looking for interface module: 2 candidates [0x9013900] main playlist debug: playlist threads correctly activated [0x9185780] main interface debug: using interface module "inhibit" [0x9185780] main interface debug: TIMER module_need() : 2.077 ms - Total 2.077 ms / 1 intvls (Avg 2.077 ms) [0x9013900] main playlist debug: adding item `rtsp://192.168.20.252/live3-1.sdp' ( rtsp://192.168.20.252/live3-1.sdp ) [0x9013900] main playlist debug: rebuilding array of current - root Плейлист [0x9013900] main playlist debug: rebuild done - 0 items, index -1 [0x9013900] main playlist debug: meta ok for (null), need to fetch art [0xb4e005f0] main demux meta debug: looking for meta fetcher module: 2 candidates [0x900f298] main interface debug: looking for interface module: 2 candidates [0xb4e005f0] lua demux meta debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/fetcher [0xb4e005f0] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/fetcher [0xb4e005f0] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/fetcher/tvrage.luac [0xb4e005f0] main demux meta debug: using meta fetcher module "lua" [0x900f298] main interface debug: using interface module "globalhotkeys" [0xb4e005f0] main demux meta debug: TIMER module_need() : 0.908 ms - Total 0.908 ms / 1 intvls (Avg 0.908 ms) [0xb4e005f0] main demux meta debug: removing module "lua" [0x900f298] main interface debug: TIMER module_need() : 1.062 ms - Total 1.062 ms / 1 intvls (Avg 1.062 ms) [0x9013900] main playlist debug: searching art for rtsp://192.168.20.252/live3-1.sdp [0x90768c8] main interface debug: looking for interface module: 2 candidates [0xb4e04080] main art finder debug: looking for art finder module: 4 candidates [0x90768c8] dummy interface: using the dummy interface module... [0x90768c8] main interface debug: using interface module "dummy" [0x90768c8] main interface debug: TIMER module_need() : 0.248 ms - Total 0.248 ms / 1 intvls (Avg 0.248 ms) [0x9013900] main playlist debug: processing request item: null, node: Плейлист, skip: 0 [0x9013900] main playlist debug: rebuilding array of current - root Плейлист [0x9013900] main playlist debug: rebuild done - 1 items, index -1 [0xb4e04080] lua art finder debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/art [0x9013900] main playlist debug: starting playback of the new playlist item [0x9013900] main playlist debug: resyncing on rtsp://192.168.20.252/live3-1.sdp [0x9013900] main playlist debug: rtsp://192.168.20.252/live3-1.sdp is at 0 [0x9013900] main playlist debug: creating new input thread [0xb4e04080] lua art finder debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/art [0xb50005f0] main input debug: Creating an input for 'rtsp://192.168.20.252/live3-1.sdp' [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/00_musicbrainz.luac [0xb4d007d8] main stream output debug: using sout chain=`rtp{mux=ts,dst=127.0.0.1,port=16090}' [0xb4d007d8] main stream output debug: stream=`rtp' [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/01_googleimage.luac [0xb4d00a40] main stream out debug: looking for sout stream module: 2 candidates [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/02_frenchtv.luac [0xb4d00a40] main stream out debug: set config option: sout-rtp-mux to ts [0xb4d00a40] main stream out debug: set config option: sout-rtp-dst to 127.0.0.1 [0xb4d00a40] main stream out debug: set config option: sout-rtp-port to 16090 [0xb4d038b8] main mux debug: looking for sout mux module: 2 candidates [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/03_lastfm.luac [0xb4d038b8] mux_ts mux debug: shaping=200000 pcr=70000 dts_delay=400000 [0xb4d038b8] main mux debug: using sout mux module "mux_ts" [0xb4d038b8] main mux debug: TIMER module_need() : 0.619 ms - Total 0.619 ms / 1 intvls (Avg 0.619 ms) [0xb4d007d8] main stream output debug: muxer support adding stream at any time [0xb4d007d8] main stream output debug: muxer prefers to wait for all ES before starting to mux [0xb4d00a40] stream_out_rtp stream out debug: maximum RTP packet size: 1400 bytes [0xb4d00a40] main stream out debug: net: connecting to [127.0.0.1]:16090 [0xb4e04080] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art [0xb4e04080] lua art finder debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/art [0xb4d00a40] main stream out debug: net: connecting to [127.0.0.1]:16091 from [127.0.0.1]:45780 [0xb4e04080] lua art finder debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/art [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/00_musicbrainz.luac [0xb4d00a40] stream_out_rtp stream out debug: sdp= v=0 o=- 15386872888266986169 15386872888266986169 IN IP4 alexkarnaukhov-pc s=Unnamed i=N/A c=IN IP4 127.0.0.1 t=0 0 a=tool:vlc 2.0.5 a=recvonly a=type:broadcast a=charset:UTF-8 m=video 16090 RTP/AVP 33 b=RR:0 a=rtpmap:33 MP2T/90000 [0xb4d00a40] main stream out debug: using sout stream module "stream_out_rtp" [0xb4d00a40] main stream out debug: TIMER module_need() : 1.813 ms - Total 1.813 ms / 1 intvls (Avg 1.813 ms) [0xb50005f0] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0xb50005f0] main input debug: `rtsp://192.168.20.252/live3-1.sdp' gives access `rtsp' demux `' path `192.168.20.252/live3-1.sdp' [0xb50005f0] main input debug: creating demux: access='rtsp' demux='' location='192.168.20.252/live3-1.sdp' file='(null)' [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/01_googleimage.luac [0xb4d04dc8] main demux debug: looking for access_demux module: 2 candidates [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/02_frenchtv.luac [0xb4d04dc8] live555 demux debug: version 2011.12.23 Opening connection to 192.168.20.252, port 554... [0xb4e04080] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/03_lastfm.luac ...remote connection opened Sending request: OPTIONS rtsp://192.168.20.252/live3-1.sdp RTSP/1.0 CSeq: 2 User-Agent: LibVLC/2.0.5 (LIVE555 Streaming Media v2011.12.23) [0xb4e04080] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art [0xb4e04080] main art finder debug: no art finder module matching "any" could be loaded [0xb4e04080] main art finder debug: TIMER module_need() : 5.655 ms - Total 5.655 ms / 1 intvls (Avg 5.655 ms) [0x9013900] main playlist debug: art not found for rtsp://192.168.20.252/live3-1.sdp Received 106 new bytes of response data. Received a complete OPTIONS response: RTSP/1.0 200 OK CSeq: 2 Public: DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, SET_PARAMETER, GET_PARAMETER Sending request: DESCRIBE rtsp://192.168.20.252/live3-1.sdp RTSP/1.0 CSeq: 3 User-Agent: LibVLC/2.0.5 (LIVE555 Streaming Media v2011.12.23) Accept: application/sdp Received 708 new bytes of response data. Received a complete DESCRIBE response: RTSP/1.0 200 OK CSeq: 3 Content-Base: rtsp://192.168.20.252/live3-1.sdp/ Content-Type: application/sdp Content-Length: 578 v=0 o=RTSP 1373546740 289123 IN IP4 0.0.0.0 s=RTSP server c=IN IP4 0.0.0.0 t=0 0 a=charset:Shift_JIS a=range:npt=0- a=control:* a=etag:1234567890 m=video 0 RTP/AVP 96 b=AS:56 a=rtpmap:96 H264/90000 a=control:trackID=1 a=fmtp:96 packetization-mode=1;profile-level-id=64401e;sprop-parameter-sets=J2RAHqwsagLQSaagoMCoAAAfSAAHUwAg,KO4G4sA= m=audio 0 RTP/AVP 97 a=control:trackID=2 a=rtpmap:97 mpeg4-generic/16000/1 a=fmtp:97 streamtype=5;profile-level-id=15;mode=AAC-hbr;config=1408;SizeLength=13;IndexLength=3;IndexDeltaLength=3;CTSDeltaLength=0;DTSDeltaLength=0 [0xb4d04dc8] live555 demux debug: RTP subsession 'video/H264' Sending request: SETUP rtsp://192.168.20.252/live3-1.sdp/trackID=1 RTSP/1.0 CSeq: 4 User-Agent: LibVLC/2.0.5 (LIVE555 Streaming Media v2011.12.23) Transport: RTP/AVP;unicast;client_port=41784-41785 Received 121 new bytes of response data. Received a complete SETUP response: RTSP/1.0 200 OK CSeq: 4 Session: 15788009 Transport: RTP/AVP;unicast;client_port=41784-41785;server_port=8916-8917 [0xb50005f0] main input debug: selecting program id=0 [0xb4d04dc8] live555 demux debug: RTP subsession 'audio/MPEG4-GENERIC' Sending request: SETUP rtsp://192.168.20.252/live3-1.sdp/trackID=2 RTSP/1.0 CSeq: 5 User-Agent: LibVLC/2.0.5 (LIVE555 Streaming Media v2011.12.23) Transport: RTP/AVP;unicast;client_port=53508-53509 Session: 15788009 Received 121 new bytes of response data. Received a complete SETUP response: RTSP/1.0 200 OK CSeq: 5 Session: 15788009 Transport: RTP/AVP;unicast;client_port=53508-53509;server_port=8918-8919 [0xb4d04dc8] live555 demux debug: setup start: 0.000000 stop:0.000000 Sending request: PLAY rtsp://192.168.20.252/live3-1.sdp/ RTSP/1.0 CSeq: 6 User-Agent: LibVLC/2.0.5 (LIVE555 Streaming Media v2011.12.23) Session: 15788009 Range: npt=0.000- Received 251 new bytes of response data. Received a complete PLAY response: RTSP/1.0 200 OK CSeq: 6 Session: 15788009 RTP-Info: url=rtsp://192.168.20.252/live3-1.sdp//trackID=1;seq=0;rtptime=0;ssrc=15788009,url=rtsp://192.168.20.252/live3-1.sdp//trackID=2;seq=0;rtptime=0;ssrc=15788009 Range: npt=0- RTCP-Interval: 250 [0xb4d04dc8] live555 demux debug: play start: 0.000000 stop:0.000000 [0xb4d04dc8] main demux debug: using access_demux module "live555" [0xb4d04dc8] main demux debug: TIMER module_need() : 12.803 ms - Total 12.803 ms / 1 intvls (Avg 12.803 ms) [0xb4d114f8] main decoder debug: looking for packetizer module: 42 candidates [0xb4d114f8] packetizer_h264 decoder debug: found NAL_SPS (sps_id=0) [0xb4d114f8] packetizer_h264 decoder debug: found NAL_PPS (pps_id=0 sps_id=0) [0xb4d114f8] main decoder debug: using packetizer module "packetizer_h264" [0xb4d114f8] main decoder debug: TIMER module_need() : 2.486 ms - Total 2.486 ms / 1 intvls (Avg 2.486 ms) [0xb4d32af0] main decoder debug: looking for packetizer module: 42 candidates [0xb4d32af0] packetizer_mpeg4audio decoder debug: running MPEG4 audio packetizer [0xb4d32af0] packetizer_mpeg4audio decoder debug: AAC 16000Hz 1024 samples/frame [0xb4d32af0] main decoder debug: using packetizer module "packetizer_mpeg4audio" [0xb4d32af0] main decoder debug: TIMER module_need() : 1.439 ms - Total 1.439 ms / 1 intvls (Avg 1.439 ms) [0xb50005f0] main input debug: starting in async mode [0xb4d39388] main demux meta debug: looking for meta reader module: 4 candidates [0xb4d39388] lua demux meta debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/reader [0xb4d39388] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0xb4d39388] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0xb4d39388] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0xb4d39388] lua demux meta debug: Trying Lua scripts in /home/alexkarnaukhov/.local/share/vlc/lua/meta/reader [0xb4d39388] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0xb4d39388] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0xb4d39388] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0xb4d39388] main demux meta debug: no meta reader module matching "any" could be loaded [0xb4d39388] main demux meta debug: TIMER module_need() : 2.821 ms - Total 2.821 ms / 1 intvls (Avg 2.821 ms) [0xb50005f0] main input debug: `rtsp://192.168.20.252/live3-1.sdp' successfully opened [0xb50005f0] main input debug: switching to sync mode [0xb4d04dc8] live555 demux debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() [0xb50005f0] main input error: ES_OUT_RESET_PCR called [0xb4d007d8] main stream output debug: adding a new sout input (sout_input:0xb4e004c0) [0xb4d038b8] main mux debug: adding a new input [0xb4d038b8] mux_ts mux debug: adding input codec=mp4a pid=68 [0xb4d038b8] mux_ts mux debug: new PCR PID is 68 [0xb50005f0] main input debug: Buffering 0% [0xb4d04dc8] live555 demux debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() [0xb50005f0] main input error: ES_OUT_RESET_PCR called [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 10% [0xb50005f0] main input debug: Buffering 10% [0xb50005f0] main input debug: Buffering 16% [0xb50005f0] main input debug: Buffering 22% [0xb50005f0] main input debug: Buffering 22% [0xb4d007d8] main stream output debug: adding a new sout input (sout_input:0xb4907b10) [0xb4d038b8] main mux debug: adding a new input [0xb4d038b8] mux_ts mux debug: adding input codec=h264 pid=69 [0xb4d038b8] mux_ts mux debug: new PCR PID is 69 [0xb50005f0] main input debug: Buffering 22% [0xb50005f0] main input debug: Buffering 29% [0xb50005f0] main input debug: Buffering 35% [0xb50005f0] main input debug: Buffering 35% [0xb50005f0] main input debug: Buffering 35% [0xb50005f0] main input debug: Buffering 42% [0xb50005f0] main input debug: Buffering 48% [0xb50005f0] main input debug: Buffering 48% [0xb50005f0] main input debug: Buffering 48% [0xb50005f0] main input debug: Buffering 54% [0xb50005f0] main input debug: Buffering 61% [0xb50005f0] main input debug: Buffering 61% [0xb50005f0] main input debug: Buffering 61% [0xb50005f0] main input debug: Buffering 67% [0xb50005f0] main input debug: Buffering 74% [0xb50005f0] main input debug: Buffering 74% [0xb50005f0] main input debug: Buffering 80% [0xb50005f0] main input debug: Buffering 80% [0xb50005f0] main input debug: Buffering 86% [0xb50005f0] main input debug: Buffering 86% [0xb50005f0] main input debug: Buffering 86% [0xb50005f0] main input debug: Buffering 93% [0xb50005f0] main input debug: Buffering 99% [0xb50005f0] main input debug: Buffering 99% [0xb50005f0] main input debug: Buffering 99% [0xb50005f0] main input debug: Stream buffering done (1060 ms in 1009 ms) [0xb50005f0] main input debug: Decoder buffering done in 0 ms [0xb4d038b8] mux_ts mux warning: packet with too strange dts (dts=23502391333,old=23502394940,pcr=23502394940) [0xb4d038b8] mux_ts mux warning: packet with too strange dts (dts=23502659527,old=23502720031,pcr=23502719854) [0xb50005f0] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1000 ms) [0xb50005f0] main input error: ES_OUT_RESET_PCR called [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb50005f0] main input debug: Buffering 0% [0xb4d04dc8] live555 demux warning: no data received in 10s, eof ? [0xb50005f0] main input debug: EOF reached [0xb50005f0] main input debug: Stream buffering done (0 ms in 8710 ms) [0xb50005f0] main input debug: Decoder buffering done in 0 ms [0x9013900] main playlist debug: finished input [0xb4d114f8] main decoder debug: removing module "packetizer_h264" [0xb4d114f8] main decoder debug: killing decoder fourcc `h264', 0 PES in FIFO [0xb4d007d8] main stream output debug: removing a sout input (sout_input:0xb4907b10) [0xb4d038b8] mux_ts mux debug: removing input pid=69 [0xb4d038b8] mux_ts mux debug: new PCR PID is 68 [0xb4d32af0] main decoder debug: removing module "packetizer_mpeg4audio" [0xb4d32af0] main decoder debug: killing decoder fourcc `mp4a', 0 PES in FIFO [0xb4d007d8] main stream output debug: removing a sout input (sout_input:0xb4e004c0) [0xb4d038b8] mux_ts mux debug: removing input pid=68 [0xb4d038b8] mux_ts mux debug: new PCR PID is 8191 [0xb4d038b8] main mux warning: no more input streams for this mux [0xb4d04dc8] main demux debug: removing module "live555" Sending request: TEARDOWN rtsp://192.168.20.252/live3-1.sdp/ RTSP/1.0 CSeq: 7 User-Agent: LibVLC/2.0.5 (LIVE555 Streaming Media v2011.12.23) Session: 15788009 [0xb50005f0] main input debug: Program doesn't contain anymore ES [0x9013900] main playlist debug: dead input [0xb4d007d8] main stream output debug: destroying useless sout [0xb4d00a40] main stream out debug: destroying chain... (name=rtp) [0xb4d00a40] main stream out debug: removing module "stream_out_rtp" [0xb4d038b8] main mux debug: removing module "mux_ts" [0xb4d00a40] main stream out debug: destroying chain done [0x9013900] main playlist debug: changing item without a request (current 0/1) [0x9013900] main playlist debug: nothing to play ^C[0x8fff908] main libvlc debug: deactivating the playlist [0x9013900] main playlist debug: deactivating the playlist [0x9185b98] main playlist export debug: saving Медиатека to file /home/alexkarnaukhov/.local/share/vlc/ml.xspf [0x9185b98] main playlist export debug: looking for playlist export module: 2 candidates [0x9185b98] main playlist export debug: using playlist export module "export" [0x9185b98] main playlist export debug: TIMER module_need() : 0.656 ms - Total 0.656 ms / 1 intvls (Avg 0.656 ms) [0x9185b98] main playlist export debug: removing module "export" [0x9013900] main playlist debug: playlist correctly deactivated [0x8fff908] main libvlc debug: removing all services discovery tasks [0x8fff908] main libvlc debug: removing all interfaces [0x8fff908] main libvlc debug: exiting [0x90768c8] main interface debug: removing module "dummy" [0x900f298] main interface debug: removing module "globalhotkeys" [0x9185780] main interface debug: removing module "inhibit" [0xb50005f0] main input debug: TIMER input launching for 'rtsp://192.168.20.252/live3-1.sdp' : 23.092 ms - Total 23.092 ms / 1 intvls (Avg 23.092 ms) [0x907f190] main interface debug: removing module "hotkeys" [0x9013900] main playlist debug: destroying [0x8fff908] main libvlc debug: TIMER ML Load : Total 12.919 ms / 1 intvls (Avg 12.919 ms) [0x8fff908] main libvlc debug: TIMER Items array build : Total 0.498 ms / 2 intvls (Avg 0.249 ms) [0x8fff908] main libvlc debug: TIMER ML Dump : Total 1.090 ms / 1 intvls (Avg 1.090 ms) [0x8fff908] main libvlc debug: removing stats [0x8fff908] main libvlc debug: removing module "memcpymmxext" alexkarnaukhov@alexkarnaukhov-pc:~$


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 52 guests