<p>I've been able to solve the issue recently with the following command in ffmpeg:</p>

<pre><code>ffmpeg -i "input.avi" -c copy "output.mov"
</code></pre>

<p>I still have no understanding why Vegas would not work with the AVI. My system does this container rewrap at about 350x, so it's very fast. The only issue is if you have a ton of videos and you create a batch file, you should check your hard drive space before you try it.</p>

CC BY-SA 3.0
2017-04-18T07:06:20.040Z
2017-04-18T07:06:20.040Z
user3643
<p>I have an avi video with video codec mp4v and PCM audio. When I bring the video into Vegas Pro, it loads up fine except the audio gets seriously messed up. It gets chopped. See the waveforms below.</p>

<p>I used ffmpeg to extract the audio using the command <code>ffmpeg -i video.avi -vn -acodec copy audio.wav</code>. The resultant file will load correctly in Vegas Pro. See the waveforms and compare. These should look exactly the same.</p>

<p><a href="https://i.sstatic.net/mTWGa.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/mTWGa.jpg" alt="Good and Bad Waveforms"></a></p>

<p>What is causing this and how do I fix it?</p>

<p>ffprobe reports the following on the file:</p>

<pre><code>Input #0, avi, from '01-1.avi':
  Duration: 02:01:44.47, start: 0.000000, bitrate: 2060 kb/s
    Stream #0:0: Video: mpeg4 (Simple Profile) (MP4V / 0x5634504D), yuv420p, 1024x768 [SAR 1:1 DAR 4:3], 626 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
    Metadata:
      title           : DVI2USB 3.0 [D2S354466]
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
</code></pre>

CC BY-SA 3.0
2017-01-24T09:48:41.287Z
Mux to another AVI or MOV and check. Could be something as simple as a buggy or non-standard AVI muxer used by the original app. I notice that the audio is 2ch but the waveform is 1ch. Is that a compare of 1 of the channels or is the stream selection set to 'combined'?
Gyan
CC BY-SA 3.0
2017-01-24T09:53:03.923Z
@Mulvya Yes, two channels in the file, but I set vegas to only show the one that's there. The other channel is blank. No feed when recorded, apparently.
user3643
CC BY-SA 3.0
2017-01-24T10:11:00.933Z
@Mulvya So `ffmpeg -i input.avi -vcodec copy -acodec copy output.avi`? Is that what you want me to try? Just tried it, didn't work.
user3643
CC BY-SA 3.0
2017-01-24T10:34:01.470Z
And also to MOV.
Gyan
CC BY-SA 3.0
2017-01-24T16:41:57.040Z
@Mulvya Thank's for the suggestion. I ran this command: `ffmpeg -i input.avi -vcodec copy -acodec copy output.mov`. The mov file will open the audio correctly. The video will not load, however. Seems like progress. What does this mean, though? An issue with Vegas and AVI files?
user3643
CC BY-SA 3.0
2017-01-24T17:11:34.310Z
Sounds like your Vegas' AVI reader doesn't like PCM audio, although it works here in VP12. As for no video via MOV, probably just an issue of video tag. What does ffprobe show for the MOV?
Gyan
CC BY-SA 3.0
2017-01-24T17:23:53.580Z
@Mulvya [Here's a snapshot](https://i.sstatic.net/7r8B4.png)
user3643
CC BY-SA 3.0
2017-01-26T09:01:20.290Z
@Mulvya So is it Vegas or the original file?
user3643
CC BY-SA 3.0
2017-01-26T09:43:23.863Z
It's Vegas. A MOV with the same V and A codec opens fine here. I would suggest to reinstall QT.
Gyan
<audio><vegas-pro>
Vegas Pro will not properly render PCM audio in avi file on the timeline
user3643
# Vegas Pro will not properly render PCM audio in avi file on the timeline

(Asked by: username_0 on 2017-01-24)

I have an avi video with video codec mp4v and PCM audio. When I bring the video into Vegas Pro, it loads up fine except the audio gets seriously messed up. It gets chopped. See the waveforms below.
I used ffmpeg to extract the audio using the command ffmpeg -i video.avi -vn -acodec copy audio.wav. The resultant file will load correctly in Vegas Pro. See the waveforms and compare. These should look exactly the same.

What is causing this and how do I fix it?
ffprobe reports the following on the file:
Input #0, avi, from '01-1.avi':
  Duration: 02:01:44.47, start: 0.000000, bitrate: 2060 kb/s
    Stream #0:0: Video: mpeg4 (Simple Profile) (MP4V / 0x5634504D), yuv420p, 1024x768 [SAR 1:1 DAR 4:3], 626 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
    Metadata:
      title           : DVI2USB 3.0 [D2S354466]
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s

**Tags:** audio, vegas-pro

> **Comments:**
> **username_1**: Mux to another AVI or MOV and check. Could be something as simple as a buggy or non-standard AVI muxer used by the original app. I notice that the audio is 2ch but the waveform is 1ch. Is that a compare of 1 of the channels or is the stream selection set to 'combined'?  
> **username_0**: @Mulvya Yes, two channels in the file, but I set vegas to only show the one that's there. The other channel is blank. No feed when recorded, apparently.  
> **username_0**: @Mulvya So `ffmpeg -i input.avi -vcodec copy -acodec copy output.avi`? Is that what you want me to try? Just tried it, didn't work.  
> **username_1**: And also to MOV.  
> **username_0**: @Mulvya Thank's for the suggestion. I ran this command: `ffmpeg -i input.avi -vcodec copy -acodec copy output.mov`. The mov file will open the audio correctly. The video will not load, however. Seems like progress. What does this mean, though? An issue with Vegas and AVI files?  
> **username_1**: Sounds like your Vegas' AVI reader doesn't like PCM audio, although it works here in VP12. As for no video via MOV, probably just an issue of video tag. What does ffprobe show for the MOV?  
> **username_0**: @Mulvya [Here's a snapshot](https://i.sstatic.net/7r8B4.png)  
> **username_0**: @Mulvya So is it Vegas or the original file?  
> **username_1**: It's Vegas. A MOV with the same V and A codec opens fine here. I would suggest to reinstall QT.  

---

## 1 answers

### Answer by username_0 on 2017-04-18. Score: 0 | Accepted answer

I've been able to solve the issue recently with the following command in ffmpeg:
ffmpeg -i "input.avi" -c copy "output.mov"

I still have no understanding why Vegas would not work with the AVI. My system does this container rewrap at about 350x, so it's very fast. The only issue is if you have a ton of videos and you create a batch file, you should check your hard drive space before you try it.


---

