FFMPEG - A solution to record, convert and stream audio and video

Author Topic: FFMPEG - A solution to record, convert and stream audio and video  (Read 2750 times)

Offline safiqul

  • Faculty
  • Full Member
  • *
  • Posts: 170
  • There are no experts, you are the expert !
    • View Profile
FFmpeg is a command-line program that can record, convert and stream digital audio and video in numerous formats. It is composed of a collection of free software / open source libraries. The name of the project comes from the MPEG video standards group, together with "FF" for "fast forward".

If you want to convert or stream your audio/video, try the following link:

http://ffmpeg.org/download.html

You can also use winFF  (a GUI for the command line video converter, FFMPEG). It will convert most any video file that FFmpeg will convert. WinFF does multiple files in multiple formats at one time.

http://winff.org/html_new/downloads.html
Md. Safiqul Islam
Senior Lecturer
Department of CSE
Daffodil International University,Dhaka

Offline M Z Karim

  • Faculty
  • Full Member
  • *
  • Posts: 183
  • Assistant Professor,Dept. of CSE, FSIT
    • View Profile
    • M Z Karim
Re: FFMPEG - A solution to record, convert and stream audio and video
« Reply #1 on: October 31, 2011, 07:46:26 PM »
Thanks Safiq sir,
I am looking for a software that can separate audio from its video streams without any quality loss. Could you help me ?
M Z Karim
Assistant Professor
Department of CSE
Daffodil International University,Dhaka

Offline safiqul

  • Faculty
  • Full Member
  • *
  • Posts: 170
  • There are no experts, you are the expert !
    • View Profile
Re: FFMPEG - A solution to record, convert and stream audio and video
« Reply #2 on: October 31, 2011, 07:52:48 PM »
Zahid Sir,

You can easily extract Audio from a Video file using the following command line :

Note that: This will work for any type of video file.

    ffmpeg -i (your video file i.e. video.flv) -ab 160k -ac 2 -ar 44100 -vn audio.mp3

-i indicates the input
-ab indicates the bit rate (in this example 160kb/sec)
-vn means no video ouput
-ac 2 means 2 channels
-ar 44100 indicates the sampling frequency.
Md. Safiqul Islam
Senior Lecturer
Department of CSE
Daffodil International University,Dhaka

Offline M Z Karim

  • Faculty
  • Full Member
  • *
  • Posts: 183
  • Assistant Professor,Dept. of CSE, FSIT
    • View Profile
    • M Z Karim
Re: FFMPEG - A solution to record, convert and stream audio and video
« Reply #3 on: October 31, 2011, 07:54:44 PM »
Safiq,
Thank you very much.
M Z Karim
Assistant Professor
Department of CSE
Daffodil International University,Dhaka

Offline safiqul

  • Faculty
  • Full Member
  • *
  • Posts: 170
  • There are no experts, you are the expert !
    • View Profile
Re: FFMPEG - A solution to record, convert and stream audio and video
« Reply #4 on: October 31, 2011, 08:00:56 PM »
If you are using Ubuntu, then you need to install FFMPEG and necessary codecs to start playing with it.

Write the following to install FFMPEG and codecs (Make sure that you have internet connection):

sudo apt-get install ffmpeg
sudo apt-get install ubuntu-restricted-extras libmp3lame0 libdvdcss2 w32codecs

Now, we are ready to extract the audio. Try the following to start extracting your first audio--

ffmpeg -i input_file.avi output_file.mp3

I look forward to hearing more from you.
Md. Safiqul Islam
Senior Lecturer
Department of CSE
Daffodil International University,Dhaka

Offline M Z Karim

  • Faculty
  • Full Member
  • *
  • Posts: 183
  • Assistant Professor,Dept. of CSE, FSIT
    • View Profile
    • M Z Karim
Re: FFMPEG - A solution to record, convert and stream audio and video
« Reply #5 on: October 31, 2011, 08:05:19 PM »
Safiq,
WoW, Thank you again. I will try with Ubuntu.   
M Z Karim
Assistant Professor
Department of CSE
Daffodil International University,Dhaka