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

Green video after ffmpeg transcoding with scale #36

Closed
maxi1134 opened this issue Sep 10, 2022 · 9 comments
Closed

Green video after ffmpeg transcoding with scale #36

maxi1134 opened this issue Sep 10, 2022 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@maxi1134
Copy link

maxi1134 commented Sep 10, 2022

Hey Alex,
Here's hoping you're doing good!

I've been using this since release and must say I am very pleased with the performance, except for that small kernel panic thing that you are working on.

I was thinking about an issue that I encounter, where my main PTZ camera can either send a very high resolution ( 2k) or a very low resolution (480p). The highest resolution seems too high to be properly streamed to my tablets, and the lower one is simply abhorrent quality-wise.

Feature: I was thinking, would it be wise to implement a quick argument to downscale videos?
For instance, reduce the height and width by a factor of X. This could use the hardware acceleration provided by FFmpeg.

Thanks for reading!

@maxi1134
Copy link
Author

maxi1134 commented Sep 10, 2022

I tried using "ffmpeg:rtsp://admin:password@192.168.0.210/h264Preview_01_main#raw=-vf scale="480:-1""

And got this as a result in the "info" page, yet the pages MSE and WEBRTC do not load:

image

@maxi1134
Copy link
Author

For those wondering, I found a solution;

" - ffmpeg:rtsp://admin:password@192.168.0.210/h264Preview_01_main#raw=-vf "scale=-1:720"#video=h264"

@calisro
Copy link

calisro commented Sep 10, 2022

I was just about to paste that. :)

@maxi1134
Copy link
Author

Although it works well on VLC. the stream bugs on Go2rtc interface and on Hass

Any idea why?

image

@AlexxIT AlexxIT reopened this Sep 11, 2022
@AlexxIT AlexxIT changed the title [Feature Request] Video transcoding argument(Resolution divider) Green video after ffmpeg transcoding with scale Sep 11, 2022
@AlexxIT AlexxIT added the bug Something isn't working label Sep 11, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 11, 2022

I'll try to repeat the problem myself.

What about MSE stream?

@maxi1134
Copy link
Author

Hey there!

The MSE Streams loads then instantly freeze and never recovers.

@maxi1134
Copy link
Author

This seems to also happen with transpose=1

@AlexxIT AlexxIT self-assigned this Sep 15, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 15, 2022

Will be fixed in next beta.6

@AlexxIT
Copy link
Owner

AlexxIT commented Sep 18, 2022

Should be fixed. Reopen this issue if not
https://github.com/AlexxIT/go2rtc/releases/tag/v0.1-beta.6

@AlexxIT AlexxIT closed this as completed Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants