datarhei / core

datarhei Core is management for FFmpeg processes without development effort. Whether your streaming has one viewer or a million, we have the tools to help you develop, deploy and manage any video project at any stage. We've solved the challenging problems so you can focus on your application, not your infrastructure.
https://docs.datarhei.com/core
Apache License 2.0
180 stars 41 forks source link

SRT ingest stucks on every 7min streaming #8

Closed reustaquiojr closed 4 months ago

reustaquiojr commented 1 year ago

Here are my process report for this source;

I'm trying to generate an SRT feed with 4 (stereo) audio services from the Metus Ingest application !

{ "about": { "id": "99a51183-96ce-491e-b6e4-003a1ef44cfb", "name": "empty-math-7870", "created_at": "2023-03-21T18:24:16.000Z", "version": { "number": "16.12.0", "repository_commit": "431d013e3ec9a6f42d47cd168bcb9cc1ad39feed", "repository_branch": "main", "build_date": "2023-02-23T10:50:04Z", "arch": "linux/arm64", "compiler": "go1.20.1" }, "auths": [ "localjwt" ], "app": "datarhei-core", "uptime_seconds": 7975 }, "ffmpeg": { "version": "5.1.2", "compiler": "gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219", "configuration": "--extra-version=datarhei --prefix=/usr --extra-libs='-lpthread -lxml2 -lm -lz -lsupc++ -lstdc++ -lssl -lcrypto -lz -lc -ldl' --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-static --enable-openssl --enable-libxml2 --enable-libv4l2 --enable-v4l2_m2m --enable-libfreetype --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --disable-ffplay --disable-debug --disable-doc --disable-shared", "libraries": [ { "name": "libavutil", "compiled": "57. 28.100", "linked": "57. 28.100" }, { "name": "libavcodec", "compiled": "59. 37.100", "linked": "59. 37.100" }, { "name": "libavformat", "compiled": "59. 27.100", "linked": "59. 27.100" }, { "name": "libavdevice", "compiled": "59. 7.100", "linked": "59. 7.100" }, { "name": "libavfilter", "compiled": "8. 44.100", "linked": "8. 44.100" }, { "name": "libswscale", "compiled": "6. 7.100", "linked": "6. 7.100" }, { "name": "libswresample", "compiled": "4. 7.100", "linked": "4. 7.100" }, { "name": "libpostproc", "compiled": "56. 6.100", "linked": "56. 6.100" } ] }, "config": { "created_at": "2023-03-18T16:45:46.215031055Z", "version": 3, "id": "99a51183-96ce-491e-b6e4-003a1ef44cfb", "name": "empty-math-7870", "address": ":9090", "update_check": false, "log": { "level": "info", "topics": [], "max_lines": 1000 }, "db": { "dir": "/core/config" }, "host": { "name": [ "[anonymized]", "[anonymized]" ], "auto": true }, "api": { "read_only": false, "access": { "http": { "allow": [], "block": [] }, "https": { "allow": [], "block": [] } }, "auth": { "enable": true, "disable_localhost": false, "username": "[anonymized]", "password": "[anonymized]", "jwt": { "secret": "[anonymized]" }, "auth0": { "enable": false, "tenants": [ "[anonymized]", "[anonymized]" ] } } }, "tls": { "address": ":9191", "enable": false, "auto": false, "email": "cert@datarhei.com", "cert_file": "", "key_file": "" }, "storage": { "disk": { "dir": "/core/data", "max_size_mbytes": 0, "cache": { "enable": true, "max_size_mbytes": 0, "ttl_seconds": 300, "max_file_size_mbytes": 1, "types": { "allow": [], "block": [ ".m3u8", ".mpd" ] } } }, "memory": { "auth": { "enable": true, "username": "[anonymized]", "password": "[anonymized]" }, "max_size_mbytes": 0, "purge": false }, "s3": [], "cors": { "origins": [ "*" ] }, "mimetypes_file": "./mime.types" }, "rtmp": { "enable": true, "enable_tls": false, "address": ":1935", "address_tls": ":1936", "app": "[anonymized]", "token": "[anonymized]" }, "srt": { "enable": true, "address": ":10000", "passphrase": "", "token": "", "log": { "enable": false, "topics": [] } }, "ffmpeg": { "binary": "ffmpeg", "max_processes": 0, "access": { "input": { "allow": [], "block": [] }, "output": { "allow": [], "block": [] } }, "log": { "max_lines": 100, "max_history": 3 } }, "playout": { "enable": false, "min_port": 0, "max_port": 0 }, "debug": { "profiling": false, "force_gc": 0, "memory_limit_mbytes": 0 }, "metrics": { "enable": false, "enable_prometheus": false, "range_sec": 300, "interval_sec": 2 }, "sessions": { "enable": true, "ip_ignorelist": [ "[anonymized]", "[anonymized]" ], "session_timeout_sec": 30, "persist": false, "persist_interval_sec": 300, "max_bitrate_mbit": 0, "max_sessions": 0 }, "service": { "enable": false, "token": "[anonymized]", "url": "https://service.datarhei.com" }, "router": { "blocked_prefixes": [ "/api" ], "routes": {}, "ui_path": "" } }, "process": { "id": "restreamer-ui:ingest:a1a899a1-ed96-463f-8063-fa24095504bc", "type": "ffmpeg", "reference": "a1a899a1-ed96-463f-8063-fa24095504bc", "created_at": 1678830985, "config": { "id": "restreamer-ui:ingest:a1a899a1-ed96-463f-8063-fa24095504bc", "type": "ffmpeg", "reference": "a1a899a1-ed96-463f-8063-fa24095504bc", "input": [ { "id": "input_0", "address": "srt://[anonymized]", "options": [ "-fflags", "+genpts+discardcorrupt+fastseek", "-thread_queue_size", "512", "-copyts" ] } ], "output": [ { "id": "output0", "address": "{memfs}/a1a899a1-ed96-463f-8063-fa24095504bc{outputid}.m3u8", "options": [ "-dn", "-sn", "-map", "0:0", "-codec:v", "copy", "-map", "0:1", "-codec:a", "copy", "-metadata", "title=https://[anonymized]", "-metadata", "service_provider=datarhei-Restreamer", "-f", "hls", "-start_number", "0", "-hls_time", "2", "-hls_list_size", "6", "-hls_flags", "append_list+delete_segments+program_date_time+temp_file", "-hls_delete_threshold", "4", "-hls_segmentfilename", "{memfs}/a1a899a1-ed96-463f-8063-fa24095504bc{outputid}_%04d.ts", "-master_pl_name", "a1a899a1-ed96-463f-8063-fa24095504bc.m3u8", "-master_pl_publish_rate", "2", "-method", "PUT" ], "cleanup": [ { "pattern": "memfs:/a1a899a1-ed96-463f-8063-fa24095504bc", "max_files": 0, "max_file_age_seconds": 0, "purge_ondelete": true }, { "pattern": "memfs:/a1a899a1-ed96-463f-8063-fa24095504bc{outputid}.m3u8", "max_files": 0, "max_file_age_seconds": 24, "purge_ondelete": true }, { "pattern": "memfs:/a1a899a1-ed96-463f-8063-fa24095504bc{outputid}_.ts", "max_files": 12, "max_file_age_seconds": 24, "purge_on_delete": true }, { "pattern": "memfs:/a1a899a1-ed96-463f-8063-fa24095504bc.m3u8", "max_files": 0, "max_file_age_seconds": 24, "purge_on_delete": true } ] } ], "options": [ "-err_detect", "ignore_err", "-y" ], "reconnect": true, "reconnect_delay_seconds": 5, "autostart": true, "stale_timeout_seconds": 15, "limits": { "cpu_usage": 0, "memory_mbytes": 0, "waitfor_seconds": 0 } }, "state": { "order": "start", "exec": "running", "runtime_seconds": 9, "reconnect_seconds": -1, "last_logline": " libpostproc 56. 6.100 / 56. 6.100", "progress": { "inputs": [], "outputs": [], "frame": 0, "packet": 0, "fps": 0, "q": 0, "size_kb": 0, "time": 0, "bitrate_kbit": 0, "speed": 0, "drop": 0, "dup": 0 }, "memory_bytes": 16183296, "cpu_usage": 0, "command": [ "-err_detect", "ignore_err", "-y", "-fflags", "+genpts+discardcorrupt+fastseek", "-thread_queue_size", "512", "-copyts", "-i", "srt://[anonymized]", "-dn", "-sn", "-map", "0:0", "-codec:v", "copy", "-map", "0:1", "-codec:a", "copy", "-metadata", "title=https://[anonymized]", "-metadata", "service_provider=datarhei-Restreamer", "-f", "hls", "-start_number", "0", "-hls_time", "2", "-hls_list_size", "6", "-hls_flags", "append_list+delete_segments+program_date_time+temp_file", "-hls_delete_threshold", "4", "-hls_segment_filename", "http://[anonymized]", "-master_pl_name", "a1a899a1-ed96-463f-8063-fa24095504bc.m3u8", "-master_pl_publish_rate", "2", "-method", "PUT", "http://[anonymized]" ] }, "report": { "created_at": 1679431022, "prelude": [ "ffmpeg version 5.1.2-datarhei Copyright (c) 2000-2022 the FFmpeg developers", " built with gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219", " configuration: --extra-version=datarhei --prefix=/usr --extra-libs='-lpthread -lxml2 -lm -lz -lsupc++ -lstdc++ -lssl -lcrypto -lz -lc -ldl' --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-static --enable-openssl --enable-libxml2 --enable-libv4l2 --enable-v4l2_m2m --enable-libfreetype --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --disable-ffplay --disable-debug --disable-doc --disable-shared", " libavutil 57. 28.100 / 57. 28.100", " libavcodec 59. 37.100 / 59. 37.100", " libavformat 59. 27.100 / 59. 27.100", " libavdevice 59. 7.100 / 59. 7.100", " libavfilter 8. 44.100 / 8. 44.100", " libswscale 6. 7.100 / 6. 7.100", " libswresample 4. 7.100 / 4. 7.100", " libpostproc 56. 6.100 / 56. 6.100" ], "log": [ [ "1679431022", "ffmpeg version 5.1.2-datarhei Copyright (c) 2000-2022 the FFmpeg developers" ], [ "1679431022", " built with gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219" ], [ "1679431022", " configuration: --extra-version=datarhei --prefix=/usr --extra-libs='-lpthread -lxml2 -lm -lz -lsupc++ -lstdc++ -lssl -lcrypto -lz -lc -ldl' --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-static --enable-openssl --enable-libxml2 --enable-libv4l2 --enable-v4l2_m2m --enable-libfreetype --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --disable-ffplay --disable-debug --disable-doc --disable-shared" ], [ "1679431022", " libavutil 57. 28.100 / 57. 28.100" ], [ "1679431022", " libavcodec 59. 37.100 / 59. 37.100" ], [ "1679431022", " libavformat 59. 27.100 / 59. 27.100" ], [ "1679431022", " libavdevice 59. 7.100 / 59. 7.100" ], [ "1679431022", " libavfilter 8. 44.100 / 8. 44.100" ], [ "1679431022", " libswscale 6. 7.100 / 6. 7.100" ], [ "1679431022", " libswresample 4. 7.100 / 4. 7.100" ], [ "1679431022", " libpostproc 56. 6.100 / 56. 6.100" ] ], "history": [ { "created_at": 1679430962, "prelude": [ "ffmpeg version 5.1.2-datarhei Copyright (c) 2000-2022 the FFmpeg developers", " built with gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219", " configuration: --extra-version=datarhei --prefix=/usr --extra-libs='-lpthread -lxml2 -lm -lz -lsupc++ -lstdc++ -lssl -lcrypto -lz -lc -ldl' --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-static --enable-openssl --enable-libxml2 --enable-libv4l2 --enable-v4l2_m2m --enable-libfreetype --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --disable-ffplay --disable-debug --disable-doc --disable-shared", " libavutil 57. 28.100 / 57. 28.100", " libavcodec 59. 37.100 / 59. 37.100", " libavformat 59. 27.100 / 59. 27.100", " libavdevice 59. 7.100 / 59. 7.100", " libavfilter 8. 44.100 / 8. 44.100", " libswscale 6. 7.100 / 6. 7.100", " libswresample 4. 7.100 / 4. 7.100", " libpostproc 56. 6.100 / 56. 6.100", "srt://[anonymized] Immediate exit requested", "Exiting normally, received signal 2." ], "log": [ [ "1679430962", "ffmpeg version 5.1.2-datarhei Copyright (c) 2000-2022 the FFmpeg developers" ], [ "1679430962", " built with gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219" ], [ "1679430962", " configuration: --extra-version=datarhei --prefix=/usr --extra-libs='-lpthread -lxml2 -lm -lz -lsupc++ -lstdc++ -lssl -lcrypto -lz -lc -ldl' --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-static --enable-openssl --enable-libxml2 --enable-libv4l2 --enable-v4l2_m2m --enable-libfreetype --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --disable-ffplay --disable-debug --disable-doc --disable-shared" ], [ "1679430962", " libavutil 57. 28.100 / 57. 28.100" ], [ "1679430962", " libavcodec 59. 37.100 / 59. 37.100" ], [ "1679430962", " libavformat 59. 27.100 / 59. 27.100" ], [ "1679430962", " libavdevice 59. 7.100 / 59. 7.100" ], [ "1679430962", " libavfilter 8. 44.100 / 8. 44.100" ], [ "1679430962", " libswscale 6. 7.100 / 6. 7.100" ], [ "1679430962", " libswresample 4. 7.100 / 4. 7.100" ], [ "1679430962", " libpostproc 56. 6.100 / 56. 6.100" ], [ "1679430977", "srt://[anonymized] Immediate exit requested" ], [ "1679430977", "Exiting normally, received signal 2." ] ] }, { "created_at": 1679430982, "prelude": [ "ffmpeg version 5.1.2-datarhei Copyright (c) 2000-2022 the FFmpeg developers", " built with gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219", " configuration: --extra-version=datarhei --prefix=/usr --extra-libs='-lpthread -lxml2 -lm -lz -lsupc++ -lstdc++ -lssl -lcrypto -lz -lc -ldl' --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-static --enable-openssl --enable-libxml2 --enable-libv4l2 --enable-v4l2_m2m --enable-libfreetype --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --disable-ffplay --disable-debug --disable-doc --disable-shared", " libavutil 57. 28.100 / 57. 28.100", " libavcodec 59. 37.100 / 59. 37.100", " libavformat 59. 27.100 / 59. 27.100", " libavdevice 59. 7.100 / 59. 7.100", " libavfilter 8. 44.100 / 8. 44.100", " libswscale 6. 7.100 / 6. 7.100", " libswresample 4. 7.100 / 4. 7.100", " libpostproc 56. 6.100 / 56. 6.100", "srt://[anonymized] Immediate exit requested", "Exiting normally, received signal 2." ], "log": [ [ "1679430982", "ffmpeg version 5.1.2-datarhei Copyright (c) 2000-2022 the FFmpeg developers" ], [ "1679430982", " built with gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219" ], [ "1679430982", " configuration: --extra-version=datarhei --prefix=/usr --extra-libs='-lpthread -lxml2 -lm -lz -lsupc++ -lstdc++ -lssl -lcrypto -lz -lc -ldl' --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-static --enable-openssl --enable-libxml2 --enable-libv4l2 --enable-v4l2_m2m --enable-libfreetype --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --disable-ffplay --disable-debug --disable-doc --disable-shared" ], [ "1679430982", " libavutil 57. 28.100 / 57. 28.100" ], [ "1679430982", " libavcodec 59. 37.100 / 59. 37.100" ], [ "1679430982", " libavformat 59. 27.100 / 59. 27.100" ], [ "1679430982", " libavdevice 59. 7.100 / 59. 7.100" ], [ "1679430982", " libavfilter 8. 44.100 / 8. 44.100" ], [ "1679430982", " libswscale 6. 7.100 / 6. 7.100" ], [ "1679430982", " libswresample 4. 7.100 / 4. 7.100" ], [ "1679430982", " libpostproc 56. 6.100 / 56. 6.100" ], [ "1679430997", "srt://[anonymized] Immediate exit requested" ], [ "1679430997", "Exiting normally, received signal 2." ] ] }, { "created_at": 1679431002, "prelude": [ "ffmpeg version 5.1.2-datarhei Copyright (c) 2000-2022 the FFmpeg developers", " built with gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219", " configuration: --extra-version=datarhei --prefix=/usr --extra-libs='-lpthread -lxml2 -lm -lz -lsupc++ -lstdc++ -lssl -lcrypto -lz -lc -ldl' --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-static --enable-openssl --enable-libxml2 --enable-libv4l2 --enable-v4l2_m2m --enable-libfreetype --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --disable-ffplay --disable-debug --disable-doc --disable-shared", " libavutil 57. 28.100 / 57. 28.100", " libavcodec 59. 37.100 / 59. 37.100", " libavformat 59. 27.100 / 59. 27.100", " libavdevice 59. 7.100 / 59. 7.100", " libavfilter 8. 44.100 / 8. 44.100", " libswscale 6. 7.100 / 6. 7.100", " libswresample 4. 7.100 / 4. 7.100", " libpostproc 56. 6.100 / 56. 6.100", "srt://[anonymized] Immediate exit requested", "Exiting normally, received signal 2." ], "log": [ [ "1679431002", "ffmpeg version 5.1.2-datarhei Copyright (c) 2000-2022 the FFmpeg developers" ], [ "1679431002", " built with gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219" ], [ "1679431002", " configuration: --extra-version=datarhei --prefix=/usr --extra-libs='-lpthread -lxml2 -lm -lz -lsupc++ -lstdc++ -lssl -lcrypto -lz -lc -ldl' --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-static --enable-openssl --enable-libxml2 --enable-libv4l2 --enable-v4l2_m2m --enable-libfreetype --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --disable-ffplay --disable-debug --disable-doc --disable-shared" ], [ "1679431002", " libavutil 57. 28.100 / 57. 28.100" ], [ "1679431002", " libavcodec 59. 37.100 / 59. 37.100" ], [ "1679431002", " libavformat 59. 27.100 / 59. 27.100" ], [ "1679431002", " libavdevice 59. 7.100 / 59. 7.100" ], [ "1679431002", " libavfilter 8. 44.100 / 8. 44.100" ], [ "1679431002", " libswscale 6. 7.100 / 6. 7.100" ], [ "1679431002", " libswresample 4. 7.100 / 4. 7.100" ], [ "1679431002", " libpostproc 56. 6.100 / 56. 6.100" ], [ "1679431017", "srt://[anonymized] Immediate exit requested" ], [ "1679431017", "Exiting normally, received signal 2." ] ] } ] } } }

