Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 13th June 2016, 21:02   #1  |  Link
Starduster
Registered User
 
Starduster's Avatar
 
Join Date: Jun 2007
Location: Ann Arbor, MI
Posts: 114
.jpg + .mp3 one length as .avs another after ffmpeg produces file

I have been putting audio behind .jpg's for years. I just started using .mp3 for the audio and am getting results I don't understand. I produce the .avs file and AVIsynth 2.6 with:
Code:
vd = DirectShowSource("Slide7.mp3", fps = 15, convertfps = True)
vd = vd.ssrc(22050)
#fv=ImageSource("slide7.jpg",fps=15,start=1,end=ceil(15*AudioLengthF(vd)/AudioRate(vd))).ConvertToRGB32().Lanczos4Resize(800,450)
fv=ImageSource("slide7.jpg",fps=15,start=1,end=ceil(15*16.5)).ConvertToRGB32().Lanczos4Resize(800,450)
sld7 = AudioDub(fv,vd)
sld7
It plays for 16.5 seconds and stops like it should. Then I create the .flv file using the latest version of ffmpeg with:
Code:
ffmpeg -async 15 -i Slide7.avs -vcodec flv -r 15 -s 800x450 -b:v 512k -ab 96k -ar 22050 -coder 1 -flags +aic+loop+mv4+naq -mpv_flags +cbp_rd -trellis 1 Slide7.flv
But the .flv 29 seconds! What is going on?... how do I fix?
Attached Images
 
Attached Files
File Type: zip Slide7.zip (227.3 KB, 10 views)
__________________
Life is more interesting viewed upside down
Starduster is offline   Reply With Quote
 

Tags
audio encoding, avisynth, ffmpeg

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:09.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.