Log in

View Full Version : AviSynth+Mp4 with AVC1 video issue


ApPojken
13th December 2010, 13:56
Hi,

I just can't seem to get an .avs file working with mp4 (avc1 video). I've tried on two machines with different OS's (vista and 2k3) and both fails. Here is where I am:

- The mp4 file plays in WMP without any issues.
- The AVS script using DirectShowSource fails and complains about not finding a combination of filters.
- I have installed the latest FFDshow
- I first tried with mp4 splitter and then hali media splitter. None of them work.

What am I doing wrong?

Chikuzen
13th December 2010, 17:06
Use ffms2 (http://forum.doom9.org/showthread.php?t=127037) instead of DirectShowSource.

ApPojken
13th December 2010, 17:54
Use ffms2 (http://forum.doom9.org/showthread.php?t=127037) instead of DirectShowSource.

Placed the .dll file in the plugins directory and tried using
FFVideoSource("video.mp4")

When trying to play it, I get:
Windows Media Player cannot play the file. The player might not support the file type or a required codec might not be installed on your computer.

ffdshow is still installed and again I tried unsuccessfully with both the mp4 splitter and the matroska splitter.

zmaster
13th December 2010, 18:46
I can recommend three things:
1) Try to open the AviSynth script contains only the Version()
2) Try method dgavcindex.
3) Try to open other files avc/.mp4.

ApPojken
13th December 2010, 20:51
I can recommend three things:
1) Try to open the AviSynth script contains only the Version()
2) Try method dgavcindex.
3) Try to open other files avc/.mp4.

1) Says "AviSynth 2.58, build:Dec 22 2008 [08:46:51]". I'll check the other machine tomorrow. May have the latest on it.

2) dgavcindex doesnt expect an mp4 file (multiplexed file).

3) I can try opening other files but the one I am testing on plays back fine in Windows Media Player and Quicktime player so there shouldn't be a problem with it.

Let me double check tomorrow.

zmaster
13th December 2010, 21:27
1)Says "AviSynth 2.58, build:Dec 22 2008 [08:46:51]". I'll check the other machine tomorrow. May have the latest on it.This was to check the work of AviSynth. :D

You do not need to convert your videos? By the way, the script was called to VirtualDub, MeGUI, etc? When the script is opened in VDub, but does not opened in the player, that's another problem.

ApPojken
14th December 2010, 10:45
You do not need to convert your videos? By the way, the script was called to VirtualDub, MeGUI, etc? When the script is opened in VDub, but does not opened in the player, that's another problem.

So, that's interesting. I can open the avs script in meGUI without any issues. But I am using a licensed third party transcoder for what I need to do which seem to suffer the same issues as the player. (I've used avs scripts for other file formats successfully earlier with this tool)

Any ideas from here?

creaothceann
14th December 2010, 16:11
Encode to a lossless intermediary file, for example with the Ut codec (http://www.videohelp.com/tools/Ut_Video_Codec_Suite) ("YUV420" is for YV12 material).

ApPojken
14th December 2010, 16:23
Encode to a lossless intermediary file, for example with the Ut codec (http://www.videohelp.com/tools/Ut_Video_Codec_Suite) ("YUV420" is for YV12 material).

Thanks for the reply but unfortunately I need this operation to be quite quick. An intermidiate step would double the transcode time.

Chikuzen
14th December 2010, 18:06
Thanks for the reply but unfortunately I need this operation to be quite quick. An intermidiate step would double the transcode time.

VirtualDub's frameserver
ffdshow's makeAVIS
VFAPI Codec
AVSF (http://forum.doom9.org/showthread.php?t=133313)
stdout via AVS2yuv/ AVS2pipe/ ffmpeg/ etc

there are many ways.
but, I think that making an intermadiate file is fastest in most cases...

creaothceann
14th December 2010, 21:07
An intermediate step would double the transcode time.

Only if saving and reading the file takes just as long as the rest of the steps combined.

(Btw. if you have enough RAM installed and if it's a short clip then you can create (http://www.ltr-data.se/opencode.html/#ImDisk) and use a RAM disk.)

ApPojken
15th December 2010, 09:20
there are many ways.
but, I think that making an intermadiate file is fastest in most cases...

Sure but what I fail to understand is how I can play the mp4 file using direct show in WMP and Graph Edit but not using DirectShowSource in Avisynth. I thoght Avisynth just frame served using Direct Show? Why is it not working in first place?

ApPojken
15th December 2010, 09:22
Only if saving and reading the file takes just as long as the rest of the steps combined.

(Btw. if you have enough RAM installed and if it's a short clip then you can create (http://www.ltr-data.se/opencode.html/#ImDisk) and use a RAM disk.)

I will need to get this working for a large variety of files. The one I am testing on is more than an hour and wouldn't fit on a RAM disk if uncompressed. I can look into unwrapping the file but I'd really like to get to the bottom why Avisynth isn't working.

Chikuzen
15th December 2010, 09:42
Sure but what I fail to understand is how I can play the mp4 file using direct show in WMP and Graph Edit but not using DirectShowSource in Avisynth. I thoght Avisynth just frame served using Direct Show? Why is it not working in first place?

this?
http://avisynth.org/mediawiki/FAQ_YV12#I_installed_AviSynth_v2.5_and_get_the_following_error_message:_.22Couldn.27t_locate_decompressor_for_format_.27YV12.27_.28unknown.29..22.3F

ApPojken
15th December 2010, 11:20
this?
http://avisynth.org/mediawiki/FAQ_YV12#I_installed_AviSynth_v2.5_and_get_the_following_error_message:_.22Couldn.27t_locate_decompressor_for_format_.27YV12.27_.28unknown.29..22.3F

You may be on the right track. Not sure how the divx thing would apply to my settings though. I tried putting a graph edit file through and got the following error in Avisynth:

DirectShowSource: GRF file does not have a compatible open video pin.
Graph must have 1 output pin that will bid RGB24, RGB32, ARGB, YUY2 or YV12

Edit: On the other hand, I can't get this one to work in meGUI either.

creaothceann
15th December 2010, 18:10
There's a chance that installing CCCP (http://www.cccp-project.net/) or K-Lite (http://www.codecguide.com/download_kl.htm) will reset your configuration.