Project

General

Profile

rtmp stream as input for IPTV network

Added by awaw awaw about 8 years ago

hi,
I try to put rtmp stream as a input in the tvheadend server but it is failed.

I try to check the rtmp link in my pc and it work well. (I use rtmpdump and VLC player)

I search information about it, but I didn't find.

can somebody help me with it ? how can I add a rtmp stream as a input to my server.

thank alot


Replies (5)

RE: rtmp stream as input for IPTV network - Added by awaw awaw about 8 years ago

hi friends,

I try to use ffmpeg in order to add rtmp stream as a input on tvheadend server.

I try this command but it isn't work

pipe://ffmpeg -loglevel fatal -re -i rtmp://62.210.139.136:1935/edge/_definst_/asn0crzhq351g0w -vcodec copy -acodec copy -metadata service_provider=TV -metadata service_name=movie -f mpegts -mpegts_service_type mpeg2_digital_hdtv pipe:1

can somebody say me why it isn't work ?

thanks a lot :)

RE: rtmp stream as input for IPTV network - Added by Robert Cameron about 8 years ago

Remove the -re option from your ffmpeg command. It is used to slow down the input of files to realtime for live streaming. However, since live streams (such as MPEG-TS, RTMP, &c.) are already being received live, there is no need to slow down their input. In fact, the ffmpeg documentation says using this flag on live streams can actually result in dropped/lost packets.

RE: rtmp stream as input for IPTV network - Added by awaw awaw about 8 years ago

ok, but it isn't solve the problem.

I removed the -re flag and it isn't work yet

RE: rtmp stream as input for IPTV network - Added by Robert Cameron about 8 years ago

Perhaps try -flags +global_header before -f mpegts

Also, try specifying the full path of ffmpeg. (Have you verified that your ffmpeg command works by checking its output in vlc, ffplay or similar?

RE: rtmp stream as input for IPTV network - Added by awaw awaw about 8 years ago

Yes, I tried the full path and it isn't work.

also addition of -flags +global_header before -f mpegts isn't solve the problem.

I think that the command is wrong.

    (1-5/5)