Anthony Griffiths
2018-07-24 11:14:45 UTC
I use ffmpeg on a centos 6 machine to create a live stream that goes
to a centos 6 vps server running nginx. This is the command:
ffmpeg -y -f mpegts -i /dev/dvb/adapter0/dvr0 -f flv \
-codec:v libx264 -preset slow -s 320x180 -qscale:v 20 -maxrate 600k
-bufsize 1000k -vf scale=-1:240 -threads 0 \
-vsync cfr -framerate 25 -c:a aac -b:a 64k -af aformat=s16:44100
rtmp://nginx-server/mobile
nginx delivers the video as http://198.91.92.112:90/mobile/index.m3u8
the command works and the video plays on a mobile phone and in MS Edge
but it won't play in google chrome on a windows desktop.
The stream can be viewed here: http://198.91.92.112/edge.html.
Ironically it will play in chrome on an android device.
I'm fairly certain the 'f -flv' bit in the command is the culprit
however ffmpeg won't run without it. Can anyone help in correcting
this command so the stream will play in google chrome?
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject "unsubscrib
to a centos 6 vps server running nginx. This is the command:
ffmpeg -y -f mpegts -i /dev/dvb/adapter0/dvr0 -f flv \
-codec:v libx264 -preset slow -s 320x180 -qscale:v 20 -maxrate 600k
-bufsize 1000k -vf scale=-1:240 -threads 0 \
-vsync cfr -framerate 25 -c:a aac -b:a 64k -af aformat=s16:44100
rtmp://nginx-server/mobile
nginx delivers the video as http://198.91.92.112:90/mobile/index.m3u8
the command works and the video plays on a mobile phone and in MS Edge
but it won't play in google chrome on a windows desktop.
The stream can be viewed here: http://198.91.92.112/edge.html.
Ironically it will play in chrome on an android device.
I'm fairly certain the 'f -flv' bit in the command is the culprit
however ffmpeg won't run without it. Can anyone help in correcting
this command so the stream will play in google chrome?
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject "unsubscrib