Vweb SDK付属のnet_send/net_recvを修正し,以下のようなことができるようになりました。
これでWsbの動作検証ができるかも。
+----------------+ +--------------+ +-----+
+ Vweb on x86 PC |---<UDP>---| Vweb on WPAR |---<VGA>---| CRT |
+----------------+ +--------------+ +-----+
| |
<NTSC> <NTSC>
| |
+-----+ +--+--+
| VCR | | TV +
+-----+ +-----+
net_send option_files/enc_mp2ts_ntsc_01m.ini do_network=true hostname=192.168.100.10 \\ video_input_device=0xc40242
reset the chipの後に以下の3行を挿入。vw2002モードで動くようにする。
UINT32 size = 0;
printf("=> Enable VW2002 MODE\n");
chip_interface->sendCommand(VW_IOCTL_DECODER_ONLY, NULL, size, NULL);
net_recv option_files/dec_mp2ts_ntsc.ini do_network=true hostname=192.168.100.7
encoder.exe option_files\enc_mp2ts_ntsc_03m.ini foo.mpg video_input_device=0xc40242 decoder.exe option_files\dec_mp2ts_ntsc.ini foo.mpg -vw2002
VW2010ひとつだけでnet_send/net_recvを動かす方法。
net_send option_files/enc_mp2ts_ntsc_01m.ini do_network=true hostname=127.0.0.1 \\ video_input_device=0xc40242
net_recv option_files/dec_mp2ts_ntsc.ini -save hoge.mpg do_network=true hostname=127.0.0.1
net_recvで-saveオプションを用いると,ハードウェアデコードが無効化され, 単に受け取ったストリームをファイルに書き込むようになる。
書き込まれたファイルは(実行属性を与えて)decoderで再生することができる。