Page 1 of 1

Linux VLC H264 Transcoder not RFC compliant "sdp" file

Posted: 16 Feb 2009 10:22
by coobox
Hi all,

I'm building an H624 DVBH transcoder but the generated SDP file it's not correct.

v=0
o=- 14789773747921933123 14789773747921933123 IN IP4 rrd-licenses
s=Unnamed
i=N/A
c=IN IP4 239.31.1.1/255
t=0 0
a=tool:vlc 0.9.8a
a=recvonly
a=type:broadcast
a=charset:UTF-8
m=audio 32192 RTP/AVP 96
b=AS:48
b=RR:0
a=rtpmap:96 mpeg4-generic/48000/2
a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1190; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1;
m=video 32190 RTP/AVP 97
b=AS:384
b=RR:0
a=rtpmap:97 H264/90000
a=fmtp:97 packetization-mode=1;profile-level-id=4d4033;sprop-parameter-sets=Z01AM5p0DQ/f+ABQAGiAAAADAIAAABlHjBlQ,aO48gA==;


I need that m=audio 32192 RTP/AVP 96 is m=audio 32192 RTP/AVP 97
and m=video 32190 RTP/AVP 97 --> m=video 32190 RTP/AVP 96


How I can swap it ?

Re: Linux VLC H264 Transcoder not RFC compliant "sdp" file

Posted: 16 Feb 2009 10:24
by Jean-Baptiste Kempf
VLC version? VLC command line?

Re: Linux VLC H264 Transcoder not RFC compliant "sdp" file

Posted: 16 Feb 2009 10:29
by coobox
VLC Version 0.9.8a Grishenko

Command line:

Code: Select all

vlc -vvv rtp://@239.25.138.45:2000 --program 25 --sout '#duplicate{dst="transcode{vcodec=h264,vb=384,width=320,height=240,croptop=32,cropbottom=32,acodec=mp4a,ab=32,channels=2}:rtp{dst=239.31.1.1,port-video=32190,port-audio=32192,sdp=rtsp://172.25.137.100:8080/test.sdp"}"}' --ttl 16 --no-sout-x264-cabac --sout-x264-level 1.3
This is an example of correct SDP file, generated by a DVB-H encoder:

v=0
o=XXXXX 3443272095 3443272095 IN IP4 127.0.0.1
s=/live.mp4
u=http:///
e=admin@
c=IN IP4 239.30.1.1
a=control:*
a=range:npt=0-3000000
t=0 0
m=video 31190 RTP/AVP 96
a=rtpmap:96 H264/90000
a=control:trackID=1
a=mpeg4-esid:201
a=mid:1
a=fmtp:96 profile-level-id=42c00d; packetization-mode=1; sprop-parameter-sets=Z0LADfICg+I=,aNuOIA==;
m=audio 31192 RTP/AVP 97
a=rtpmap:97 mpeg4-generic/32000/2
a=control:trackID=2
a=mpeg4-esid:101
a=mid:2
a=fmtp:97 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1410; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Prof
ile=1;


PLS HELP

Re: Linux VLC H264 Transcoder not RFC compliant "sdp" file

Posted: 16 Feb 2009 10:36
by Jean-Baptiste Kempf
What about just inverting the audio-port and video-port on your command line?

Re: Linux VLC H264 Transcoder not RFC compliant "sdp" file

Posted: 16 Feb 2009 10:45
by coobox
What about just inverting the audio-port and video-port on your command line?
****UPDATE****

OK I've tried but nothing change

Re: Linux VLC H264 Transcoder not RFC compliant "sdp" file

Posted: 16 Feb 2009 16:06
by coobox
It's seems that VLC set the acode=mp4a always to 96 and vcodec=h264 to 97.

In the DVB-H standard must be exactly the opposite.

There's no chance to swap this value ?

Re: Linux VLC H264 Transcoder not RFC compliant "sdp" file

Posted: 16 Feb 2009 17:47
by Jean-Baptiste Kempf
Fill a bug.

Re: Linux VLC H264 Transcoder not RFC compliant "sdp" file

Posted: 16 Feb 2009 18:08
by coobox
4 now a friend of mine has recompiled VLC with a fixed value and it seems ok but it is a dirty solution.

Now I need to now if it's possible to transcode audio with HE-AAC codec instead of AAC (mp4a)

Re: Linux VLC H264 Transcoder not RFC compliant "sdp" file

Posted: 16 Feb 2009 21:09
by RĂ©mi Denis-Courmont
VLC "allocates" dynamic payload types in the lowest available first fashion, as elementary streams are added. What that order will be depends on the demux used on the input side. I am not aware of any violation of RFC there. If you know one, please do provide the references.

(In fact, payload types from separate RTP streams are independent. So one could even re-use 96 for each stream/m-line and still be RFC-compliant.)

Re: Linux VLC H264 Transcoder not RFC compliant "sdp" file

Posted: 23 Feb 2009 15:27
by coobox
In effect in the standard there's no reference about the ID of RTP stream