<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi all,<br><br>I built VLC form my ARM based embedded system (CALAO usba9263).<br>My aim is to stream the video acquired from the webcam that I plugged to the CALAO to a multicast group. <br><br>After a billion of problem about VLC cross-compilation I installed vlc on <br>the CALAO, but when I tried to stream it exit with no error ( echo $? return 0).<br>I can't understand why and I hope that VLC team could me suggest a way in order to know how it works. <br>Actually I debugged VLC by using QtCreator on my PC (x86), but I didn't understand the problem beacause the same command as ARM here (on my PC) works! <br><br><span style="font-weight: bold;">I post configuration options of VLC </span><br><br>--enable-faad --with-faad-tree=/home/LIBVLC/faad2-2.7/INSTALLED/lib
--with-freetype-config-path=/home/ARM_KIT/usb-a9263-buildroot-20080229/build_arm/staging_dir/usr/bin/ -with-fribidi-config-path=/home/LIBVLC/fribidi-0.10.9/INSTALLED/bin -enable-libmpeg2 --with-libmpeg2-tree=/home/LIBVLC/libmpeg2-0.5.0/INSTALLED/lib/ CFLAGS="-I/home/mpeg2dec-0.4.0/INSTALLED/include -I/home/ARM_KIT/usb-a9263-buildroot-20080229/build_arm/vlc-0.8.6e/modules/codec/ffmpeg -I/home/LIBVLC/ffmpeg-0.5/INSTALLED/include -I/home/LIBVLC/ffmpeg-0.5/INSTALLED/include/libavcodec -I/home/LIBVLC/ffmpeg-0.5/INSTALLED/include/libavformat -I/home/LIBVLC/ffmpeg-0.5/INSTALLED/include/libavutil -I /home/LIBVLC/ffmpeg-0.5/INSTALLED/include/libpostproc -I/home/LIBVLC/ffmpeg-0.5/INSTALLED/include/libavdevice -I/home/LIBVLC/fribidi-0.10.9/INSTALLED/include/fribidi -I/home/LIBVLC/faad2-2.7/INSTALLED/include" LDFLAGS="-lbz2 -L/home/roxen/Scrivania/LIBVLC/libmpeg2-0.5.0/libmpeg2/.libs/ -L/home/roxen/Scrivania/LIBVLC/libdvbpsi5-0.1.6/INSTALLED/lib
-L/home/LIBVLC/fribidi-0.10.9/INSTALLED/lib -L/home/ARM_KIT/usb-a9263-buildroot-20080229/build_arm/staging_dir/lib/" --enable-dvbpsi --with-dvbpsi=/home/roxen/Scrivania/LIBVLC/libdvbpsi5-0.1.6/INSTALLED/ --disable-daap --disable-libxml2 --disable-notify --disable-gnutls --disable-sdl --disable-sdl-image --disable-bonjour --disable-wxwidgets --disable-skins2 --disable-a52 --disable-glx --enable-v4l --disable-remoteosd --disable-hal --disable-dbus --disable-dbus-control --disable-gnomevfs --disable-cddax --disable-cdda --disable-libcddb --disable-mad --disable-avcodec --with-ffmpeg-tree=/home/LIBVLC/ffmpeg-0.5/INSTALLED/lib/ --disable-ogg --with-ffmpeg-zlib --enable-debug --disable-optimizations --enable-qte<br><br><br>In order to build ffmpeg I used the following <span style="font-weight: bold;">configuration options</span><br><br>./configure --prefix=/home/LIBVLC/ffmpeg-0.cvs20070307/INSTALLED --arch=arm --cpu=arm9 --cc=gcc --cross-compile
--target-os=linux --cross-prefix=arm-linux- --enable-gpl --enable-pp --enable-zlib --extra-cflags="-I/home/roxen/Documenti/ARM_KIT/usb-a9263-buildroot-20080229/build_arm/staging_dir/usr/include/" --extra-libs="-L/home/roxen/Documenti/ARM_KIT/usb-a9263-buildroot-20080229/build_arm/staging_dir/lib/ -lbz2" --enable-shared<br><br><br><span style="font-weight: bold;">In order to stream I run VLC with the following command</span>:<br><br>./vlc -vvvv v4l:// :v4l-vdev="/dev/video1" \<br>:v4l-size="":v4l-caching=200 :v4l-chroma="" :v4l-fps=0.000000 \<br>:no-v4l-config :v4l-video-input=-1 :v4l-video-output=-1 \<br>:v4l-chroma="" :v4l-width=320 :v4l-height=240 :v4l-brightness=-1 \<br>:v4l-colour=-1 :v4l-hue=-1 :v4l-contrast=-1 :no-v4l-mjpeg :v4l-decimation=1 :v4l-quality=100 \<br>--sout '#transcode{vcodec=mp4v,vb=800,ab=128,deinterlace}:standard{access=udp,mux=ts,url=239.255.12.42,sap=TestStream}'<br><br><br><span style="font-weight: bold;">The output is
:</span><br>....<br>status change: ( audio volume: 256 )<br><br>status change: ( play state: 1 )<br><br>[00000240] main stream output debug: stream=`transcode'<br>[00000241] main private debug: looking for sout stream module: 1 candidate<br>
[00000240] main stream output debug: stream=`standard'<br>[00000244] main private debug: looking for sout stream module: 1 candidate<br>[00000244] main private debug: set sout option: sout-standard-access to udp<br>[00000244] main private debug: set sout option: sout-standard-mux to ts<br>
[00000244] main private warning: Option sout-standard-url is deprecated. You should use sout-standard-dst instead.<br>[00000244] main private debug: set sout option: sout-standard-dst to 239.255.12.42<br>[00000244] main private debug: set sout option: sout-standard-sap to TestStream<br>
[00000244] stream_out_standard private debug: creating `udp/ts://<a href="http://239.255.12.42" target="_blank">239.255.12.42</a>'<br>[00000244] stream_out_standard private debug: extension is 42<br>[00000244] stream_out_standard private debug: extension -> mux=(null)<br>
[00000244] stream_out_standard private debug: using `udp/ts://<a href="http://239.255.12.42" target="_blank">239.255.12.42</a>'<br>[00000246] main private debug: looking for sout access module: 1 candidate<br>[00000246] main private debug: net: connecting to 239.255.12.42 port 1234<br>
[00000246] main private debug: localized Domain Names not supported - disabled<br>[00000248] main private debug: thread 7176 (sout write thread) created at priority 0 (udp.c:268)<br>[00000246] access_output_udp private debug: udp access output opened(<a href="http://239.255.12.42:1234" target="_blank">239.255.12.42:1234</a>)<br>
[00000246] main private debug: using sout access module "access_output_udp"<br>[00000244] stream_out_standard private debug: access opened<br>[00000249] main private debug: looking for sout mux module: 1 candidate<br>
[00000249] mux_ts private debug: shaping=200000 pcr=70000 dts_delay=400000<br>[00000249] main private debug: using sout mux module "mux_ts"<br>[00000240] main stream output debug: muxer support adding stream at any time<br>
[00000244] stream_out_standard private debug: mux opened<br>[00000244] stream_out_standard private: SAP Enabled<br>[00000240] main stream output debug: No announce handler found, creating one<br>[00000240] main stream output debug: creation done<br>
[00000251] main announce handler debug: registering announce<br>[00000252] main private debug: thread 8201 (sap handler) created at priority 0 (stream_output/sap.c:124)<br>[00000251] main announce handler debug: thread created, 0 sessions<br>
[00000251] main announce handler debug: creating SAP announce handler<br>[00000251] main announce handler debug: adding SAP session<br>[00000252] main private debug: using SAP address: 239.255.255.255<br>[00000252] main private debug: net: connecting to 239.255.255.255 port 9875<br>
[00000252] main private debug: Generated SDP (164 bytes):<br>v=0<br><br>o=- 5472185515 969 IN IP4 192.168.60.54<br><br>s=239.255.12.42<br><br>c=IN IP4 239.255.12.42<br><br>t=0 0<br><br>a=tool:vlc 0.8.6e<br><br>a=recvonly<br>
<br>a=type:broadcast<br><br>m=video 1234 udp 33<br><br><br>[00000252] main private debug: 1 addresses, 1 sessions<br>[00000244] main private debug: using sout stream module "stream_out_standard"<br>[00000241] main private debug: set sout option: sout-transcode-vcodec to mp4v<br>
[00000241] main private debug: set sout option: sout-transcode-vb to 800<br>[00000241] main private debug: set sout option: sout-transcode-ab to 128<br>[00000241] main private debug: set sout option: sout-transcode-deinterlace to (null)<br>
[00000241] stream_out_transcode private debug: codec video=mp4v 0x0 scaling: 1.000000 800kb/s<br>[00000241] main private debug: using sout stream module "stream_out_transcode"<br>[00000238] main input debug: `v4l://' gives access `v4l' demux `' path `'<br>
[00000238] main input debug: creating demux: access='v4l' demux='' path=''<br>[00000253] main demuxer debug: looking for access_demux module: 1 candidate<br>[00000253] v4l demuxer debug: V4L device OV511 USB Camera 1 channels 0 audios 64 < w < 640 48 < h < 480<br>
[00000253] v4l demuxer debug: setting channel Camera(0) 0 tuners flags=0x0 type=0x2 norm=0x0<br>[00000253] v4l demuxer debug: v4l device uses brightness: 32000<br>[00000253] v4l demuxer debug: v4l device uses colour: 40960<br>
[00000253] v4l demuxer debug: v4l device uses hue: 37632<br>[00000253] v4l demuxer debug: v4l device uses contrast: 0<br>[00000253] v4l demuxer debug: v4l device uses frame size: 18432<br>[00000253] v4l demuxer debug: v4l device uses chroma: I420<br>
[00000253] v4l demuxer error: cannot open audio device (No such file or directory)<br>[00000253] v4l demuxer debug: v4l grabbing started<br>[00000253] v4l demuxer debug: added new video es I420 128x96<br>[00000238] main input debug: selecting program id=0<br>
[00000253] main demuxer debug: using access_demux module "v4l"<br>[00000255] main packetizer debug: looking for packetizer module: 14 candidates<br>[00000255] main packetizer debug: using packetizer module "rawvideo"<br>
[00000255] main packetizer debug: thread 9226 (decoder) created at priority 0 (input/decoder.c:159)<br>[00000238] main input debug: starting in sync mode<br>[00000238] main input debug: `v4l://' successfully opened<br><br> <br><span style="font-weight: bold;">On my PC instead the same command works and returns </span><br><br>....<br>00000994] main stream output debug: creation done<br>[00001001] main announce handler debug: registering announce<br>[00001002] main private debug: thread 2983791504 (sap handler) created at priority 0 (stream_output/sap.c:124)<br>[00001001] main announce handler debug: thread created, 0 sessions<br>[00001001] main announce handler debug: creating SAP announce handler<br>[00001001] main announce handler debug: adding SAP session<br>[00001002] main private debug: using SAP address: 239.255.255.255<br>[00001002] main private debug: net: connecting to 239.255.255.255 port 9875<br>[00001002] main private debug: Generated SDP
(171 bytes):<br>v=0<br>o=- 1243606148244563 1903 IN IP4 192.168.60.88<br>s=239.255.12.42<br>c=IN IP4 239.255.12.42<br>t=0 0<br>a=tool:vlc 0.8.6e<br>a=recvonly<br>a=type:broadcast<br>m=video 1234 udp 33<br><br>[00001002] main private debug: 1 addresses, 1 sessions<br>[00000997] main private debug: using sout stream module "stream_out_standard"<br>[00000995] main private debug: set sout option: sout-transcode-vcodec to mp4v<br>[00000995] main private debug: set sout option: sout-transcode-vb to 800<br>[00000995] main private debug: set sout option: sout-transcode-ab to 128<br>[00000995] main private debug: set sout option: sout-transcode-deinterlace to (null)<br>[00000995] stream_out_transcode private debug: codec video=mp4v 0x0 scaling: 1.000000 800kb/s<br>[00000995] main private debug: using sout stream module "stream_out_transcode"<br>[00000993] main input debug: `v4l://' gives access `v4l' demux `' path `'<br>[00000993] main input debug: creating
demux: access='v4l' demux='' path=''<br>[00001003] main demuxer debug: looking for access_demux module: 2 candidates<br>[00000933] skins2 interface warning: cannot find node with id -1<br>[00001003] v4l demuxer debug: V4L device OV511 USB Camera 1 channels 0 audios 64 < w < 640 48 < h < 480<br>[00001003] v4l demuxer debug: setting channel Camera(0) 0 tuners flags=0x0 type=0x2 norm=0x0<br>[00001003] v4l demuxer debug: v4l device uses brightness: 32512<br>[00001003] v4l demuxer debug: v4l device uses colour: 40960<br>[00001003] v4l demuxer debug: v4l device uses hue: 32768<br>[00001003] v4l demuxer debug: v4l device uses contrast: 0<br>[00001003] v4l demuxer debug: v4l device uses frame size: 115200<br>[00001003] v4l demuxer debug: v4l device uses chroma: I420<br>[00001003] v4l demuxer error: cannot open audio device (No such file or directory)<br>[00001003] v4l demuxer debug: v4l grabbing started<br>[00001003] v4l demuxer debug: added new
video es I420 320x240<br>[00000993] main input debug: selecting program id=0<br>[00001003] main demuxer debug: using access_demux module "v4l"<br>[00001004] main packetizer debug: looking for packetizer module: 30 candidates<br>[00001004] main packetizer debug: using packetizer module "rawvideo"<br>[00001004] main packetizer debug: thread 2975398800 (decoder) created at priority 0 (input/decoder.c:159)<br>[00000993] main input debug: starting in sync mode<br>[00000993] main input debug: `v4l://' successfully opened<br>[00000994] main stream output debug: adding a new input<br>[00000995] stream_out_transcode private debug: creating video transcoding from fcc=`I420' to fcc=`mp4v'<br>[00001005] main decoder debug: looking for decoder module: 40 candidates<br>[00001005] main decoder debug: using decoder module "rawvideo"<br>[00001006] main encoder debug: looking for encoder module: 8 candidates<br>[00001006] ffmpeg encoder debug: libavcodec already
initialized<br>[00001006] ffmpeg encoder debug: found encoder MPEG-4 Video<br>[00001006] main encoder debug: using encoder module "ffmpeg"<br>[00001006] main encoder debug: removing module "ffmpeg"<br>[00000995] stream_out_transcode private debug: decoder aspect is 576000:432000<br>[00000995] stream_out_transcode private debug: source pixel aspect is 1.000000:1<br>[00000995] stream_out_transcode private debug: scaled pixel aspect is 1.000000:1<br>[00000995] stream_out_transcode private debug: source 320x240, crop 320x240, destination 320x240, padding 320x240<br>[00000995] stream_out_transcode private debug: encoder aspect is 576000:432000<br>[00001006] main encoder debug: looking for encoder module: 8 candidates<br>[00001006] ffmpeg encoder debug: libavcodec already initialized<br>[00001006] ffmpeg encoder debug: found encoder MPEG-4 Video<br>[00001006] main encoder debug: using encoder module "ffmpeg"<br>[00001000] main private debug: adding a new
input<br>[00001000] mux_ts private debug: adding input codec=mp4v pid=68<br>[00001000] mux_ts private debug: new PCR PID is 68<br>[00001007] main private debug: looking for video filter2 module: 8 candidates<br>[00001008] deinterlace private debug: using blend deinterlace mode<br>[00001008] deinterlace private debug: using blend deinterlace method<br>[00001007] deinterlace private debug: deinterlacing<br>[00001007] main private debug: using video filter2 module "deinterlace"<br>[00000998] access_output_udp private warning: putting two PCRs at once<br><br><br>I also tried to stream from a file <br><br><code>vlc -vvv ../100_1568.MOV --sout udp:239.255.12.42 --ttl 12<br><br><span style="font-family: comic sans ms;">the behaviour is similar. On the CALAO it stop working with no error, </span></code><span class="clickable" onclick='dr4sdgryt(event,"Ox")'><span class="sg"><span class="se1"><span class="trn">whereas <br><br>on my PC it streams
:<br><br><br>CALAO: <br> <br>....<br>0000786] mp4 private debug: read box: "hdlr" handler type alis name <br>[00000786] mp4 private debug: found Box: dinf size 36<br>[00000786] mp4 private debug: found Box: dref size 28<br>[00000786] mp4 private debug: found Box: alis size 12<br>[00000786] mp4 private warning: unknown box type alis (incompletely loaded)<br>[00000786] mp4 private debug: out of bound child<br>[00000786] mp4 private debug: read box: "dref" entry-count 1<br>[00000786] mp4 private debug: out of bound child<br>[00000786] mp4 private debug: found Box: stbl size 7144<br>[00000786] mp4 private debug: found Box: stsd size 52<br>[00000786] mp4 private debug: found Box: raw size 36<br>[00000786] mp4 private debug: read box: "soun" mp4 or qt1/2 (rest=0)<br>[00000786] mp4 private debug: read box: "soun" in stsd channel 1 sample size 8 sample rate 11025.000000<br>[00000786] mp4 private debug: out of bound child<br>[00000786] mp4 private
debug: read box: "stsd" entry-count 1<br>[00000786] mp4 private debug: found Box: stts size 24<br>[00000786] mp4 private debug: read box: "stts" entry-count 1<br>[00000786] mp4 private debug: found Box: stsc size 5272<br>[00000786] mp4 private debug: read box: "stsc" entry-count 438<br>[00000786] mp4 private debug: found Box: stsz size 20<br>[00000786] mp4 private debug: read box: "stsz" sample-size 1 sample-count 320684<br>[00000786] mp4 private debug: found Box: stco size 1768<br>[00000786] mp4 private debug: read box: "co64" entry-count 438<br>[00000786] mp4 private debug: out of bound child<br>[00000786] mp4 private debug: out of bound child<br>[00000786] mp4 private debug: out of bound child<br>[00000786] mp4 private debug: out of bound child<br>[00000786] mp4 private debug: found Box: udta size 100<br>main warning: can't store message (Invalid or incomplete multibyte or wide character): found Box: <br>main warning: can't store message (Invalid or
incomplete multibyte or wide character): read box: "<br>main warning: can't store message (Invalid or incomplete multibyte or wide character): found Box: <br>main warning: can't store message (Invalid or incomplete multibyte or wide character): read box: "<br>[00000786] mp4 private debug: out of bound child<br>[00000786] mp4 private debug: out of bound child<br>[00000786] mp4 private debug: out of bound child<br>[00000786] mp4 private debug: dumping root Box "root"<br>[00000786] mp4 private debug: | + skip size 280<br>[00000786] mp4 private debug: | + mdat size 22592516<br>[00000786] mp4 private debug: | + moov size 11682<br>[00000786] mp4 private debug: | | + mvhd size 108<br>[00000786] mp4 private debug: | | + trak size 4014<br>[00000786] mp4 private debug: | | | + tkhd size
92<br>[00000786] mp4 private debug: | | | + edts size 36<br>[00000786] mp4 private debug: | | | | + elst size 28<br>[00000786] mp4 private debug: | | | + mdia size 3878<br>[00000786] mp4 private debug: | | | | + mdhd size 32<br>[00000786] mp4 private debug: | | | | + hdlr size 36<br>[00000786] mp4 private debug: | | | | + minf size 3802<br>[00000786] mp4 private debug: | | | | | + vmhd size 20<br>[00000786] mp4 private debug: | |
| | | + hdlr size 36<br>[00000786] mp4 private debug: | | | | | + dinf size 36<br>[00000786] mp4 private debug: | | | | | | + dref size 28<br>[00000786] mp4 private debug: | | | | | | | + alis size 12<br>[00000786] mp4 private debug: | | | | | + stbl size 3702<br>[00000786] mp4 private debug: | | | | | | + stsd size 102<br>[00000786] mp4 private debug: |
| | | | | | + jpeg size 86<br>[00000786] mp4 private debug: | | | | | | + stts size 24<br>[00000786] mp4 private debug: | | | | | | + stsc size 28<br>[00000786] mp4 private debug: | | | | | | + stsz size 1772<br>[00000786] mp4 private debug: | | | | | | + stco size 1768<br>[00000786] mp4 private debug: | | + trak size 7452<br>[00000786] mp4 private debug: |
| | + tkhd size 92<br>[00000786] mp4 private debug: | | | + edts size 36<br>[00000786] mp4 private debug: | | | | + elst size 28<br>[00000786] mp4 private debug: | | | + mdia size 7316<br>[00000786] mp4 private debug: | | | | + mdhd size 32<br>[00000786] mp4 private debug: | | | | + hdlr size 36<br>[00000786] mp4 private debug: | | | | + minf size 7240<br>[00000786] mp4 private debug: | | | | | + smhd size 16<br>[00000786] mp4 private debug:
| | | | | + hdlr size 36<br>[00000786] mp4 private debug: | | | | | + dinf size 36<br>[00000786] mp4 private debug: | | | | | | + dref size 28<br>[00000786] mp4 private debug: | | | | | | | + alis size 12<br>[00000786] mp4 private debug: | | | | | + stbl size 7144<br>[00000786] mp4 private debug: | | | | | | + stsd size 52<br>[00000786] mp4 private
debug: | | | | | | | + raw size 36<br>[00000786] mp4 private debug: | | | | | | + stts size 24<br>[00000786] mp4 private debug: | | | | | | + stsc size 5272<br>[00000786] mp4 private debug: | | | | | | + stsz size 20<br>[00000786] mp4 private debug: | | | | | | + stco size 1768<br>[00000786] mp4 private debug: | | + udta size 100<br>[00000786] mp4 private debug:
| | | + <br>[00000786] mp4 private debug: | | | + <br>[00000787] mp4 demuxer debug: file type box missing (assuming ISO Media file)<br>[00000787] mp4 demuxer debug: found 2 tracks<br>[00000787] mp4 demuxer warning: elst box found<br>[00000787] mp4 demuxer debug: - [0] duration=29087ms media time=0ms) rate=1.0<br>[00000787] mp4 demuxer debug: track[Id 0x1] read 438 chunk<br>[00000787] mp4 demuxer debug: track[Id 0x1] read 438 samples length:29s<br>[00000775] main input debug: selecting program id=0<br>[00000787] mp4 demuxer debug: adding track[Id 0x1] video (enable) language undef<br>[00000787] mp4 demuxer warning: elst box found<br>[00000787] mp4 demuxer debug: - [0] duration=29087ms media time=0ms) rate=1.0<br>[00000787] mp4 demuxer debug: track[Id 0x2] read 438 chunk<br>[00000787] mp4 demuxer debug: track[Id
0x2] read 320684 samples length:29s<br>[00000787] mp4 demuxer debug: adding track[Id 0x2] audio (enable) language undef<br>[00000787] main demuxer debug: using demux2 module "mp4"<br>[00000787] mp4 demuxer warning: DEMUX_GET_FPS unimplemented !!<br>[00000775] main input debug: looking for a subtitle file in ../<br>[00000789] main packetizer debug: looking for packetizer module: 30 candidates<br>[00000789] main packetizer debug: using packetizer module "packetizer_copy"<br>[00000775] main input debug: stream out mode -> no decoder thread<br>[00000815] main packetizer debug: looking for packetizer module: 30 candidates<br>[00000815] main packetizer debug: using packetizer module "packetizer_copy"<br>[00000775] main input debug: stream out mode -> no decoder thread<br>[00000775] main input debug: starting in sync mode<br>[00000775] main input debug: `../100_1568.MOV' successfully opened<br>[00000787] mp4 demuxer debug: elst (0) gives 0ms (movie)->
0ms (track)<br>[00000787] mp4 demuxer debug: track[Id 0x1] does not provide Sync Sample Box (stss)<br>[00000787] mp4 demuxer debug: elst (0) gives 0ms (movie)-> 0ms (track)<br>[00000787] mp4 demuxer debug: track[Id 0x2] does not provide Sync Sample Box (stss)<br>[00000776] main stream output debug: adding a new input<br>[00000782] main private debug: adding a new input<br>[00000782] mux_ts private debug: adding input codec=MJPG pid=68<br>[00000782] mux_ts private debug: new PCR PID is 68<br>[00000776] main stream output debug: adding a new input<br>[00000782] main private debug: adding a new input<br>[00000782] mux_ts private debug: adding input codec=u8 pid=69<br>[00000782] main private error: cannot add this stream<br>[00000815] main packetizer error: cannot create packetizer output (u8 )<br><br>and exit. The stream not start!!!<br><br><br>On the PC the output is the same but it streams and not exit.<br><br><br>Please help me
!!!!!! Thank you for attention!<br><br><br><br><br><br></span></span></span></span><code><span style="font-family: comic sans ms;"></span><br></code><br></td></tr></table><br>