• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
2

Can't get PPro to accept video file.

Community Beginner ,
May 18, 2011 May 18, 2011

Copy link to clipboard

Copied

I tried getting this to work in PPro 7.0 but it wouldn't accept an HD video file. I've downloaded a trial of PPro CS5.5 ( I purchased it as well but will have to wait for the disc to arrive) and now the file is imported but it shows up as an audio with no video. The video does play just fine in Windows Media Player. The following is the GSpot report on the file:

GSpot Capture.JPG

Can anyone tell me any reason I can't import this file?

Thank you,

.....Gord

Views

41.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , May 19, 2011 May 19, 2011

It doesn't really matter if you have QT installed for this file; it's not going to help either way. Premiere Pro does not support H.264 in an AVI container. We can fix this.

  1. Download the latest 32-bit static build of FFmpeg from here: Zeranoe FFmpeg - Builds
  2. Open the archive; you'll probably need 7-Zip since the archive is a .7z file. Extract the ffmpeg.exe file in the archive (it's in the "bin" folder) to the folder containing your AVIs.
  3. Create a text document (Notepad is fine) called "avi2mp4.bat
...

Votes

Translate

Translate
LEGEND ,
May 18, 2011 May 18, 2011

Copy link to clipboard

Copied

Gord,

Do you have Apple's QT Player installed, or another H.264 CODEC?

Good luck,

Hunt

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 18, 2011 May 18, 2011

Copy link to clipboard

Copied

Yes, I do have Quick Time installed. I don't understand; is that a good thing or a bad thing?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 19, 2011 May 19, 2011

Copy link to clipboard

Copied

It doesn't really matter if you have QT installed for this file; it's not going to help either way. Premiere Pro does not support H.264 in an AVI container. We can fix this.

  1. Download the latest 32-bit static build of FFmpeg from here: Zeranoe FFmpeg - Builds
  2. Open the archive; you'll probably need 7-Zip since the archive is a .7z file. Extract the ffmpeg.exe file in the archive (it's in the "bin" folder) to the folder containing your AVIs.
  3. Create a text document (Notepad is fine) called "avi2mp4.bat" (no quotes) in the same folder as the AVIs, making sure to change the default TXT extension to BAT.
  4. Paste the following into the BAT file:

    @ECHO OFF
    for %%a in (*.avi) do ffmpeg -i "%%a" -vcodec copy -acodec copy -f mp4 -y "%%~na".mp4

  5. Once you save the BAT file, double-click it; your AVIs will be rewrapped to MP4s without any conversion. The MP4s will correctly import into Premiere Pro.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 19, 2011 May 19, 2011

Copy link to clipboard

Copied

It WORKED!!!!!

Thank you so much, Colin! It boggles my mind; how do you learn this stuff?

I have no idea what that code meant but I'm just very happy that it worked.

Stupid question time: I assume that I can use that same .bat file with any video clips I get from this camera in the future?

Thanks again,

.....Gord

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 19, 2011 May 19, 2011

Copy link to clipboard

Copied

>this camera

What brand and model camera... and is there a place in the camera menu where you may change the file/codec format from what you are now doing to something different?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 19, 2011 May 19, 2011

Copy link to clipboard

Copied

Insignia Model #NS-DV111080F

It was on sale at a great price but I should have remembered that sometimes you get what you pay for. I've never looked too closely at what this camcorder can do but now see that you can change the format to MOV. Maybe that would be better as a quick test I just did allowed me to import the file into PPro. I'm very new to this as all I've ever done with PPro before was making DVDs of family events from photos. Is the MOV format as good as AVI?

Thanks for the interest and assistance.

.....Gord

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 19, 2011 May 19, 2011

Copy link to clipboard

Copied

The container is largely irrelevant in the better/worse comparison here. If it records to MOV using H.264, and you can work with those files, you may as well do that. Check, however, that it's not using a different codec or is actually SD instead of HD. Using MediaInfo will give you details of the file.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 19, 2011 May 19, 2011

Copy link to clipboard

Copied

It boggles my mind; how do you learn this stuff?

I'd tell ya, but then... well... you know...

I have no idea what that code meant but I'm just very happy that it worked.

Well, it's not really "code" so much as commands. FFmpeg is a program that can do all sorts of video and audio converting, rewrapping, filtering, and other Stupid Video Tricks. The batch file (BAT) is simply a series of commands that tells FFmpeg what to do with a given set of inputs--in this case, it's telling FFmpeg to rewrap the AVI files, without conversion, into MP4 files. Premiere doesn't understand H.264 in an AVI container, but it does understand H.264 in an MP4 container.

