VLC Transcode and stream from a RAW source

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
coobox
Blank Cone
Blank Cone
Posts: 26
Joined: 28 Jan 2008 14:29
VLC version: 0.8.6c Janus
Operating System: Linux Ubuntu
Location: Milan,Italy
Contact:

VLC Transcode and stream from a RAW source

Postby coobox » 01 Dec 2009 17:00

Hi Guys,

I bought the new Blackmagick DeckLink Studio.
This SDI board is supported by Ubuntu and works well.

There's a binary app that capture the RAW SDI input into a FIFO file. (Ex.: video.raw)

I'm trying to transcode and stream via RTP this input like this:

cvlc -vv --demux rawvideo --rawvid-fps 25 --rawvid-width 720 --rawvid-height 576 --rawvid-chroma=UYVY video.raw --sout="#transcode{vcodec=mp2v,acodec=none,vb=4000}:rtp{mux=ts,dst=239.25.32.53,port=2000}" --ttl 16

it works but, I'm not able to reduce the bitrate less that 4000Kb

the HW is based on ATOM 330 Dual Core @ 1.6 Ghz HT Technology and 2GB RAM under Ubuntu 9.10 , VLC 1.0.2

PLS HELP
--<Coobox>--

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

Re: VLC Transcode and stream from a RAW source

Postby Rémi Denis-Courmont » 01 Dec 2009 17:23

You'll have to scale the resolution down if you want to go below certain bit rates.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

coobox
Blank Cone
Blank Cone
Posts: 26
Joined: 28 Jan 2008 14:29
VLC version: 0.8.6c Janus
Operating System: Linux Ubuntu
Location: Milan,Italy
Contact:

Re: VLC Transcode and stream from a RAW source

Postby coobox » 02 Dec 2009 09:29

Yes but it seems that VLC doesn't use my 2 core (4 with HT technology).

I've notice that VLC use the 100% of only one core per time
--<Coobox>--

coobox
Blank Cone
Blank Cone
Posts: 26
Joined: 28 Jan 2008 14:29
VLC version: 0.8.6c Janus
Operating System: Linux Ubuntu
Location: Milan,Italy
Contact:

Re: VLC Transcode and stream from a RAW source

Postby coobox » 02 Dec 2009 11:49

--sout-transcode-threads
this option cause a

segmentation fault
--<Coobox>--

kilmarnock
New Cone
New Cone
Posts: 1
Joined: 10 Jan 2010 11:52

Re: VLC Transcode and stream from a RAW source

Postby kilmarnock » 10 Jan 2010 11:59

Same problem here, same cpu, segmentation fault. Any suggestions?

I am using

/usr/bin/vlc -d -I http --sout-transcode-threads=2 --sout="#transcode{vcodec=mpeg2,vb=256,scale=1,acodec=mpga,ab=128,channels=2}:rtp{dst=std{access=http,mux=ts,dst=:9090}}"

as commandline.

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

Re: VLC Transcode and stream from a RAW source

Postby Rémi Denis-Courmont » 10 Jan 2010 12:04

There are some race conditions in the transcode plugin, which is currently looking for a new maintainer. That said, the crash might also be in another library.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

nublaii
New Cone
New Cone
Posts: 2
Joined: 04 Oct 2010 10:43

Re: VLC Transcode and stream from a RAW source

Postby nublaii » 04 Oct 2010 10:52

Hi there coobox

Could you share the command line to generate the fifo files?

I am using just a plain 'mkfifo video.raw' and 'mkfifo audio.raw' followed by './Capture -m 2 -f video.raw -a audio.raw' and I am having some problems to read from the fifo...

Maybe I'm missing something?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 38 guests