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

 

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

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th November 2012, 14:08   #141  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
What mandarinka said. The Avisynth internal caching is an incredible mess.
TheFluff is offline   Reply With Quote
Old 10th November 2012, 18:36   #142  |  Link
george84
Registered User
 
Join Date: Jan 2012
Posts: 104
Error on Install in Ubuntu 12.04

I have ubuntu 12.04 with all the newest updates up to today.

I followed the instructions in https://github.com/avxsynth/avxsynth/wiki/System-Setup but encountered an error.

In ffmpeg
Code:
sudo checkinstall....
I get an error (last lines)
Code:
dpkg: warning: downgrading ffmpeg from 4:0.8.3-0ubuntu0.12.04.1 to 0.11.1-1.
(Reading database ... 244393 files and directories currently installed.)
Preparing to replace ffmpeg 4:0.8.3-0ubuntu0.12.04.1 (using .../ffmpeg_0.11.1-1_i386.deb) ...
Unpacking replacement ffmpeg ...
dpkg: dependency problems prevent configuration of ffmpeg:
 libav-tools (4:0.8.3-0ubuntu0.12.04.1) breaks ffmpeg (<< 4:0.8~) and is installed.
  Version of ffmpeg to be configured is 0.11.1-1.
dpkg: error processing ffmpeg (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 ffmpeg
~
~
~
~
~
~
~
~
This seems to be a version conflict.

Another minor docu problem:

In AVXSynth Build step 2, one should mention that directory has to be changed before this step.

Still I was able to successfully execute the final version test.
george84 is offline   Reply With Quote
Old 10th November 2012, 22:32   #143  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,501
It's just the Debian epoch in the checkinstall step. Add a 5: (or 7: for Quantal users, but you could just go with 7: for Precise, the only thing that matters is that the number is higher than the one used for the stuff in the official repositories) to the beginning of it so it won't conflict with the system packages. This is also required of using ffmpeg from git.

So instead of:
Code:
sudo checkinstall --pkgname=ffmpeg --pkgversion="0.11.1" --backup=no --deldoc=yes --fstrans=no --default
it needs to be
Code:
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:0.11.1" --backup=no --deldoc=yes --fstrans=no --default
qyot27 is offline   Reply With Quote
Old 12th November 2012, 13:13   #144  |  Link
george84
Registered User
 
Join Date: Jan 2012
Posts: 104
Thank you. That worked.
george84 is offline   Reply With Quote
Old 27th January 2013, 20:23   #145  |  Link
@xi@g@me
Registered User
 
Join Date: Jan 2013
Posts: 18
Hi guys,

thank you for porting AviSynth to linux !!!

I downloaded and installed it using the wiki, but it seems I can't use the FFVideoSource() function.

If I run Version() with AVXEdit, it works perfect. But if I run

FFVideoSource(source="video.avi")

(video.avi exists in the current folder), it says "unable to run script", with no additional info.

Is there something I missed ?

Thanks

Last edited by @xi@g@me; 27th January 2013 at 20:24. Reason: corrected ABXEdit to AVXEdit
@xi@g@me is offline   Reply With Quote
Old 27th January 2013, 21:39   #146  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,501
That error looks like either you're trying to run the script as a shell script (you don't do that, it wasn't designed that way) or you don't have FFMS2 installed correctly...or at all.
qyot27 is offline   Reply With Quote
Old 27th January 2013, 21:55   #147  |  Link
@xi@g@me
Registered User
 
Join Date: Jan 2013
Posts: 18
Hi qyot27,

I run the script using EVXEdit, not from the shell (in the other case I would have used avxFrameServer).

I also think the error come from ffms2. How can I check it is correctly installed ?

my ubuntu is the 64 bits version. Perhaps I have an incompability with the ffms2 plugin ? (64 vs. 32)

Last edited by @xi@g@me; 27th January 2013 at 21:56. Reason: spelling mistake correction
@xi@g@me is offline   Reply With Quote
Old 28th January 2013, 00:35   #148  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,501
The output of:
Code:
sudo apt-cache show libffms2-dev
qyot27 is offline   Reply With Quote
Old 28th January 2013, 11:36   #149  |  Link
plesken666
Registered User
 
Join Date: Jun 2010
Posts: 4
Hi

I've just compiled avxsynth on mandriva 2010.2:

1. ffmpeg (0.11 version) as static libraries
PHP Code:
./configure --prefix=/root/avxsynth/ffmpeg
make
make install 
2. ffms as static libraries
PHP Code:
./configure --prefix=/root/avxsynth/ffms PKG_CONFIG_PATH=/root/avxsynth/ffmpeg/lib/pkgconfig
make
make install 
3. AVXSynth
PHP Code:
./configure --prefix=/usr ffms2_CFLAGS="-I/root/avxsynth/ffms/include" ffms2_LIBS="-L/root/avxsynth/ffms/lib -lffms2" libav_CFLAGS="-I/root/avxsynth/ffmpeg/include" libav_LIBS="-L/root/avxsynth/ffmpeg/lib -lavformat -lavcodec -lavdevice -lavfilter -lavutil -lswresample -lswscale -ldl -lva -ljack -lasound -lSDL -lm -pthread -lbz2 -lz -lrt" CXXFLAGS="-march=i686"
make
checkinstall 
--type=rpm make install
rpm 
-ivh /root/rpmbuild/RPMS/i586/avxsynth-4.0-1.i586.rpm 
I've run a AVXEdit, and paste:
PHP Code:
#src = Version()
src=FFVideoSource(source="/home/plesken/Wideo/DivX/Rezerwat.2007.PL.DVDrip.XviD.avi")
#ShowSMPTE(src)
ConvertToYV12 
I've got an error message "Failed processing script from AVXSynth Editor".
What have I been doing wrong?
Is any option for debug?

Plesken

Last edited by plesken666; 28th January 2013 at 11:43.
plesken666 is offline   Reply With Quote
Old 28th January 2013, 15:23   #150  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,501
You didn't load any video. The documentation on the AvxSynth Github Wiki isn't really clear about this (and gives a bad example because it doesn't flesh this out at all), but AviSynth syntax has an implicit last. You're assigning the video to a variable, rather than letting the implicit last deal with it, but then you don't call the variable, resulting in a script that won't work at all. You either need to:

A) Get rid of the src= assignment entirely, as it's redundant in this case (as is the source=).
B) Call the src variable before calling ConvertToYV12(), which should be unnecessary anyway if you're dealing with MPEG-4 ASP.

