VLC Examples / Help

260 views
Skip to first unread message

Dan

unread,
Dec 8, 2011, 6:52:11 PM12/8/11
to C++ RTMP Server
Group:

I've gotten VLC to work with a known-good file without issues.
Example:

cvlc /root/good.mp4 --sout '#rtp{dst=0.0.0.0,sdp=rtsp://0.0.0.0:5544/
stream5}'

...then in external streams, something like this:

{
uri="rtsp://192.168.1.2:5544/stream5",
localStreamName="testvlc",
},

...so far so good - seems to work fine - but any time I do a
transcode, of course from any file or device that is not in spec, it
fails reliably - example using that same file (just transcoding it):

cvlc good.mp4 --sout
'#transcode{vcodec=h264,vb=300,scale=1,acodec=mp4a,ab=64,channels=2}:rtp{dst=0.0.0.0,sdp=rtsp://:
5544/stream5}'

Failure indicates something like this:
...Duplicate value: b=RR:0
...Parsing line b=RR:0 failed

So I guess I have two questions for folks:

1. Does anyone have an example VLC command string (known to work with
crtmpserver) that uses transcoding that they'd like to share?

2. Saving that, does anyone have any good resources or pointers on the
SDP bits in VLC? I believe if I can edit the file, I can make it
proper, but I have no idea how to do that (and I've searched the best
way I know how).

Thanks!

--dan

C++ RTMP Server

unread,
Dec 9, 2011, 5:45:23 AM12/9/11
to c-rtmp...@googlegroups.com
That is a bug inside crtmpserver. I will take care of it on the next few commits

Thank you for reporting it.

Cheers,
Andrei

> You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> To post to this group, send email to c-rtmp...@googlegroups.com
> To unsubscribe from this group, send email to
> c-rtmp-serve...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/c-rtmp-server?hl=en

Dan

unread,
Dec 12, 2011, 11:56:20 AM12/12/11
to C++ RTMP Server
Andrei:


Thanks for this. I'm not sure if you've gotten to this or not, but I
have an update here.

I was able to get into .../protocols/rtp/sdp.cpp and commented
"FORBID_DUPLICATE(SDP_B);" - which allows me to send data to rtmpd via
this VLC command:

cvlc v4l2:///dev/
video0:standard=ntsc:size=vga:width=640:height=480:input=0: --input-
slave oss:///dev/dsp1 --sout
'#transcode{vcodec=h264,keyint=90,vb=200,max-
bitrate=300,acodec=mp4a,ab=56,threads=2,fps=29.97,width=480,height=360}:rtp{dst=192.168.64.146,sdp=rtsp://
192.168.64.146:5544/stream5}'

...but I get consistent "back time" warnings, although I do note video
and audio do make it all the way thru to playback via flash player.
There is about a 2 or 3 second sync issue between video and audio
though.

...if I try to specify ts as the "mux", via this command:

cvlc v4l2:///dev/
video0:standard=ntsc:size=vga:width=640:height=480:input=0: --input-
slave oss:///dev/dsp1 --sout
'#transcode{vcodec=h264,keyint=90,vb=200,max-
bitrate=300,acodec=mp4a,ab=56,threads=2,fps=29.97,width=480,height=360}:rtp{mux=ts,dst=192.168.64.146,sdp=rtsp://
192.168.64.146:5544/stream5}'

..it fails with:

sdp.cpp:413 Invalid codec: MP2T
sdp.cpp:647 Track with no fmtp
sdp.cpp:93 Video track index 0 not found
sdp.cpp:131 Audio track index 0 not found
basertspappprotocolhandler.cpp:1061 No compatible tracks found


I'm sure my edit to the sdp.cpp file is causing this, but in case it's
not, I figured I'd point it out.

For what it's worth, I'm using VLC because it's the only thing I have
found that will keep sync on a V4L device.

Thanks!

--dan

On Dec 9, 4:45 am, C++ RTMP Server <crtmpser...@gmail.com> wrote:
> That is a bug inside crtmpserver. I will take care of it on the next few commits
>
> Thank you for reporting it.
>
> Cheers,
> Andrei
> On Dec 9, 2011, at 1:52 AM, Dan wrote:
>
>
>
>
>
>
>
> > Group:
>
> > I've gotten VLC to work with a known-good file without issues.
> > Example:
>
> > cvlc /root/good.mp4 --sout '#rtp{dst=0.0.0.0,sdp=rtsp://0.0.0.0:5544/
> > stream5}'
>
> > ...then in external streams, something like this:
>
> > {
> > uri="rtsp://192.168.1.2:5544/stream5",
> > localStreamName="testvlc",
> > },
>
> > ...so far so good - seems to work fine - but any time I do a
> > transcode, of course from any file or device that is not in spec, it
> > fails reliably - example using that same file (just transcoding it):
>
> > cvlc good.mp4 --sout

> > '#transcode{vcodec=h264,vb=300,scale=1,acodec=mp4a,ab=64,channels=2}:rtp{ds t=0.0.0.0,sdp=rtsp://:


> > 5544/stream5}'
>
> > Failure indicates something like this:
> > ...Duplicate value: b=RR:0
> > ...Parsing line b=RR:0 failed
>
> > So I guess I have two questions for folks:
>
> > 1. Does anyone have an example VLC command string (known to work with
> > crtmpserver) that uses transcoding that they'd like to share?
>
> > 2. Saving that, does anyone have any good resources or pointers on the
> > SDP bits in VLC?  I believe if I can edit the file, I can make it
> > proper, but I have no idea how to do that (and I've searched the best
> > way I know how).
>
> > Thanks!
>
> > --dan
>
> > You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> > To post to this group, send email to c-rtmp...@googlegroups.com
> > To unsubscribe from this group, send email to
> > c-rtmp-serve...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/c-rtmp-server?hl=en
>
>
>

>  smime.p7s
> 6KViewDownload

Reply all
Reply to author
Forward
0 new messages