I just found a simple way to make private Radio, Video and Television transmission work, the worst thing was finding the online transmission acceptance limitations of the great and innovative DCPlaya.
It turns out all you need is VLC.
Create your own Transmission Channels of Radio:
Code: Select all
vlc -vvv https://cloud1.cdnseguro.com:9758/ --sout "#transcode{acodec=mp3,ab=256k,channels=1,samplerate=44100}:http{mux=ts,dst=:9000/stream}" &
- This is an functional example and the command itself for you made your changes. Here you just need to change the radio URL: "
https://cloud1.cdnseguro.com:9758/" for one you want.
- It overcomes the natural limitation of http and mp3, and can then retransmit any https and aac online radio.
- Always 256k just in case the source it is.
The target URL Transmission will be:
http://your-ip-address:9000/stream
":9000/stream" >> this is up to you.
Create your own Transmission Channels of LIVE TELEVISION:
Really low quality IPTV on Dreamcast (!!) , but still amazing.
Code: Select all
vlc -vvv https://cbsn-chi.cbsnstream.cbsnews.com/out/v1/b2fc0d5715d54908adf07f97d2616646/master.m3u8 --sout "#transcode{vcodec=divx,vb=600,maxrate=600,bufsize=1000,scale=1,width=160,height=120,acodec=mp3,ab=16k,channels=1,samplerate=22050}:http{mux=ts,dst=:9001/stream}" --audio-desync=-1100 &
- Insane, i just found out this methods tonight.
- Just replace the m3u8 URL.
- Audio delay or video advance are required by 1 second, as DCPlaya has this delay by nature.
The target URL Transmission will be:
http://your-ip-address:9001/stream
Here you find IPTV
https://github.com/iptv-org/iptv/tree/master/streams
Create your own Transmission Channels of Local Videos:
Really low quality VIdeo Streaming on Dreamcast (!!) , but still fantastic.
Code: Select all
vlc -vvv YOU_VIDEO_ANYTHING_YOU_WANT.MP4 --sout "#transcode{vcodec=divx,vb=600,maxrate=600,bufsize=600,scale=1,width=160,height=120,acodec=mp3,ab=48k,channels=1,samplerate=22050}:http{mux=ts,dst=:9002/stream}" --audio-desync=-1100 &
- Audio delay or video advance are required by 1 second, as DCPlaya has this delay by nature.
- I was first converting the videos with ffmpeg to something like video.avi bitrate 400, resolution 320x240, mp3 64k, mono, samplerate 22050, then change a little bit felling dcplaya behavior
Like this:
Code: Select all
ffmpeg -i your.mp4 -vf "tpad=start_duration=1.1" -c:v mpeg4 -vtag divx -b:v 600k -maxrate 600k -bufsize 600k -s 320x240 -r 24 -c:a mp3 -b:a 48k -ar 22050 -ac 1 video_out.avi
Here you see the good source format will have mpeg4 divx H263 type, bitrate between 350 and 600, defined maxrate and buffer for "Constant" video, and about the audio, is audible enough even from 16k up to 64k, lightweight 22.05 kHz sampling rate is important.
>> then I stream the low quality AVI file to something even low, because is what DCPlaya can handle, like this
Code: Select all
cvlc -vvv shen_ep2.avi --loop --sout "#transcode{vcodec=divx,vb=600,scale=0.5}:http{mux=ts,dst=:9002/stream}" &
This is using RaspberyPi or Linux PC, And I still think is the best method for Local Videos, more stable and "quality".
scale=0.5 means VLC will drop the resolution by half.
RaspberryPi can't handle in-time MP4 converting/transmission, so you go with stronger machines or VLC for Windows on prompt command (easy)
Code: Select all
C:\Program Files\VideoLAN\VLC>vlc -vvv https://cbsn-chi.cbsnstream.cbsnews.com/out/v1/b2fc0d5715d54908adf07f97d2616646/master.m3u8 --sout "#transcode{vcodec=divx,vb=600,maxrate=600,bufsize=1000,scale=1,width=160,height=120,acodec=mp3,ab=16k,channels=1,samplerate=22050}:http{mux=ts,dst=:9001/stream}" --audio-desync=-1100 &
Then you make your CDI editing the file:
at dcplaya_root/extra/radio.m3u in order to include your address to the playlist
something like this:
/http/192.168.0.9:9001/stream/
[BootDreams is you friend.]
On videos, many times if the buffer bar looks crazy, stop and play again until it stabilizes.
Do your tests like changes on bitrate, also resolution. This are just reference values, sometimes it depends on the source video.
I give you all I had.
Dreamcast Streaming Revolution