In plain English, the batch is saying, "Look in this folder for anything with an AVI extension, copy the video and audio streams without converting them, repackage the streams in an MP4 container, and name the files the same as the input files, minus the original AVI extension." Simple when you know what it says

I assume that I can use that same .bat file with any video clips I get from this camera in the future?

Indeed, you can. It will actually work with however many clips you have in a folder, not just one. In fact, you may want to put FFmpeg in your C:\Windows\System32 folder, and that way you don't have to move the FFmpeg executable around. Any script/batch you use will know that it's in your "path" and can find it without specifying its location absolutely.

Anyway, glad it worked. Have fun

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 03, 2011 Oct 03, 2011

Copy link to clipboard

Copied

Hi Colin,

This answer  of yours re:  20 May,2011 in respose to Gordrocks,  on H.264 intrigues me. I still use Premiere Pro 1.5.1 mainly for basic editing from a Canon HDV 20/

30/40 and it does a very good job. But, when I tried to Import a H.264mov clip form a Canon 5D mark II it stopped working.I decided to import the clips into Premiere Elements 4, render and convert to Microsoft avi /Uncompressed and then Import the files into PP and of course it worked.

However, your answer appears to be a more correct/direct way of fixing the issue.  Would it work with Premiere Pro 1.5.1 ? I now use a i7 64 bit Quad Core with Windows Xp mode on Virtual PC from Windows Download and apart from the H.264 clips PP runs better than ever.

Regards,

Bob

Message was edited by: Bob Dix Photographer

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 24, 2011 Dec 24, 2011

Copy link to clipboard

Copied

Hello

I've got the similar problem with sound but in APP CS3

I followed the instructions, but the converted file has 0 KB and cannot be opened in Premiere Pro.

Do you have any ideas?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 09, 2012 May 09, 2012

Copy link to clipboard

Copied

Great! Thanks!  I had to implement a fix for this for a full class of students, so instead of using the batchfile included in your response, I wrote a script that does essentially the same thing, but with a GUI to go along with it. 

To use this script, do the following:

1. Download AutoIT from AutoIt Downloads - AutoItScript

2. Install AutoIT.  It includes SciTE, a script editor

3. Open SciTE and paste the script in it

4. Save the script to any accessible folder

