131 / h264-live-player

A live h264 player for the browser (ideal for raspberrypi / raspicam )
MIT License
1.07k stars 250 forks source link

Using Raspberry Pi Stream with h264-live-player server-tcp #70

Open sc0Vu opened 5 years ago

sc0Vu commented 5 years ago

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:

screen shot 2019-02-14 at 11 14 36 am

Thanks!

sc0Vu commented 5 years ago

Fix this when I set the width and height to 320 and 180. How could I change the width:height for decoder?

adfghzhang commented 5 years ago

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?

131 commented 5 years ago

Sorry, no time to look at it right now..

sc0Vu commented 4 years ago

Update: I found the related issue in broadway decoder, they also require 16:9 video. https://github.com/mbebenita/Broadway/issues/137

YellowQC commented 4 years ago

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。