ioppermann commented 1 year ago

It's interesting that this happens every 7 minutes. Did you try different bitrates, number of channels? Can it be that Metus Ingest stops sending something after this time?

From the process log it's not clear what may cause this.

reustaquiojr commented 1 year ago

The ffmpeg banner

ffmpeg version 5.1.2-datarhei Copyright (c) 2000-2022 the FFmpeg developers built with gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219 configuration: --extra-version=datarhei --prefix=/usr --extra-libs='-lpthread -lxml2 -lm -lz -lsupc++ -lstdc++ -lssl -lcrypto -lz -lc -ldl' --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-static --enable-openssl --enable-libxml2 --enable-libv4l2 --enable-v4l2_m2m --enable-libfreetype --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --disable-ffplay --disable-debug --disable-doc --disable-shared libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced ... truncated 7 lines ... Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! [h264 @ 0xffff9498ec00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0xffff9498ec00] decode_slice_header error [h264 @ 0xffff9498ec00] no frame! Input #0, mpegts, from 'srt://localhost:10000?mode=caller&transtype=live&streamid=a1a899a1-ed96-463f-8063-fa24095504bc,mode:request': Duration: N/A, start: 13.413400, bitrate: N/A Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, top first), 1920x1080, Closed Captions, 29.97 fps, 59.94 tbr, 90k tbn Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 160 kb/s Stream #0:2[0x102]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 159 kb/s Stream #0:3[0x103]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 159 kb/s Stream #0:4[0x104]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 159 kb/s [http @ 0xffff943e5020] HTTP error 404 Not Found Output #0, hls, to 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0.m3u8': Metadata: title : https://player.a10mais.com/a1a899a1-ed96-463f-8063-fa24095504bc/oembed.json service_provider: datarhei-Restreamer encoder : Lavf59.27.100 Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, top first), 1920x1080, q=2-31, 29.97 fps, 59.94 tbr, 90k tbn Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 160 kb/s

