LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-19-2006, 02:39 PM   #1
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Rep: Reputation: 30
what software allows me to edit exisiting *.avi files?


Hi, I got a brunch of tv shows I wanna burn on my cd, but their size is 351mb, 352mb respectively (I want to burn 2 shows per cd)...

I wanna trim a mb out of my file (maybe take off the opening preview, or the ending message screen).

Any suggesting on softwares allowed me to do that?

Thank you
 
Old 02-19-2006, 03:45 PM   #2
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
You may find this info helpful in your endeavors to rung video editing in your box:
http://www.robfisher.net/video/
 
Old 02-19-2006, 04:45 PM   #3
Simon_6162
Member
 
Registered: Jul 2004
Location: UK
Distribution: Fedora, Gentoo, Redhat Enterprise
Posts: 141

Rep: Reputation: 16
Mencoder is good for choping the start and end off video files.
the command looks like

//will take off the first 30 sec
mencoder /path/file.avi -vo copy -ao copy -ss 00:00:30 -o ath/file_chop.avi

//will only copy the first 25 min
mencoder /path/file.avi -vo copy -ao copy -endpos 00:25:00 -o ath/file_chop.avi
 
Old 02-20-2006, 05:50 PM   #4
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Original Poster
Rep: Reputation: 30
thanks for the reply guys.

Simon_6162, I use mplayer to watch avi files, and I notice my mplayer has Mencoder. Is the Mencoder that uses in mplayer is the same thing?

does it mean I can use the same shell command to get things done without download/install additional software?

Thank you
 
Old 02-21-2006, 04:43 AM   #5
Simon_6162
Member
 
Registered: Jul 2004
Location: UK
Distribution: Fedora, Gentoo, Redhat Enterprise
Posts: 141

Rep: Reputation: 16
Quote:
does it mean I can use the same shell command to get things done without download/install additional software?
Yes.

Also there are allot of gui's available for mencoder. If you want to do more complex things. There is A list of them on the mplayer homepage.

Simon.
 
Old 02-22-2006, 11:51 PM   #6
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Original Poster
Rep: Reputation: 30
Simon_6162,

thank you very much for your input, I've been to mplayer's site a few times in the past couple days, seems their Document link are broken?

I'm can't figure out how to delete the last 30 sec of the tv show, would you please show me how?

here's the example of my directory as well as my files:

[tux@localhost 24 Season 3]$ pwd
/home/tux/download/tv/24 Season 3

[tux@localhost 24 Season 3]$ ls
24.S03E01.01pm-02pm.XviD.avi


I'd like to trim out the last 30 sec (or a min) of this file...

again, thank you very much
 
Old 02-23-2006, 01:04 AM   #7
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Kino only works with DV files. Cinelerra is buggying and works with motion JPEG codecs. Try avidemux. It works with almost all video and audio codecs. I have not tested how well avidemux is with video and audio sync, but mencoder has poor audio and video sync.
 
Old 02-23-2006, 02:59 PM   #8
Simon_6162
Member
 
Registered: Jul 2004
Location: UK
Distribution: Fedora, Gentoo, Redhat Enterprise
Posts: 141

Rep: Reputation: 16
If you are just chopping files (audio stream copy + video stream copy) mencoder wont touch the sync, but It does screw up allot on reencode!

To chop the end of a file you have to copy the whole file upto the point you want to chop.

So if you have a 30 min file and only want the first 25 (chop last 5 use the line below).

mencoder /home/tux/download/tv/24\ Season\ 3/24.S03E01.01pm-02pm.XviD.avi -vo copy -ao copy -endpos 00:25:00 -o /home/tux/download/tv/24\ Season\ 3/24.S03E01.01pm-02pm.XviD_cut.avi

the cut file being named 24.S03E01.01pm-02pm.XviD_cut.avi and then check all is ok and remove the origional one.

-endpos 00:25:00 this is the amount of time you want it to copy. it's in the format hours:minutes:seconds

You can use "man mencoder" to see the docs on your own PC. and remember to backslah spaces in your file path or use quotes.

Simon
 
Old 02-25-2006, 04:08 PM   #9
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Original Poster
Rep: Reputation: 30
Hi Simon,

I used the following comment:

Code:
mencoder 24\ Season\ 2\ Episode\ 01\ -\ 8am-9am.avi-vo copy -ao copy -endpos 00:49:04 -o test/s2ep1.avi

and I get the following respond:
Quote:
MEncoder 1.0pre7try2-3.4.3 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

