nginx-rtmp-module
nginx-rtmp-module copied to clipboard
No Audio - HLS & Dash
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?
- What app you are using to stream?
- What codes for audio is available in it?
- Can you put here output of
ffprobe http://<server>/<hls-path>/<stream>.m3u8
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
Did anyone come up with a solution to this?
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?