Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-18-2005, 07:45 AM   #1
Registered: Jan 2004
Location: Dhaka, Bangladesh
Distribution: Debian, Gentoo
Posts: 283

Rep: Reputation: 30
Question mencoder command in C


i wanna create a wmv2ogg using mplayer.

how i can give simple command using C progamming.

like "mplayer -vc dummy -vo null -ao pcm:file=stream.wav *.avi"

i know that it will easy if i can use shell script. i do not shell script (but will learn soon).

i am not sure that it is possible in C.
if it is possible plz give me some hint or link.

Old 10-18-2005, 10:18 AM   #2
Senior Member
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
#include <stdlib.h> and just do this:
system("mplayer -vc dummy -vo null -ao pcm:file=stream.wav *.avi");


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using mencoder masand Linux - Software 10 05-27-2007 01:12 PM
mencoder jackstoage Linux - Software 9 04-22-2005 10:02 PM
How to get MEncoder ? zahoo Linux - Software 1 04-08-2005 07:27 AM
MEncoder: Whats wrong with this command? flamesrock Linux - Software 1 07-15-2004 07:03 PM
mencoder KL2001 Linux - Software 10 12-23-2002 04:39 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration