Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

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
 

dogstyle007

Extended Member
Ext. Member
Joined
Nov 29, 2019
Messages
82
Reaction score
514
Points
94
Location
Africa
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
 

PKT

VIP Member 12M
Basic Member
Ext. Member
VIP Member 12M
Joined
Jun 6, 2021
Messages
27
Reaction score
109
Points
39
Location
Bangalore
||||||||||||||||||||||||||||||||||||||||||||||||||||||||

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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

dccare

Banned
Banned
Ext. Member
Joined
Mar 3, 2020
Messages
16
Reaction score
0
Points
9
Location
Dhaka
Are you get the soluation ? I also need help for this type still searching on internet
 

walter8729

Basic Member
Basic Member
Joined
Mar 10, 2022
Messages
6
Reaction score
1
Points
14
Location
Paraguay
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
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock