[streaming] Re: two encoding cards..?? possible?

Javier Martinez jamarno at doctor.upv.es
Thu Jul 24 09:55:20 CEST 2003


The module that search for an audio source for each video signal is 
$VLSHOME/src/modules/raw2ts/raw2ts.cpp

I commented lines in this file in order to suppress the audio thread 
(version: raw2ts.cpp,v 1.25 2003/03/20 12:30:46 titer Exp)
I think there would be a more clear solution for that but this works.

Attached is the modified file.


Diff between the original and the modified file:

$ diff src/modules/raw2ts/raw2ts.cpp 
../vls_noaudio/vls_v2/src/modules/raw2ts/raw2ts.cpp
296,299c296,299
< C_AudioCaptureThread * audioThread =
< new C_AudioCaptureThread( m_pReader, pAudioFifo,
< m_iAudioSampleBufSize, pAudioMutex,
< pHasDataCondition, m_channel, m_audiofreq );
---
 > // C_AudioCaptureThread * audioThread =
 > // new C_AudioCaptureThread( m_pReader, pAudioFifo,
 > // m_iAudioSampleBufSize, pAudioMutex,
 > // pHasDataCondition, m_channel, m_audiofreq );
301c301
< audioThread->Create();
---
 > // audioThread->Create();
356c356,360
< if( pAudioFifo->Size() > pAudioFifo->Capacity() / 2 ||
---
 >
 >
 > /*
 >
 > if( pAudioFifo->Size() > pAudioFifo->Capacity() / 2 ||
362a367
 > */
363a369
 > /*
374a381,382
 > */
 >
375a384,385
 > /*
 >
378a389,391
 >
 > */
 >
424c437,442
< }


---
 >
 >
 > // }
 >
 >
 >
428a447
 >
663a683,684
 >
 >
670c691,693
< while( !m_bStop )
---
 > // while( !m_bStop )
 >
 > while( false )
701,703c724,726
< fprintf( stderr, "Warning : trashing an audio frame (%lld)... "
< "your computer is too slow !\n",
< pDatedBuffer->m_TimeStamp );
---
 > // fprintf( stderr, "Warning : trashing an audio frame (%lld)... "
 > // "your computer is too slow !\n",
 > // pDatedBuffer->m_TimeStamp );


Good Luck,
Javier


Andreas Krings wrote:

> Hallo Javier,
>
> i have had trouble with the same problem. So is it possible that you 
> post your quick modification here. It would be very useful for me and 
> i think much others could need this information, too!!
>
> Greetings
>
> Andreas Krings
>
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: raw2ts.cpp
Type: text/x-c++src
Size: 22754 bytes
Desc: not available
Url : http://mailman.videolan.org/pipermail/streaming/attachments/20030724/2f87f26d/attachment.cpp 


More information about the streaming mailing list