Results 1 to 40 of 49

Thread: VB.NET - MPEG-4 Screen recorder. May 23rd, 2015 update

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Peter Porter's Avatar
    Join Date
    Jul 2013
    Location
    Germany
    Posts
    581

    VB.NET - MPEG-4 Screen recorder. May 23rd, 2015 update

    Created with Visual Basic 2010, using FFmpeg to compile captured images & audio to an MPEG-4 video. It's not perect, but when I have the time, I 'll tweak it some more.

    Name:  Cap2Vid.png
Views: 10537
Size:  29.0 KB

    * Adjusts frames per second (fps) and capture interval according to screen resolution's total pixels. Screen resolutions with a pixel total equal to or less than 921600 (1280x720) are captured at 30fps. Larger pixel totals (1280x1024, 1920x1080, etc...) are captured at 25fps.

    * The "Crop to 16.9" checkbox is only visible if your screen resolution is not 16.9 aspect ratio.

    * If "Record Mouse" is checked, along with "Crop to 16.9", the capture region follows the mouse according to actual screen bounds height.

    * Creates a Folder called "Captured", which is placed in Window's system's "My Videos" folder.

    * Extracts FFmpeg from resources and places it in the captured folder. FFmpeg, with dshow, captures audio from the speakers and saves it as an mp3 file, while merging captured images to a temporary mp4. Clicking "Stop" restarts FFmpeg to merge both to a dated mp4 in the captured folder.

    * All captured videos are given unique Date & Time filenames.

    The code had to be reposted since I exceeded the character limit here. You can find it below this thread, posts labeled May 23rd, part 1 thru 4.

    Important:
    For this project to work, you need to download either the 32bit or 64bit FFmpeg static builds, which needs to be added to this project's resources. The direct links above to the ffmpeg static build downloads for Windows are from it's parent site, Zeranoe FFmpeg. They are older versions, but work fine compared to the latest version which is buggy.

    Your system's Stereo Mix has to be enabled in order for this app to record sound.

    Enabling Stereo Mix for Windows Vista, 7 and 8
    * Right-click over the Speaker icon by the system clock then choose Recording Devices to open the Recording tab of "Sound".
    * Right-click Stereo Mix, and from it's dropdown menu, click Enable.

    Note (Vista, 7 and 8):
    If you don't see Stereo Mix, right click within the Recording tab window, then check "Show Disabled Devices".

    Enabling Stereo Mix for Windows XP
    * Click the Speaker icon by the system clock.
    * In the window that appears, choose Options then Properties.
    * In the next window, click the "Recording" radio button, then in "Show the following volume controls", click in the box for Stereo Mix, then "OK".


    This project's zip is clean of binaries, but it only works on 64bit systems.
    You can easily change it to 32bit in VB's Configuration Manager.


    Don't forget to add FFmpeg static build (32bit or 64bit) to this project's resources.
    Attached Files Attached Files
    Last edited by Peter Porter; Aug 27th, 2015 at 08:20 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width