was running: ffmpeg -i rtsp://localhost:8554/preview -acodec copy -vcodec. ffmpeg.exe -i 'rtsp://serversource:11442' -filter:v fpsfps30 -crf 40 -preset ultrafast -vcodec libx264 -f flv 'rtmp://servertarget:1935'. The gen2-rtsp-streaming demo runs with a lot of garbage in the result stream. I have a live video streaming url of rtsp. Use ffmpeg to stream a video file (looping forever) to the server: ffmpeg -re -streamloop -1 -i test.mp4 -f rtsp -rtsptransport tcp rtsp://localhost:8554/live.stream Once you have that running you can use ffplay to view the stream: ffplay -rtsptransport tcp rtsp://localhost:8554/live. I ended up with this command which holds pretty good quality at 30fps. By ffmepeg a rtsp stream can be sent on another video streaming server like wowza streaming server. Stream: ffmpeg -rtsp_transport tcp -report -i ip_address -preset veryfast c-rf 20 -fflags nobuffer -g 25 -sc_threshold 0 -c:v copy -hls_time 2 -hls_list_size 5 -hls_flags independent_segments+program_date_time+delete_segm ents -loglevel error stream.m3u8Īrchive: ffmpeg -rtsp_transport tcp -report -re -i ip_address -preset ultrafast -copyinkf -fflags nobuffer -max_muxing_queue_size 512 -sc_threshold 0 -vsync 0 -c:v copy -strftime 1 -strftime_mkdir 1 -hls_start_number_source datetime -hls_segment_filename %Y-%m-%d/archive-%s.ts -hls_time 60 -hls_flags independent_segments+program_date_time+omit_endlis t+split_by_time -hls_playlist_type event -loglevel error archive. As kesh pointed above removing -re made a big difference. The append_list flag does not work correctly, it sets the wrong program_date_time in the manifest.Īnyone have any ideas? If you have ideas for a different implementation, I will be glad to hear. The problem is that I need to delete records after a certain amount of time (for example, after one day or a week), while retaining the ability to turn the archive on and off. For the archive, I create a second stream separately from streaming but do not delete the hls fragments, then I play it for the user. The stream captures ffmpeg and creates an hls stream for streaming to the site.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |