rtsp and segmentation fault

*nix specific usage questions
tonj
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Jun 2011 10:42

rtsp and segmentation fault

Postby tonj » 28 Apr 2014 16:50

I'm running vlc-2.1.4-1.fc20.x86_64 on a fedora 20 64bit server machine, command line only and I'm trying to transcode a live rtsp stream from an ip camera to streaming flash video. The command I'm running is:
cvlc rtsp://<ip cam> --sout "#transcode{vcodec=FLV1,vb=512,acodec=mpga,ab=64,samplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0::8085/zoomcam.flv}"
but I keep getting Segmentation fault. This command worked on a previous version of vlc but not on this latest version and I don't know where the problem is. I've tried removing the samplerate value - which stops the seg fault but I then get no stream. Thanks for any pointers.

update: I've also tried

Code: Select all

cvlc rtsp://<ip cam> --sout #transcode{vcodec=FLV1,vb=150,acodec=mpga,ab=50,mono,channels=1}:standard{mux=ts,dst=0.0.0.0::8085/stream.flv,access=http}'
but the cosole says:
main mux error: cannot add this stream
stream_out_transcode stream out error: cannot add this stream

and yet if I try to play the flv stream in vlc on a seperate windows machine I can see data is streaming but vlc plays no image and the log shows:
mpgatofixed32 error: libmad error: bad main_data_begin pointer
main warning: playback too late (61631): up-sampling

again thanks for any pionters.

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

Re: rtsp and segmentation fault

Postby Rémi Denis-Courmont » 28 Apr 2014 18:02

VLC never supported FLV1 over MPEG-TS. That's not an excuse for crashing, but your command is never going to work.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

tonj
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Jun 2011 10:42

Re: rtsp and segmentation fault

Postby tonj » 29 Apr 2014 16:29

I did get it to work eventually. If it's any use to others looking at this here is the command that worked:

cvlc rtsp://<ip-cam> --sout "#transcode{vcodec=FLV1,vb=150,acodec=mp3,ab=32,samplerate=22500}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0::8085/stream.flv


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

Who is online

Users browsing this forum: No registered users and 12 guests