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

Hey drop us a line about the show. Feel free to ask questions, provide feedback and criticism, or just ramble on about anything your little heart desires.

Moderators: snarkout, Patrick, dann

Post Reply
User avatar
greggh
Posts: 1036
Joined: Fri Jun 02, 2006 7:17 pm
Location: Brooklyn, NY USA

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

Post by greggh » Mon Jun 09, 2008 10:28 pm

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

User avatar
adam
Posts: 73
Joined: Sat Jun 03, 2006 4:43 pm
Location: Dora, Alabama

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

Post by adam » Tue Jun 10, 2008 3:51 am

tried mencoder?

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

User avatar
greggh
Posts: 1036
Joined: Fri Jun 02, 2006 7:17 pm
Location: Brooklyn, NY USA

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

Post by greggh » Tue Jun 10, 2008 3:13 pm

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.

elgordo123
Posts: 47
Joined: Wed Nov 02, 2005 5:46 pm

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

Post by elgordo123 » Thu Jun 12, 2008 2:02 pm

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..

User avatar
greggh
Posts: 1036
Joined: Fri Jun 02, 2006 7:17 pm
Location: Brooklyn, NY USA

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

Post by greggh » Thu Jun 12, 2008 3:30 pm

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.

User avatar
Jza
Posts: 466
Joined: Sun Oct 30, 2005 7:01 pm
Location: Mexico
Contact:

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

Post by Jza » Thu Jun 12, 2008 10:31 pm

Cinelerra man, just do cinelerra, is easy and straighforward. I do so many videos like that and they look awesome.

http://jza.blip.tv
Alexandro COLORADO

User avatar
greggh
Posts: 1036
Joined: Fri Jun 02, 2006 7:17 pm
Location: Brooklyn, NY USA

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

Post by greggh » Thu Jun 12, 2008 11:02 pm

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. :?

User avatar
allix
Posts: 1079
Joined: Tue Dec 19, 2006 5:07 pm
Location: London, England
Contact:

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

Post by allix » Fri Jun 13, 2008 10:30 am

Арте́льный горшо́к гу́ще кипи́т
Working as a team produces better results
Russian Proverb

Post Reply