[vlc-devel] Play HTTP Live Streaming with VLC Player.
ajanni at videolabs.io
Wed Feb 3 14:48:49 UTC 2021
You'll need to attach verbose log (-vv) to provide the
full information about why it is stuck.
On Wed, Feb 03, 2021 at 10:40:59PM +0800, Hongyi Zhao wrote:
> On Ubuntu 20.04,I build the docker image based my project located at
> <https://github.com/hongyi-zhao/docker-nginx-rtmp>. I then tried
> streaming the camera using HLS, as described below.
> Publish the stream:
> $ docker run -it -p 1935:1935 -p 8000:80 --rm nginx-rtmp
> $ ffmpeg -f pulse -i default -f v4l2 -r 30 -s 1920x1080 -i /dev/video0
> -c:v libx264 -preset veryfast -b:v 3000k -maxrate 3000k -bufsize 3000k
> -vf "scale=1280:-1,format=yuv420p" -g 60 -c:a aac -b:a 128k -ar 44100
> -force_key_frames "expr:gte(t,n_forced*4)" -f flv
> As for watching the stream, I tried ffplay and vlc, and the former can
> successfully play the stream, but the latter failed. The used commands
> are shown below:
> $ ffplay http://localhost:8000/live/surveillance.m3u8
> $ cvlc http://localhost:8000/live/surveillance.m3u8
> VLC media player 220.127.116.11 Vetinari (revision 18.104.22.168-0-gd4c1aefe4d)
> [000056468a0b0e80] dummy interface: using the dummy interface module...
> The vlc stuck there for ever.
> Any hints for solving the problem?
> Assoc. Prof. Hongyi Zhao <hongyi.zhao at gmail.com>
> Theory and Simulation of Materials
> Hebei Polytechnic University of Science and Technology engineering
> NO. 552 North Gangtie Road, Xingtai, China
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
More information about the vlc-devel