Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config file sample for network inputs #54

Closed
LSrt-stack opened this issue May 8, 2020 · 8 comments
Closed

Config file sample for network inputs #54

LSrt-stack opened this issue May 8, 2020 · 8 comments
Labels
status: archived Archived and locked; will not be updated type: question A question from the community

Comments

@LSrt-stack
Copy link

Can we have a sample, live input config file ?
Am currently using looped file as input and pipeline config is set to live : this should work ?
Thank you

@LSrt-stack
Copy link
Author

LSrt-stack commented May 13, 2020

Hi, I am using the following input config to roll a mp4 file in loop and stream it to udp port. without much success, could you please help with any errors in the config file ?

 # List of inputs.
inputs:
    # The type of input.
  - input_type: external_command
    name: >
        ffmpeg 
        -threads 2 
        -re 
        -fflags +genpts 
        -stream_loop -1 
        -i ./test2.mp4 
        -v 0 -vcodec mpeg4 
        -f mpegts udp://127.0.0.1:23003
      
    extra_input_args: '-i udp://127.0.0.1:23003?overrun_nonfatal=1'
    media_type: video
    frame_rate: 25
    resolution: 720p

@joeyparrish
Copy link
Member

Please try something like https://github.com/google/shaka-streamer/blob/master/config_files/input_looped_file_config.yaml :

inputs:
    # The type of input.
  - input_type: looped_file
    # Name of the input file.
    # This example can be downloaded from https://storage.googleapis.com/shaka-streamer-assets/sample-inputs/Sintel.2010.720p.mkv
    name: Sintel.2010.720p.mkv
    # The media type of the input. Can be audio or video.
    media_type: video

    # The type of input.
  - input_type: looped_file
    # A second track (audio) from the same input file.
    name: Sintel.2010.720p.mkv
    media_type: audio

Instead of using external_command to loop an input file, let Shaka Streamer do it for you.

You can find many more sample configs in the config_files/ folder in the repo: https://github.com/google/shaka-streamer/tree/master/config_files

Does this help?

@joeyparrish joeyparrish added type: docs Improvements or fixes to documentation type: question A question from the community and removed needs triage labels May 22, 2020
@shaka-bot shaka-bot added this to the v1.0 milestone May 22, 2020
@shaka-bot
Copy link
Collaborator

@LSrt-stack Does this answer all your questions? Can we close the issue?

@shaka-bot shaka-bot added the status: waiting on response Waiting on a response from the reporter(s) of the issue label May 26, 2020
@LSrt-stack
Copy link
Author

Hi, I checked all the example config files in config_files : my request is specific to a example config file which streams from a network source instead of static file "Sintel.2010.720p.mkv" as in the above example.
Thank you

@shaka-bot shaka-bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label May 31, 2020
@mariocynicys
Copy link
Member

mariocynicys commented Jun 13, 2021

Hello,
If you mean how can you take an external input and package it based on some pipeline config, you can use the external command input config as the one you are using above but you need to specify the output from your external command to the environment variable $SHAKA_STREAMER_EXTERNAL_COMMAND_OUTPUT so that the output of the external command is piped into Shaka Packager.

@joeyparrish joeyparrish removed the type: docs Improvements or fixes to documentation label Oct 5, 2021
@joeyparrish joeyparrish removed this from the v1.0 milestone Oct 5, 2021
@joeyparrish
Copy link
Member

Apologies for letting this issue go unnoticed. We are catching up on issues.

my request is specific to a example config file which streams from a network source instead of static file

I think this is covered by #16 (comment), where we suggest adding docs and examples for RTMP. For example:

inputs:
  - name: rtmp://localhost/live/foo
    media_type: video

  - name: rtmp://localhost/live/foo
    media_type: audio

Does this help?

@joeyparrish joeyparrish changed the title Config file samples Config file sample for network inputs Oct 5, 2021
@shaka-bot
Copy link
Collaborator

@LSrt-stack Does this answer all your questions? Can we close the issue?

@shaka-bot shaka-bot added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Oct 9, 2021
@shaka-bot
Copy link
Collaborator

Closing due to inactivity. If this is still an issue for you or if you have further questions, you can ask us to reopen or have the bot reopen it by including @shaka-bot reopen in a comment.

@shaka-bot shaka-bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Oct 16, 2021
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Dec 15, 2021
@shaka-project shaka-project locked and limited conversation to collaborators Dec 15, 2021
@joeyparrish joeyparrish modified the milestone: v1.0 Nov 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated type: question A question from the community
Projects
None yet
Development

No branches or pull requests

4 participants