View unanswered posts | View active topics It is currently Tue, 2018/12/18 12:01 pm



Reply to topic  [ 5 posts ] 
QTSource ProRes 422 Plays too fast 
Author Message

Joined: Tue, 2011/08/30 6:40 pm
Posts: 3
Unread post QTSource ProRes 422 Plays too fast
Hello Tateu

Thanks for keeping the QTSource plugin for Avisynth going.

I am trying to open QT ProRes YUV 422 on Windows 7 64bit w AviSynth 2.5.8 (32bit) and the latest QTSource.

When Playing back the AviSynth scripts or encoding them, they always playback at 8x normal speed. A video of 32 seconds reports a length of 4 seconds and plays back too fast.

Have you seen this behavior? Do you know of a fix?

Which version of Avisynth do you recommend for this process? (2.5.8, 2.6, Unofficial builds MT or 64bit)


Thanks,
Joel


P.S. Here is the MediaInfo on the file.
General
Complete name : C:\Encoder\tesi-110713_ales_18-left.mov
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt
File size : 689 MiB
Duration : 32s 783ms
Overall bit rate : 176 Mbps
Encoded date : UTC 2011-08-16 08:45:02
Tagged date : UTC 2011-08-16 08:46:36
Writing library : Apple QuickTime
Original source medium : ALES_3D
Media/UUID : 58B06BB3-B9CC-4DF4-9C22-6D8425020FB0

Video
ID : 1
Format : ProRes
Format profile : High
Codec ID : apch
Duration : 32s 783ms
Bit rate mode : Variable
Bit rate : 176 Mbps
Width : 1 888 pixels
Original width : 1 920 pixels
Height : 1 062 pixels
Original height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:2
Scan type : Progressive
Bits/(Pixel*Frame) : 3.668
Stream size : 689 MiB (100%)
Language : English
Encoded date : UTC 2011-08-16 08:45:02
Tagged date : UTC 2011-08-16 08:46:36

Menu
ID : 2
Duration : 32s 783ms
Language : English
Encoded date : UTC 2011-08-16 08:46:36
Tagged date : UTC 2011-08-16 08:46:36


Wed, 2011/08/31 9:49 am
Profile
Site Admin

Joined: Sun, 2005/04/03 7:02 pm
Posts: 307
Location: Los Angeles, CA USA
Unread post Re: QTSource ProRes 422 Plays too fast
No, I have not seen that myself. A user at Doom9's forum recently reported the same issue (a 90 minute file showed as 12 minutes).

I have opened ProRes files encoded on my Final Cut system with no issues at all. I have received a few ProRes files from clients that won't open at all with color=1 (RGB32) but work fine with color=0 (RGB24), color=2 and color=4 (YUY2). Is there any chance you can get me a small sample file that exhibits this problem?

I have used the official 2.58 and I am currently using a custom build of 2.58 MT. I have never tried 2.6 so I don't know if it works.


Wed, 2011/08/31 10:26 am
Profile WWW

Joined: Tue, 2011/08/30 6:40 pm
Posts: 3
Unread post Re: QTSource ProRes 422 Plays too fast
I sent you a PM with links. Thanks again.
-Joel


Wed, 2011/08/31 6:20 pm
Profile
Site Admin

Joined: Sun, 2005/04/03 7:02 pm
Posts: 307
Location: Los Angeles, CA USA
Unread post Re: QTSource ProRes 422 Plays too fast
I'll answer here for the benefit of others...

VirtualDub, ffmpeg and After Effects all open the sample files with the correct duration. As you found out, however, Windows Media Player and a few other tools do not. FPS in video files actually is not stored as a single number, most of the time. It is stored as two numbers: numerator / denominator. In Quicktime that can be seen as TimeScale / SampleDuration.

Your sample files that are 23.976 fps have a TimeScale 0f 23,976 and a SampleDuration of 1,000 (23,976 / 1,000 = 23.976). For some reason that I can no longer remember (I wrote it back in December of 2008) I multiply the TimeScale and SampleDuration by 10,000 in QTInput. This results in the same final fps of 23.976 but the extremely large TimeScale value of 239,760,000 must confuse Windows Media Player and a few other tools.

For 25 and 29.97 fps files, the Quicktime TimeScale is usually 2500 and 2997 respectively and when QTinput multiplies by 10,000 the resulting TimeScale is not large enough to cause problems for Windows Media Player.


I removed the multiply by 10,000 and compiled a test version of QTInput. Windows Media Player opened the files with the correct duration using this test version. Since I can't remember why the 10,000 is there, I'll go ahead and remove it and release a new version sometime in the next few days.

Until then, an easy fix is just to use AssumeFPS, which will use an internal AviSynth function to correct the abnormally high TimeScale value

QTInput("Yourfile.mov").AssumeFPS(23.976)


Wed, 2011/08/31 7:35 pm
Profile WWW

Joined: Tue, 2011/08/30 6:40 pm
Posts: 3
Unread post Re: QTSource ProRes 422 Plays too fast
That's great news. Thanks for the work around.

-Joel


Fri, 2011/09/02 9:30 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software