5. Download FFMPEG from the link already provided (http://ffmpeg.zeranoe.com/builds/)

6. Use 7zip to unzip FFMPEG.EXE from that download.  Place it in the same folder where you saved the script in step 3

7. Open the AutoIT script from step 3 in SciTE and hit F7 to compile to an EXE

8. In the folder from step 3, you should now have a neat EXE that you can run anywhere to convert H.264 AVI files in place to MP4.

The Script------------------------------------------------------

FileInstall('FFMPEG.EXE', @TempDir & '\FFMPEG.EXE', 1)

$ffmpeg_exe          = @TempDir & '\FFMPEG.EXE' ;This string must match the FileInstall destination

MsgBox(64, 'H.264 AVI Fixer', 'Select the AVI files you want to convert to MP4.'&@CRLF&'Use CTRL or Shift to select multiple files.')

$dInit = @DesktopDir          ;FileOpen dialog initial directory

$iFile = FileOpenDialog('Premiere Elements 10 Project', $dInit, '(*.avi)', 1 + 4)

;Error Checking

If @error Then

    MsgBox(4096, "", "No File chosen.  Exiting.")

          Exit

EndIf

$rFile = StringSplit($iFile, '|')          ;Split the input file string to its component parts.

                                                                                          ;Results in an array with [0]=count, [1] = directory path, [2+] = filenames

If(StringInStr($iFile, '|')) Then

          ;Multiple files were selected.  Loop through each of them.

          For $i=2 To $rFile[0]

                    $filename_avi = $rFile[1] & '\' & $rFile[$i]

                    $filename_mp4 = $rFile[1] & '\' & StringReplace($rFile[$i], '.avi', '.mp4')

                    MsgBox(0, '', $filename_avi, 1)

                    RunWait($ffmpeg_exe & ' -i "' & $filename_avi & '" -vcodec copy -acodec copy -f mp4 -y "' & $filename_mp4 & '"')

          Next

Else

          ;Single file was selected.  Process it.

          $filename_avi = $iFile

          $filename_mp4 = StringReplace($iFile, '.avi', '.mp4')

          MsgBox(0, '', $filename_avi, 1)

          RunWait($ffmpeg_exe & ' -i "' & $filename_avi & '" -vcodec copy -acodec copy -f mp4 -y "' & $filename_mp4 & '"')

EndIf

MsgBox(0, 'H.264 Fixer', 'Complete')

Run('c:\windows\system32\explorer.exe ' & $rFile[1])

FileDelete($ffmpeg_exe)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 09, 2012 May 09, 2012

Copy link to clipboard

Copied

Similarly, if you already have some projects that use AVI-wrapped H.264 files, you can use the below script to fix them.  Disclaimer: It's a little sloppy because it opens the project and rewrites every AVI reference to an MP4.  That said, it doesn't overwrite the original project.  It makes a copy prepended with "FIXED - ".

To use this script, follow the same directions as the last post, but replace the previous script with this one below:

The Script - - - - - - - - - - - - - - - - - - - - - - - - - -

FileInstall('FFMPEG.EXE', @TempDir & '\FFMPEG.EXE', 1)

$ffmpeg_exe          = @TempDir & '\FFMPEG.EXE' ;This string must match the FileInstall destination

MsgBox(64, 'H.264 AVI Fixer', 'Select your Adobe Premiere Elements 10 project.  Your files will be converted to be more compatible with APE10')

If FileExists('C:\PEScratch10') Then

           $dInit = 'c:\pescratch10'

ElseIf FileExists(@MyDocumentsDir & '\Adobe\Premiere Elements\10.0') Then

           $dInit = @MyDocumentsDir & '\Adobe\Premiere Elements\10.0'

Else

           $dInit = @DesktopDir

EndIf

;$dInit = @DesktopDir          ;FileOpen dialog initial directory

$iFile = FileOpenDialog('Premiere Elements 10 Project', $dInit, '(*.prel)', 3)

;Error Checking

If @error Then

    MsgBox(4096, "", "No File chosen.  Exiting.")

          Exit

EndIf

;-----------Get full path, directory name, and file name as individual variables

$fFullPath                              = $iFile

$fFullPathSplit                    = StringSplit($fFullPath, '\')

$fName                                        = $fFullPathSPlit[$fFullPathSplit[0]]          ;File name only

$fDirPath                              = ''          ;Initialize variable for the Directory Path

For $i = 1 To $fFullPathSplit[0] - 1

          if($i > 1) Then

                    $fDirPath = $fDirPath & '\'

          EndIf

          $fDirPath = $fDirPath & $fFullPathSplit[$i] ;Directory (without trailing slash) that contains the project

Next

#cs

MsgBox(0, 'Full Path' , $iFile)

MsgBox(0, 'Directory Path', $fDirPath)

MsgBox(0, 'File Name', $fName)

#ce

;----------Find all the AVI media referenced in the project

$hProject = FileOpen($fFullPath, 'R')

$sProject = FileRead($hProject)

;$medialist = StringRegExp($sProject,'(?i)<ActualMediaFilePath>.*\.AvI</ActualMediaFilePath>',  3)          ;Get all ActualMediaFilePaths

$medialist = StringRegExp($sProject,'(?i)<FilePath>.*\.AvI</FilePath>',  3)          ;Get all FilePaths

$medialist_error = @error

If IsArray($medialist) Then

          For $i = 0 To UBound($medialist) - 1

                    ;$filename = StringReplace(StringReplace($medialist[$i], '<ActualMediaFilePath>', ''), '</ActualMediaFilePath>', '')

                    $filename = StringReplace(StringReplace($medialist[$i], '<FilePath>', ''), '</FilePath>', '')

 

                    ;Skip Rendered files, and iterate through all media found in the project XML.

                    If Not StringInStr($filename, 'Rendered') Then

                              ;MsgBox(0, $medialist_error, 'Rewrapping ' & $filename)

                              $filename_avi = $filename

                              $filename_mp4 = StringReplace($filename, '.avi', '.mp4')

 

                              ;Rewrap the AVI H.264 files as MP4 files.

                              RunWait($ffmpeg_exe & ' -i "' & $filename_avi & '" -vcodec copy -acodec copy -f mp4 -y "' & $filename_mp4 & '"')

                    EndIf

 

          Next

 

          ;Rewrite the project XML to remove AVI references

          $sProjectModified = StringReplace($sProject, '.avi', '.mp4')

          FileDelete($fDirPath & '\FIXED - ' & $fName)

          FileWrite($fDirPath & '\FIXED - ' & $fName, $sProjectModified)

 

          MsgBox(64, 'Complete', 'Your fixed project is available at: ' & @CRLF & $fDirPath & '\FIXED - ' & $fName)

          Run('C:\Windows\System32\Explorer.exe ' & $fDirPath)

          MsgBox(48, 'Note!', 'When you open this project for the first time, it may complain about missing files.' & @CRLF & @CRLF & 'IF THIS HAPPENS CLICK "SKIP ALL"')

 

Else

          MsgBox(16, 'Error', 'No media was detected in that project file.')

EndIf

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 13, 2012 May 13, 2012

Copy link to clipboard

Copied

Hey I have been trying to do this. but my files end up comming out as a 0KB file. even though it says Complete.


Also when i download the FFmpeg its not a exe its a bunch of folders with 3 application links in the bin folder.

Would love any help.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 07, 2012 Jun 07, 2012

Copy link to clipboard

Copied

Hi, I'm also having problems when my webcam's avi files are used in PPro, video but no audio (conforming errors) I tried to use your method but it produced empty (0kb file size) .mp4 files with the same name that couldn't be improrted to PPro... any suggestions?

Thank you

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 11, 2012 Jun 11, 2012

Copy link to clipboard

Copied

Thanks for pointing me to FFMpeg. There's one problem, though. The rewrapped file contains the video, but no audio. How do I remedy this? Actually, what I should say is that premiere won't recongnize the audio in the rewrapped file, but the video is still intact. Even all my media players will play the mp4 with sound.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 14, 2012 Sep 14, 2012

Copy link to clipboard

Copied

I have a similar problem with Premiere Pro not reading the video file.  It is an AVI file; Gspot reports it to have a codec MP42 with name: S-Mpeg 4 version 2.  It plays fine with VLC as well as Media Player.  I installed K-Lite codecs because I thought it might help.  The file was created from a legally purchased screen capture software.  It plays the audio but doesn't sync with the video; moreover, the video is cropped.  I am using Premier Pro CS 4 (sorry, but I couldn't get a response to it in the CS4 thread; I figured it should be relevant to most versions).  Any help would be most appreciated.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 14, 2012 Sep 14, 2012

Copy link to clipboard

Copied

The message you added into http://forums.adobe.com/message/4700297 does have responses to you

Since CS5 and newer are completely different programs (complete rewrite from 32bit to 64bit) you should stick to the CS4 forum, so if you do receive an answer that works, it will work with CS4

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 13, 2012 Dec 13, 2012

Copy link to clipboard

Copied

Colin, I am late in the game but I am trying to follow your instructions. I  am trying to wrap .MOV to .MP4 but my output file is 1KB only.  Can you please see attached screenshot and let me know if I am doing anything wrong here.

Capture.PNG

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 21, 2013 Jan 21, 2013

Copy link to clipboard

Copied

Hi Namilo 14,

i had the same issue. 1KB-Files and error in extracting the streams.

Then I tried to extract only the Videostream (and let the Audiostream recompile):

@ECHO OFF

for %%a in (*.avi) do ffmpeg -i "%%a" -vcodec copy -f mp4 -y "%%~na".mp4

this method worked for me

(please notice there is no -acodec copy in my code above in comparison to colins)

-EDIT-

As i see you have mov-files maybe this could work

@ECHO OFF

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 15, 2016 Nov 15, 2016

Copy link to clipboard

Copied

Men helped your advice, thank you! But I would like to convert and the sound too. Maybe someone will tell what to do?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 18, 2014 Jan 18, 2014

Copy link to clipboard

Copied

Thank you very much, this has helped me.

I didn't want to download a converting software, and wait for hours on end, this has help.

Again, thank you very much!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 13, 2014 Oct 13, 2014

Copy link to clipboard

Copied

Hi Colin,

I was looking for a solution to this problem, googleing for it I found your post... sorted and very happy. I will name my next son after you.

Just a note, adding a line to your bat file like:

Del *.avi

and will clean the folder from the AVI's files not longer needed, avoiding unnecessary disk usage.

P.d.: What is really annoying is that the same file, being AVI, is easily accepted by Adobe Premiere Elements, I can't understand why an allegedly superior product from the same maker can't.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 14, 2015 Jul 14, 2015

Copy link to clipboard

Copied

I did everything as explained to convert avi to mp4 and get stuck with this error:

Could not find tag for codec pcm_mulaw in stream #1, codec not currently supported in container

I don't understand what that message means and what to do about it. Any hints? Thank you!

EDIT: 10 minutes later - I now use Handbrake. Works fine for me with default parameters.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 15, 2016 Nov 15, 2016

Copy link to clipboard

Copied

1.png

When you run a bat file get the following message and the converted file is getting empty. What to do?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines