CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
print sub info with cli mediainfo...


New User

Sep 1, 2018, 8:42 PM

Post #1 of 2 (1063 views)
print sub info with cli mediainfo... Can't Post

I am writing perl script with a call to mediainfo cli version to print info only about about subtitles with:

system("MediaInfo --Inform=\"Text\;%ID%,%Format%,%Language%\n\" c:\\mvtmp\\$MOVIe");

but it only gives:

Usage: "mediainfo [-Options...] FileName1 [Filename2...]" "mediainfo --Help" for displaying more information

I have tried different things to make it work but nogo. I am running Windows 10 Pro with strawberry perl and CMDER. pls help if you know what must be done to get this to work thanks a bunch :)


Sep 3, 2018, 8:38 AM

Post #2 of 2 (1044 views)
Re: [armight29] print sub info with cli mediainfo... [In reply to] Can't Post

The first thing that you should do is verify that you can run your command from the command line. The string that you pass to system should contain exactly the same characters that you type on the command line.

I suspect that the newline at the end of your options is a problem. How do you enter that on the command line? It appears that Windows parses it as the end of the command. Without it, there is no need for the double quotes around the options.
Good Luck,


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives