ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Problem DirectShow recording video greater 2 gb
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

wagnerfm

Brazil
10 Posts

Posted - Jun 17 2014 :  18:06:32  Show Profile  Reply
Problem with DirectShow demos in recording video greater 2 gb( avi files ) How to fix it?

xequte

39076 Posts

Posted - Jun 18 2014 :  02:36:29  Show Profile  Reply
Specifically, what is the error or problem that you encounter?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

wagnerfm

Brazil
10 Posts

Posted - Jun 18 2014 :  05:52:05  Show Profile  Reply
The avi file produced with DirectShow can´t be read with Windows Media Player or VMR_VIDEO demo
Go to Top of Page

Uwe

284 Posts

Posted - Jun 18 2014 :  08:00:49  Show Profile  Reply
What operating system? 32bit?

-Uwe
Go to Top of Page

wagnerfm

Brazil
10 Posts

Posted - Jun 18 2014 :  11:27:23  Show Profile  Reply
Testing in Windows 8 and windows 7. 32 bit.
Go to Top of Page

Uwe

284 Posts

Posted - Jun 18 2014 :  16:39:24  Show Profile  Reply
Wasn't there a 2 GB file size limit for 32bit operating systems without Large File Support?

-Uwe
Go to Top of Page

wagnerfm

Brazil
10 Posts

Posted - Jun 18 2014 :  18:45:43  Show Profile  Reply
Yes that's the restriction. It'll be necessary large file support.
Thank you
Go to Top of Page

wagnerfm

Brazil
10 Posts

Posted - Jun 18 2014 :  19:34:00  Show Profile  Reply
If you have any ideia to solve this problem, i will appreciate your help.
Thanks
Go to Top of Page

Uwe

284 Posts

Posted - Jun 18 2014 :  20:20:47  Show Profile  Reply
You might want to check JCL's TJclBufferedStream, and the following link might also give you some ideas:

https://forums.embarcadero.com/thread.jspa?threadID=69883

-Uwe
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jun 19 2014 :  04:05:14  Show Profile  Reply
ola wagner

qual sistema de arquivo voce esta usando ?

fat32 ou ntfs ?

tente fazer teste com sistemas de arquivos diferentes

coloca um printscreen aqui do erro para nos ajudar a entender seu real problema.

tenha um bom dia.
Go to Top of Page

wagnerfm

Brazil
10 Posts

Posted - Jun 19 2014 :  04:45:41  Show Profile  Reply
Ola wesley.
Testei o programa demo DirectShow4, no windows 8 com sistema ntfs e no windows 7 fat32. O que acontece é que, o arquivo avi gerado quando acima de 2 gb, não pode ser lido nem pelo windows media player e nem pelo VMR_Video. Para reproduzir o problema é só deixar gravando por um tempo longo e tentar ler o test.avi no exemplo do directshow e verá o problema.
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jun 19 2014 :  05:21:38  Show Profile  Reply
ola wagner.

vou fazer um teste assim que chegar no escritorio
vou tentar interpretar mais informaçoes desse problema e vou postar aqui.

voce possui o k-lite mega codec pack instalado pois ele possui um player chamado classic media player

wagner voce tentou usar os metodos de imageen
IO.loadfromfileAVI e preecher um timageenmview com todos o frames do seu arquivo
tente a classe tIEMediaReader para verificar se todos os frames estao corrompidos ou apartir de qual frame começa apresentar o problema

depois eu volto.

bom dia
Go to Top of Page

wagnerfm

Brazil
10 Posts

Posted - Jun 19 2014 :  09:14:00  Show Profile  Reply
Instalei o k-lite codec e passou a funcionar no windows 8 e windows 7. O exemplo VMR_Video também funcionou. Não havia frames corrompidos.
Também testei com o TIEMediareader e funcionou.
Obrigado uma saída boa.
O próximo passo é descobrir como trabalhar com codecs dentro do programa sem instalações externas, se for possível.
Bom dia e de novo obrigado.
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jun 19 2014 :  11:08:12  Show Profile  Reply
Oi Wagner
Fiquei Feliz em Saber que Funcionou.

Eu vou lhe ensinar como funcionar sem instalar o k-lite mega codec.
você precisa apenas identificar a DLL do codec que precisa para reproduzir o arquivo AVI e registrar essa DLL.

http://delphi.about.com/od/windowsshellapi/l/aa040803a.htm

Leia esse Artigo eu já fiz aqui no meu trabalho e funciona 100%
basta você ter o EXE do seu Aplicativo + a DLL do codec.

no Evento FormCreate do Seu Formulario basta chamar
uma procedure REGISTERCODEC(c:\codec.dll);

caso tenha outra duvida estamos a disposição

tenha uma maravilhosa tarde.
Go to Top of Page

ageu

Brazil
2 Posts

Posted - Oct 21 2015 :  16:42:45  Show Profile  Reply
Olá Wesley,
Eu utilizo esse componente para captura de imagens. Gostaria de poder salvar o vídeo usando algum codec para diminuir o tamanho sem perder a qualidade.
Você tem algum projeto Demo com o codec para eu testar?
Usei o exemplo que vem no componente o directshow1 porém não consegui gerar o arquivo no disco.
Abraços,
Ageu
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: