shaka-project / shaka-streamer

A simple config-file based approach to preparing streaming media, based on FFmpeg and Shaka Packager.
https://shaka-project.github.io/shaka-streamer/
Apache License 2.0
198 stars 62 forks source link

Document UDP input support #9

Open joeyparrish opened 5 years ago

joeyparrish commented 5 years ago

We don't yet support UDP input streams, but we could.

joeyparrish commented 4 years ago

RTMP and UDP inputs seem to work without any additional code. How to use them should be well-documented, though, so I'm changing this to a docs issue.

LSrt-stack commented 4 years ago

Could we have sample config files for RTMP and UDP inputs ? Thank you

jspizziri commented 1 year ago

@joeyparrish would love some docs on RTMP and UDP inputs. I'd be happy to contribute documentation, but I'm not sure where to start. Perhaps you could point me in the right direction?

okejadi commented 1 year ago

hello @joeyparrish can I see the sample for udp inputs?

I tried this:

# List of inputs.
inputs:
    # The type of input.
#  - input_type: external_command
    # The command to run.  Here $SHAKA_STREAMER_EXTERNAL_COMMAND_OUTPUT
    # (or %SHAKA_STREAMER_EXTERNAL_COMMAND_OUTPUT% on Windows) is replaced
    # with the output pipe.
  - name: udp://@227.10.20.8:1234
    media_type: video
    # hardcode resolution to avoid autodetection
    resolution: 720p
    frame_rate: 25

#  - input_type: external_command
  - name: udp://@227.10.20.8:1234
    media_type: audio
    channel_layout: stereo

but the video FPS got stuck in there, as I also can't view the output from outputs_files using apache2. if i see the output file, only audio is being generated while the video is not.

image

I tried only the video input and its working, but not when I added the audio stream

image

Working VLC footage (no audio) image

here is the working video only code:

# List of inputs.
inputs:
    # The type of input.
#  - input_type: external_command
    # The command to run.  Here $SHAKA_STREAMER_EXTERNAL_COMMAND_OUTPUT
    # (or %SHAKA_STREAMER_EXTERNAL_COMMAND_OUTPUT% on Windows) is replaced
    # with the output pipe.
  - name: udp://@227.10.20.8:1234
    media_type: video
    # hardcode resolution to avoid autodetection
    resolution: 720p
    frame_rate: 25

any suggestions?