Page 1 of 1

How do I cut 10 seconds off of a motion jpeg file?

Posted: Mon Jun 09, 2008 10:28 pm
by greggh
I've never done any video editing before. I want to upload a video to youtube I just shot with my new pocket camcorder, but it's 7 seconds over Youtube's 10 minute limit. I just need to cut the last 10 seconds of. I'm using Ubuntu 8.04. I installed Kino, can't get it to open the file. I installed KDenlive, but I can't figure it out. I installed MJPEG Tools but I can't figure out how to even start the program and I don't see it in any menu. Yeah, I know I'm a pathetic noob. I could use some help. :?

Properties for the file are...

Video

Dimensions: 640 x 480
Codec: Motion JPEG
Framerate: 30 frames per second
Bitrate: N/A

Audio

Codec: Mu-law audio
Channels: Mono
Sample Rate: 12500 Hz
Bitrate: N/A

Re: How do I cut 10 seconds off of a motion jpeg file?

Posted: Tue Jun 10, 2008 3:51 am
by adam
tried mencoder?

$ mencoder -o OUTPUT.avi -endpos 9:59 -oac copy -ovc copy INPUT.avi

Re: How do I cut 10 seconds off of a motion jpeg file?

Posted: Tue Jun 10, 2008 3:13 pm
by greggh
adam wrote:tried mencoder?

$ mencoder -o OUTPUT.avi -endpos 9:59 -oac copy -ovc copy INPUT.avi
Adam, thanks a bunch. That did the trick, 1,2,3. I really have to start learning how to do stuff from the command line. That was so quick, and in cases like this, so much easier.

For anyone interested, here's that vid of some local news I caught last night as soon as I walked out the door.

http://youtube.com/watch?v=PjUkqKEvjNA

We're having a heat wave in NYC. It was 90 and humid last night. It's 95 going up to 100 today. Last night some wires and transformers burned under the street. The power went out for a few blocks of apartment buildings. Luckily my building kept power. I videoed the scene in front of my building.

Re: How do I cut 10 seconds off of a motion jpeg file?

Posted: Thu Jun 12, 2008 2:02 pm
by elgordo123
I have never been able to do Jack with kdenlive without it crashing. I almost always use avidemux. It's gui based, easy to use. My secondary is mencoder..

Re: How do I cut 10 seconds off of a motion jpeg file?

Posted: Thu Jun 12, 2008 3:30 pm
by greggh
I tried avidemux also. I get this error.
No audio decoder found for this file

Save (A+V) will generate bad AVI. Save audio will work.
I clicked ok and it opened the video in the editor, but when I did the edit and saved it I got a corrupted file that loses the sound about half way through. But mencoder worked perfectly.

Re: How do I cut 10 seconds off of a motion jpeg file?

Posted: Thu Jun 12, 2008 10:31 pm
by Jza
Cinelerra man, just do cinelerra, is easy and straighforward. I do so many videos like that and they look awesome.

http://jza.blip.tv

Re: How do I cut 10 seconds off of a motion jpeg file?

Posted: Thu Jun 12, 2008 11:02 pm
by greggh
Jza wrote:Cinelerra man, just do cinelerra, is easy and straighforward. I do so many videos like that and they look awesome.

http://jza.blip.tv
Cinelerra was actually the first program I thought of. First thing I tried was...

Open Synaptic
Search for "Cinelerra"
Results in Ubuntu 7.10 = zero, zip, nada, nothing

I thought I must have misspelled it, but no. :?

Re: How do I cut 10 seconds off of a motion jpeg file?

Posted: Fri Jun 13, 2008 10:30 am
by allix