Linux VLC H264 Transcoder not RFC compliant "sdp" file

*nix specific usage questions
coobox
Blank Cone
Blank Cone
Posts: 26
Joined: 28 Jan 2008 14:29
VLC version: 0.8.6c Janus
Operating System: Linux Ubuntu
Location: Milan,Italy
Contact:

Linux VLC H264 Transcoder not RFC compliant "sdp" file

Postby coobox » 16 Feb 2009 10:22

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 ?
--<Coobox>--

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 16 Feb 2009 10:24

VLC version? VLC command line?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

coobox
Blank Cone
Blank Cone
Posts: 26
Joined: 28 Jan 2008 14:29
VLC version: 0.8.6c Janus
Operating System: Linux Ubuntu
Location: Milan,Italy
Contact:

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

Postby coobox » 16 Feb 2009 10:29

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
--<Coobox>--

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 16 Feb 2009 10:36

What about just inverting the audio-port and video-port on your command line?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

coobox
Blank Cone
Blank Cone
Posts: 26
Joined: 28 Jan 2008 14:29
VLC version: 0.8.6c Janus
Operating System: Linux Ubuntu
Location: Milan,Italy
Contact:

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

Postby coobox » 16 Feb 2009 10:45

What about just inverting the audio-port and video-port on your command line?
****UPDATE****

OK I've tried but nothing change
--<Coobox>--

coobox
Blank Cone
Blank Cone
Posts: 26
Joined: 28 Jan 2008 14:29
VLC version: 0.8.6c Janus
Operating System: Linux Ubuntu
Location: Milan,Italy
Contact:

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

Postby coobox » 16 Feb 2009 16:06

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 ?
--<Coobox>--

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 16 Feb 2009 17:47

Fill a bug.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

coobox
Blank Cone
Blank Cone
Posts: 26
Joined: 28 Jan 2008 14:29
VLC version: 0.8.6c Janus
Operating System: Linux Ubuntu
Location: Milan,Italy
Contact:

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

Postby coobox » 16 Feb 2009 18:08

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)
--<Coobox>--

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

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

Postby Rémi Denis-Courmont » 16 Feb 2009 21:09

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.)
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

coobox
Blank Cone
Blank Cone
Posts: 26
Joined: 28 Jan 2008 14:29
VLC version: 0.8.6c Janus
Operating System: Linux Ubuntu
Location: Milan,Italy
Contact:

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

Postby coobox » 23 Feb 2009 15:27

In effect in the standard there's no reference about the ID of RTP stream
--<Coobox>--


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 24 guests