user9646948
user9646948

Reputation:

Using ffmpeg to transcode/transmux HLS to RTMP for nginx simulcast not working

I want to take an HLS stream and transcode it to RTMP and simulcast it with the nginx RTMP module.

It's not working, however (I have it placed in the application section of the RTMP module).

exec ffmpeg -i -re http://<HLS>.m3u8 -acodec aac -vcodec libx264 -f flv rtmp://localhost/live/test;

When I try to view my RTMP stream in VLC, it is not loading. I have tried several variations of that ffmpeg directive, none have worked. Any advice? If you need to see more of my config file, I can provide that, but this server has been working previously perfectly when sending video over via a Teradek encoder. This new wrinkle is just not working.

EDIT: Just had a thought. It’d probably help to have the codec information of the incoming HLS stream. Here it is:

Upvotes: 0

Views: 3415

Answers (1)

Scottso
Scottso

Reputation: 89

If you run in terminal

ffmpeg -i -re http://<HLS>.m3u8 -acodec aac -vcodec libx264 -f flv rtmp://localhost/live/test;

are you able to play the stream in VLC?

Upvotes: 0

Related Questions