Giter Site home page Giter Site logo

Comments (15)

zocker-160 avatar zocker-160 commented on July 22, 2024 3

@labor4 @nerijus here are my settings in case you are interested:

protocols setting
Screenshot_20220330_201646

stream setting
grafik

in OBS:
grafik

playback url: https://<domain>/obstest.mp4

from mistserver.

Rokamun avatar Rokamun commented on July 22, 2024 1

from mistserver.

labor4 avatar labor4 commented on July 22, 2024 1

@Rokamun
Hi,
would you please re-up your screenshots of your config?
I see only "[image: image.png]".
Thanks.

from mistserver.

labor4 avatar labor4 commented on July 22, 2024 1

@nerijus
SRT URL syntax is usually along:

Push to Mist:
srt://1.2.3.4?streamid=test&var=key&var2=key2

"test" being the identifier with which Mistserver can create subchannels.

from mistserver.

Rokamun avatar Rokamun commented on July 22, 2024 1

MistServer 3.1 is released as of the 24th. So it should be possible to use those srt-values now when set up as a single stream input. If not we'd obviously want to hear that ;)

And it's a bit late on the password question, but:
With the way the SRT library works you can't set a password when inputting all SRT streams over a single port. This is because the password will then count for all connections and not just a single stream a password the way you'd want it to work isn't implemented in the actual SRT library.
That said, I can see value in adding all parameters to be set up for the single port connection as well, even though all SRT streams would have to share the passphrase the other options could be meaningful. I'll add it to the list of features to add.

Passphrase comes close, but can only be used when the port is only meant for that stream. So you'd need to use a stream with "srt://etc" as source.

from mistserver.

zocker-160 avatar zocker-160 commented on July 22, 2024

Thank you for the reply and the instructions.

I managed to make it work, but I am experiencing heavy artifacts like this:
Screenshot_20220307_131653

Those do not happen when using rtmp; can you replicate this as well, or is that an issue on our end?

Also one additional note:
in the TS over SRT settings on the protocol panel it does say TCP port, but the server does actually open an UDP one

Thank you for the help!

from mistserver.

Rokamun avatar Rokamun commented on July 22, 2024

from mistserver.

zocker-160 avatar zocker-160 commented on July 22, 2024

Hello,

thank you for the suggestion, sadly it has not fixed the issue, I am still seeing heavy image errors like in the screenshot above.

I might have something that could help you though, when trying to play the mp4 stream offered by mistserver in ffplay I am getting a ton of errors:

$ ffplay https://[redacted]/obstest.mp4
ffplay version 4.2.4-1ubuntu0.1+srt1 Copyright (c) 2003-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration: --prefix=/usr --enable-libsrt --extra-version=1ubuntu0.1+srt1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[h264 @ 0x7f2ce800a600] cabac decode of qscale diff failed at 87 11 
[h264 @ 0x7f2ce800a600] error while decoding MB 87 11, bytestream 77320
[h264 @ 0x7f2ce800a600] concealing 6802 DC, 6802 AC, 6802 MV errors in I frame
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://[url]/obstest.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41Mist
  Duration: 1193:02:47.36, start: 0.000000, bitrate: N/A
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 0 kb/s, 29.60 fps, 30 tbr, 1k tbn, 60 tbc (default)
    Metadata:
      handler_name    : video_H264_1920x1080_30fps
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp (default)
    Metadata:
      handler_name    : audio_AAC_2ch_48000hz
