Tag: stream

  • Steaming to Anti Media Server using ffmpeg

    To team a video io Anti Media Server using ffmpeg command line, use

    ffmpeg -re -i VIDEO_FILE.mp4 -codec copy -f flv ANT_MEDIA_SERVER_RTMP_URL
    

    Example

    ffmpeg -re -i video.mp4 -codec copy -f flv rtmp://stream.serverok.in/LiveApp/225873992721868053400782
    

    Cammand with more steam option

    ffmpeg -re -i 'video.mp4'  -c:v libx264 -b:v 1600k -preset ultrafast -b 900k -c:a aac -b:a 128k -s 1920x1080 -x264opts keyint=50 -g 25 -pix_fmt yuv420p -f flv rtmp://stream.serverok.in/LiveApp/225873992721868053400782
    

    See Ant Media Server

  • Manually run icecast on CentovaCast server

    On CentovaCast server, icecast is run as user ccuser, to run icecast, you need to enable shell for this user. By defult, this user have shell access disabled.

    ccuser:x:1001:1001::/usr/local/centovacast:/bin/false
    

    running icecast manually maybe useful when you want to debug some issue with icecast.

    To enable bash shell for user, run

    chsh --shell /bin/bash ccuser
    

    Login as user ccuser

    su - ccuser
    

    Now start icecast with

    /usr/local/icecast/bin/icecast -c /usr/local/centovacast/var/vhosts/USER_HERE/etc/server.conf
    

    Beofore you manually start icecast from terminal, make sure you stop icecast by logging into user in Centova Cast control panel.

    centovacast icecast

    See Centova Cast