command line problem, i want h264 but exactly mpeg2

This forum is about all development around libVLC.
jerry007
Blank Cone
Blank Cone
Posts: 10
Joined: 19 Jun 2009 11:03

command line problem, i want h264 but exactly mpeg2

Postby jerry007 » 30 Jul 2009 11:01

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 30 Jul 2009 16:01

You set mux to TS, so VLC sends MPEG2-TS packets. Normal behavior.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jerry007
Blank Cone
Blank Cone
Posts: 10
Joined: 19 Jun 2009 11:03

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

Postby jerry007 » 31 Jul 2009 03:42

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 01 Aug 2009 10:01

Don't use a mux then...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 65 guests