Code:
src=FFVideoSource("source.ext")
src.ConvertToYV12()
or
Code:
src=FFVideoSource("source.ext")
src
ConvertToYV12()
would both work. As would:
Code:
FFVideoSource("source.ext")
ConvertToYV12()
or in this case,
Code:
FFVideoSource("source.ext")
qyot27 is offline   Reply With Quote
Old 28th January 2013, 16:45   #151  |  Link
plesken666
Registered User
 
Join Date: Jun 2010
Posts: 4
If I put only:

[HTML]
FFVideoSource("/home/plesken/Wideo/DivX/Rezerwat.2007.PL.DVDrip.XviD.avi")
[/HTML]

It still didn't work with the same error...
Any ideas?
plesken666 is offline   Reply With Quote
Old 28th January 2013, 16:48   #152  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by plesken666 View Post
FFVideoSource("/home/plesken/Wideo/DivX/Rezerwat.2007.PL.DVDrip.XviD.avi")
Discussion of downloaded material is not allowed at Doom9 per forum rule 6.

@all

No further help is to be given on this issue. Thank you.
Guest is offline   Reply With Quote
Old 28th January 2013, 18:56   #153  |  Link
@xi@g@me
Registered User
 
Join Date: Jan 2013
Posts: 18
@ qyot27 :

here are the outputs :

sudo apt-cache show libffms2-dev :

Package: libffms2-dev
Priority: optional
Section: universe/libdevel
Installed-Size: 163
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
Architecture: amd64
Source: ffms2
Version: 2.17-1
Depends: libffms2-2 (= 2.17-1), libavformat-dev, libavcodec-dev, libswscale-dev, libpostproc-dev, libavutil-dev, zlib1g-dev
Recommends: ffmsindex
Filename: pool/universe/f/ffms2/libffms2-dev_2.17-1_amd64.deb
Size: 38170
MD5sum: bef398a6a81103c8e567aab58fafecbd
SHA1: e2b12b1bca361a5365c06266ebe1bee84bed7d4b
SHA256: aa918b245699552e50aeb564327ca1382508cb58e650d70852c7ced53edc3f8a
Description-en: Development files for libffms2
A cross platform ffmpeg wrapper library, and some additional content for
things ffmpeg doesn't handle well. A more friendly API and an easy way to
say "open and decompress this, I don't care how".
.
This package contain headers and other files needed to compile and link
against libffms2.
Homepage: http://code.google.com/p/ffmpegsource/
Description-md5: 44f41716b4c49809a59c24b888b4d800
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu





sudo apt-cache show ffms2 :

Package: ffms2
Status: install ok installed
Priority: extra
Section: checkinstall
Installed-Size: 976
Maintainer: root@axiagame-linux
Architecture: amd64
Version: 2.17-1
Provides: ffms2
Description: Package created with checkinstall 1.6.2



I have seen the posts above, so I would like to add that "video.avi" is a video I captured with DxTory on a video game. I wish to create a whole process of encoding in command line so I can relay this task to my seconday PC equiped with linux.

I need to use avxSynth as the captured video has a VFR (FFVideoSource with fps parameter set), and I also need to do the encoding on a x64 machine since the source video file is very heavy and 2GB of RAM is not enough for x264 encoder.

I had a new look and the exact error message is :
"Failed processing script from AVXSynth Editor" as it was for plesken666

