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}}"
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}}"
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: ========
...
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}"
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"
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"
Do you know if 0.9.8a can transcode and stream at the same time?
Any ideas are welcome.
Costa