Avidemux Forum

Avidemux => Stable branch (2.5) discussion => Topic started by: chzuck on June 13, 2013, 03:27:00 AM

Title: Just want to shorten a MOV file.
Post by: chzuck on June 13, 2013, 03:27:00 AM
How do I shorten an MOV file, but not change it to any other type of file?
Title: Re: Just want to shorten a MOV file.
Post by: Jan Gruuthuse on June 13, 2013, 06:37:55 AM
If you're lucky:
open mov with avidemux
edit/trim video
while keeping video/audio setting on copy and used output format mp4 or mp4v2 (test with 1 minute sample which one works best)
Take the mp4 saved video and with ffmpeg try this:
ffmpeg -i input_file.mp4 -acodec copy -vcodec copy -f mov output_file.mov
Where input_file.mp4 is the filename of the saved avidemux output.
Not tested by myself. Could work depending on what is exactly in the original .mov video container.
Title: Re: Just want to shorten a MOV file.
Post by: chzuck on June 13, 2013, 02:25:13 PM
Which version of Avidemux are you referring to?  I do not see edit/trim video on 2.5.  Anyway I was able to set the portion I wanted.  When I tried to save it in mp4, it says audio stream is invalid.
Title: Re: Just want to shorten a MOV file.
Post by: styrol on June 13, 2013, 07:43:04 PM
Quote from: chzuck on June 13, 2013, 02:25:13 PM
Which version of Avidemux are you referring to?  I do not see edit/trim video on 2.5.
You set the A und B marker to trim or cut the video (these are not menu commands).

Quote from: chzuckAnyway I was able to set the portion I wanted.  When I tried to save it in mp4, it says audio stream is invalid.
Audio track is probably ADPCM encoded. Just convert it to AAC (128kbps 16 bit stereo), and the audio track is compatible and the file much smaller at no noticeable loss of quality.
Title: Re: Just want to shorten a MOV file.
Post by: chzuck on June 13, 2013, 11:36:25 PM
I am new to this and I have no idea what Jan Gruuthuse was talking about concerning the line listed below.
ffmpeg -i input_file.mp4 -acodec copy -vcodec copy -f mov output_file.mov
Title: Re: Just want to shorten a MOV file.
Post by: Jan Gruuthuse on June 14, 2013, 05:31:50 AM
FFmpeg is a program found here: http://www.ffmpeg.org/
the command line instruction that probably will repackage the file.mp4 to file.mov
ffmpeg -i input_file.mp4 -acodec copy -vcodec copy -f mov output_file.mov
When you save the mp4 in avidemux, you named it. In above command change file.mp4 to that used name.
Title: Re: Just want to shorten a MOV file.
Post by: chzuck on June 14, 2013, 02:18:06 PM
I am sorry, but it says ffmpeg is not recognized as an internal or external command.  I downloaded ffmeg and unzipped it to the desktop.  When I click on ffmpeg.exe in the bin folder, the command window only appears for a second.  When I try to enter the string as you say, I get the not recognized as an internal or external command.
At this point I am thoroughly frustrated that something so simple as cutting the beginning and end off a clip is so complicated!  I will just convert the file to a type that media maker can handle and go from there.
I just found out that a program called Any Video Converter will convert that mp4 file to MOV painlessly.  Anyway, thanks for all you tried to help me with.
Title: Re: Just want to shorten a MOV file.
Post by: chzuck on June 16, 2013, 01:40:32 AM
I found a program that is easy to use and does just what I want in one step. It is called Any Video Converter.  It trims and saves in MOV in one operation.

http://www.any-video-converter.com/ (http://www.any-video-converter.com/)
Title: Re: Just want to shorten a MOV file.
Post by: chzuck on June 18, 2013, 04:06:16 AM
Jan,
I do want to thank you for trying to help me.  I am just not at the level to know how to do all the things you were suggesting.   I needed to have something very simple for my abilities at working with video clips.  Thanks again.