Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sc0Vu opened this issue Feb 14, 2019 · 5 comments
Open

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

sc0Vu opened this issue Feb 14, 2019 · 5 comments

Comments

@sc0Vu
Copy link

sc0Vu commented Feb 14, 2019

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
Copy link
Author

sc0Vu commented Feb 15, 2019

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

@adfghzhang
Copy link

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
Copy link
Owner

131 commented Feb 22, 2019

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

@sc0Vu
Copy link
Author

sc0Vu commented Dec 12, 2019

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

@YellowQC
Copy link

YellowQC commented Mar 9, 2020

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。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants