nilaoda / N_m3u8DL-RE

Cross-Platform, modern and powerful stream downloader for MPD/M3U8/ISM. English/简体中文/繁體中文.
MIT License
4.69k stars 500 forks source link

Pipe stops #443

Open ivovas opened 2 months ago

ivovas commented 2 months ago

Hello, I am trying to decrypt an MPD source and push it to RTMP using the following command:

export RE_LIVE_PIPE_OPTIONS=' -c copy -f flv rtmp://ip:port/live/test_turk ';
N_m3u8DL-RE 'url' --key 'key:key' --use-shaka-packager true --ffmpeg-binary-path /bin/ffmpeg --decryption-binary-path bin/packager-linux-x64 --del-after-done true --mp4-real-time-decryption true --live-keep-segments false --binary-merge --live-pipe-mux true --thread-count 5 --use-ffmpeg-concat-demuxer --auto-select --save-name 10dc0e29-521b-4861-9ee8-3903015a1400

The issue I'm encountering is that the RTMP process stops unexpectedly after around 10 minutes, and I have no idea why. There is nothing in the logs that indicates what might be causing the problem.

Does anyone have any suggestions on how to troubleshoot or resolve this?

ivovas commented 2 months ago

this is the strace from ffmpeg sendto(5, "\304\tp\275\24,\254\361U\272\21\2443\235\326 \250?48\313\22u\233\234\341\330@\337\27s\357"..., 129, 0, NULL, 0) = 129 sendto(5, "\304\334\204b\223\314\250o;\271\370\242#\24\242\36z\0\371,\310\242\37\243\261\353B\3331\276"..., 129, 0, NULL, 0) = 129 sendto(5, "\304\243,\0\0003d\22\321\200lvA\24[\213LT\242\363\222m\1\260\301#\303\334\32\33\317\204"..., 129, 0, NULL, 0) = 129 sendto(5, "\304\37\361\343\336\36\212\337\4\374\261\202\32\306\353\206\1\360~!\331\207\216<g\216\367\273a\230\n"..., 129, 0, NULL, 0) = 129 sendto(5, "\304\262\205\364\277\326\210\241\311<\10\250\250\260\250Sk3\30\317\323\344\305\326\325c\222-\274/\246"..., 129, 0, NULL, 0) = 129 sendto(5, "\304\210\30.\27\24\240\377\274\2334\205\205\303jgF\362u\251+\"\357\304\320\322\32@[\253L\253"..., 129, 0, NULL, 0) = 129 sendto(5, "\304\371\254\271\373Q>\322\204\272\277h\7\333\316\305\265\351r\212@v\225\271k\7\351I\327\233\233v"..., 129, 0, NULL, 0) = 129 sendto(5, "\304n{(\245\370\376F\261\231\260\221'\212;%\360n\36\304\24\2073\253V\5+\346\212.\220N"..., 129, 0, NULL, 0) = 129 sendto(5, "\304\313\220\260\353\t]\317\306[H\223-u?>\231[\250\246\273]\253\35\371\364\244LW/\302"..., 129, 0, NULL, 0) = 129 sendto(5, "\304\241\276\327\31\36\341/\360\237\326>N\r\241\252\251\206\306\365\220\27\262\312H)\4\235mt\177\260"..., 129, 0, NULL, 0) = 129 sendto(5, "\304\334\10\243N)O\237\361\200\t\5\33\230\4\214 \210\r\262i\252>\310:'\322<\36\310."..., 115, 0, NULL, 0) = 115 futex(0x562c8bdfe908, FUTEX_WAKE_PRIVATE, 2147483647) = 1 futex(0x562c8bdfe8d8, FUTEX_WAIT_PRIVATE, 0, NULL) = 0 futex(0x562c8bdfe888, FUTEX_WAKE_PRIVATE, 1) = 0 futex(0x7f1f0b4b19d0, FUTEX_WAIT, 70489, NULL) = 0 futex(0x562c8be8b88c, FUTEX_WAKE_PRIVATE, 2147483647) = 1 futex(0x562c8be8b808, FUTEX_WAKE_PRIVATE, 1) = 1 futex(0x7f1efc000020, FUTEX_WAIT_PRIVATE, 2, NULL) = 0 futex(0x7f1efc000020, FUTEX_WAKE_PRIVATE, 1) = 0 futex(0x7f1efc000020, FUTEX_WAKE_PRIVATE, 1) = 0 futex(0x7f1f0acb09d0, FUTEX_WAIT, 70490, NULL) = -1 EAGAIN (Resource temporarily unavailable) ioctl(2, TCGETS, 0x7ffdd2f6f570) = -1 ENOTTY (Inappropriate ioctl for device) sendto(5, "C\0\0\0\0\0$\24\2\0\vFCUnpublish\0@\30\0\0\0\0\0\0\5"..., 44, 0, NULL, 0) = 44 sendto(5, "C\0\0\0\0\0\"\24\2\0\fdeleteStream\0@\34\0\0\0\0\0\0"..., 42, 0, NULL, 0) = 42 close(5) = 0 munmap(0x7f1f0b4b2000, 1331200) = 0 munmap(0x7f1f0a34f000, 1216512) = 0 close(3) = 0 munmap(0x7f1f0a1d9000, 1138688) = 0 close(4) = 0 exit_group(1)