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.

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co

Reply
 
Thread Tools Search this Thread Display Modes
Old 31st December 2006, 00:30   #1  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
netAvs2Yuv 0.3.1

I have created a command line client for TCPDeliver, and has a friend help me with the Linux port.

It allows for you to send uncompressed video over LAN from an AviSynth server, and deliver it to ffmpeg/mencoder/mplayer/x264, etc.

I have used a version of avs2yuv as base for the code, and usage is the same as avs2yuv, just instead of the filename, you give the ip-adress. So you can use like this:

netavs2yuv 192.168.0.5 -o -|ffmpeg -i - out.mpg
netavs2yuv 192.168.0.5 -o -|mplayer -

Download here:
http://klauspost.googlepages.com/net...-0.3.1.tar.bz2

(Makefile and Windows Binary included)
__________________
Regards, sh0dan // VoxPod

Last edited by sh0dan; 12th January 2007 at 19:45.
sh0dan is offline   Reply With Quote
Old 31st December 2006, 09:25   #2  |  Link
d'Oursse
Mushroomeur
 
Join Date: Jun 2003
Location: Mushrooms of Paris Town
Posts: 267
at least, I can make a configuration system like avs3, or else a good old autofoo build system. For packages like ebuild, deb or rpm, i will be of no help
d'Oursse is offline   Reply With Quote
Old 31st December 2006, 15:15   #3  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
@d'Oursse: I guess a makefile or similar would be enough. I still have a few C++ things in there - a "new" and some exceptions from avisynth.h, so right now it requires g++.

Could you list the errors that pop up with gcc, I can see if I can fix them?
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 31st December 2006, 16:04   #4  |  Link
d'Oursse
Mushroomeur
 
Join Date: Jun 2003
Location: Mushrooms of Paris Town
Posts: 267
I've attached an archive (remove the .zip suffix). I've seen some warnings in netavs2yuv.cpp:

1) Some that I've corrected :
netavs2yuv.cpp:309: warning: format '%s' expects type 'char*', but argument 3 has type 'const char**'
netavs2yuv.cpp:327: warning: format '%ld' expects type 'long int', but argument 5 has type 'unsigned int'
netavs2yuv.cpp:327: warning: format '%ld' expects type 'long int', but argument 6 has type 'unsigned int'

2) some that i've not corrected :
netavs2yuv.cpp:377: warning: unused variable 'planes'
netavs2yuv.cpp:390: warning: 'data' may be used uninitialized in this function

There is an error in tcpcommon2-5.h:
tcpcommon2-5.h:205: error: 'HINSTANCE' does not name a type

it suffices to add guards (I've added them). In 2.6, you've commented it. I don't really know what should be done here.

There's also a Makefile in the archive

It compiles with AVS2_5 defined or not.

Maybe you should another variable than _MSC_VER, so that mingw or cygwin users can compile it (like _WIN32). Maybe there are other warnings/errors with mingw, I've not tested it.
Attached Files
File Type: zip netavs2yuv.tar.bz2.zip (70.7 KB, 118 views)
d'Oursse is offline   Reply With Quote
Old 12th January 2007, 19:45   #5  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
@d'Oursse: Thanks a bundle!

I have added a frame prefetching option to allow frame prefetching, which should increase performance. Default is 5 frames.
__________________
Regards, sh0dan // VoxPod
sh0dan 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 04:13.


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