Wowza Community

ffmpeg transcoding

I have configed vlc to restream webcam stream to x264 codec. Everything works but after 1-2 day vlc crashes…

I’m using this command line:

vlc -vvv rtsp://192.168.1.2/stream.sdp --sout “#transcode{venc=x264{keyint=10,profile=baseline,l evel=3.0,nocabac},vcodec=x264,vb=256, scale=1, fps=10}:rtp{dst=127.0.0.1,port=10010,mux=ts}” --sout-mux-caching=50000

But i have a lot of messages like this:

[0x730ee8] main mux warning: late buffer for mux input (4381012)
[0x730ee8] main mux warning: late buffer for mux input (4301012)
[0x730ee8] main mux warning: late buffer for mux input (4229012)

And i’ts not a cpu issue, because there are no load of it.

I’m trying to use ffmpeg instead of vlc with this command:

ffmpeg -re -i rtsp://192.168.1.2/play2.sdp -vcodec libx264  -vb 500000 -an -f rtsp -muxdelay 0.1  rtsp://127.0.0.1:1935/live/camera2

but it give me this:

Input #0, rtsp, from 'rtsp://192.168.1.2/play2.sdp':
  Duration: N/A, start: 0.010000, bitrate: N/A
    Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 30k tbr, 90k tbn, 30k tbc
    Stream #0.1: Audio: pcm_mulaw, 8000 Hz, stereo, s16, 128 kb/s
[B]Unable to find a suitable output format for[/B] 'rtsp://127.0.0.1:1935/live/camera2'

I look trouh the ffmpeg doc’s and can’t find what to change in command. I’ve tryed -profile baseline but it didn’t help

It looks like you’re not transcoding the audio part. Maybe that codec is not supported under the RSTP. Try using the command I gave you earlier. Does it work with the sample.mp4 file? Then, does it work with your input?

Thanks for moving to a new thread. So, I’ll just remove your ffmpeg stuff from the VLC thread to keep it clean.