Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

nginx/RTMP hls issue

djpufcio

Extended Member
Ext. Member
Joined
Apr 30, 2020
Messages
3
Reaction score
2
Points
11
Location
Canada
I'm trying to restream a stream using ffmpeg. I'm using the following command:

ffmpeg -i "http://serverIP/USER/PASSWORD/STREAM" -c:v copy -c:a aac -f flv rtmp://127.0.0.1/live/STREAM

The input stream is "Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc"

The RTMP side is working perfectly fine. Issue is with HLS. In HLS output there's no video only sound. If I change the profile to MAIN I get video but speed is always below 1. I'm running out of ideas. Any help is greatly appriciated. Thanks in advance
 
I'm trying to restream a stream using ffmpeg. I'm using the following command:

ffmpeg -i "http://serverIP/USER/PASSWORD/STREAM" -c:v copy -c:a aac -f flv rtmp://127.0.0.1/live/STREAM

The input stream is "Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc"

The RTMP side is working perfectly fine. Issue is with HLS. In HLS output there's no video only sound. If I change the profile to MAIN I get video but speed is always below 1. I'm running out of ideas. Any help is greatly appriciated. Thanks in advance
Try this below.

ffmpeg -re -i "http://serverIP/USER/PASSWORD/STREAM" -c copy -f flv rtmp://127.0.0.1/live/STREAM
 
||||||||||||||||||||||||||||||||||||||||||||||||||||||||

Run htop command while the rtmp is processing & check cpu info, sometimes u might use x246 instead of copy in ffmpeg for other rtmp app & it just sucks up cpu & disturbs other rtmp apps too.

||||||||||||||||||||||||||||||||||||||||||||||||||||||||

1. default pull & using default hls app is always the simpler & best way.

application stream {
live on;
pull rtmp://ipaddresss:1935/origin_appname;
hls on;
hls_nested on;
hls_path /mnt/hls/stream/;
hls_fragment 3s;
hls_playlist_length 10;
hls_type event;
}

||||||||||||||||||||||||||||||||||||||||||||||||||||||||

2. using exec_push like this if you do not like the inbuilt hls.

exec_push ffmpeg -i rtmp://localhost:1935/originappname/$name -c:a copy -c:v copy -hls_time 3 -hls_list_size 10 -hls_wrap 10 -hls_flags delete_segments+split_by_time -hls_playlist_type event -f hls /mnt/hls/stream/$name.m3u8;

||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Are you get the soluation ? I also need help for this type still searching on internet
 
I'm trying to restream a stream using ffmpeg. I'm using the following command:

ffmpeg -i "http://serverIP/USER/PASSWORD/STREAM" -c:v copy -c:a aac -f flv rtmp://127.0.0.1/live/STREAM

The input stream is "Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc"

The RTMP side is working perfectly fine. Issue is with HLS. In HLS output there's no video only sound. If I change the profile to MAIN I get video but speed is always below 1. I'm running out of ideas. Any help is greatly appriciated. Thanks in advance
tv, bt709, top first= your video is in interleaved video mode, you can try to transcode to progresive video, i think thats the problem
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top