Page 1 of 1

[SOLVED] RTMP streaming AND viewing

Posted: 05 Nov 2018 19:10
by allegfede
hello everyody.

need to "restream" an udp streaming (h264 video - mp3 audio) to a server that accepts only rtmp data (h264 video and AAC audio).

I managed to record it on disk copying the RAW h264 video frames and encoding mp3 audio to AAC in an FLV container (using the media-convert/save), but i have not found nothing in the VLC interface to convert AND stream contens in the media-stream menu.

i read in the forum a lot of examples with cvlc but i need the graphic interface to see what is coming from the net source.

seems i managed to get some content using this command by the shell:
cvlc -v udp://@239.255.42.42:5004 --sout '#transcode{acodec=aac,ab=128,deinterlace}:std{access=rtmp,dst=rtmp://My_RTMP_server/rtmp_application_name/stream_name,mux=flv}'

but if i use VLC (and not CVLC):
vlc -v udp://@239.255.42.42:5004 --sout '#transcode{acodec=aac,ab=128,deinterlace}:std{access=rtmp,dst=rtmp://My_RTMP_server/rtmp_application_name/stream_name,mux=flv}'

i cannot see the incoming audio/video data :-(

using this line:
vlc -v udp://@239.255.42.42:5004 --sout '#display:transcode{acodec=aac,ab=128}:std{access=rtmp,dst=rtmp://My_RTMP_server/rtmp_application_name/stream_name,mux=flv}'

I can see the incoming video but cannot get the RTMP stream from the server ...

with this line also (testing the duplicate command):
vlc -v udp://@239.255.42.42:5004 --sout '#duplicate{dst=display,dst=transcode{acodec=aac,ab=128}:std{access=rtmp,dst=rtmp://My_RTMP_server/rtmp_application_name/stream_name,mux=flv}'

thanks

PS: i supposed that if i do not mention in the transcode the video codec, vlc let it pass like the raw input (copy codec in ffmpeg), is that right?

Re: RTMP streaming AND viewing

Posted: 05 Nov 2018 20:24
by allegfede
maybe i solved:

vlc -vvv udp://@239.255.42.42:5004 --sout-keep --sout '#transcode{acodec=aac,ab=128}:duplicate{dst=std{access=rtmp,dst=rtmp://My_RTMP_server/rtmp_application_name/stream_name,mux=flv},dst=display}'