Skip to main content
Minor edit (a little more clear)
Source Link
r_alex_hall
  • 326
  • 3
  • 12

This is a tweak of part of the answer slhck gave (and thanks, slhck!) because I found that command didn't work for the latest (at this writing) ffmpeg--maybe the parameters have changed between versions?

On Windows 7, using ffmpeg v.20130103-git-9e36d9e-win64-static (decompress it with the 7zip utility), found via http://ffmpeg.zeranoe.com/builds/ in turn via http://ffmpeg.org/download.html, the following command converted a .mov file (taken from an iPhone) into a .mp4 file:

ffmpeg -i test.mov -vcodec copy -acodec copy test.mp4

I found that changing the .mp4 part of this to .avi also worked, to change it to an .avi container. With either target container, but retainusing these "-vcodec copy -acodec copy" paramaters seem to only copy the originalsource streams in itinto a new container (soin the target), so it's lossless conversion (and I'm guessing that would be the case with a variety of target containers, too).

It follows that theseThese tweaks of the batches slhck gave would work--and I've tested them and they doalso worked for me:

callConvert.bat:

for %%i IN (*.mov) DO (convert.bat "%%i")
pause

convert.bat:

IF EXIST %1.mov GOTO exit

@echo Conversion for %1 started on %DATE% %TIME% 
ffmpeg -i %1 -vcodec copy -acodec copy %1.avi

:exit 
@echo %1.avi already exists

This is a tweak of part of the answer slhck gave (and thanks, slhck!) because I found that command didn't work for the latest (at this writing) ffmpeg--maybe the parameters have changed between versions?

On Windows 7, using ffmpeg v.20130103-git-9e36d9e-win64-static (decompress it with the 7zip utility), found via http://ffmpeg.zeranoe.com/builds/ in turn via http://ffmpeg.org/download.html, the following command converted a .mov file (taken from an iPhone) into a .mp4 file:

ffmpeg -i test.mov -vcodec copy -acodec copy test.mp4

I found that changing the .mp4 part of this .avi also worked, to change it to an .avi container, but retain the original streams in it (so, lossless conversion).

It follows that these tweaks of the batches slhck gave would work--and I've tested them and they do:

callConvert.bat:

for %%i IN (*.mov) DO (convert.bat "%%i")
pause

convert.bat:

IF EXIST %1.mov GOTO exit

@echo Conversion for %1 started on %DATE% %TIME% 
ffmpeg -i %1 -vcodec copy -acodec copy %1.avi

:exit 
@echo %1.avi already exists

This is a tweak of part of the answer slhck gave (and thanks, slhck!) because I found that command didn't work for the latest (at this writing) ffmpeg--maybe the parameters have changed between versions?

On Windows 7, using ffmpeg v.20130103-git-9e36d9e-win64-static (decompress it with the 7zip utility), found via http://ffmpeg.zeranoe.com/builds/ in turn via http://ffmpeg.org/download.html, the following command converted a .mov file (taken from an iPhone) into a .mp4 file:

ffmpeg -i test.mov -vcodec copy -acodec copy test.mp4

I found that changing the .mp4 part of this to .avi also worked, to change it to an .avi container. With either target container, using these "-vcodec copy -acodec copy" paramaters seem to only copy the source streams into a new container (in the target), so it's lossless conversion (and I'm guessing that would be the case with a variety of target containers, too).

These tweaks of the batches slhck gave also worked for me:

callConvert.bat:

for %%i IN (*.mov) DO (convert.bat "%%i")
pause

convert.bat:

IF EXIST %1.mov GOTO exit

@echo Conversion for %1 started on %DATE% %TIME% 
ffmpeg -i %1 -vcodec copy -acodec copy %1.avi

:exit 
@echo %1.avi already exists
Edit for clarity and as own answer (no one seemed to think it should have been a mere comment); add that tweaks of batches work
Source Link
r_alex_hall
  • 326
  • 3
  • 12

