h264-live-player
h264-live-player copied to clipboard
Using Raspberry Pi Stream with h264-live-player server-tcp
Hi there, Thanks for this amazing repository, it save my time to understand how to decode h264 stream on browser. The serve-rpi.js worked good on raspberry Pi, so I try to run use server-tcp.js with standalone raspivid stream service. Somehow, I got problem on doing this, would you like to help me?
Raspberry Pi(stream video on :3030):
$raspivid -n -w 200 -h 200 -t 0 -l -o tcp://0.0.0.0:3030 -pf baseline -fps 12 -b 950000
Server TCP:
const feed = new RemoteTCPFeedRelay(server, {
feed_ip : "172.16.10.37",
feed_port : 3030,
width: 200,
height: 200
});
I can receive the data on browser, but the video looked terrible.
Picture:
Thanks!
Fix this when I set the width and height to 320 and 180. How could I change the width:height for decoder?
I am also meet the same problem,my vedio is record from Android device. Only when vedio size in 720x1280 is ok. Others vedio size like 616x1280, 1080x1920 all wrong. How could I change the width:height for decoder?
Sorry, no time to look at it right now..
Update: I found the related issue in broadway decoder, they also require 16:9 video. https://github.com/mbebenita/Broadway/issues/137
I am also meet the same problem,my vedio is record from Android device. Only when vedio size in 720x1280 is ok. Others vedio size like 616x1280, 1080x1920 all wrong. How could I change the width:height for decoder?
Have you solved this problem on Android devices? i alse meet the same problem,720x1280 is ok, other size failed。