pengliren / sms

SMS is a java-based streaming server
Apache License 2.0
23 stars 14 forks source link

This Project can transfer ( HLS input to RTMP output ), and ( HLS input to HLS output )?? #2

Open coolcjg opened 4 years ago

coolcjg commented 4 years ago

I'm not good at english...

I run SMS program.

It's good program for understanding rtmp, rtsp, hls process!!!

I use raspberry pi webcam for input stream.

input : rtmp (ex : ffmpeg -thread_queue_size 21 -i /dev/video0 -f lavfi -f alsa -i hw:1 -f flv -c:v libx264 -c:a libfdk_aac -vb 1500k -s 640x360 -ar 44100 -r 30 rtmp://192.168.0.41:1935/live/xxx)

output : rtmp (In VLC player, I can play Live streaming video.)

It works GOOD!!!

But!!

I tried HLS input and HLS output, it doesn't work....

(ex: ffmpeg -thread_queue_size 21 -i /dev/video0 -f lavfi -f alsa -i hw:1 -f hls -hls_time 4 -c:v libx264 -c:a libfdk_aac -vb 1500k -s 640x360 -ar 44100 -method POST -r 30 -hls_playlist_type event http://192.168.0.41:5080/live/aaa.flv/playlist.m3u8)

Input connection completed, and input data go to the SMS server.

When I play Live steaming video(http://192.168.0.41:5080/live/aaa.flv/playlist.m3u8) in VLC Player, SMS Server displays "File was null or did not exist".

Question.

  1. SMS project has function ? -> [hls input -> hls output]

  2. SMS project has function ? -> [RTMP input -> hls output]

Thanks!!!!!

pengliren commented 4 years ago

Does not support hls input