I'm a tester and our team is testing a player. Recently, the application is only executed at the command line. To write automation scripts for it, I think I need to capture the video/audio data to check or compare the data with something others. But how can I capture the data? For video, maybe I can capture some pictures, but how to do that? For audio, maybe I can record its sound into a file, but how to do that? Is there any tools or does anybody have any better ways to implement the automation?

Thanks very much!