Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques im in need of grabbing live video with audio through ffmpeg in c#

  • im in need of grabbing live video with audio through ffmpeg in c#

    Posted by Sabari New on May 22, 2012 at 11:41 am

    Hi
    The current argument that i have been passing for ffmpeg for video is
    Arguments For Video Only:
    [ffmpegArgs = @”-threads 4 -f rawvideo -pix_fmt bgr24 -re -s ” + w + “x” + h +” -deinterlace -i – -s ” + w + “x” + h + ” -target ” + targetstd + “-dvd -vcodec mpeg2video -vf ” + ‘”‘ + “vflip” + ‘”‘ + ” -deinterlace -aspect ”
    + aspectratio + ” -y -“;]
    im passing this command to ffmpeg process and by raising thread im able to record video in mpeg2format without any error.
    Now currently i have been involved to capture audio too.
    Arguments For Video With Audio
    [ ffmpegArgs = @”-threads 4 -f rawvideo -pix_fmt bgr24 -re -s ” + w + “x” + h +
    ” -deinterlace -i – -ac 2 -ar 48000 -ab 192k -f mulaw -i – -s ” + w + “x” + h + ” -target ” + targetstd + “-dvd -vcodec mpeg2video -pix_fmt gray16be -vf ” + ‘”‘ + “vflip” + ‘”‘ + ” -deinterlace -aspect ”
    + aspectratio + ” -ar 48000 -ab 192k -ac 2 -strict experimental -acodec pcm_alaw -y -“;]
    i couldn get proper output for video with audio.the output i recieved is filled with full of noise and scramblled video.im using the latest ffmpeg version.how can i get proper output.

    Sabari New replied 14 years, 3 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy