[fpc-pascal] Pipe vs Memory buffer.

fredvs fiens at hotmail.com
Fri Jan 27 03:52:36 CET 2017


Hello Silvio:

Yes, we are on the good way.
Following your advice, here from https-url-opus the result of :

var
  BufferURL: tbytes;

  setlength(BufferURL, PipeBufferSize);
  CreatePipeHandles(InHandle, OutHandle, PipeBufferSize);
  InPipe := TInputPipeStream.Create(InHandle);
  OutPipe := TOutputPipeStream.Create(OutHandle);
  httpget := TThreadHttpGetter.Create(url, OutPipe);
  InPipe.Read(BufferURL[0],PipeBufferSize);
 
  writeln(tencoding.utf8.getstring(BufferURL));

======>

Lavf57.57.100encoder=Lavc57.65.100 libopustitle=Be Thankful%artist=For
What You GotWilliam De Vau$album=Blaxploitation Vol.3 The Payba
date=1997TRACKNUMBER=11OggS��d,
����54�@BCDDDEDDDCR�����������������������������������������@*�m��|��G���"��>_4Zѡ�/kv��e"��bvZ6�j�
            
�z2��PY�*��]luN��H�t�A5QR�s:3�0���:�^����͋�¢f��8�$5{w>f at r)YZ���K>�𠑡T�`�+������z�g
"F^�������a     h��«�o?"t�C�d]J=��kdw�Z3|�L��B���a���r�b�Ĉ}��u�
L@�����W9��V�W �+r���{<�`�_��O&�t�	G�g�܄~��oᐄQ|�~7�E��~!��<�$3�
E��I����4����h;��
\0L�|xE��x`�����͇G��a��@������P�[�����6,�rk��&������=����V��+�I3~�~j��^��g�x�a֣�,l'�_
=����(��aԦ���u�ZҬ��
                                   �|N+9զ~e͓���2���r�a֥R�E�����
�Fޡj��\��QA��s<6�Cal������ۨ��Ä�zE����!Z�&G�"���a֥��7�rɝnt�Q̊4�N��{�w[
��zt��p��%�ƌ�ZYN����}䒀���7������

You may note that some opus infos are there and seems to be the header.
Sadly, op_test_memory(BufferURL,PipeBufferSize, Err) gives this error:

error -132: A purported Ogg Opus stream did not begin with an Ogg page, a
purported header packet did not start with one of the required strings,
"OpusHead" or "OpusTags", or a link in a chained file was encountered that
did not contain any logical Opus streams.

But there is some light, we will win.

Fre;D





-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Pipe-vs-Memory-buffer-tp5727435p5727458.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list