Log in

View Full Version : Audio too fast after encoding with Aften Encoder in "The Film Machine"


Jackie
17th December 2009, 20:15
Hi,

I am currently trying to encode a mkv to DVD using The film machine, the source is 23.96fps, and I want to convert to 50Hz PAL. I use both the free encoders HCEncode for video and aften for audio. However, after conversion, the audio files are both way too fast, in fact it sounds like Mickey Mouse is speaking, so I guess the sound plays at double speed.

Why? How can this be fixed?

Here is the mediainfo:


Allgemein
Vollständiger Name : G:\FILME\test720p.mkv
Format : Matroska
Dateigröße : 4,86 GiB
Dauer : 1h 47min
Gesamte Bitrate : 6 443 Kbps
Kodierungs-Datum : UTC 2009-02-05 05:31:11
Kodierendes Programm : mkvmerge v2.2.0 ('Turn It On Again') built on Mar 4 2008 13:20:25
verwendete Encoder-Bibliothek : libebml v0.7.7 + libmatroska v0.8.1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format-Profil : High@L4.1
Format-Einstellungen für CABAC : Ja
Format-Einstellungen für ReFrame : 5 frames
Muxing-Modus : Container profile=Unknown@4.1
Codec-ID : V_MPEG4/ISO/AVC
Dauer : 1h 47min
Bitrate : 5 034 Kbps
nominale Bitrate : 5 160 Kbps
Breite : 1 280 Pixel
Höhe : 536 Pixel
Bildseitenverhältnis : 2,35:1
Bildwiederholungsrate : 23,976 FPS
Auflösung : 24 bits
Colorimetrie : 4:2:0
Scantyp : progressiv
Bits/(Pixel*Frame) : 0.306
Stream-Größe : 3,79 GiB (78%)
verwendete Encoder-Bibliothek : x264 core 79 r1342 e8501ef
Kodierungseinstellungen : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=7 / psy=1 / psy_rd=1.0:0.2 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-3 / threads=12 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / wpredp=0 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=5160 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Sprache : Englisch

Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Codec-ID : A_AC3
Dauer : 1h 47min
Bitraten-Modus : konstant
Bitrate : 640 Kbps
Kanäle : 6 Kanäle
Kanal-Positionen : Front: L C R, Surround: L R, LFE
Samplingrate : 48,0 KHz
Stream-Größe : 494 MiB (10%)
Titel : German-AC3
Sprache : Deutsch

Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Codec-ID : A_AC3
Dauer : 1h 47min
Bitraten-Modus : konstant
Bitrate : 640 Kbps
Kanäle : 6 Kanäle
Kanal-Positionen : Front: L C R, Surround: L R, LFE
Samplingrate : 48,0 KHz
Stream-Größe : 494 MiB (10%)
Titel : English-AC3
Sprache : Englisch

AlanHK
23rd December 2009, 18:06
I don't use TFM, but I have used HCEnc and Aften to convert a video from NTSC film to PAL for DVD.
Maybe this AVS script I adapted will be helpful.

FFmpegSource("XYZ.mkv")
AudioDub(DirectShowSource("XYZ.mkv"))

#Convert to PAL 25 fps, 48000 Hz
Nfr_num = 25
Nfr_den = 1
Ar = 48000
ResampleAudio(Ar*FramerateNumerator()*Nfr_den, FramerateDenominator()*Nfr_num)
AssumeSampleRate(Ar)
AssumeFPS(Nfr_num, Nfr_den, False)

LanczosResize(720,576)

Jackie
23rd December 2009, 19:41
I don't use TFM, but I have used HCEnc and Aften to convert a video from NTSC film to PAL for DVD.
Maybe this AVS script I adapted will be helpful.

FFmpegSource("XYZ.mkv")
AudioDub(DirectShowSource("XYZ.mkv"))

#Convert to PAL 25 fps, 48000 Hz
Nfr_num = 25
Nfr_den = 1
Ar = 48000
ResampleAudio(Ar*FramerateNumerator()*Nfr_den, FramerateDenominator()*Nfr_num)
AssumeSampleRate(Ar)
AssumeFPS(Nfr_num, Nfr_den, False)

LanczosResize(720,576)

Thanks, but the problem is that my audio is wrong before it is passed on to Aften already, so I guess TFM does some internal processing, which it passes to Aften, and this internal processing is done wrong. Can anybody explain in detail please what TFM exactly does to the audio before it encodes it using Aften?

AlanHK
23rd December 2009, 20:12
Can anybody explain in detail please what TFM exactly does to the audio before it encodes it using Aften?

Why not ask at their forum?
http://forum.dvdrbase.info/forums/207-TheFilmMachine

TFM_TheMask
30th December 2009, 10:39
Before TFM passes the audio to Aften it applies a Tempo effect to do the framerate conversion from 23.976 to 25 fps. TFM uses BASS for that.

The current version of TFM is not updated anymore because I'm working on a fully rewritten new TFM 2. You could try to use my latest tool TFM Audio Tool to do a much better framerate conversion on the audio.

TFM Audio Tool is the "test" version of the audio functions (TFMAudio.dll) that will be implemented in TFM 2.