Hello frnds,
I want to encode video which is captured by webcam. I am trying to capture video via webcam and at same time I want to encode that streaming video in flv or any other format. So please help me out in converting video from avi to any format.
thnx in advance.
Loading

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Feb 23, 2011, 10:04 PM EST
It is better to encode as mp4.
Here is the ffmpeg code.
ffmpeg -i infuptfile.ext -vcodec libx264 -sameq -f mp4 outputfile.mp4
I am using this command for the same. Its working fine.
Suthish NairRank #92 · 22.8K reputationPosted Feb 27, 2011, 7:04 AM EST
Parixit Patel6 reputationPosted Mar 3, 2011, 7:35 PM EST
I want live encoding which convert in appropriate extension while capturing by webcam.
Parixit Patel6 reputationPosted Mar 3, 2011, 7:36 PM EST
FroglegRank #1,020 · 1.9K reputationPosted Mar 3, 2011, 9:56 PM EST
FFmpeg
http://www.ffmpeg.org/index.html
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Mar 5, 2011, 8:25 AM EST
For all i know, we cant convert the stream as it is from webcam.
1. Save the clip of 1 min in a directory RAWCLIPS
2. Convert the clip and put into another directory CONVERTEDCLIPS.
3. Continue the step 1 & 2 untill the you stop the recording.
4.Merge the clips from CONVERTEDCLIPS using MP4Box and save the final out.
It will work. We are doing like this only in our project. [ Use BackgroundWorker ]