Page 1 of 1

command line problem, i want h264 but exactly mpeg2

Posted: 30 Jul 2009 11:01
by jerry007
Hi all,

In my application, i use command line such as
:sout=#duplicate{dst=display,dst={transcode{venc=x264,vcodec=h264,vb=120}:rtp{mux=ts,dst=192.168.1.2,port=1234}}}
and i think the codec should be h264. But when i capture RTP packages using Ethereal and decode, I found exactly the codec is mpeg2 instead of h264.
I also try the command:
:sout=#duplicate{dst=display,dst={transcode{vcodec=h263,vb=120}:rtp{mux=ts,dst=192.168.1.2,port=1234}}}
but it cannot work well . Can somebody help me ?
Thanks in advances

xutm

Re: command line problem, i want h264 but exactly mpeg2

Posted: 30 Jul 2009 16:01
by Rémi Denis-Courmont
You set mux to TS, so VLC sends MPEG2-TS packets. Normal behavior.

Re: command line problem, i want h264 but exactly mpeg2

Posted: 31 Jul 2009 03:42
by jerry007
Hi Rémi Denis-Courmont,

Thank you for ur reply!
The book streaming-howto-en.pdf says that :
mux=
1. ts: the MPEG2/TS muxer. This the standard muxer used to stream MPEG 2. This muxer can be used with any access method. Supported codecs are MPEG 1/2/4, MJPEG, H263,H264,I263,WMV 1/2 and theora for video, MPEG audio, AAC and a52 for the audio stream.
...

So I think it is right to set mux as TS . Am I right? I am sorry if I am wrong.

By the way, if as you say , I have set mux to TS, so VLC sends MPEG2-TS packets. Now I hope that VLC sends H264 packets, and how can I set the mux? Or how to write the command line?

Regards,
xutm

Re: command line problem, i want h264 but exactly mpeg2

Posted: 01 Aug 2009 10:01
by Rémi Denis-Courmont
Don't use a mux then...