thank you
@xi@g@me is offline   Reply With Quote
Old 28th January 2013, 19:26   #154  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,501
Are you sure that libavxffms2.so was built when you built AvxSynth itself? Do you see it in the result of
Code:
ls -R /usr/local/lib/avxsynth
If it didn't build libavxffms2, then that's the source of the issue. Also, I'd recommend trimming it down to only one copy of FFMS2: either the one from the repos, or the one you compiled yourself (preferably the latter, since it makes ffmsindex available without having to worry about installing it separately). There also might be an off-chance of needing to use 'sudo ldconfig', which would come after installing AvxSynth or anything else that uses shared libraries.

Concerning the 64-bit situation, the only thing you need to be aware of is that 64-bit compiles need --enable-pic (or equivalent) to be specified where possible so that everyone compiles cleanly. For FFmpeg, it's --enable-pic, for FFMS2 and AvxSynth, it's --with-pic (although since they both use autotools, it might be used by default on 64-bit).
qyot27 is offline   Reply With Quote
Old 28th January 2013, 20:30   #155  |  Link
@xi@g@me
Registered User
 
Join Date: Jan 2013
Posts: 18
here is what I got :

axiagame@axiagame-linux:~$ ls -R /usr/local/lib/avxsynth/
/usr/local/lib/avxsynth/:
libautocrop.so libavxffms2.so libavxframecapture.so libavxsubtitle.so

the plug-in seems to be present.

I did a file on each of the 4 DLLs, they are all 64 bit ELF binaries
@xi@g@me is offline   Reply With Quote
Old 28th January 2013, 21:29   #156  |  Link
sl1pkn07
Pajas Mentales...
 
Join Date: Dec 2004
Location: Spanishtán
Posts: 497
working for me

ffmpeg 1.0.1 form repository https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/ffmpeg
ffmpegsource 2.17 https://aur.archlinux.org/packages/ff/ffmpegsource/PKGBUILD
avxsynth git https://aur.archlinux.org/packages/av/avxsynth-git/PKGBUILD

http://wstaw.org/m/2013/01/28/plasma-desktopjt3071.png

greetings
sl1pkn07 is offline   Reply With Quote
Old 29th January 2013, 00:02   #157  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,501
I was really just thinking about this part:
Quote:
Originally Posted by @xi@g@me View Post
I have seen the posts above, so I would like to add that "video.avi" is a video I captured with DxTory on a video game. I wish to create a whole process of encoding in command line so I can relay this task to my seconday PC equiped with linux.
Does opening the file with FFVideoSource under AviSynth on Windows or Wine work? I'm starting to think it's a libavcodec issue, especially depending on which release of Ubuntu you're using (as in, 12.04, 12.10, etc.) and if you just installed the 'ffmpeg' from the repositories instead of compiling it yourself.

I can almost bet that the 'ffmpeg' from the repositories doesn't support Dxtory-captured content, because it's really the fork, and the commit that specifically says it adds support for Dxtory only exists in mainline FFmpeg (where it was added in December 2011).


The solution, in any case, is very likely to be to compile FFmpeg, then recompile FFMS2, then finally recompile AvxSynth, and try again.
qyot27 is offline   Reply With Quote
Old 30th January 2013, 20:24   #158  |  Link
@xi@g@me
Registered User
 
Join Date: Jan 2013
Posts: 18
OK, here is the point :

I tried to open with virtual dub on windows (using an avs script with the same contents). It lags for a long time (indexing ?) then tell me : "insanity detected : empty frame returned"

I tried to directly index the video file using ffmsindex.exe (still from windows), and it tells me the index file has been correctly created, but the files is only 486 octets length... If I try to repoen with virtual dub, I still get the same problem after the same time.

(with avxsynth, the error is immediate when I try to open the file)

I removed ffms2, ffmpeg, libffms2-dev and avxsynth to try to recompile everything (and the avxsynth lib directory), but it seems that the git repository of ffmpeg provided by sl1pkn07 does nor work (git tells me the server shall call get update-server-cache because some file is missing).

I'll wait a bit, hoping the git issue will not last and try to recompile everything after that.
@xi@g@me is offline   Reply With Quote
Old 30th January 2013, 20:31   #159  |  Link
sl1pkn07
Pajas Mentales...
 
Join Date: Dec 2004
Location: Spanishtán
Posts: 497
no need make git pull in ffmpeg tarball. if need ffmpeg from git use git://source.ffmpeg.org/ffmpeg.git. but i don't know if working with ffms2 2.17 (avx don't build with ffms2 svn)
sl1pkn07 is offline   Reply With Quote
Old 30th January 2013, 21:00   #160  |  Link
@xi@g@me
Registered User
 
Join Date: Jan 2013
Posts: 18
OK, I thought there were git repositories, but if I go on the links I find some sort of script.

I'm not an expert of linux, how do I run those scripts ? I bet they are the scripts needed to build & install each package ?
@xi@g@me is offline   Reply With Quote
Reply

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 14:37.


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