nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

No Audio - HLS & Dash

Open ryanpager opened this issue 9 years ago • 4 comments

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?

ryanpager avatar Feb 02 '16 19:02 ryanpager

  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

sergey-dryabzhinsky avatar Mar 01 '16 00:03 sergey-dryabzhinsky

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

ghost avatar May 10 '18 10:05 ghost

Did anyone come up with a solution to this?

OlexTratisky avatar Sep 02 '20 08:09 OlexTratisky

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?

streamingsystems avatar Sep 22 '23 12:09 streamingsystems