Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


installing FFmpeg and other codec for streaming server
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

installing FFmpeg and other codec for streaming server

bdspicebdspice Member
edited January 2018 in Help

Hi, i tried to follow https://hivelocity.net/kb/how-to-install-ffmpeg-mplayer-mencoder-mp4box-flvtool2-and-all-their-libraries/ to make a streaming script like AVS working on vps. but when i tried >./configure –enable-gpl –enable-version3 –enable-nonfree –enable-shared –enable-libmp3lame –enable-libx264 –enable-libfaac –enable-libvorbis –enable-libopencore-amrnb>
its showing error " unknown option "-enable-gpl" see ./configure --help for available options. i searched google but nothing found. any body here to help me?

«1

Comments

  • The flags all begin with two hyphens not a dash, like

    --enable-gpl
    
  • happybeehappybee Member, Host Rep

    You have to use the following instead :-

    ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-libmp3lame --enable-libx264 --enable-libfaac --enable-libvorbis --enable-libopencore-amrnb

  • yasm not found, use --disable-yasm for crippled build.
    This error is showing. Still not working. yasm is installed through the tutorial.
    @happybee @willie

  • williewillie Member
    edited January 2018

    @bdspice

    apt-get install yasm pkg-config
    
  • Edward_SEdward_S Member
    edited January 2018

    AVS new version no longer need other coders. It only need ffmpeg 3.x up

    Thanked by 1bdspice
  • lonealonea Member, Host Rep

    Use the ready-made binaries instead.

    https://johnvansickle.com/ffmpeg/

  • happybeehappybee Member, Host Rep

    You can also try to compile yasm from source. Yasm is an assembler and disassembler for the Intel x86 architecture. It can be used to write 16-bit, 32-bit (IA-32) and 64-bit (x86-64) programs.

    cd /usr/local/src wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz tar zfvx yasm-1.2.0.tar.gz cd yasm-1.2.0 ./configure && make && make install

  • @happybee said:
    You can also try to compile yasm from source. Yasm is an assembler and disassembler for the Intel x86 architecture. It can be used to write 16-bit, 32-bit (IA-32) and 64-bit (x86-64) programs.

    cd /usr/local/src wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz tar zfvx yasm-1.2.0.tar.gz cd yasm-1.2.0 ./configure && make && make install

    yasm installed but nasm needed. btw https://johnvansickle.com/ffmpeg/ working good. so i just reinstall os and trying with this

  • WSSWSS Member

    @bdspice said:
    yasm installed but nasm needed. btw https://johnvansickle.com/ffmpeg/ working good. so i just reinstall os and trying with this

    @hammer Your job has been done.

    Thanked by 1vimalware
  • @WSS
    What did I do to you?

  • WSSWSS Member

    @hammer said:
    @WSS
    What did I do to you?

    Nothing; @bdspice used you to handle his pooched ffmpeg.

  • @wss @hammer sorry buddies. its not done. while i use the ffmpeg static build from https://johnvansickle.com/ffmpeg/ its showing installed but after installation, i tried "ffmpeg -version" its showing command not found.so i tried "locate ffmpeg" its showing no ffmpeg installed. @lonea did you install ffmpeg use this link ever?

  • WSSWSS Member

    It's in whatever directory you unarchived it in.

    Thanked by 1bdspice
  • lonealonea Member, Host Rep

    Since it doesn't install onto your system. You just call the static ffmpeg with an absolute path.

    @bdspice said:
    @wss @hammer sorry buddies. its not done. while i use the ffmpeg static build from https://johnvansickle.com/ffmpeg/ its showing installed but after installation, i tried "ffmpeg -version" its showing command not found.so i tried "locate ffmpeg" its showing no ffmpeg installed. @lonea did you install ffmpeg use this link ever?

    Thanked by 2WSS bdspice
  • Perhaps I am a lazy dude but I would try to first install it from a package manager like apt-get, pacman, etc.

    I suspect many have ffmpeg.

  • @WSS said:
    It's in whatever directory you unarchived it in.

    yes. its in /usr/local/src/
    where should i mv it now? and i dont want to call the static ffmpeg with an absolute path.
    because i dont know much about these things.

  • @bdspice
    Couldn't you make a symlink from the binary to the usr bin directory?

  • @hammer said:
    @bdspice
    Couldn't you make a symlink from the binary to the usr bin directory?

    no. i dont know much about linux. you can give me codes. then i will try. my installed ffmpeg is in /usr/local/src

  • If you built from source, run "make install" and it should put it in /usr/local/bin unless you configured to put it somewhere else.

  • WSSWSS Member
    edited January 2018

    @willie said:
    If you built from source, run "make install" and it should put it in /usr/local/bin unless you configured to put it somewhere else.

    I think he untarred the prebuilt archive into /usr/local/src

    @bdspice put ffmpeg into /usr/local/bin, 755, owned by root.root, root.wheel, whatever's common in your distribution, and model into /usr/local/share/model if you want to use the vmaf filters. It's optional, but smart to keep the manpages somewhere for your use, since they're not actual manpages, but pdfs/text files.

    E: This guy statically linked glibc so that ffmpeg can't do DNS resolution. It's going to be of limited usability.

  • bdspicebdspice Member
    edited January 2018

    @WSS said:

    @willie said:
    If you built from source, run "make install" and it should put it in /usr/local/bin unless you configured to put it somewhere else.

    I think he untarred the prebuilt archive into /usr/local/src

    @bdspice put ffmpeg into /usr/local/bin, 755, owned by root.root, root.wheel, whatever's common in your distribution, and model into /usr/local/share/model if you want to use the vmaf filters. It's optional, but smart to keep the manpages somewhere for your use, since they're not actual manpages, but pdfs/text files.

    thanks. after tried all nothing worked. lastly moving ffmpeg into /usr/bin worked.
    Still its useless. cause tried a simple php ffmped code from here showing Permission denied on test.php page.

  • That sounds like the php interpreter or script is itself not marked executable. You might be better off getting some help in person from a web dev. Using a forum to walk through this configuration stuff is much slower because of the longer turnaround between posts and because we can't see everything that's happening. You could also try the freenode #php and #ffmpeg channels. What OS distro are you using? I don't think that's come up here yet.

    Thanked by 1bdspice
  • WSSWSS Member

    To be as polite as possible- you're so far above your head that you have virtually no hope of making this work until you understand basic filesystem hierarchy, paths, the executable flag, and how to call a binary on the command line.

    Anything you do with this is likely to be a huge security concern. You should ask for further assistance with accomplishing your goal. This might be a great task for Fiverr.

  • @willie @wss my os is centos 7. wss thanks, now i now basic filesystem hierarchy,paths.
    As i work as a web developer for last 11years,i never use ffmpeg to convert media,thats why i am totally new for this.but i understand php enough to work. and i care about security concern also.

  • WSS said: E: This guy statically linked glibc so that ffmpeg can't do DNS resolution. It's going to be of limited usability.

    Statically linking glibc does not necessarily disable DNS (and other names) resolution, and in this case, this guy apparently understands what he is doing and his static ffmpeg do perform DNS resolution.

    Thanked by 1bdspice
  • RackerJackRackerJack Member
    edited February 2018

    use docker? https://hub.docker.com/r/jrottenberg/ffmpeg/ just trail your ffmpeg command off the end of the docker run cmd

  • @RackerJack said:
    use docker?

    This guy is having problems getting nginx+php7 installed. Are you trying to completely break his will?

    Thanked by 1bdspice
  • RackerJackRackerJack Member
    edited February 2018

    curl https://get.docker.com | sh systemctl enable docker systemctl start docker docker run -d --name ffmpeg1 -v /pathto/playlist.txt:/playlist.txt -v /streams:/srv jrottenberg/ffmpeg -loglevel error -hide_banner -re -f concat -safe 0 -fflags +genpts -async 1 -stream_loop -1 -i /playlist.txt -y -framerate 24 -c:a libfdk_aac -b:a 128k -c:v copy -pix_fmt yuv420p -level 3.2 -maxrate 2M -bufsize 6M -crf 18 -r 24 -g 72 -f hls -segment_list_flags +live -hls_flags +discont_start -hls_time 10 -hls_wrap 20 -s 1280x720 /srv/stream.m3u8

    or something like that

    Thanked by 1bdspice
  • notgodnotgod Member
    edited February 2018

    sorry
    i has update auto install scripts

    Only Working CentOS 7.* 64bit, other system not Support

    Installer

    yum install git wget -y 
    cd /opt
    git clone https://github.com/hostsoft/ffmpegtookit.git ffmpegtookit
    cd ffmpegtookit
    sh latest.sh
    

    Install Done And The Check Path , Included ImageMagick, this list all is installed

    which {ffmpeg,ffprobe,qt-faststart,mplayer,mencoder,flvtool2,MP4Box,yamdi,mediainfo,neroAacEnc,x264,x265}
    /usr/local/bin/ffmpeg
    /usr/local/bin/ffprobe
    /usr/local/bin/qt-faststart
    /usr/local/bin/mplayer
    /usr/local/bin/mencoder
    /usr/local/bin/flvtool2
    /usr/local/bin/MP4Box
    /usr/local/bin/yamdi
    /usr/local/bin/mediainfo
    /usr/local/bin/neroAacEnc
    /usr/local/bin/x264
    /usr/local/bin/x265
    [root@dev ~]# echo "ImageMagick Command Path"
    ImageMagick Command Path

    [root@dev ~]# which {identify,convert}
    /usr/bin/identify
    /usr/bin/convert

    Thanked by 1bdspice
Sign In or Register to comment.