30fps AVI get's converted to 25fps mp4 - Audo get's out of sync

Started by PET, January 28, 2013, 11:17:13 PM

Previous topic - Next topic

PET

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


styrol


PET

Quote from: mean on January 29, 2013, 05:59:23 AM
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


mean

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

I'm trying to edit it into Premiere and get the video as 25fps and sound very out of sync.



styrol

QuoteAny 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"):

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

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

QuoteSo 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

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

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.

PET

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

QuoteAnyway 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.

QuoteAdobe Premiere Pro CS6 shows the AVI file as black. I have sound, I have duration, but it's black.
Quoteok, 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???