Re: MPEG-2 Transport Stream File not MPEG-2 compliant?

Michael Müller <[email protected]>
Newsgroups gmane.comp.video.videolan.vls.devel
Message-ID <003a01c299ca$35a674a0$0c01a8c0@venus>
Hi

Thanks for information. I changed in fileoutput.cpp

void C_FileOutput::OnInit()
{
  {
    // Open the file
    if(m_bAppend)
      m_cFile.Open("ab+");
    else
      m_cFile.Open("wb+");
  }
}

I added the b for binary and now fileout does work under windows.

Because I have no access to CVS I hope somebody does change it that it will
be fixed in next release.

Thanks

Michael



----- Original Message -----
From: "Chen xiaodong" <[email protected]>
To: <[email protected]>
Sent: Monday, December 02, 2002 2:00 AM
Subject: [vls-devel] Re: MPEG-2 Transport Stream File not MPEG-2 compliant?


hi,

yes , there is a bug in vls under windows .

the bug as following :

CANN'T  USE   fopen ( "stream.ts", "w+")   TO OPEN STREAM FILE  UNDER
WINDOWS PLATFORM;
AND CHANGED TO  fopen("stream.ts" , "wb+" )   WHEN OPEN TARGED  TS FILE.



yours
chen xiaodong

----- Original Message -----
From: "Michael Müller" <[email protected]>
To: <[email protected]>
Sent: Saturday, November 30, 2002 3:44 AM
Subject: [vls-devel] MPEG-2 Transport Stream File not MPEG-2 compliant?


> Hello Together
>
> I wrote a transport stream file with vls under Windows. I changed the
basic
> configuration for localfile like prepared in vls.cfg. I used a *.VOB
(MPEG-2
> PS) from a DVB and a recording from a satellite card to test.
>
> I can stream both files to vlc (videolan client) without problems. Then I
> change configuration to localfile it writes me the stream.ts file but when
I
> open the stream.ts file with vlc (videolan client) I can't play it.
>
> What is wrong? When I use professional tool to analyse TS stream file, it
> seams not to be a TS-stream.
>
> I do not use UDP streaming and local file at the same time. A file will be
> written but seams not to be correct.
>
> Could somebody tell me where the problem is?
>
> Many thanks
>
> Michael
>
> # vls configuration file (Example)
>
> # Streams sources declaration
> BEGIN "Inputs"
>   local1       = "local"                # Local input example
> END
>
> # Inputs configuration
> BEGIN "local1"
>   ConfigPath    = "C:\vls"
> END
>
> BEGIN "Channels"
>   localhost     = "network"
>   localfile     = "file"
> END
>
> BEGIN "localhost"         # The client is on the same host as the server
>   DstHost = "localhost"
>   DstPort = "1234"
> END
>
> BEGIN "localfile"                        # file output example
>   FileName = "stream.ts"
>   Append   = "no"                        # rewrite the file if it exists
> END
>
>
> *******************************************
>
> # vls local input configuration file (Example)
>
> # Main settings
> BEGIN "Input"
>   FilesPath = "c:\vls"
>   ProgramCount = "1"                     # number of programs
> END
>
> BEGIN "1"     # MPEG2 stream
>   Name     = "stream1"
>   FileName = "testvideo.vob"
>   Type     = "Mpeg2-PS"
> END
>
> *******************************************
> on telnet I can start...
> start stream1 localfile local1
> OR
> start stream1 localhost local1
> *******************************************
>
> Attached is the tool to test TS stream.
>
ÿôáSȬ¶¯-ÏÝz÷¥T¨¥Sxÿ-+-þÇz?ÛiÿÿðÃï?ר.©ÿ¢¸?¾[ÿuëÞ-ôèº{.nÇ+?·ÿ¦Ws±êÞiØm¶Yÿÿ
0þøz?ZYú+fùb²Ûÿ?Ù¥!ü¨¹ªÞS{k¢æå{úey«r?íiËÿ¦<-T«-z¿ï?ר.©ÿ¢¸ÿ

-- 
This is the vls-devel mailing-list, see http://www.videolan.org/vls-devel/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.