<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><font class="Apple-style-span" face="arial" size="2">Hi all :)</font><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; ">My system:</div><div style="font-family: arial; font-size: 10pt; ">I run ubuntu natty, and have an old analog TV card, the winTV-go +FM. and vlc 1.1.9., apache2</div><div style="font-family: arial; font-size: 10pt; ">What I want to achieve:</div><div><font class="Apple-style-span" face="arial" size="2">take the output of my old tv card, stream it with vlc and have the stream embedded on a local site to be displayed with html5, so i can watch the stream on my ipad 1 or 2</font></div><div><font class="Apple-style-span" face="arial" size="2">Current situation:</font></div><div><font class="Apple-style-span" face="arial" size="2">I have managed to get streaming with vlc working
(i don't use the gui) with different containters and codecs. I have 3 working stream-commands that include:</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2"><div>1: vlc -vvv v4l2:///dev/video0:width=640:height=480 :input-slave=alsa://hw:1,1 --sout '#transcode{vcodec=mp4v,acodec=mp3,vb=8000,ab=128,channels=1,samplerate=44100}:standard{access=http,mux=ts,dst=192.168.1.10:9090}'</div><div>2: vlc -vvv v4l2:///dev/video0:width=640:height=480 :input-slave=alsa://hw:1,1 --sout '#transcode{vcodec=theo,acodec=mp3,vb=8000,ab=128,channels=1,samplerate=44100}:standard{access=http,mux=ogg,dst=192.168.1.10:9080/test.ogv}'</div><div>3: vlc -v v4l2:///dev/video0:width=640:height=480 :input-slave=alsa://hw:1,1 --sout
'#transcode{vcodec=h264,vb=1024,acodec=mp3,channels=1,ab=128,samplerate=44100}:standard{access=http,mux=ts,dst=192.168.1.10:9080/test.mp4}'</div><div><br></div><div>I can open all 3 streams on a different computer and play them in vlc, Note on the side: the *.ogv stream i can also just enter as an url (http://192.168.1.10:9080/test.ogv) in chrome and it displays it there as a video, the other 2 streams it tries to download as a file.</div><div><br></div><div>So far so good, now I come to my html5 code:</div><div><br></div><div><div><html></div><div> <head></div><div> <script src="video.js" type="text/javascript" charset="utf-8"></script></div><div> <link rel="stylesheet" href="video-js.css" type="text/css" media="screen" title="Video JS" charset="utf-8"></div><div></head></div><div><body></div><div> <script type="text/javascript" charset="utf-8"></div><div>
VideoJS.setupAllWhenReady();</div><div> </script></div><div> <div class="video-js-box"></div><div> <video class="video-js" width="640" height="480" controls preload poster="http://192.168.1.10/TV_new/jen.jpg"></div><div> <source src=http://192.168.1.10:9080/test.ogv type=video/ogg; codecs="theora, vorbis"'> </div><div> <!-- Image Fallback. --></div><div> <img src="http://192.168.1.10/TV_new/jen.jpg" width="640" height="264" alt="Poster Image"</div><div> title="No video playback capabilities." /></div><div> </object></div><div> </video></div><div> </p></div><div> </div></div><div> </body></div><div></html></div></div><div><br></div><div>this works perfectly in chrome,
but because it is ogv it will of course not work on the ipad, so i need to use h.264/mp4 as that is supported/built in with safari, but when using the stream command 1 or 3 then i get no video displayed on ipad or chrome.</div><div>When not using stream-command 2 (the ogv command) I adjust the html5 code to one of the following (I have tried all 3):</div><div><br></div><div> <source src=http://192.168.1.10:9080/test.mp4 type=video/mp4; codecs="avc1.4D401E, mp3"'> </div><div><br></div><div>or</div><div><br></div><div> <source src=http://192.168.1.10:9080/test.mp4 type=video/mp4'> </div><div><br></div><div>or</div><div><br></div><div> <source src=http://192.168.1.10:9080/test.mp4'> </div><div><br></div><div>none of these work.</div><div><br></div><div>I have also added mime types to my /etc/mime.types</div><div><br></div><div><div>video/mp4
mp4</div><div>video/quicktime qt mov</div><div>video/mp4v-es</div><div>video/ogg ogv</div><div>video/webm webm</div><div>video/x-matroska mpv mkv</div><div>application/x-mpegURL m3u8</div><div>video/MP2T
ts</div><div>application/x-mpegURL .m3u8</div></div><div><br></div><div>how do I have to specify the html5 code for it to be properly displayed on my ipad? anyone got a clue?</div><div>btw I have also tried http apple live stream using ffmpeg and segmenter and i get that working as well, but due to the fact that TV is a continuous stream of data it does not work well with the playlist, so i stops after a while and you need to restart etc, not very handy and i want the above working, would appreciate the help, thanks in advance :)</div><div><br></div><div>jody</div></font></div></td></tr></table>