Huffyuv encoding problems

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

Huffyuv encoding problems

Greg Logan
Hi List,

I'm having trouble getting valid encodes from the ffenc_huffyuv plugin
for one of my two encoding devices.  The two devices are a Hauppauge PVR
500 card (which works fine) and an Epiphan VGA2USB capture device (which
does not).

The pipeline I'm using for the Epiphan card is the following:

sudo gst-launch -e v4lsrc device=/dev/video2 ! ffmpegcolospace !
ffenc_huffyuv ! avimux ! filesink location=test.avi

which generates a file like http://aries.usask.ca/test.avi.  Note that
I've been having trouble getting the files to play on linux, but the
latest version of VLC on windows works.

If you can't see the contents of that video it's looks like the bottom
1/3 of the video is pieces (~20 pixels high) of the top 2/3 repeated and
color shifted.  The odd thing is the other encoders (x264enc,
ffenc_mpeg2video) work fine with this device - it's just the Huffyuv
plugins.

Does anyone know what's causing this?  Or better yet, how to go about
fixing it?

Thanks,
G

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Huffyuv encoding problems

Julien Isorce


2009/8/20 Greg Logan <[hidden email]>
Hi List,

I'm having trouble getting valid encodes from the ffenc_huffyuv plugin
for one of my two encoding devices.  The two devices are a Hauppauge PVR
500 card (which works fine) and an Epiphan VGA2USB capture device (which
does not).

The pipeline I'm using for the Epiphan card is the following:

sudo gst-launch -e v4lsrc device=/dev/video2 ! ffmpegcolospace !
ffenc_huffyuv ! avimux ! filesink location=test.avi

which generates a file like http://aries.usask.ca/test.avi.  Note that
I've been having trouble getting the files to play on linux, but the
latest version of VLC on windows works.

If you can't see the contents of that video it's looks like the bottom
1/3 of the video is pieces (~20 pixels high) of the top 2/3 repeated and
color shifted.  The odd thing is the other encoders (x264enc,
ffenc_mpeg2video) work fine with this device - it's just the Huffyuv
plugins.

Does anyone know what's causing this?  Or better yet, how to go about
fixing it?

Hi,

I can see that the resolution is 1024*768

So try to increase buffer size:

ffenc_huffyuv buffer-size=2000000

(default is 524288 using gst-inspect-0.10 ffenc_huffyuv)

Note that normally, using ffenc_ljpeg the result file has a smaller size. (then use ffedc_ljpeg to decode)



Thanks,
G

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Huffyuv encoding problems

Greg Logan
Julien Isorce wrote:

> 2009/8/20 Greg Logan <[hidden email]>
>
>> Hi List,
>> [...]
>> If you can't see the contents of that video it's looks like the bottom
>> 1/3 of the video is pieces (~20 pixels high) of the top 2/3 repeated and
>> color shifted.  The odd thing is the other encoders (x264enc,
>> ffenc_mpeg2video) work fine with this device - it's just the Huffyuv
>> plugins.
>>
>> Does anyone know what's causing this?  Or better yet, how to go about
>> fixing it?
>
>
> Hi,
>
> I can see that the resolution is 1024*768
>
> So try to increase buffer size:
>
> ffenc_huffyuv buffer-size=2000000

Ah, that works.  Thanks!  How would I go about calculating that value
for a given resolution?  In theory we will be capturing significantly
larger desktops in the future.

> (default is 524288 using gst-inspect-0.10 ffenc_huffyuv)
>
> Note that normally, using ffenc_ljpeg the result file has a smaller size.
> (then use ffedc_ljpeg to decode)

Thanks for the suggestion, I'll look into it :)

G

>
>> Thanks,
>> G
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel