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 12th March 2012, 00:16   #21  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
I see a hang at the end of stream, not a segfault. Let a stream play to the end. Then the Mplayer window cannot be closed with its X button. But it can if the video is still playing.
Guest is offline   Reply With Quote
Old 12th March 2012, 00:54   #22  |  Link
Yellow_
Registered User
 
Join Date: Sep 2009
Posts: 378
It segfaults for me with DV, HDV & h264 AVC, with a simple one line script just using FFVideoSource("path to file") played to the end as here, a 475 frame stream, preparing to fetch frame 475, Reached end of stream at frame #475.

Quote:
INFO : Module=appInterface,Address=src/avxSynthAppInterface.cpp:444,Type=Info,Message=Preparing to fetch frame #475 (475 frame of the stream)
INFO : Module=core::main,Address=src/core/main.cpp:921,Type=Info,Message=0x2ba6c70->CAVIStreamSynth::Read(1 samples at 475)
INFO : Module=core::main,Address=src/core/main.cpp:922,Type=Info,Message= buffer: 3551232 bytes at 0x7f52b20cf010
ALERT : Module=appInterface,Address=src/avxSynthAppInterface.cpp:453,Type=Alert,Message=Reached end of stream at frame #475
Segmentation fault
Other info from the console:

Quote:
INFO : Module=avssources,Address=src/avssources.cpp:39,Type=Info,Message=Creating AvisynthVideoSource

INFO : Module=avssources,Address=src/avssources.cpp:186,Type=Info,Message=AvisynthVideoSource creation successful

INFO : Module=core::expression,Address=src/core/parser/expression.cpp:551,Type=Info,Message=Call: histogram
INFO : Module=core::cache,Address=src/core/cache.cpp:717,Type=Info,Message=Cache:19fde80: Setting cache hints (hints:2, range:999 )
INFO : Module=core::main,Address=src/core/main.cpp:634,Type=Info,Message=0x1c12ba0->CAVIStreamSynth(video)
INFO : Module=core::main,Address=src/core/main.cpp:1037,Type=Info,Message=0x1c12ba0->CAVIStreamSynth::ReadFormat() (video)
INFO : Module=core::main,Address=src/core/main.cpp:1037,Type=Info,Message=0x1c12ba0->CAVIStreamSynth::ReadFormat() (video)
INFO : Module=appInterface,Address=src/avxSynthAppInterface.cpp:92,Type=Info,Message=Retrieved video info
INFO : Module=appInterface,Address=src/avxSynthAppInterface.cpp:93,Type=Info,Message========================
INFO : Module=appInterface,Address=src/avxSynthAppInterface.cpp:94,Type=Info,Message=Video width = 2176
INFO : Module=appInterface,Address=src/avxSynthAppInterface.cpp:95,Type=Info,Message=Video height = 1088
INFO : Module=appInterface,Address=src/avxSynthAppInterface.cpp:119,Type=Info,Message=Color format = YV12
INFO : Module=appInterface,Address=src/avxSynthAppInterface.cpp:122,Type=Info,Message=Bits per pixel = 12
INFO : Module=appInterface,Address=src/avxSynthAppInterface.cpp:123,Type=Info,Message=Image bytes = 3551232
INFO : Module=appInterface,Address=src/avxSynthAppInterface.cpp:444,Type=Info,Message=Preparing to fetch frame #0 (0 frame of the stream)
INFO : Module=core::main,Address=src/core/main.cpp:921,Type=Info,Message=0x1c12ba0->CAVIStreamSynth::Read(1 samples at 0)
INFO : Module=core::main,Address=src/core/main.cpp:922,Type=Info,Message= buffer: 3551232 bytes at 0x7f9e64c17010
INFO : Module=core::cache,Address=src/core/cache.cpp:411,Type=Info,Message=Cache:19fde80: generating frame 0, cache from 475 to -1
INFO : Module=core::avxsynth,Address=src/core/avxsynth.cpp:1838,Type=Info,Message=Frame buffer memory used: 3551296
INFO : Module=core::cache,Address=src/core/cache.cpp:411,Type=Info,Message=Cache:1c138a0: generating frame 0, cache from 475 to -1
INFO : Module=core::avxsynth,Address=src/core/avxsynth.cpp:1838,Type=Info,Message=Frame buffer memory used: 6684800
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
And Mplayer version is 'MPlayer SVN-r34338-4.5.2 (C) 2000-2011 MPlayer Team'

Playing any of the test videos above via a CLI Mplayer ends cleanly with Exiting... (End of file) and back to command prompt, no segfault so don't think MPlayer is the problem. But also assume this is using my system ffmpeg install not libav built for AVXSynth.

Mplayer console output:

Quote:
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 1920x1088 => 1920x1088 Planar YV12
A: 3.3 V: 2.3 A-V: 0.998 ct: 0.030 0/ 0 119% 19% 1.6% 50 0
Quote:
There was a typo in the setup instructions. It referred to 2.17, but the install instruction had pkgversion="2.16".
Ok, so what to do here? Luma is scaling. :-(

Last edited by Yellow_; 12th March 2012 at 01:11.
Yellow_ is offline   Reply With Quote
Old 12th March 2012, 01:17   #23  |  Link
pbristow
Registered User
 
pbristow's Avatar
 
Join Date: Jun 2009
Location: UK
Posts: 269
Excellent timing, guys! The more I read about Windows 8, the more I think "Well, that's the end of serious computing on the Windows platform..." =\ Now I know that at least AVIsynth still has a future. (Phew!)
pbristow is offline   Reply With Quote
Old 12th March 2012, 03:20   #24  |  Link
mandarinka
Registered User
 
mandarinka's Avatar
 
Join Date: Jan 2007
Posts: 729
Well... it also relies on the treasure of plugins, and thus you could say that its future is its past - and until you are able to load (or perhaps port) dll plugins and use masktools/mvtools (I guess that qtgmc will be the ultimate test, heh), that means our dear Windows (8 is not going to be that bad).
mandarinka is offline   Reply With Quote
Old 12th March 2012, 19:06   #25  |  Link
videophool
Registered User
 
Join Date: Nov 2008
Posts: 91
Quote:
Originally Posted by Yellow_ View Post
It segfaults for me with DV, HDV & h264 AVC, with a simple one line script just using FFVideoSource("path to file") played to the end as here, a 475 frame stream, preparing to fetch frame 475, Reached end of stream at frame #475.
We believe that the segfault is resolved. We will update the source shortly.

http://code.google.com/p/avxsynth/is...&ts=1331575727

Last edited by videophool; 12th March 2012 at 19:09.
videophool is offline   Reply With Quote
Old 12th March 2012, 19:14   #26  |  Link
videophool
Registered User
 
Join Date: Nov 2008
Posts: 91
Quote:
Originally Posted by neuron2 View Post
I see a hang at the end of stream, not a segfault. Let a stream play to the end. Then the Mplayer window cannot be closed with its X button. But it can if the video is still playing.
AvxEdit does not hang but there is no way to close the MPlayer window. It is annoying. http://code.google.com/p/avxsynth/is...&ts=1331576013
videophool is offline   Reply With Quote
Old 12th March 2012, 21:35   #27  |  Link
Wilbert
Super Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,375
@videophool,

Great stuff!!! Guess i will need to install Ubuntu again. This link contains a list of bugs in v2.58 (most of them are fixed in v2.60/CVS), perhaps you can backport these fixes into your builds.
Also which filters don't have a C++ version?
Wilbert is offline   Reply With Quote
Old 13th March 2012, 00:57   #28  |  Link
videophool
Registered User
 
Join Date: Nov 2008
Posts: 91
Quote:
Originally Posted by Wilbert View Post
@videophool,
Great stuff!!! Guess i will need to install Ubuntu again. This link contains a list of bugs in v2.58 (most of them are fixed in v2.60/CVS), perhaps you can backport these fixes into your builds.
We will check the bug list, and start working on the critical issues. Hoping that the AviSynth community will join in the effort to move this project forward, as we are a small team, and will be focused mostly on issues that block our deployment.


Quote:
Originally Posted by Wilbert View Post
Also which filters don't have a C++ version?
You can check the wiki for the list of ported built-in functions (many are untested). Third-party will need to be ported. We looked at a few, and most were developed with inline assembly, and thus porting was not trivial. We are hoping that the authors of many of the third-party plugins will be motivated to port their work. http://code.google.com/p/avxsynth/wiki/BuiltinFunctions
videophool is offline   Reply With Quote
Old 13th March 2012, 01:45   #29  |  Link
videophool
Registered User
 
Join Date: Nov 2008
Posts: 91
Quote:
Originally Posted by hajj_3 View Post
did you port this so that your company software can work on linux using avxsynth or something?
As mentioned on the site, our motivation is getting our video encoding process off of Windows systems, primarily as a cost-savings, but also for efficiency and ease-of-use (most of our cloud systems are running Linux, and it is preferred to have a single OS).

Quote:
Originally Posted by hajj_3 View Post
it says you are hiring an avisynth guy,
We are looking for help with QA.
videophool is offline   Reply With Quote
Old 13th March 2012, 03:08   #30  |  Link
videophool
Registered User
 
Join Date: Nov 2008
Posts: 91
Segfault fixed

We have checked in fix for the segfault.
videophool is offline   Reply With Quote
Old 13th March 2012, 04:04   #31  |  Link
videophool
Registered User
 
Join Date: Nov 2008
Posts: 91
AxvSynth Error Handling Model

AvxSynth adds a new error handling model designed specifically for automated encoding processes. Rather than generating error video frames, the error is logged, and an exception is thrown to the application. This model is discussed here
videophool is offline   Reply With Quote
Old 14th March 2012, 00:38   #32  |  Link
videophool
Registered User
 
Join Date: Nov 2008
Posts: 91
Quote:
Originally Posted by neuron2 View Post
I see a hang at the end of stream, not a segfault. Let a stream play to the end. Then the Mplayer window cannot be closed with its X button. But it can if the video is still playing.
The fix for this issue was checked in today.
videophool is offline   Reply With Quote
Old 14th March 2012, 04:09   #33  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Oh cool, thanks for that.

I'm playing with porting fiters. The VC++ GUI has it all over Kdev, but that's just an annoyance.

Have you looked at performance yet? I imagine you miss some important ASM code. The decode rate seems to be less than under Windows.
Guest is offline   Reply With Quote
Old 14th March 2012, 04:16   #34  |  Link
videophool
Registered User
 
Join Date: Nov 2008
Posts: 91
Quote:
Originally Posted by neuron2 View Post
Oh cool, thanks for that.
Have you looked at performance yet? I imagine you miss some important ASM code. The decode rate seems to be less than under Windows.
Since we are using ffmpeg for decoding and scaling I expect that these have similar performance as in Windows. The other functions such as color format conversion, text overlay, etc., are not as efficient, because these are all in C code. The ASM is commented out. We are hoping that other contributors will join the project, and help us to get this ported.
videophool is offline   Reply With Quote
Old 14th March 2012, 06:27   #35  |  Link
kypec
User of free A/V tools
 
kypec's Avatar
 
Join Date: Jul 2006
Location: SK
Posts: 826
I can imagine that Linux needs some other arrangement of input/output data passed through the stack/pointers than Windows does but the body of native ASM functions could stay the same for any OS running on identical CPU architecture, or not?
kypec is offline   Reply With Quote
Old 14th March 2012, 07:39   #36  |  Link
videophool
Registered User
 
Join Date: Nov 2008
Posts: 91
Quote:
Originally Posted by kypec View Post
I can imagine that Linux needs some other arrangement of input/output data passed through the stack/pointers than Windows does but the body of native ASM functions could stay the same for any OS running on identical CPU architecture, or not?
The problem is that most of the asm code in AviSynth and the plugins that we looked at has been written as inline assembly, which is not usable with Win64 (not sure about gcc 64). We are definitely interested in help porting this code.
videophool is offline   Reply With Quote
Old 14th March 2012, 07:44   #37  |  Link
videophool
Registered User
 
Join Date: Nov 2008
Posts: 91
Using AvxSynth with X264

Included in the AvxSynth toolkit is a frame server application that delivers the decoded frames to stdout. The output from the frame server can be piped to X264. See the Wiki here for instructions on using AvxSynth with x264.
videophool is offline   Reply With Quote
Old 14th March 2012, 19:13   #38  |  Link
Wilbert
Super Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,375
Quote:
The ASM is commented out. We are hoping that other contributors will join the project, and help us to get this ported.
videophool is offline Report Post IP
SEt converted all the .asm stuff to yasm a while ago: http://forum.doom9.org/showthread.ph...66#post1312666 (see one of the older versions). I guess you can use that (although it's based on v2.60)???
Wilbert is offline   Reply With Quote
Old 14th March 2012, 19:26   #39  |  Link
smok3
brontosaurusrex
 
smok3's Avatar
 
Join Date: Oct 2001
Posts: 2,392
So there is a possibility to have this ported to ffmpeg with the use of all the cool external filters? and a nice mplayerish preview window as well? And it will run on OSX?

__________________
certain other member
smok3 is offline   Reply With Quote
Old 14th March 2012, 21:34   #40  |  Link
videophool
Registered User
 
Join Date: Nov 2008
Posts: 91
Quote:
Originally Posted by smok3 View Post
So there is a possibility to have this ported to ffmpeg with the use of all the cool external filters? and a nice mplayerish preview window as well? And it will run on OSX?

Anything is possible, limited only by the interest and enthusiasm of the larger Linux community.
videophool 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 21:21.


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