[Am I missing something, or can I actually not comment onThis is a tweak of part of the first answer posted here?slhck gave (and thanks, slhck!) because I think this might be more a reply tofound that than a separate answer . .command didn't work for the latest .](at this writing) ffmpeg--maybe the parameters have changed between versions?

On Windows 7, using ffmpeg v.20130103-git-9e36d9e-win64-static (decompress it with the 7zip utility), found via http://ffmpeg.zeranoe.com/builds/ in turn via http://ffmpeg.org/download.html, thisthe following command-line worked for me (as contrasted with what was first given here under "ffmpeg batch" -- which may work under different versions/compiles of ffmpeg, I don't know); this converted a .mov file taken(taken from an iPhone) into a .mp4 file (I found it also worked if I changed .avi to .mp4):

ffmpeg -i test.mov -vcodec copy -acodec copy test.mp4

I'm sure something likeI found that changing the batch mkvtomp4 proposes would do.mp4 part of this for many files in a directory.avi also worked, to change it to an .avi container, but retain the original streams in one commandit (so, alsolossless conversion).

It follows that these tweaks of the batches slhck gave would work--and I've tested them and they do:

callConvert.bat:

for %%i IN (*.mov) DO (convert.bat "%%i")
pause

convert.bat:

IF EXIST %1.mov GOTO exit

@echo Conversion for %1 started on %DATE% %TIME% 
ffmpeg -i %1 -vcodec copy -acodec copy %1.avi

:exit 
@echo %1.avi already exists

[Am I missing something, or can I actually not comment on the first answer posted here? I think this might be more a reply to that than a separate answer . . .]

On Windows 7, using ffmpeg v.20130103-git-9e36d9e-win64-static (decompress it with the 7zip utility), found via http://ffmpeg.zeranoe.com/builds/ in turn via http://ffmpeg.org/download.html, this command-line worked for me (as contrasted with what was first given here under "ffmpeg batch" -- which may work under different versions/compiles of ffmpeg, I don't know); this converted a .mov file taken from an iPhone into a .mp4 file (I found it also worked if I changed .avi to .mp4):

ffmpeg -i test.mov -vcodec copy -acodec copy test.mp4

I'm sure something like the batch mkvtomp4 proposes would do this for many files in a directory in one command, also.

This is a tweak of part of the answer slhck gave (and thanks, slhck!) because I found that command didn't work for the latest (at this writing) ffmpeg--maybe the parameters have changed between versions?

On Windows 7, using ffmpeg v.20130103-git-9e36d9e-win64-static (decompress it with the 7zip utility), found via http://ffmpeg.zeranoe.com/builds/ in turn via http://ffmpeg.org/download.html, the following command converted a .mov file (taken from an iPhone) into a .mp4 file:

ffmpeg -i test.mov -vcodec copy -acodec copy test.mp4

I found that changing the .mp4 part of this .avi also worked, to change it to an .avi container, but retain the original streams in it (so, lossless conversion).

It follows that these tweaks of the batches slhck gave would work--and I've tested them and they do:

callConvert.bat:

for %%i IN (*.mov) DO (convert.bat "%%i")
pause

convert.bat:

IF EXIST %1.mov GOTO exit

@echo Conversion for %1 started on %DATE% %TIME% 
ffmpeg -i %1 -vcodec copy -acodec copy %1.avi

:exit 
@echo %1.avi already exists
Source Link
r_alex_hall
  • 326
  • 3
  • 12

[Am I missing something, or can I actually not comment on the first answer posted here? I think this might be more a reply to that than a separate answer . . .]

On Windows 7, using ffmpeg v.20130103-git-9e36d9e-win64-static (decompress it with the 7zip utility), found via http://ffmpeg.zeranoe.com/builds/ in turn via http://ffmpeg.org/download.html, this command-line worked for me (as contrasted with what was first given here under "ffmpeg batch" -- which may work under different versions/compiles of ffmpeg, I don't know); this converted a .mov file taken from an iPhone into a .mp4 file (I found it also worked if I changed .avi to .mp4):

ffmpeg -i test.mov -vcodec copy -acodec copy test.mp4

I'm sure something like the batch mkvtomp4 proposes would do this for many files in a directory in one command, also.