File not found: 'frameno.avi'
Failed to open frameno.avi
vo is not an MEncoder option

Exiting... (error parsing cmdline)
does it mean my mencoder doesn't support avi output?
 
Old 02-25-2006, 05:01 PM   #10
Simon_6162
Member
 
Registered: Jul 2004
Location: UK
Distribution: Fedora, Gentoo, Redhat Enterprise
Posts: 141

Rep: Reputation: 16
Sorry it should be -ovc and -oac

Code:
mencoder 24\ Season\ 2\ Episode\ 01\ -\ 8am-9am.avi -ovc copy -oac copy -endpos 00:49:04 -o test/s2ep1.avi
 
Old 02-25-2006, 08:12 PM   #11
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Use double quotes instead of backslashes because double quotes are a lot easier.

Quote:
does it mean my mencoder doesn't support avi output?
It means you did not read the manual. When someone gives you a command, you should check what the options will do before running the command.

removed inappropriate command

Last edited by rshaw; 03-03-2006 at 02:42 PM.
 
Old 02-25-2006, 09:51 PM   #12
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
try avidemux2.
 
Old 02-26-2006, 09:16 AM   #13
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Original Poster
Rep: Reputation: 30
Simon,

The mencoder trick works like champs. I was able to archive all my tv shows. Thank you.



Electro,
rm -Rf / doesn't do anything, it complains Permission denied what should I do?

(aahh...just in case if you don't believe I actually did it, here's the screen print)

Code:
[tux@localhost tv]$ rm -rf /
rm: cannot remove `//bin': Permission denied
rm: cannot remove `//dev': Permission denied
rm: cannot remove `//etc': Permission denied
rm: cannot remove `//lib': Permission denied
rm: cannot remove `//mnt': Permission denied
rm: cannot remove `//opt': Permission denied
rm: cannot remove `//srv': Permission denied
rm: cannot remove `//tmp': Permission denied
rm: cannot remove `//sys': Permission denied
rm: cannot remove `//var': Permission denied
rm: cannot remove `//usr': Permission denied
rm: cannot remove `//boot': Permission denied
rm: cannot remove `//home': Permission denied
rm: cannot remove `//proc': Permission denied
rm: cannot remove `//sbin': Permission denied
rm: cannot remove `//root': Permission denied
rm: cannot remove `//media': Permission denied
rm: cannot remove `//initrd': Permission denied
rm: cannot remove `//.autofsck': Permission denied
some posts are just not as constructive then others....
 
Old 02-26-2006, 04:07 PM   #14
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
sirpelidor, you ran it! The command that I gave you was a test which actually deletes all your files and directories that you have write access to. You should have first looked through the manual about what it does.

You got an A+ on well did as an lemming.

A definition of a lemming taken from wikipedia is someone mindlessly follow the crowd, even if destruction is the result.
 
Old 02-28-2006, 01:06 AM   #15
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Original Poster
Rep: Reputation: 30
Of course i ran it. I knew for fact that I hardly login as root. Why would I afraid of such retarded trick?

Reading a manual of rm command is one thing, reading and 3k + lines of mencoder manual and understand it is another thing.

Just like trying to settle a divoce case at court. Anyone can do it, all they need to do is "read" the law book at their local law library. Why would anyone needs a lawyer for it?

Everyone here is good at something. Someone is good at using mencoder, while others maybe good at compile a kernel. At the same time, someone else could be good at manage their stupid exchange server for all I care.

While recongizing each other strength and share it through a media such as LQ forum is the best way keep this community growing. No some arrogance a$$ trying run around and tell people to "read" instead of posting anything productive.

arrogance, defined at Dictionary.com as "overbearing pride evidenced by a superior manner toward inferiors" But I figured you probably rather go "read" it from your Oxford dictionary (if you have one).
 
  


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
OpenSource software to edit PDF files satimis Linux - Software 14 02-19-2006 05:19 PM
change uploaded files from filename.avi to filename.avi.html like www.rapidshare.de latheesan Linux - Newbie 3 06-16-2005 04:33 AM
.avi editing software? pdmackenzie Linux - Software 1 10-11-2004 02:48 AM
Adding RAID array LSI 150-6 to exisiting Debian install Brian Puccio Linux - Hardware 2 05-23-2004 02:52 PM
AVI support software? HadesThunder Linux - Software 3 05-08-2004 07:23 PM


All times are GMT -5. The time now is 04:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration