LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2010, 09:55 AM   #1
mechman422
LQ Newbie
 
Registered: Sep 2010
Distribution: Gentoo
Posts: 12

Rep: Reputation: 0
Ubuntu 10.04 - cmd prompt changes to tee (>) when encoding vobs, what does this mean?


I have been trying to encode multiple vob files into avi / divx / mpeg and have been running into this oddity...

First off I am running Ubuntu 10.04 LTS

Originally I attempted to convert using mEncoder with the following:

Code:
mencoder cat ~/path/to/vobs/*.vob -ovc xvid -oac mp3lame -xvidencopts bitrate=687 -o 1pass.avi
Which returned this:
Code:
~$ mencoder cat ~/path/to/vobs/*.vob -ovc xvid -oac mp3lame -xvidencopts bitrate=687 -o 1pass.avi
>
I checked my sys monitor while it was at this prompt and there was no processor activity or memory building regarding the Terminal, or any other process for that matter. I decided to let it run overnight (~12hrs) and in the morning nothing had changed.

A ctrl+c breaks the prompt and I then attempted using:

Code:
ffmpeg -i cat ~/path/to/vobs/*.vob -vcodec mpeg2video -acodec mp2 -b 1000 1pass.avi
which returned:

Code:
~$ ffmpeg -i cat ~/path/to/vobs/*.vob -vcodec mpeg2video -acodec mp2 -b 1000 1pass.avi
>
Along with no processor activity and memory build, again I waited overnight with the same result.

Finally I attempted to use a python script called 'vob2divx4.pl' (http://www.doom9.org/divx_linux_guide.html), which gave me the same result.

I made sure each time to install all required packages/codecs outlined in the various guides I utilized.

First question: Does anyone know what linux wants when it prints a tee (>) after entering a command? (Yes, I have spent a couple days researching it, with no findings)

and

Does anyone have ideas as to why each different command yields the same result?

Much appreciated.
 
Old 09-05-2010, 10:45 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,822

Rep: Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610
Usually means mismatched quotes, though I don't see any. Try quoting your input files, just in case your vob names are being expanded by your shell and messing things up.

Code:
mencoder cat "~/path/to/vobs/*.vob" -ovc xvid -oac mp3lame -xvidencopts bitrate=687 -o 1pass.avi
 
Old 09-05-2010, 11:24 AM   #3
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,608

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Hi,

you might want to omit the 'cat' after mencoder. It appears to me that you are trying to merge several files into one. Not sure, though. I am not familiar with mencoder and I do not have 'small' multimedia files at hands to test. But you might want to try this
Code:
find . -type f -name '*.avi' -print0 | xargs -0 -I {} mencoder {} -ovc xvid -oac mp3lame -xvidencopts bitrate=687 -o 1pass.avi
 
Old 09-05-2010, 01:32 PM   #4
mechman422
LQ Newbie
 
Registered: Sep 2010
Distribution: Gentoo
Posts: 12

Original Poster
Rep: Reputation: 0
Update

@AlucardZero - Thank you for your suggestion, such a simple thing I overlooked, changing this did cause the command to recognize the input however the 'cat' command seems to be the issue, I tried listing out the VOBs in order and the encoder is currently running (hopefully it will create the desired one AVI output, will update when completed)

@crts - Thank you for your response, I tried a simple copy and paste of the code you gave me and nothing happened, I then edited it slightly (changed *.avi to *.vob because that is the file type I am utilizing) and still nothing, now correct me if I am wrong but, is your code simply searching for all matching files in the folder
Code:
find . -type f -name '*.vob'
and then passing those results to mencoder?
Code:
-print0 | xargs -0 -I {} mencoder {} -ovc xvid -oac mp3lame -xvidencopts bitrate=687 -o 1pass.avi
I'll do some research on this and see what I can find. Also, you mentioned you were not familiar with mencoder, is there an encoder you prefer to use and have had great reliability with?
 
Old 09-05-2010, 06:22 PM   #5
mechman422
LQ Newbie
 
Registered: Sep 2010
Distribution: Gentoo
Posts: 12

Original Poster
Rep: Reputation: 0
It is now working, turns out all I needed to do was manually list all the VOBs to be included. Wildcards must not be liked any more...

Edit: After further review I realized that the space in between the folder's name was causing the command to hang. Changing the folder to an underscore fixed the wild card issue.

Last edited by mechman422; 09-06-2010 at 11:46 AM. Reason: realized solution
 
  


Reply


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
passing parameters from a unix shell prompt into a windows cmd.exe prompt nano2 Programming 1 09-01-2009 11:26 AM
Listing Created Users Via CMD Prompt Verbal Kint Linux - General 1 09-14-2006 06:54 PM
stuck in unix cmd prompt ddajango Linux - Newbie 3 10-11-2005 02:24 AM
Build 'n Debug a C/C++ KDevlop cmd prompt project SCOSWriter Linux - Software 2 12-10-2004 10:07 AM
free quote @ cmd prompt rickenbacherus Linux - General 7 03-06-2003 11:01 PM


All times are GMT -5. The time now is 01:24 PM.

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