File size issue

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

File size issue

Mikl
This post was updated on .
I am recording video from camera (i get it as raw rgb24) using this
pipeline:
appsrc ! video/x-raw-rgb ! videoconvert ! video/x-raw I420 ! jpegenc ! matroskamux ! filesink

also it is 2 subtitles tracks attached to the same mux:
appsrc ! text/x-raw ! matroskamux ! filesink

"videoconvert" is used to convert video to from 4:4:4 to 4:2:0
colorspace, because Windows Media Player can not play 4:4:4. And i
need it, because most of users of my video will use Windows.
 
*My problem, what file is huge.*
And it is not depend from jpegenc quality.
What is wrong in my pipeline?
Reply | Threaded
Open this post in threaded view
|

Re: File size issue

Tim Müller
On Fri, 2016-10-14 at 01:12 -0700, Mikl wrote:

> I am recording video from camera (i get it as raw rgb24) using this
> pipeline:
> appsrc ! video/x-raw-rgb ! videoconvert ! video/x-raw I420 ! jpegenc
> !
> matroskamux ! filesink

I presume you meant video/x-raw,format=RGB,...

> also it is 2 subtitles tracks attached to the same mux:
> appsrc ! text/x-raw ! matroskamux ! filesink
>
> "videoconvert" is used to convert video to from 4:4:4 to 4:2:0
> colorspace, because Windows Media Player can not play 4:4:4. And i
> need it, because most of users of my video will use Windows.
>
> *My problem, what file is huge.*
> And it is not depend from jpegenc quality.
> What is wrong in my pipeline?

How huge is huge? For what resolution and framerate?

You shouldn't expect compression miracles from JPEG, use H.264 or any
other proper video codec to get better compression.

Cheers
 -Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: File size issue

Mikl
Hello, Tim

Resolution is 800x300. Every frame is taking 1 479 687 bytes at 80% and 1 451 145 bytes at 20%
Even bmp is taking less: 800*300*3 = 720 000.

I am not expecting any miracles, but at least difference in size between bmp, 80%  and 20%.
I see it in a quality (image become ugly), but size for one frame is always the same.

Looks like, something have "fixed minimum size".

PS: how was the conference?

Mikl
Reply | Threaded
Open this post in threaded view
|

Re: File size issue

Mikl
In reply to this post by Tim Müller
Hello, Tim

I did a test.
Buffer size of one frame after jpegenc for 800x300 rgb is 360 000 byte
Why i have 1.5Mb in a file?

Mikl
Reply | Threaded
Open this post in threaded view
|

Re: File size issue

Mikl
Solved.

It was wrong size setting in a buffer for push subtitles.