[h264 @ 0x7f2ce8342d80] concealing 7913 DC, 7913 AC, 7913 MV errors in P frame
[h264 @ 0x7f2ce8333080] cabac decode of qscale diff failed at 87 11
[h264 @ 0x7f2ce8333080] error while decoding MB 87 11, bytestream 77320
[h264 @ 0x7f2ce8333080] concealing 6802 DC, 6802 AC, 6802 MV errors in I frame
[h264 @ 0x7f2ce843df00] error while decoding MB 63 27, bytestream -5
[h264 @ 0x7f2ce843df00] concealing 4906 DC, 4906 AC, 4906 MV errors in B frame
[h264 @ 0x7f2ce845a7c0] cabac decode of qscale diff failed at 43 24
[h264 @ 0x7f2ce845a7c0] error while decoding MB 43 24, bytestream 55153
[h264 @ 0x7f2ce845a7c0] concealing 5286 DC, 5286 AC, 5286 MV errors in B frame
[h264 @ 0x7f2ce8477100] concealing 6666 DC, 6666 AC, 6666 MV errors in P frame
[h264 @ 0x7f2ce8493a40] concealing 5400 DC, 5400 AC, 5400 MV errors in B frame
[h264 @ 0x7f2ce84cccc0] Reference 4 >= 4
[h264 @ 0x7f2ce84cccc0] error while decoding MB 23 19, bytestream 4149
[h264 @ 0x7f2ce84cccc0] concealing 5906 DC, 5906 AC, 5906 MV errors in P frame
[h264 @ 0x7f2ce84cccc0] left block unavailable for requested intra4x4 mode -1
[h264 @ 0x7f2ce84cccc0] error while decoding MB 0 57, bytestream 3630
[h264 @ 0x7f2ce84cccc0] concealing 1369 DC, 1369 AC, 1369 MV errors in I frame
[h264 @ 0x7f2ce84e9600] cabac decode of qscale diff failed at 61 7  
[h264 @ 0x7f2ce84e9600] error while decoding MB 61 7, bytestream 32460
[h264 @ 0x7f2ce84e9600] Cannot use next picture in error concealment
[h264 @ 0x7f2ce84e9600] concealing 7308 DC, 7308 AC, 7308 MV errors in P frame
[h264 @ 0x7f2ce8522880] cabac decode of qscale diff failed at 95 44 
[h264 @ 0x7f2ce8522880] error while decoding MB 95 44, bytestream 6000
[h264 @ 0x7f2ce8522880] concealing 2834 DC, 2834 AC, 2834 MV errors in I frame
[h264 @ 0x7f2ce8578440] error while decoding MB 71 52, bytestream -12
[h264 @ 0x7f2ce8578440] concealing 1898 DC, 1898 AC, 1898 MV errors in P frame
[h264 @ 0x7f2ce84cccc0] concealing 2951 DC, 2951 AC, 2951 MV errors in I frame
[h264 @ 0x7f2ce84e9600] concealing 2365 DC, 2365 AC, 2365 MV errors in P frame
[h264 @ 0x7f2ce8505f40] concealing 5322 DC, 5322 AC, 5322 MV errors in B frame
[h264 @ 0x7f2ce8594d80] cabac decode of qscale diff failed at 92 43 
[h264 @ 0x7f2ce8594d80] error while decoding MB 92 43, bytestream 4037
[h264 @ 0x7f2ce8594d80] concealing 2957 DC, 2957 AC, 2957 MV errors in I frame
[h264 @ 0x7f2ce85b16c0] cabac decode of qscale diff failed at 13 13 
[h264 @ 0x7f2ce85b16c0] error while decoding MB 13 13, bytestream 61381
[h264 @ 0x7f2ce85b16c0] concealing 6636 DC, 6636 AC, 6636 MV errors in P frame
[h264 @ 0x7f2ce8522880] concealing 3195 DC, 3195 AC, 3195 MV errors in I frame
[h264 @ 0x7f2ce84cccc0] concealing 5173 DC, 5173 AC, 5173 MV errors in I frame
[h264 @ 0x7f2ce84e9600] concealing 1021 DC, 1021 AC, 1021 MV errors in B frame
[h264 @ 0x7f2ce8522880] co located POCs unavailableq=    0B f=0/0   
[h264 @ 0x7f2ce855bb00] cabac decode of qscale diff failed at 79 62 
[h264 @ 0x7f2ce855bb00] error while decoding MB 79 62, bytestream 3897
[h264 @ 0x7f2ce855bb00] concealing 690 DC, 690 AC, 690 MV errors in P frame
[h264 @ 0x7f2ce845a7c0] cabac decode of qscale diff failed at 50 38 
[h264 @ 0x7f2ce845a7c0] error while decoding MB 50 38, bytestream 56091
[h264 @ 0x7f2ce845a7c0] concealing 3599 DC, 3599 AC, 3599 MV errors in I frame
[h264 @ 0x7f2ce8477100] Cannot use next picture in error concealment
[h264 @ 0x7f2ce8477100] concealing 4154 DC, 4154 AC, 4154 MV errors in P frame
[h264 @ 0x7f2ce8493a40] concealing 5448 DC, 5448 AC, 5448 MV errors in B frame
[h264 @ 0x7f2ce84b0380] error while decoding MB 65 27, bytestream -5
[h264 @ 0x7f2ce84b0380] concealing 4904 DC, 4904 AC, 4904 MV errors in B frame
[h264 @ 0x7f2ce84e9600] left block unavailable for requested intra4x4 mode -1
[h264 @ 0x7f2ce84e9600] error while decoding MB 0 37, bytestream 15730
[h264 @ 0x7f2ce84e9600] concealing 3769 DC, 3769 AC, 3769 MV errors in I frame
[h264 @ 0x7f2ce853f1c0] co located POCs unavailableq=    0B f=0/0   
[h264 @ 0x7f2ce853f1c0] Reference 3 >= 2
[h264 @ 0x7f2ce853f1c0] error while decoding MB 104 26, bytestream 21161
[h264 @ 0x7f2ce853f1c0] concealing 4985 DC, 4985 AC, 4985 MV errors in B frame
[h264 @ 0x7f2ce855bb00] error while decoding MB 59 63, bytestream -10
[h264 @ 0x7f2ce855bb00] concealing 590 DC, 590 AC, 590 MV errors in P frame
[h264 @ 0x7f2ce84b0380] cabac decode of qscale diff failed at 100 43
[h264 @ 0x7f2ce84b0380] error while decoding MB 100 43, bytestream 4906
[h264 @ 0x7f2ce84b0380] concealing 2949 DC, 2949 AC, 2949 MV errors in I frame
[h264 @ 0x7f2ce84cccc0] concealing 3314 DC, 3314 AC, 3314 MV errors in P frame
[h264 @ 0x7f2ce8594d80] left block unavailable for requested intra mode
[h264 @ 0x7f2ce8594d80] error while decoding MB 0 26, bytestream 11642
[h264 @ 0x7f2ce8594d80] concealing 5089 DC, 5089 AC, 5089 MV errors in I frame
[h264 @ 0x7f2ce85b16c0] concealing 7784 DC, 7784 AC, 7784 MV errors in P frame
[h264 @ 0x7f2ce8342d80] error while decoding MB 81 19, bytestream -5
[h264 @ 0x7f2ce8342d80] concealing 5848 DC, 5848 AC, 5848 MV errors in B frame
[h264 @ 0x7f2ce843df00] Reference 4 >= 4q=  232KB sq=    0B f=0/0   
[h264 @ 0x7f2ce843df00] error while decoding MB 62 4, bytestream 9639
[h264 @ 0x7f2ce843df00] concealing 7667 DC, 7667 AC, 7667 MV errors in P frame
[h264 @ 0x7f2ce845a7c0] concealing 7664 DC, 7664 AC, 7664 MV errors in B frame
[h264 @ 0x7f2ce855bb00] cabac decode of qscale diff failed at 89 40 
[h264 @ 0x7f2ce855bb00] error while decoding MB 89 40, bytestream 5338
[h264 @ 0x7f2ce855bb00] concealing 3320 DC, 3320 AC, 3320 MV errors in I frame
[h264 @ 0x7f2ce8578440] concealing 7804 DC, 7804 AC, 7804 MV errors in P frame
[h264 @ 0x7f2ce8505f40] concealing 2169 DC, 2169 AC, 2169 MV errors in I frame
[h264 @ 0x7f2ce8522880] concealing 7036 DC, 7036 AC, 7036 MV errors in P frame
[h264 @ 0x7f2ce845a7c0] left block unavailable for requested intra mode
[h264 @ 0x7f2ce845a7c0] error while decoding MB 0 31, bytestream 7522
[h264 @ 0x7f2ce845a7c0] concealing 4489 DC, 4489 AC, 4489 MV errors in I frame
[h264 @ 0x7f2ce8477100] left block unavailable for requested intra mode
[h264 @ 0x7f2ce8477100] error while decoding MB 0 7, bytestream 79029
[h264 @ 0x7f2ce8477100] concealing 7369 DC, 7369 AC, 7369 MV errors in P frame
[h264 @ 0x7f2ce8477100] cabac decode of qscale diff failed at 61 39 
[h264 @ 0x7f2ce8477100] error while decoding MB 61 39, bytestream 10542
[h264 @ 0x7f2ce8477100] concealing 3468 DC, 3468 AC, 3468 MV errors in I frame
[h264 @ 0x7f2ce8493a40] concealing 6847 DC, 6847 AC, 6847 MV errors in P frame
[h264 @ 0x7f2ce84e9600] cabac decode of qscale diff failed at 12 3  
[h264 @ 0x7f2ce84e9600] error while decoding MB 12 3, bytestream 25982
[h264 @ 0x7f2ce84e9600] concealing 7837 DC, 7837 AC, 7837 MV errors in P frame
[h264 @ 0x7f2ce8333080] concealing 5848 DC, 5848 AC, 5848 MV errors in I frame
[h264 @ 0x7f2ce8342d80] Cannot use next picture in error concealment
[h264 @ 0x7f2ce8342d80] concealing 6697 DC, 6697 AC, 6697 MV errors in P frame
[h264 @ 0x7f2ce8342d80] left block unavailable for requested intra mode
[h264 @ 0x7f2ce8342d80] error while decoding MB 0 48, bytestream 3136
[h264 @ 0x7f2ce8342d80] concealing 2449 DC, 2449 AC, 2449 MV errors in I frame
[h264 @ 0x7f2ce843df00] cabac decode of qscale diff failed at 4 10  
[h264 @ 0x7f2ce843df00] error while decoding MB 4 10, bytestream 44863
[h264 @ 0x7f2ce843df00] concealing 7005 DC, 7005 AC, 7005 MV errors in P frame
[h264 @ 0x7f2ce845a7c0] error while decoding MB 67 25, bytestream -6
[h264 @ 0x7f2ce845a7c0] concealing 5142 DC, 5142 AC, 5142 MV errors in B frame
[h264 @ 0x7f2ce8477100] concealing 5066 DC, 5066 AC, 5066 MV errors in P frame
[h264 @ 0x7f2ce8342d80] cabac decode of qscale diff failed at 86 32 
[h264 @ 0x7f2ce8342d80] error while decoding MB 86 32, bytestream 5938
[h264 @ 0x7f2ce8342d80] concealing 4283 DC, 4283 AC, 4283 MV errors in I frame
[h264 @ 0x7f2ce843df00] concealing 3120 DC, 3120 AC, 3120 MV errors in P frame
[h264 @ 0x7f2ce845a7c0] concealing 3513 DC, 3513 AC, 3513 MV errors in B frame
[h264 @ 0x7f2ce8333080] concealing 5451 DC, 5451 AC, 5451 MV errors in I frame
[h264 @ 0x7f2ce8342d80] Cannot use next picture in error concealment
[h264 @ 0x7f2ce8342d80] concealing 6859 DC, 6859 AC, 6859 MV errors in P frame
[h264 @ 0x7f2ce843df00] concealing 5330 DC, 5330 AC, 5330 MV errors in B frame
[h264 @ 0x7f2ce845a7c0] concealing 5617 DC, 5617 AC, 5617 MV errors in B frame
[h264 @ 0x7f2ce8477100] concealing 6522 DC, 6522 AC, 6522 MV errors in P frame
[h264 @ 0x7f2ce8493a40] concealing 3604 DC, 3604 AC, 3604 MV errors in B frame
[h264 @ 0x7f2ce84e9600] cabac decode of qscale diff failed at 19 32 
[h264 @ 0x7f2ce84e9600] error while decoding MB 19 32, bytestream 20832
[h264 @ 0x7f2ce84e9600] concealing 4350 DC, 4350 AC, 4350 MV errors in P frame
[h264 @ 0x7f2ce855bb00] concealing 570 DC, 570 AC, 570 MV errors in I frame
[h264 @ 0x7f2ce8594d80] concealing 843 DC, 843 AC, 843 MV errors in B frame
[h264 @ 0x7f2ce8477100] concealing 6095 DC, 6095 AC, 6095 MV errors in I frame
[h264 @ 0x7f2ce84b0380] concealing 5156 DC, 5156 AC, 5156 MV errors in P frame
[h264 @ 0x7f2ce84cccc0] concealing 4471 DC, 4471 AC, 4471 MV errors in B frame
[h264 @ 0x7f2ce84e9600] Reference 3 >= 2q=  171KB sq=    0B f=0/0   
[h264 @ 0x7f2ce84e9600] error while decoding MB 33 37, bytestream 35504

