473,748 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error in the directory of ffmpeg using FFmpeg::Command

63 New Member
Hi, I'm trying to use the module FFmpeg::Command to convert some files from .mpg to .wmv

when I use ffmpeg in command line the command is just like this:
"ffmpeg -i input.mpg output.wmv"
When I try to do something similar in perl I get this error:
Expand|Select|Wrap|Line Numbers
  1. file not found: usr/local/share/perl/5.8.8/FFmpeg/Command.pm at /usr/local/share/perl/5.8.8/FFmpeg/Command.pm line 93
I don't know what I'm missing, Can somebody help me?

My code is like this:

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use FFmpeg::Command;
  5.  
  6. my $ffmpeg=FFmpeg::Command->new('usr/local/bin/ffmpeg');
  7.  
  8. my $input_file = ('/home/joao/Desktop/mpgteste.mpg');
  9. my $output_file= ('/home/joao/Desktop/outputs/mpgwmv.wmv');
  10.  
  11. $ffmpeg->input_file($input_file);
  12. $ffmpeg->output_file($output_file);
  13.  
  14. my $result = $ffmpeg->exec();
  15. print  $ffmpeg->errstr unless $result;
  16.  
thanks,

João
Oct 2 '07 #1
2 2485
eWish
971 Recognized Expert Contributor
I have never used this module. Therefore, I could be incorrect. After reading the docs the sample code has an input and output option. Your code does not. You might try that and see if it works.

Excerpt from FFmpeg::Command Docs
Expand|Select|Wrap|Line Numbers
  1.     $ffmpeg->input_options({
  2.         file => $input_file,
  3.     });
  4.  
  5.     $ffmpeg->output_options({
  6.         file  => $output_file,
  7.         device => 'ipod',
  8.     });
Also, double check that your path to the file is correct. Hope this helps.
Oct 3 '07 #2
jcor
63 New Member
I only realize now that the error I get is the output of my print statement in the last line!!
The code is correctly compiled, but don't return the output I wanted (the file .wmv in "outputs" directory).
These are good news because it's compiling correctly, but what am I missing to get the conversion?
I get the same error even if I include de "device=>'i pod' " in my "output_options "
I get this error allways!

There's anyone who can help me with this ffmpeg "thing" :-) ?

Thanks,

João
Oct 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2475
by: Raghul | last post by:
I am getting this error while copying n number of messages to the folder using imaplib.What to do to copy n number of folders in mail The error i got is imaplib.error: command COPY illegal in state AUTH I am executing the lines for i in alluids:
0
1409
by: Mukesh Kumar | last post by:
hi all, I have created some independent reports through crystal reports developer edition v 10 and developed a small tool in .net framework v 1.1 to view these reports through the crystal reports viewer provided by .net. This is a stand-alone windows application and nothing to do with the server. I am using local SQL anywhere database and connection is via an ODBC DSN. Before launching the reports I am passing the login information to...
1
2316
by: bjbounce2002 | last post by:
Hello, I am using forms with command buttons to close form or run action queries. The error messages such as "Null value in required field" or "duplicate value in primary key" are suppressed. The error messages appear when runnign the apend query manually or when closing the form using X, but not when using command buttons. Does anyone know how can the messages be displayed when using command
2
7369
by: mei xiao | last post by:
Hi, there, I have a small web service project written in C# and compiled using visual studio.net, but how can I compile it using command line? Thank you. -May
0
2408
by: howardr101 | last post by:
Hi, Have hunted around on the groups and can't find anything, hence. I've tried this against 2 mail servers (mailtraq and hmailserver) and it occus with both. The problems seems to be that when the SMTPClient attaches to the server and the server sends it greeting message, if anything other than +OK is received by the client it throws an exception and falls over.
5
2139
abdoelmasry
by: abdoelmasry | last post by:
Hey could any one tell me is there away to end any proccess using command line ?? i can get all running proccesses using command (tasklist) ThX
1
1631
by: 85ssp | last post by:
I am working on debugging a multithreaded network application. I have two forms. One of which is my testing form, the other is the actual user form. I need to be able to load only my testing form when testing and then load my other form. I was thinking i could do this using command line parameters but i'm not sure where to put my code. If anyone has any idea on how i could accomplish this it would very helpful. Sub Main() Dim...
3
1921
by: Israel | last post by:
I always wondered why the using command can only take one object. I always find that this isn't sufficient for drawing so I end up always disposing in my finally block but then I have to remember to put everything in there. Why can't the using command just allow something like this? using (Pen mypen = new Pen(Color.Black), Brush mybrush = new SolidBrush(Color.Blue)) { }
8
36480
by: seanh | last post by:
Hi all, Does anyone know how what move directory command I need to use: I am in current directory tmp and I have a folder inside tmp name work I would like to get all contents(files, subfolders) from work to tmp. Can someone PLEASE HELP ME with this. Thank you all in advance.
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9552
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8245
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.