PDA

View Full Version : White videos in QuickTime with the iPod profile


B. W.
24th June 2007, 16:39
I'm sorry for bring back an old issue, but I'm ready to rip my hair out.

I apologize if this is the wrong forum, but I couldn't find a better one.

Basically, I can't certain content without the QuickTime displaying a white frame for the video, but playing the audio. The encoded files play fine in Media Player Classic (via ffdshow) and on my iPod.

The interesting this is this might be a bug in the way Avisynth detects and handles frame rates (or in x264 - I just realize every program that works flawlessly use ffmpeg), and a limitation of QuickTime. I tested out my profile by encoding a 30 second clip, which played fine in QuickTime, then encoded the episodes of Family Guy for the season. It might be a coincidence, but this is all 29FPS media (but other content hover just under that average FPS mark plays fine). On the Mac side, Handbreak and VobSub encode the videos without a problem.

Right now, I'm using Xvid4PSP. The front end doesn't matter, because the problem is present in any program that uses Avisynth (for instance, 3PG Converter does not exhibit the issue).

I would love to get this problem fixed, because my family just bought an Apple TV (which uses QuickTime as the decoder, so problems ensued).

Edit: If it helps, here's the movie information from QuickTime:

http://img78.imageshack.us/img78/3803/statusrt5.jpg

When the video plays, the 'Playing FPS' remains at zero.

B. W.
26th June 2007, 00:20
Some more information:

The same settings are used with all videos. Some play fine, others don't
The issue only occurs when Avisynth is used. Like I said in my first post, programs like 3GP Converter, Videora, Handbrake, and VisualHub don't have any problems
With Family Guy at least, I've tried changing the frame rate of the converted video to 23.976, with no effect


This is the standard AVS script I'm using:

#Load plugins
loadplugin("C:\Program Files\Winnydows\XviD4PSP\apps\DGMPGDec\DGDecode.dll")
loadplugin("C:\Program Files\Winnydows\XviD4PSP\apps\AviSynthPlugins\NicAudio.dll")
loadplugin("C:\Program Files\Winnydows\XviD4PSP\apps\AviSynthPlugins\TomsMoComp.dll")

#Load video and audio
video = MPEG2Source("D:\Temp\Family Guy\Season 1\1 - Death Has a Shadow.index\1 - Death Has a Shadow.d2v",cpu=0)
audio = NicAC3Source("D:\Temp\Family Guy\Season 1\1 - Death Has a Shadow.index\1 - Death Has a Shadow T01 2_0ch 192Kbps DELAY 0ms.ac3")

#Detect audio channels
channels = Audiochannels(audio)

#Try apply DolbySurround Downmix II
daudio=ConvertAudioToFloat(audio)
fl = (channels>=1) ? GetChannel(daudio, 1) : 0
fr = (channels>=2) ? GetChannel(daudio, 2) : 0
c = (channels>=3) ? GetChannel(daudio, 3) : 0
sl = (channels>=5) ? GetChannel(daudio, 5) : 0
sr = (channels==6) ? GetChannel(daudio, 6) : 0
sr = (channels==5) ? GetChannel(daudio, 5) : sr
ssl = (channels>=5) ? MixAudio(sl, sr, 0.2818, 0.1627).Amplify(-1.0) : 0
fl_c = (channels>=5) ? MixAudio(fl, c, 0.3254, 0.2301) : 0
ssr = (channels>=5) ? MixAudio(sl, sr, 0.1627, 0.2818) : 0
fr_c = (channels>=5) ? MixAudio(fr, c, 0.3254, 0.2301) : 0
l = (channels>=5) ? MixAudio(ssl, fl_c, 1.0, 1.0) : 0
r = (channels>=5) ? MixAudio(ssr, fr_c, 1.0, 1.0) : 0
audio = (channels>=5) ? MergeChannels(l, r) : audio

#Remove possible LFE channel
l_ch = (channels==3) ? GetChannel(audio, 1) : 0
r_ch = (channels==3) ? GetChannel(audio, 2) : 0
audio = (channels==3) ? MergeChannels(l_ch, r_ch) : audio

#Correct audio bits
audio = (Audiobits(audio)==16) ? audio : audio.ConvertAudioTo16bit()

#Sample of correct resample
audio = (Audiorate(audio)==48000) ? audio : audio.SSRC(48000)

#Remove interlace effect
video = video.TomsMoComp(1,5,1)

#Sample of correct color conversion
video = (isYV12(video)==false) ? ConvertToYV12(video) : video

#Change movie resolution
video = video.Lanczos4Resize(640, 480)

#Sample of correct framerate change
video = video.ChangeFPS(23.976)

#Mux video and audio
AudioDub(video, audio)



Edit: Oddly enough, if the video is encoded with the 5G iPod profile (320x240), it can play. Anyone think this is a problem with the newer 5.5G profile?