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. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link |
|
Registered User
Join Date: Apr 2010
Posts: 175
|
Play flv and mp4 files in the same script
Hi all,
It seems hard to me open flv and mp4 files and play them in the same script like : Code:
a = DirectShowSource("file_1.flv").BicubicResize(540,360)
b = DirectShowSource("file_2.flv").BicubicResize(540,360)
c = DirectShowSource("file_3.mp4").BicubicResize(540,360)
last = a + b + c
Sharpen(last, 0.50)
ConvertToRGB(last)
The sound is ok by-the-way. Thanks a lot, L |
|
|
|
|
|
#3 | Link |
|
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,442
|
Since FFVideoSource() does not index the audio, FFAudioSource() will have to remake the index if called after FFVideoSource(). Therefore, it is faster to open the audio first.
This can be quite significant for large source files. audio = ffaudiosource("file.mp4") video = ffvideosource("file.mp4") AudioDub(video, audio) or use the FFmpegSource2() convenience function (from ffms2.avsi) which does it all for you: FFmpegSource2("file.mp4", atrack=-1) |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|