arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.47k stars 3.52k forks source link

No Audio - HLS & Dash #759

Open ryanpager opened 8 years ago

ryanpager commented 8 years ago

So my configuration setup for the rtmp server looks like,

rtmp {
  server {
    listen 1935;
    chunk_size 4096;

    application hls {
      # HLS Mobile stream
      hls on;
      hls_path /tmp/hls;
      hls_fragment 5s;
    }

    application dash {
      # MPEG-DASH Mobile stream
      dash on;
      dash_path /tmp/dash;
      dash_fragment 5s;
    }

    application subscribe {
      live on;
      sync 5ms;
      wait_video on;
      publish_notify on;
    }

    application publish {
      live on;
      sync 5ms;
      wait_video on;
      publish_notify on;

      # Set up stream pushes
      # i.e. push rtmp://<server_ip>:1935/subscribe;

      push rtmp://<server_ip>:1935/subscribe;
      push rtmp://<server_ip>:1935/hls;

      # Default recorder
      record all;
      record_path /opt/streams/recording;
      record_suffix .flv;
      record_unique off;
      record_append on;

      # Execute the transfer on recording completion
      exec_options on;
      exec_record_done bash -c "some script here"
    }
  }
}

Everything works correctly -- mobile phones can pick up the stream no problem. However, regardless of the player (even on desktop), there is no audio for m3u8 or mpd streams. Is there a configuration im missing, or some sort of toggle?

sergey-dryabzhinsky commented 8 years ago
  1. What app you are using to stream?
  2. What codes for audio is available in it?
  3. Can you put here output of ffprobe http://<server>/<hls-path>/<stream>.m3u8
ghost commented 6 years ago

I've the same issue

 Duration: N/A, start: 457.904000, bitrate: N/A
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuvj420p(pc), 1280x720, 24.92 tbr, 90k tbn, 49.83 tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp
    Metadata:
      variant_bitrate : 0
OlexTratisky commented 4 years ago

Did anyone come up with a solution to this?

streamingsystems commented 1 year ago

Hello,

We are seeing this randomly, some times the audio does not come down for HLS even though it's in the source. Did anyone ever get any more information on this?