View Single Post
Old 3rd September 2009, 03:10   #1  |  Link
ryujin
Registered User
 
Join Date: May 2009
Location: Japan
Posts: 2
Missing ~4 sec audio when using yadif

#############################
The original file is a Canopus avi file:
#############################

Input #0, avi, from '3109000451.avi':
Duration: 00:57:08.02, start: 0.000000, bitrate: 147477 kb/s
Stream #0.0: Video: CUVC / 0x43565543, 1920x1080, 29.97 tbr, 29.97 tbn, 29.97 tbc
Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s

##############################
My avisynth script:
##############################
LoadPlugin("DirectShowSource.dll")
DirectShowSource("3109000451.avi")
ConvertToYV12
Trim(0, -0)
LoadCplugin("yadif.dll")
pointresize(width,height+(4), 0,-2, width,height+(4))
Yadif(mode=1, order=0)
Crop(0,2,-0,-2)
Crop(0, 0, -0, -0)
AddBorders(0, 0, 0, 0, $000000)


##############################
The encoding command
##############################
ffmpeg -i "3109000451.avi.avs" -threads 0 -vcodec libx264 -vpre default -r 29.97 -pix_fmt yuv420p -padtop 0 -padbottom 0 -padleft 0 -padright 0 -croptop 0 -cropbottom 0 -cropleft 0 -cropright 0 -sws_flags lanczos -s 1280x720 -b 2000000 -bt 2000000 -pass 2 -acodec aac -f mp4 "3109000451.mp4" -map 0:0 -map 0:1


##############################
The problem
##############################

When the original file is larger than 30 minutes the resulting mp4 has a hard silence at the last four seconds of the clip.

I tried a lot of diferent combinations and when removing the yadif the problem disappears.

###############################
The question
###############################

Has anyone experienced this? is this a bug of yadif, avisynth or ffmpeg? I tried with three different versions of ffmpeg including latest svn as today and the result is the same. I bet for yadif but I do not want to remove it as I get the best deinterlaced picture with it.


regards....
ryujin is offline   Reply With Quote