Skip to content

MJPEG source -> MJPEG output quality degradation #559

@mvdarend

Description

@mvdarend

Hi there,

Hopefully someone can help with a problem I'm having with 're-streaming' an MJPEG stream, when I do this the quality of the new stream is much worse than the original. I'm probably missing a setting somewhere but my searches haven't resulted in a solution so far. One of the software packeges we're using at the moment can only process MJPEG streams, so we're stuck with that for them time being.

The source is a sub-stream from a Hikvision camera:

image

When streaming this original as an RTSP stream in VLC it looks like this:

image

When streaming through Go2Rtc it ends up looking like this:

image

Here is the relevant part of the config, ffmpeg settings have been left default:

ffmpeg:  
  
streams:
  1234:
    - rtsp://User:[email protected]:554/Streaming/Channels/102 

I've tried playing around with all sorts of settings to no avail, anyone have an idea of what it could be?

If I set the stream from the camera to H.264 instead of MJPEG it is much better but once I try transcoding that stream to MJPEG the quality drops again to a similar level as above.

Relevant info

  • Ubuntu version 23.04 running on a Proxmox VM
  • go2rtc_linux_amd64 - v1.6.2
  • No hardware acceleration

Edit: Spelling mistakes and better screnshot of Go2Rtc stream showing address bar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions