# (FAQ) How to convert .mov video (e.g. iPhone) to .mp4 for VEGAS Pro

NickHope wrote on 3/27/2017, 1:17 PM

".mov" or ".MOV" is the file extension used for Apple Quicktime video files. While VEGAS Pro will play some .mov files using its native decoders, others still require Quicktime for Windows for playback. This often causes problems such as stuttering playback, unwanted artifacts, audio distortion, a luminance shift, or a simple refusal to open the video and/or audio correctly. Quicktime for Windows is 32-bit only and is now no longer supported by Apple.

In particular, files from Apple iPhones and iPads, as well as .mov footage from many cameras, devices and recording apps, would not open correctly in VEGAS Pro 14 and earlier. In VEGAS Pro 15 and later, more of these files are supported and will open correctly with the native codecs.

Quicktime is a format "container" or "wrapper" that can contain video and/or audio streams in various formats. In many cases the playback problems can be solved by losslessly "re-wrapping" the same video/audio streams into an .mp4 container that VEGAS Pro can decode using its native codecs.

1. VERIFY WHICH CODEC IS BEING USED

Right click on a .mov video file in the VEGAS Pro Explorer window, choose Properties, then scroll to the bottom of the window. The Plug-In Name identifies which codec Vegas will use to decode the file.

Properties are also available by right clicking on a file in the Project Media window, or a video event on the timeline, then choosing the General tab.

If the plug-in name is mxhevcplug.dll then the file is HEVC (H.265) or ProRes format and the conversion procedure below will fail (it will create an empty file).

If the plug-in name is compoundplug.dll or so4compoundplug.dll then VEGAS Pro is already using it's own native codec to decode the file and and the conversion procedure below is unlikely to help. It will fail if the audio stream is PCM.

If the plug-in name is qt7plug.dll then Quicktime for Windows is being used to decode the file. If you don't have Quicktime for Windows installed then there may be no Plugin section at all. In both these cases, look at the Streams section of the Properties. If the video stream is AVC or H.264 and the audio stream is AAC or missing, then the following conversion procedure is likely to help.

If the stream format is something else, such as PNG, Motion JPEG etc. then the conversion is less likely to help and may fail completely.

2. INSTALL FFMPEG

FFmpeg is a powerful, free command-line utility that can convert video and audio between a huge range of formats. While there may be other converters that can do this, FFmpeg does a very good job of it.

Visit http://adaptivesamples.com/how-to-install-ffmpeg-on-windows/ and follow the instructions on how to install FFmpeg. https://ffmpeg.zeranoe.com/builds/ defaults to the latest 64-bit nightly build, but it is safer to use the latest release build (which was 3.2.4 when I wrote this):

How-To Geek has more help on how to add the bin folder to your path in various versions of Windows.

3. CONVERT A SINGLE FILE

Open a Command Prompt and change location to the folder that contains the file(s) that need to be converted. There are many ways to open a Command Prompt; In Windows 10 I recommend opening the folder in File Explorer then choosing File > Open command prompt > Open command prompt. There should be no need to open a command prompt as administrator.

If the command prompt is not showing the location where your .mov files are then change to it by typing cd followed by a space then the correct location, for example:

cd D:\Media\

To convert a single file, type the following line, replacing "filename" with the actual filename, then press ENTER.

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

If you have spaces in your filenames than you need to surround them in quotes:

ffmpeg -i "file name.mov" -vcodec copy -acodec copy "file name.mp4"

FFmpeg should then convert the file to a .mp4 version and leave the existing .mov file. The conversion should be extremely fast, as it is just rewriting the file header and not re-encoding the streams themselves. Test the new .mp4 file in VEGAS Pro to see if there is an improvement.

If you have a few files to convert, you could copy and paste that line into a text editor such as Notepad, change the filenames after each conversion, and copy and paste it into the command prompt.

4. BATCH-CONVERTING A WHOLE FOLDER

If you have many files to convert, or a regular need to convert, then you can create a Windows batch file to automate the process.

Download here, or open a text editor such as Notepad, then copy and paste the following text into it:

for %%a in ("*.mov") do ffmpeg -i "%%a" -vcodec copy -acodec copy "%%~na.mp4"

Save it as mov-to-mp4.bat or similar in the same folder that contains your .mov files. Then simply double-click this .bat file. FFmpeg should convert all the .mov files to .mp4 files, leaving the .mov files as they are.

5. USE AN FFMPEG GUI

If the above steps are problematic or daunting for you, you can use an FFmpeg GUI (graphical user interface) program instead of the command prompt. Very many FFmpeg GUIs have been written; Some are better than others, and some are no longer in development, so use outdated versions of FFmpeg. XMedia Recode works. On the Format tab choose MP4, and on the Video and Audio tabs choose Mode > Copy, like this:

However for converting many .mov files on a regular basis, nothing is as fast and straightforward as using a batch file as described in section 4.

6. HAPPY OTTER SCRIPTS IMPORTASSIST

The ImportAssist script within Happy Otter Scripts can prepare various troublesome formats for successful import to VEGAS Pro. It provides a GUI for rewrapping or transcoding media including iPhone files, and its installer handles installation of FFMPEG.

7. LUMINANCE SHIFT

Quicktime for Windows (via qt7plug.dll) decodes files in VEGAS Pro with higher contrast than VEGAS Pro's own compoundplug.dll. For example an iPhone 6 .mov clip decodes with black at RGB 0 and white at RGB 255. If left uncorrected before re-rendering, this results in excessive contrast and lost (clipped) highlights and shadows in most final playback scenarios. However after re-wrapping to .mp4 with FFmpeg as described above, the black level is 16 and the white level is 235. Effectively the conversion automatically corrects the levels for editing in VEGAS Pro, and is a welcome benefit. Further explanation here.

8. RECORDING FORMAT

If your camera or software allows you a choice of formats, then MP4 is generally a better choice for editing in VEGAS Pro than MOV. However if you want to record PCM (uncompressed) audio then you may have to choose MOV. But such files are generally decoded by native VEGAS codecs and not by Quicktime, so this may not be a problem. Test the choices and try to use one that does not use qt7plug.dll as the plug-in.

9. IPHONE HEVC (iPhone 7 and later)

HEVC footage shot by the Apple iPhone 7 or later needs to have its video stream re-encoded or transcoded, not just rewrapped to MP4. See this comment for details.

10. IF YOU NEED FURTHER HELP

• Tell us exactly which version and build number of VEGAS Pro you are using.
• Tell us how your source media was generated (i.e. what camera or program) and what format/codec was used (if you know).
• Post the MediaInfo text report of your source media.
• Post the VEGAS Files Propertes of your source media (the MediaInfo guide linked above shows you how).
• If the media is not too large you could post a link to a sample of it, for example on Google Drive or Dropbox.
• Submit a support request, including as much detailed information about the problem as you can.

10. RELATED POSTS

NickHope wrote on 3/27/2017, 1:18 PM

Suggestions for corrections and additions via comments or personal messages are welcome but comments here may be deleted later as this is an "FAQ" post. Please start a new post or use an old thread to discuss subjects in depth or to raise individual cases.

Jam_One wrote on 3/27/2017, 2:54 PM

Those who have trouble using ffmpeg may alternatively download GoPro Studio and convert to Cineform AVI. The software is officially free.

Note, the 'Studio' may have some limitations on the sources it can open due to its "proprietariness".

Last changed by Jam_One on 3/27/2017, 2:59 PM, changed a total of 1 times.

Thank You Quote

Win 7 Ultimate | Intel i7-4790K @ 4GHz | nVidia GTX 760 4GB * 2

SSD | 32 GB RAM | No Swap file | No Overclock | GPU-in-CPU OFF

t.A.T.u. F.o.R.e.V.e.R.!

NickHope wrote on 3/28/2017, 1:48 AM

Those who have trouble using ffmpeg may alternatively download GoPro Studio and convert to Cineform AVI...

Cineform is a good choice as an intermediate file, and worth trying if you can't get FFmpeg to work or if the file still does not play smoothly after conversion. However the FFmpeg conversion to .mp4 from a .mov file that contains AVC/H.264 has the benefits that it is much faster, much smaller file size, and truly lossless.

Musicvid wrote on 3/29/2017, 8:51 AM

Nick I hope you stick this faq so it doesn't get buried.

NickHope wrote on 3/29/2017, 9:23 AM

Nick I hope you stick this faq so it doesn't get buried.

Yep, it's in there, currently #20 in the charts.

robert-hite wrote on 4/2/2017, 12:46 AM

What is there's no video stream?

NickHope wrote on 4/2/2017, 1:01 AM

What is there's no video stream?

Should there be a video stream? Is it a .mov file, or a .m4a file, or something else?

https://www.vegascreativesoftware.info/us/forum/faq-how-to-post-mediainfo-and-vegas-pro-file-properties--104561/

dan9er wrote on 9/23/2017, 8:58 AM

Musicvid wrote on 9/23/2017, 9:06 AM

MKV is another, unrelated wrapper.

Try MKVExtract

NickHope wrote on 9/23/2017, 8:44 PM

You should be able to convert to or from mkv with ffmpeg just by changing the file extension from mov or mp4 to mkv in the examples in the first post.

NickHope wrote on 9/23/2017, 9:09 PM

Has someone tried this? I'm not sure it would preserve chapters, multiple titles, multiple audio, and language subtitles from MKV.

It probably wouldn't. I was just thinking of straightforward video and audio streams.

Musicvid wrote on 9/23/2017, 9:24 PM

Has someone tried this? I'm not sure it would preserve chapters, multiple titles, multiple audio, and language subtitles from MKV.

Also, one would need to take care to mux mpeg-2 MKV to mpeg-2, m2ts MKV to m2ts, vc1 MKV to vc1, HEVC MKV to HEVC, etc.

MakeMKV, MKVExtract, MKVToolnix, MKVMerge have been pretty much stock and trade for leveraging this particular wrapper.

Musicvid wrote on 9/23/2017, 9:34 PM

It probably wouldn't. I was just thinking of straightforward video and audio streams.

Probably the majority of MKV encodes are DVD and BluRay rips, because it can store all the extra tracks and metadata in a single file. Beyond that, MKV is just another compression-agnostic wrapper like mp4.

dan9er wrote on 9/24/2017, 8:59 AM

MKV is another, unrelated wrapper.

Try MKVExtract

I searched for MKVExtract, found this. How do I use it to convert to MP4?

Musicvid wrote on 9/24/2017, 12:17 PM

You don't, unless it's an mp4 wrapped as MKV.

Use mkvextract with mkvtoolnix to extract your movie in its native format, whatever that may be.

Then, if you choose to convert that as-yet unidentified format to mp4, you would do that with an encoder or converter program.

Precise instructions are to be found all over the internet. Please understand that the forum guidelines discourage discussions of any form of copyright circumvention.

Hint: Your MKV "may" open in Handbrake.

Tom-B wrote on 3/26/2018, 10:18 PM

.mov is always from Mac OS systems, I always use the online converter, such as online-convert, media.io, keepvid.cc, and other online converter. And if you want to handle a lot of video at one time, a professional video converter is more convenient, such as wonderhsare video covnerter and freemake video converter.

Musicvid wrote on 3/27/2018, 8:36 AM

Tom, REMUXING in ffmpeg is vastly preferred to using the converters you mentioned because converters must ENCODE a new stream, making them more of a last resort from a quality standpoint. It also takes many times longer for them to re-encode when it isn't necessary.

The term MUX refers to an exact bit-fof-bit copy of the original under a new umbrella, which can happen in a matter of minutes instead of hours. Sometimes it's just easier (lazier) to use a converter, but for extracting native MP4 from MKV and MOV, it's also the worst route.

GracelessGhost wrote on 12/28/2018, 12:32 AM

Hi! I have been using this FFmpeg technique for the past year to convert .mov to .mp4 without any problems (thanks so much). But recently, I have encountered issues with the output .mp4 files. When I try to import them into VEGAS Pro 14 (build 161), an error message appears, reading, "None of the files dropped on VEGAS Pro could be opened." Playback of the output .mp4 files via Windows Media Player still works fine.

I tried changing the .bat code to the following:

for %%a in ("*.mov") do ffmpeg -i "%%a" -q:v 1 -vcodec mpeg4 -acodec copy "%%~na.mp4"

And it worked! VEGAS could open the file. But the conversion was much slower, and the preview screen was extremely laggy. When I checked the media properties of the output .mp4, it still said the plug-in being used was "qt7plug.dll."

Is there any way to fix the preview lag? I don't necessarily need it to be an .mp4 file.

Last changed by GracelessGhost on 12/28/2018, 12:37 AM, changed a total of 2 times.

Thank You Quote
Musicvid wrote on 12/28/2018, 9:07 AM
NickHope wrote on 12/28/2018, 9:21 AM

@GracelessGhost You're using the 1st buggy release of VP14. Please install build 270 (update 7) and if you still have problems, make a new separate post. Downloads here: https://www.vegascreativesoftware.info/us/forum/faq-where-can-i-download-vegas-pro-and-other-vegas-software--104782/

john_dennis wrote on 1/31/2019, 12:42 AM

@NickHope

In the context of making MOV (iPhone, iPad) video more editable, should some intermediate level FFMPEG script writer discus the -r option to set the frame rate to a constant?

Thank You Quote

