View Full Version : FLV into Virtualdub
HulkHoganRules
24th March 2013, 20:28
I've been able to import FLV into VirtualDub using AVISynth. It works fine. The avs script is simple.
DirectShowSource("D:\teset5.flv")
However, when seeking in VirtualDub the video is "laggy" and the video produces graphical glitches that are not present in MPC or other media players.
There are two solutions for this. I think.
1. Encode it to AVI first using VirtualDub. I tried this but then the AVI file produces the glitching that VirtualDub had.
2. Use another program to convert lossless AVI first. Any software to do this?
filler56789
24th March 2013, 21:56
3. You can open FLV files directly in VirtualDub through the FLV input plugin:
http://gral.y0.pl/~fcchandler/Plugins/FLV/index.html
4. DirectShowSource works best with the parameters "fps=" and "convertfps=true", since many FLVs have variable frame rate. Besides, a lot depends on how good is the FLV splitter "preferred" by the DirectShow engine.
HulkHoganRules
24th March 2013, 22:21
3. Just installed it. I forgot to say the flv file is h.264 and aac audio so this is giving me a "missing codec (avc1)" message since it does not have support for this. Maybe I'm missing something with that though. I have h.264 enabled in LAV video.
4. Still has issues.
filler56789
25th March 2013, 08:51
VirtualDub requires a VfW-based H.264 codec. You can choose between ffdshow and http://sourceforge.net/projects/x264vfw/. As for AAC, VirtualDub needs http://gral.y0.pl/~fcchandler/AACACM/index.html.
Regarding DirectShowSource: build an adequate GRF file first:
http://avisynth.org/mediawiki/DirectShowSource#Opening_GRF_files
OR give a try to FFmpegSource2 (http://ffmpegsource.googlecode.com/svn/trunk/doc/ffms2-avisynth.html) instead.
alicia.florrick
25th March 2013, 09:55
I've been able to import FLV into VirtualDub using AVISynth. It works fine. The avs script is simple.
DirectShowSource("D:\teset5.flv")
However, when seeking in VirtualDub the video is "laggy" and the video produces graphical glitches that are not present in MPC or other media players.
There are two solutions for this. I think.
1. Encode it to AVI first using VirtualDub. I tried this but then the AVI file produces the glitching that VirtualDub had.
2. Use another program to convert lossless AVI first. Any software to do this?
There are many video converters on the internet, you can google it to get the suitable one.
jmartinr
25th March 2013, 14:20
Try FFMpeg input driver plugin for VirtualDub (https://code.google.com/p/ffinputdriver/downloads/list)
HulkHoganRules
25th March 2013, 17:20
The FFMpeg input driver loaded video but then VirtualDub crashes when you seek. FFMpegSource2 however is perfect!
Is there an easier way to export as AVI other than using Huffyuv (I tried direct stream copy but the file does not play using LAV, Mediainfo states it's just YUV). I also can't get audio even after installing that ACM AAC codec but I can get audio if I go the FLV input plugin route and just select direct stream copy of audio.
Basically all I need is a way to get audio working using FFMpegSource2 and I'm all set. Script is this:
FFmpegSource2("D:\test5.flv")
It's probably a simple solution.
Edit:
FFmpegSource2("D:\test5.flv",atrack=-1)
That is all I need right? :P
nhakobian
25th March 2013, 19:05
Is there an easier way to export as AVI other than using Huffyuv (I tried direct stream copy but the file does not play using LAV, Mediainfo states it's just YUV). I also can't get audio even after installing that ACM AAC codec but I can get audio if I go the FLV input plugin route and just select direct stream copy of audio.
If you are using Direct Stream Copy on your AVS file (which is loaded using FFMS2 internally), then what you are directly copying is raw frames decoded by FFMS2. Virtualdub has no knowledge of the original source file, just the decoded frames that are the output of the AVS script.
In this case, MediaInfo reporting that the video is of type YUV is expected (and the file will be crazy big). Its not uncommon for media player apps on windows to not play these files by default, usually a setting as to be enabled somewhere (LAV should be able to play it though).
StainlessS
26th March 2013, 20:43
perhaps of use:
setlocal
REM Where to Find ffmpeg
set FFMPEG="C:\BIN\ffmpeg.exe"
REM Where to get input file, No terminating Backslash, "." = current directory
set INDIR="."
REM Where to place output file, No terminating Backslash.
set OUTDIR=".\OUTPUT"
FOR %%A IN (*.wmv *.mpg *.avi *.flv *.mov *.mp4 *.m4v *.RAM *.RM) DO (
%FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI"
)
REM Or this for huffYUV
REM FOR %%A IN (*.wmv *.mpg *.avi *.flv *.mov *.mp4 *.m4v *.RAM *.RM) DO (
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec huffyuv -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI"
REM
REM )
Pause
Converts to UT Video, or edit to output HuffYUV
EDIT: Batch .bat or .cmd file.
Mole
28th March 2013, 12:52
Alternatively you can use avidemux and save the flv as mp4.
Then you can use DGIndexNV to index the mp4 file and open with DGSource. No need to mess around with VfW codecs.
If you index with DGIndexNV there won't be any problems with seeking whatsoever.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.