And I noticed something.. When I try to play the HLS streams, the player I was trying seems to have problems while loading the first videos. After some time, it seems like it starts doing fine.
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-MAP:URI="init-room.mp4"
#EXTINF:9.820000,
room1.m4s
#EXTINF:9.903000,
room2.m4s
#EXTINF:10.010000,
room3.m4s
Here you can see how the player has some video buffered, but refuses to play it, and it keeps making requests to get the playlist
![image](https://user-images.githubusercontent.com/24518083/65655424-c824c780-dfe1-11e9-91af-bc63068f2b62.png)
I did try this in other players, one of them VHS (videojs-http-streaming) did not work at all, the one that comes with your project, and it seems to experience the same problem (but has a bit more luck recoverying) and VLC which is the only one that can play the stream without problems.
Do you think I may have some problems with the way I am running ffmpeg? I have not been able to figure out what the problem is.
{
"id": "room1",
"name": "room1",
"logLevel": "quiet",
"params": [
"-hwaccel",
"auto",
"-analyzeduration",
"10000000",
"-probesize",
"1048576",
"-re",
"-use_wallclock_as_timestamps",
"1",
"-f",
"mjpeg",
"-i",
"http://192.168.0.15/axis-cgi/mjpg/video.cgi?camera=1&resolution=352x240&1569462930455",
"-an",
"-c:v",
"libx264",
"-tune",
"zerolatency",
"-r",
"15",
"-vf",
"scale=trunc(iw*0.9/2)*2:-2",
"-min_frag_duration",
"10000000",
"-frag_duration",
"10000000",
"-crf",
"15",
"-preset",
"veryfast",
"-profile:v",
"baseline",
"-level:v",
"3.1",
"-pix_fmt",
"yuv420p",
"-f",
"mp4",
"-movflags",
"+dash+negative_cts_offsets",
"pipe:1",
"-c",
"mjpeg",
"-q",
"10",
"-r",
"7",
"-vf",
"scale=trunc(iw*0.75/2)*2:-2",
"-f",
"image2pipe",
"pipe:4"
],
"hlsBase": "room1",
"hlsListSize": 10
}