5

I'm trying to (programatically) record the screen with DirectShow screen driver. I wrote some quick and (very) dirty code to try to get that to work (http://pastebin.com/ZJuhZRCz) based on ffmpeg examples but I have lots of trouble figuring out what time_base/framerate to use. If i leave the time_base/framerate parts empty I only get a single still frame. If i change them to any values, the video just turns black.

I'm guessing it has something to do with the output file settings, but I just ran out of ideas on what to try. Any pointers/help would be greatly appreciated.

Tim Čas
  • 10,501
  • 3
  • 26
  • 32
Drakkainen
  • 1,142
  • 11
  • 25
  • what dshow capture filter? does ffmpeg on command line work? – rogerdpack Feb 10 '15 at 17:32
  • @rogerdpack https://github.com/rdp/screen-capture-recorder-to-video-windows-free this capture filter (if i understand your question). Yes command line works fine. – Drakkainen Feb 11 '15 at 16:38
  • unfortunately don't know too much about libav https://trac.ffmpeg.org/wiki/Using%20libav* maybe ask on the libav-user mailing list? – rogerdpack Feb 12 '15 at 13:53
  • 2
    following github link :https://github.com/abdullahfarwees/screen-recorder-ffmpeg-cpp directs to the answer of screen capture and store frames in MP4 file using FFMPEG - C++ (ubuntu ). refer : http://stackoverflow.com/a/43464269/6180077 – Abdullah Farweez Apr 18 '17 at 07:04

0 Answers0