from mistserver.

nerijus avatar nerijus commented on July 22, 2024

@Rokamun , could you please upload images?
I configured as this:
"Go to the protocols panel and add TS over SRT, choose any (TCP) port" - I chose 8889
"set it up to only allow incoming connections (first option)" - actually "Allow only incoming connections" is the last one:
image

I am pushing from other server (not MistServer) via SRT (stream name is "test"). How do I watch this stream from MistServer? As stream name from where I am pushing is "test", should URL https://[redacted]/test.mp4 work?

from mistserver.

nerijus avatar nerijus commented on July 22, 2024

Is it possible to define a password for the stream?

from mistserver.

morbificagent avatar morbificagent commented on July 22, 2024

Eventually the artifacts are there because there isnt a &latency value... As i know srt has a very small default value there which have to raised to 3000000 (3s) so it has time to receive all udp packets...
So normaly i would configure &latency=3000000 on the listener.
But i dont know how to do this with the actual possibilities (as protocol)

from mistserver.

morbificagent avatar morbificagent commented on July 22, 2024

As i heared V3.1 of mistserver is coming soon where i can define an srt listener as Stream... eventually it is possible to enter this srt-values than.

from mistserver.

demovoidgan avatar demovoidgan commented on July 22, 2024

with release 3.1 from https://mistserver.org/download on ubuntu 20.04.4 LTS.
SRT works fine, but the origin of the broadcast has to be on the same IP as the mistServer, I always get the message "Push from etc... rejected; not whitelisted"
There is also no option to configure a password, looking at the code I see that it is simply not implemented. Does anyone know if there is an option?
PS: obviously, I can implement it myself, seeing the code I don't see it as complicated, other things is having time :)

from mistserver.

nerijus avatar nerijus commented on July 22, 2024

IIRC it is already implemented in catalyst branch.

from mistserver.

nerijus avatar nerijus commented on July 22, 2024

FYI - just tested, password works with development branch too. For password you need to use PUSH_REWRITE trigger. I use it like this:
mistserver.conf:

    "triggers": {
      "PUSH_REWRITE": [
        {
          "handler": "/etc/mistserver/srt-rewrite.sh",
          "streams": [],
          "sync": true
        }
      ]
    },
...
  "streams": {
    "stream_name": {
      "always_on": true,
      "name": "stream_name",
      "processes": [],
      "realtime": false,
      "source": "push://",
      "stop_sessions": false
    },
  },

/etc/mistserver/srt-rewrite.sh:

#!/bin/bash

data=`cat`

if [ "$(echo $data | awk '{print $3}')" = password ]
   then echo -n stream_name
fi

password should be in lowercase. Pushing to srt://server:port?streamid=password then works - it actually pushes to the stream stream_name.
Example with ffmpeg - ffmpeg -re -i input.mp4 -c copy -f mpegts srt://server:port?streamid=password. I tested with 2 push streams simultaneously - works too.

from mistserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.