reustaquiojr commented 1 year ago

The ffmpeg logging

@1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 Last message repeated 2 times @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 Last message repeated 2 times @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 Last message repeated 2 times @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 Last message repeated 2 times @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 Last message repeated 2 times @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 Last message repeated 2 times @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 Last message repeated 2 times @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687564 [h264 ] non-existing PPS 0 referenced @1679687564 Last message repeated 1 times @1679687564 [h264 ] decode_slice_header error @1679687564 [h264 ] no frame! @1679687569 Input #0, mpegts, from 'srt://localhost:10000?mode=caller&transtype=live&streamid=a1a899a1-ed96-463f-8063-fa24095504bc,mode:request': @1679687569 Duration: N/A, start: 13.413400, bitrate: N/A @1679687569 Program 1 @1679687569 Metadata: @1679687569 service_name : Service01 @1679687569 service_provider: FFmpeg @1679687569 Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, top first), 1920x1080, Closed Captions, 29.97 fps, 59.94 tbr, 90k tbn @1679687569 Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 160 kb/s @1679687569 Stream #0:2[0x102]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 159 kb/s @1679687569 Stream #0:3[0x103]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 159 kb/s @1679687569 Stream #0:4[0x104]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 159 kb/s @1679687569 [http ] HTTP error 404 Not Found @1679687569 Output #0, hls, to 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0.m3u8': @1679687569 Metadata: @1679687569 title : https://player.a10mais.com/a1a899a1-ed96-463f-8063-fa24095504bc/oembed.json @1679687569 service_provider: datarhei-Restreamer @1679687569 encoder : Lavf59.27.100 @1679687569 Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, top first), 1920x1080, q=2-31, 29.97 fps, 59.94 tbr, 90k tbn @1679687569 Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 160 kb/s @1679687569 ffmpeg.mapping:{"graphs":[],"mapping":[{"input":{"index":0,"stream":0},"output":{"index":0,"stream":0},"copy":true},{"input":{"index":0,"stream":1},"output":{"index":0,"stream":1},"copy":true}]} @1679687569 Stream mapping: @1679687569 Stream #0:0 -> #0:0 (copy) @1679687569 Stream #0:1 -> #0:1 (copy) @1679687569 Press [q] to stop, [?] for help @1679687569 [mpegts ] Thread message queue blocking; consider raising the thread_queue_size option (current value: 512) @1679687569 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0_0000.ts' for writing @1679687569 [hls ] Cannot use rename on non file protocol, this may lead to races and temporary partial files @1679687569 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc.m3u8' for writing @1679687569 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0_0001.ts' for writing @1679687569 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc.m3u8' for writing @1679687570 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0_0002.ts' for writing @1679687572 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0_0003.ts' for writing @1679687572 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc.m3u8' for writing @1679687574 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0_0004.ts' for writing @1679687576 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0_0005.ts' for writing @1679687576 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc.m3u8' for writing @1679687578 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0_0006.ts' for writing @1679687580 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0_0007.ts' for writing @1679687580 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc.m3u8' for writing @1679687582 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0_0008.ts' for writing @1679687584 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0_0009.ts' for writing @1679687584 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc.m3u8' for writing @1679687586 [hls ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0_0010.ts' for writing @1679687586 [mpegts ] Opening 'http://admin:yMwnyT8laOXVSLZtxo@localhost:9090/memfs/a1a899a1-ed96-463f-8063-fa24095504bc_output_0_0000.ts' for writing

ioppermann commented 9 months ago

This is probably related to #15. The SRT library had a bug that likely caused your observed error. The latest datarhei/core:dev Docker image contains the fix in the SRT library.

See my comment in the other issue on how to try it out: https://github.com/datarhei/core/issues/15#issuecomment-1709806141

ioppermann commented 4 months ago

A fix is already available in the official releases.