Author Topic: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync  (Read 10845 times)

PET

  • Newbie
  • *
  • Posts: 9
30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« on: January 28, 2013, 11:17:13 PM »
Hello,

This is my short story.

I'm using DXTory to record video games. I use x264vfw - H.264/MPEG-4 AVC codec to encode.
This allows me to have super small file size for videos at super high quality.

Problem #1.

Adobe Premiere Pro CS6 shows the AVI file as black. I have sound, I have duration, but it's black. I heard that Premiere Pro has problems with H.264 videos in AVI Container.

So I found Avidemux, a program that I have been told can re-convert an AVI to an MP4 without re-encoding.

Problem #2.

I get the video in. Set up the Audo to AAC (both of my channels). Set it to MP4 Muxer and BAM. 3 seconds later I have a small mp4 file with super high quality.
Problem? Video is now 25 fps even that it was recorded at 30 fps. Original video has 30 fps. Avidemux detects it as 30 fps.
But when I "copy" it it get's to 25 fps so the audio get's out of sync. BADLY.


Solution #1

Add Resample FPS filter to 30fps. This solved the problem, however, this means I need to re-encode. This means I am wasting another hour.

Any solution on how to stop Avidemux changing the fps from 30 to 25 when I just "copy" the video?

Thank You

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10974
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #1 on: January 29, 2013, 05:59:23 AM »
Please provide a sample of your *SOURCE* video

styrol

  • Hero Member
  • *****
  • Posts: 533
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #2 on: January 29, 2013, 09:04:41 AM »
Quote
So I found Avidemux
Do you use version 2.6?

PET

  • Newbie
  • *
  • Posts: 9
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #3 on: January 29, 2013, 01:04:57 PM »
Please provide a sample of your *SOURCE* video

I use the latest Avimux version available from the website.

Check this video:

www.gamerpet.com/up/

Original AVI is the original Recording.
Convert MP4 is the converted file that can be edited in premiere. It just has 25 fps.


Thanks

PET

  • Newbie
  • *
  • Posts: 9
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #4 on: February 02, 2013, 01:28:22 AM »
Any help please?

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10974
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #5 on: February 02, 2013, 07:08:28 AM »
I saw that the original frame rate or whatever is 25 fps but the movie is 30 fps
Which player are you using that gives sync problem ?

PET

  • Newbie
  • *
  • Posts: 9
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #6 on: February 04, 2013, 10:53:31 AM »
I'm trying to edit it into Premiere and get the video as 25fps and sound very out of sync.


PET

  • Newbie
  • *
  • Posts: 9
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #7 on: February 13, 2013, 09:16:07 PM »
Help? :(

styrol

  • Hero Member
  • *****
  • Posts: 533
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #8 on: February 13, 2013, 09:45:41 PM »
Quote
Any solution on how to stop Avidemux changing the fps from 30 to 25 when I just "copy" the video?
You might try ffmpeg. The ffmpeg output file has still 30fps and no AV sync issues (tested with "original.avi"):

Code: [Select]
ffmpeg -i original.avi -c:a aac -b:a 128k -strict experimental -async 1 -c:v copy -sn -threads 8 -y original.mp4
XMedia Recode is a GUI program to ffmpeg if you are not familiar to command line.

PET

  • Newbie
  • *
  • Posts: 9
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #9 on: February 13, 2013, 10:58:27 PM »
So basically ... what should I do? I have an original avi that I want to be turned into mp4 as fast as possible so I can edit it into Premiere Pro.

I didn't got this ffmpeg thing... :(

styrol

  • Hero Member
  • *****
  • Posts: 533
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #10 on: February 14, 2013, 12:41:45 AM »
Quote
So basically ... what should I do? I have an original avi that I want to be turned into mp4 as fast as possible
If you wanna have a fast workflow (meaning not running into problems) do not use software which puts h.264 encoded video into AVI container.

As I suggested, install XMedia Recode and do the same as you have done with Avidemux:
(1) Select MP4 as Format
(2) Select the option "Copy video" in Video tab
(3) Select audi track and adjust AAC audio settings (if you have to)
(4) Create Job
(5) Convert

PET

  • Newbie
  • *
  • Posts: 9
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #11 on: February 14, 2013, 03:56:28 AM »
Whooow. This program is awesome.

I managed to do it with it, however framerate was 29,62 and it just showed as a gray bar in Premiere Pro.

The thing is that I can create multiple jobs and just do them at once (re-encoding). I can do this while I sleep.
I had a similar super simple program that I used (Miro Converter or smth like that). Problem was that he always outputted to C:

:|

Thanks for that program.

PET

  • Newbie
  • *
  • Posts: 9
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #12 on: February 15, 2013, 01:24:44 AM »
This is driving me crazy.

I finally managed to do a recording with DXTory + x264 codec. Reason why I use the x264 codec is because of super low file size but high quality. That's the main problem actually because Adobe Premiere Pro has problems opening an AVI with x264. This is why I needed a way to convert it to mp4.

Anyway I used XMedia Recode and re-encoded it using MPEG-4 AVC / H.264. Everything seemed fine however I get this super strange artifacts when I try to re-encode again using Premiere Pro (after I added my music, etc).

www.gamerpet.com/up/

Check that mp4 file.

Any sugestion?

This are the settings I used when I converted:

Mode: Convert
Codec: MPEG-4 AVC / H.264
Framerate: Keep original
Rate Control Mode: Average bitrate
Bitrade: 25000 (I put this in, don't know it's to much or to low)

Profile: Main
Level: Level 4.1
Preset: Medium
Tune: Disable
Frame-Packing: none

Display Mode: Progresive
Color Mode: YUV 4:2:0 Planar 12bpp
Threads: 0(Auto.)


Any suggestions? The video was also super unresponsive in Premiere making problems, etc.

P.S. I'm trying to esport in H.264 like I always do in Premiere.
« Last Edit: February 15, 2013, 01:26:36 AM by PET »

PET

  • Newbie
  • *
  • Posts: 9
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #13 on: February 15, 2013, 01:32:22 AM »
ok, ignore my above topic. It seems I was a bit idiot and I edited everything using the old .avi files :| Going to try to do it with the converted mp4 files.


Lol im an idiot.

styrol

  • Hero Member
  • *****
  • Posts: 533
Re: 30fps AVI get's converted to 25fps mp4 - Audo get's out of sync
« Reply #14 on: February 15, 2013, 06:52:52 AM »
Quote
Anyway I used XMedia Recode and re-encoded it using MPEG-4 AVC / H.264.
I hope not. The copy feature was required (no re-encoding!). Only audio was to be re-encoded using AAC.

Quote
Adobe Premiere Pro CS6 shows the AVI file as black. I have sound, I have duration, but it's black.
Quote
ok, ignore my above topic. It seems I was a bit idiot and I edited everything using the old .avi files
And the AVI is opening suddenly fine in Premiere???