H264 Encoding with bitrate produces gray/grey frames in the beginning

747 views
Skip to first unread message

Kushel

unread,
Jun 26, 2012, 7:50:09 PM6/26/12
to xuggle...@googlegroups.com
Hi Art,

When I try to encode a set of BufferedImages into an H264 stream, everything works fine. However, when I add the bitrate parameter, the first few frames are gray - to be precise the first frame is completely gray and over the next few frames it 'dissolves' into the actual picture and beyond that all frames are fine. I did quite a lot of research on this and could not find any answers. I was wondering if you know what I am doing wrong?

Attached is a version of the Xuggler decoding example that Xuggler provides with the encoding code that I use to demonstrate the issue.

You can try it on this file to see the issue: http://static.clipcanvas.com/sample/clipcanvas_14348_offline.mp4

Thanks,
Kushel
DecodeAndPlayVideo.java

Julien Baumgarten

unread,
Jun 27, 2012, 7:00:59 AM6/27/12
to xuggle...@googlegroups.com
Hi everyone,

I have another question about Xuggler 5.4 jar provided here: http://xuggle.googlecode.com/svn/trunk/repo/share/java/xuggle/xuggle-xuggler/5.4/
Does FFMPEG comes with the librtmp support?

Yours sincerely,
Julien BAUMGARTEN

Art Clarke

unread,
Jun 27, 2012, 9:39:52 AM6/27/12
to xuggle...@googlegroups.com, xuggle...@googlegroups.com
Yes

Sent from my iPad
> --
> You received this message because you are subscribed to the Google Groups "xuggler-users" group.
> To post to this group, send email to xuggle...@googlegroups.com.
> To unsubscribe from this group, send email to xuggler-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/xuggler-users?hl=en.
>

Julien Baumgarten

unread,
Jun 27, 2012, 9:41:21 AM6/27/12
to xuggle...@googlegroups.com
It might have a problem with the RTMPT.
Someone told me on the FFMPEG userlist that RTMPT works with the librtmp support but when I use RTMPT stream, I have an error. Does anyone is able to use RTMPT streams?

Yours sincerely,
Julien BAUMGARTEN

Kushel

unread,
Jun 27, 2012, 8:34:23 PM6/27/12
to xuggle...@googlegroups.com
I think my original post was highjacked :) Let me know if anyone has a resolution to the gray fram problem?


On Wednesday, June 27, 2012 6:41:21 AM UTC-7, j.baum...@netvisio.com wrote:
It might have a problem with the RTMPT.
Someone told me on the FFMPEG userlist that RTMPT works with the librtmp support but when I use RTMPT stream, I have an error. Does anyone is able to use RTMPT streams?

Yours sincerely,
Julien BAUMGARTEN


Le 27 juin 2012 à 15:39, Art Clarke a écrit :

> Yes
>
> Sent from my iPad
>
> On Jun 27, 2012, at 4:00 AM, Julien Baumgarten <j.baum...@netvisio.com> wrote:
>
>> Hi everyone,
>>
>> I have another question about Xuggler 5.4 jar provided here: http://xuggle.googlecode.com/svn/trunk/repo/share/java/xuggle/xuggle-xuggler/5.4/
>> Does FFMPEG comes with the librtmp support?
>>
>> Yours sincerely,
>> Julien BAUMGARTEN
>>
>> --
>> You received this message because you are subscribed to the Google Groups "xuggler-users" group.
>> To post to this group, send email to xuggle...@googlegroups.com.
>> To unsubscribe from this group, send email to xuggler-users+unsubscribe@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/xuggler-users?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups "xuggler-users" group.
> To post to this group, send email to xuggle...@googlegroups.com.
> To unsubscribe from this group, send email to xuggler-users+unsubscribe@googlegroups.com.

TK

unread,
Jun 27, 2012, 9:29:23 PM6/27/12
to xuggle...@googlegroups.com
Yes, your post definitely got hijacked. Is there a delete button on here? ;)

Julien BAUMGARTEN

unread,
Jun 28, 2012, 3:49:11 AM6/28/12
to xuggle...@googlegroups.com
What was your problem?
I think it is a completely different problem than mine ;)

To view this discussion on the web visit https://groups.google.com/d/msg/xuggler-users/-/i_sZVSmiDKEJ.

To post to this group, send email to xuggle...@googlegroups.com.
To unsubscribe from this group, send email to xuggler-user...@googlegroups.com.

Kushel

unread,
Jun 28, 2012, 11:28:29 AM6/28/12
to xuggle...@googlegroups.com
Replying to the original post to revert subject. Julien, I have only two posts on this forum and you've hijacked them both. Here is how you create a new topic:
http://support.google.com/groups/bin/answer.py?hl=en&answer=1046523&topic=2458614&ctx=topic

Kushel

unread,
Jul 9, 2012, 2:12:06 PM7/9/12
to xuggle...@googlegroups.com
Hi,

I was just following up on this. Has anyone else run into this problem (sample program attached to first post)?

Thanks,
Kushel

Kushel

unread,
Jul 9, 2012, 6:09:31 PM7/9/12
to xuggle...@googlegroups.com
I think I figured this one out. If anyone is interested - setting qmax to the recommended 51 (for x264) or lower seemed to work.

Thanks,
Kushel
Reply all
Reply to author
Forward
0 new messages