My main system:
Motherboard: ASUS ProArt Z790-CREATOR WIFI
CPU: Intel Core i9-13900K - Core i9 13th Gen Raptor Lake 24-Core (8P+16E) P-core Base Frequency: 3.0 GHz E-core Base Frequency: 2.2 GHz LGA 1700 125W Intel UHD Graphics 770 Desktop Processor - BX8071513900K
GPU: Currently intel on-die video adapter
RAM: CORSAIR Vengeance 64GB (2 x 32GB) 288-Pin PC RAM DDR5 5600 (PC5 44800) Desktop Memory Model CMK64GX5M2B5600C40
Disk O/S & Programs: WD Black SN850 NVMe SSD WDS100T1X0E - SSD - 1 TB - PCIe 4.0 x4 (NVMe)
Disk Active Projects: 1TB & 2TB WD BLACK SN750 NVMe Internal PCI Express 3.0 x4 Solid State Drives
Disk Other: WD Ultrastar/Hitachi Hard Drives: WDBBUR0080BNC-WRSN, HGST HUH728080ALE600, 724040ALE640, HDS3020BLA642
Case: LIAN LI PC-90 Black Aluminum ATX Full Tower Case
CPU cooling: CORSAIR - iCUE H115i RGB PRO XT 280mm Radiator CPU Liquid Cooling System
Power supply: SeaSonic SS-750KM3 750W 80 PLUS GOLD Certified Full Modular Active PFC Power Supply
Drive Bay: Kingwin KF-256-BK 2.5" and 3.5" Trayless Hot Swap Rack with USB 3
Sound card: Realtek S1220A on motherboard. Recording done on another system.
Primary Monitor: Asus ProArt PA248q (24" 1920 x 1200)
O/S: Windows 10 Pro 10.0.19045 Build 19045

Camera: Sony RX10 Model IV

fifonik wrote on 2/21/2020, 6:04 PM

The following code can be used to process list of files passed in params:

@ECHO OFF
SET ff="c:\path\to\ffmpeg.exe"

FOR %%a IN (%*) DO %ff% -hide_banner -i "%%a" -vcodec copy -acodec copy "%%~na.mp4"


Save the code as rewrap2mp4.bat and then use like this:

c:\path\to\rewrap2mp4.bat file1.m2ts file2.mov file3.mts

I've created a button in Total Commander that is calling the bat file. So I'm selecting a number of files and clicking the button.

Last changed by fifonik on 2/21/2020, 6:11 PM, changed a total of 6 times.

Camcorder: Panasonic X920

Desktop: MB: MSI B450M MORTAR TITANIUM, CPU: AMD Ryzen 5700X, RAM: G'Skill 16 GB DDR4@3200, Graphics card: MSI RX6600 8GB, SSD: Samsung 970 Evo+ 1TB (NVMe, OS), Samsung 870 Evo, HDD Seagate 3TB, HDD Toshiba 4TB, OS: Windows 10 Pro 22H2

NLE: Vegas Pro  11, 12, 13, 15, 17, 18, 19

JN- wrote on 2/22/2020, 7:30 AM

@john_dennis Not even beginner ffmpeg user. Anyway I will have to look around for a vfr file to test.

I used this to convert a 25fps CFR file to 60fps, using HW acceleration, time is benchmarked also.

ffmpeg -y -benchmark -hwaccel cuvid -c:v h264_cuvid -i Source.mp4 -rc constqp -qp 18 -r 60 -c:v hevc_nvenc -b:a 192000 f-Hevc.mp4

-qp  =  Integer. "Constant quantization parameter rate control method (from -1 to 51) (default -1)" Lower is better.

Also … ffmpeg -y -hwaccel cuvid -c:v h264_cuvid -i source.mp4 -preset hq -qp 16 -r 29.97 -c:v h264_nvenc -b:a 192000 CFR-16.mp4

I found a 4K UHD VFR 29.97 fps clip from Samsung S7 edge and used this to convert to 30fps ...

I later located an iPhone 5 FHD clip and converted it from VFR to CFR, 29.97 fps.

ffmpeg -y -hwaccel cuvid -c:v h264_cuvid -i source.mp4 -rc constqp -qp 29 -r 30 -c:v h264_nvenc -b:a 192000 CFR-29.mp4

A QP value of 30 produces just under, closest data rate to the original. Ideally for using in place of the original VFR file a higher data rate, lower QP value is advised.

-r can also be set to 29.97.

See this ffmpeg documentation link where the fps filter is also discussed ...

Last changed by JN- on 2/23/2020, 6:45 AM, changed a total of 7 times.

Thank You Quote

---------------------------------------------

VFR2CFR, Variable frame rate to Constant frame rate link to zip here.

Copies Video Converts Audio to AAC, link to zip here.

Convert 2 Lossless, link to ZIP here.

Convert Odd 2 Even (frame size), link to ZIP here

Codec Render Quality tables zip

---------------------------------------------

PC ... Corsair case, own build ...

CPU .. i9 9900K, iGpu UHD 630

Memory .. 32GB DDR4

Graphics card .. MSI RTX 2080 ti

Graphics driver .. latest studio

PSU .. Corsair 850i

Mboard .. Asus Z390 Code

Laptop… XMG

i9-11900k, iGpu n/a

Memory 64GB DDR4

Graphics card … Laptop RTX 3080

JN- wrote on 2/22/2020, 9:03 AM

The output file can be set to .mxf also ...

@echo off
cls
ffmpeg -y -hwaccel cuvid -c:v h264_cuvid -i source.mp4 -rc constqp -qp 17 -r 29.97 -c:v h264_nvenc -b:a 192000 CFR-17.mxf

Unfortunately VP cannot open it, "too many channels" i.e. "other" #1 #2 and #3 see screen grab.

Last changed by JN- on 2/22/2020, 9:07 AM, changed a total of 1 times.

Thank You Quote

---------------------------------------------

VFR2CFR, Variable frame rate to Constant frame rate link to zip here.

Copies Video Converts Audio to AAC, link to zip here.

Convert 2 Lossless, link to ZIP here.

Convert Odd 2 Even (frame size), link to ZIP here

Codec Render Quality tables zip

---------------------------------------------

PC ... Corsair case, own build ...

CPU .. i9 9900K, iGpu UHD 630

Memory .. 32GB DDR4

Graphics card .. MSI RTX 2080 ti

Graphics driver .. latest studio

PSU .. Corsair 850i

Mboard .. Asus Z390 Code

Laptop… XMG

i9-11900k, iGpu n/a

Memory 64GB DDR4

Graphics card … Laptop RTX 3080