LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Streaming mp4 (with h264) via Debain server with VLC (https://www.linuxquestions.org/questions/linux-server-73/streaming-mp4-with-h264-via-debain-server-with-vlc-903681/)

shorto 09-18-2011 10:53 AM

Streaming mp4 (with h264) via Debain server with VLC
 
Hey all!

Just wanted to ask I'm planing to make a little "streaming tv" but I'm having small problems.

I'm using the following code to get the stream up and running:

Code:

#!/bin/bash
/usr/bin/killall -9 screen
/usr/bin/killall -9 vlc
/usr/bin/screen -A -m -d -S test-1 /usr/bin/cvlc /home/shorto/video.mp4 -vvv input_stream --sout '#duplicate{dst=standard{access=http,mux=ts,dst=:8888}'

Now if I use an .mpg file everything works but when using a mp4 file with h264 only the sound streams on with no video.

Does somebody have a clue on how to fix this? Or perhaps if you can recommend a better alternative to VLC that can do this? The other problem I'm having here is that I would need to make a playlist of files, let's say I have 200 files to play and well I simply can't use this code to play those videos except if I stream every video on a different port and that is something I really don't want to do, just want a basic playlist that repeats itself when it's done so that it streams 24/7 and just plays one file after another.

qlue 09-20-2011 09:50 PM

do you have the h264 codec installed?
Also, have you had a look at mythtv? or is that overkill for what you want?


All times are GMT -5. The time now is 07:31 AM.