transcoding while streaming is crashing in 0.9.8a

About encoding, codec settings, muxers and filter usage
ktsaou
New Cone
New Cone
Posts: 8
Joined: 25 Feb 2009 02:34

transcoding while streaming is crashing in 0.9.8a

Postby ktsaou » 25 Feb 2009 03:12

Hi,

I had vlc 0.8.6 streaming a video library for files stored in divx and x264 (avi, mkv, etc) over HTTP while transcoding them to MPEG2 VIDEO/MP3 AUDIO on the fly (the clients are only MPEG2/MP3 capable).
This has worked nicely for quite some time.

I have now upgraded to 0.9.8a, however I cannot get the streaming to work. I have segmentation faults no matter what I do.

In vlc 0.8.6 the command line was:

Code: Select all

vlc --verbose 2 --intf rc --rc-fake-tty \ --subsdec-encoding CP1253 --freetype-font /usr/share/fonts/vista/tahoma.ttf --freetype-rel-fontsize 20 \ --logo-file "my-logo.png" --logo-position 5 --logo-x 100 --logo-y 50 --logo-transparency 96 \ --norm-buff-size 20 --norm-max-level 100 --volume 400 \ --file-caching 20000 \ --sout-transcode-fps 25.0 \ "/data/media/MYFILE.avi" vlc:quit \ --sout "#transcode{width=720,height=576,vcodec=mp2v,vb=4096,soverlay,scale=1,venc=ffmpeg,acodec=mpga,ab=384,samplerate=48000,channels=2,audio-sync,sfilter=logo}:duplicate{dst=standard{access=http,mux=ps,dst=0.0.0.0:20002}}"
In vlc 0.9.8a I try this:

Code: Select all

vlc -vv --intf rc "/data/media/MYFILE.avi" --sout "#transcode{width=720,height=576,vcodec=mp2v,vb=4096,scale=1,venc=ffmpeg,acodec=mpga,ab=384,samplerate=48000,channels=2,audio-sync}:duplicate{dst=standard{access=http,mux=ps,dst=0.0.0.0:20002}}"
The result is:

Code: Select all

... [00000456] a52 decoder: A/52 channels:6 samplerate:48000 bitrate:384000 [00000391] stream_out_transcode stream out debug: drift is too high, resetting master sync *** glibc detected *** vlc: malloc(): memory corruption: 0x082932a8 *** ======= Backtrace: ========= /lib/libc.so.6[0x4e1b1a00] /lib/libc.so.6[0x4e1b3cbb] /lib/libc.so.6(__libc_malloc+0x7e)[0x4e1b530e] /usr/lib/libvlccore.so.0(__stats_CounterCreate+0x1b)[0xb7edbf6b] ======= Memory map: ======== ...
Same result with any combination of options.
Example 2:

Code: Select all

vlc -vv --intf rc "/data/media/MYFILE.avi" --sout "#transcode{vcodec=mp2v,vb=4096,venc=ffmpeg,acodec=mpga,ab=384,channels=2}:standard{access=http,mux=ps,dst=0.0.0.0:20002}"
I am using gentoo and vlc has been compiled with these options:

Code: Select all

media-video/vlc-0.9.8a USE="X a52 aac aalib alsa arts avahi cdda cddb cdio dbus dc1394 dts dvb dvd esd ffmpeg flac fontconfig ggi gnome gnutls hal httpd id3tag libass libcaca libgcrypt libnotify lirc live matroska mmx mp3 mpeg musepack ncurses nsplugin ogg opengl png pvr qt4 remoteosd rtsp samba sdl sdl-image shout skins speex sse stream svg svga taglib theora truetype twolame upnp v4l v4l2 vlm vorbis win32codecs x264 xml xv"
I also tried recompiling with these options only:

Code: Select all

media-video/vlc-0.9.8a USE="a52 aac aalib dts ffmpeg flac fontconfig httpd matroska mmx mp3 mpeg ogg png pvr rtsp sse stream svg theora truetype twolame vlm vorbis win32codecs x264"
Same results. vlc is crashing.

Do you know if 0.9.8a can transcode and stream at the same time?
Any ideas are welcome.

Costa

VideoLAN_forums
New Cone
New Cone
Posts: 3
Joined: 28 Feb 2009 20:55

Re: transcoding while streaming is crashing in 0.9.8a

Postby VideoLAN_forums » 28 Feb 2009 20:58

Hi unfortunately I cannot help you, but I think you can help me :) please

I am trying to do excactly same thing as you, but I always get error

Streaming / Transcoding failed:
VLC could not open the encoder.

I am trying to stream and transcode at the same time .mkv to MPEG2.
So maybe I am using wrong encoder or what?

Please help :)

Thank You

ktsaou
New Cone
New Cone
Posts: 8
Joined: 25 Feb 2009 02:34

Re: transcoding while streaming is crashing in 0.9.8a

Postby ktsaou » 04 Mar 2009 02:49

Well, it may be that your vlc is not compiled with its encoders.
You should check your distribution.

For anyone having the same with my problem: 0.9.8a has a problem converting/resampling multi-channel audio. It will be solved in 0.9.9.
See this Gentoo bug: http://bugs.gentoo.org/show_bug.cgi?id=260242


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 14 guests