Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-07-13 Thread Faraz Khan
Sergey, Passing individual nal units to the decoder does not work (produces errors I provided you with). Setting CODEC_FLAG2_CHUNKS changes the errors. This is the same with or without the parser. Maybe that behavior has changed. If anyone has information regarding this it'll be awesome! Btw- if

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-07-13 Thread Sergey Fedorov
You should split the stream to NAL units anyway before passing to decoder. That's what I know about it ) 2013/7/8 Faraz Khan > Sergey, > Just tried - setting decoderContext->flags2 to CODEC_FLAG2_CHUNKS also > doesnt work (with or without parser!) Is there something special that needs > to be

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-07-07 Thread Faraz Khan
Sergey, Just tried - setting decoderContext->flags2 to CODEC_FLAG2_CHUNKS also doesnt work (with or without parser!) Is there something special that needs to be done? Decoder keeps saying: *Screenhero[45392:13803] Current profile doesn't provide more RBSP data in PPS, skipping* *2013-07-07 13:4

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-07-07 Thread Faraz Khan
Sergey, I did not - is that supposed to do the trick? Would we need a parser in that scenario? On Sun, Jul 7, 2013 at 12:13 AM, Sergey Fedorov < night.rain.whis...@gmail.com> wrote: > Did you try using CODEC_FLAG2_CHUNKS? > > > 2013/7/6 Attila Sukosd > >> Hi guys, >> >> There was this thread a

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-07-07 Thread Sergey Fedorov
Did you try using CODEC_FLAG2_CHUNKS? 2013/7/6 Attila Sukosd > Hi guys, > > There was this thread about decoding NALUs one-by-one with parser2/decode2 > and I'm having exactly the same issue. > > I have x264 creating a bunch of NALUs, in annex_b and repeate_headers, and > trying to decode them

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-07-06 Thread Attila Sukosd
Ye, x264. Thanks for the advice, seem to work much better now :) Cheers, Attila - DTU Computing Center - www.cc.dtu.dk att...@cc.dtu.dk, gba...@student.dtu.dk, s070...@student.dtu.dk On Sat, Jul 6, 2013 at 6:46 PM, Faraz Khan wrote: > Are you using x

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-07-06 Thread Faraz Khan
Are you using x264? x264 has this awesome option called intra_refresh - set that to one and use the keyint_max stuff to specify how quickly you want a intra refresh. It can be as quick as 2-3 times the framerate. With that, the decoder would magically recover even if you have 100% packet loss :)

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-07-06 Thread Attila Sukosd
Hi Faraz, Thanks a lot for your fast reply! I guess I will try to do it as you say, reconstruct the frame out of the arrived NALUs and feed that to the decoder at once. Did you run some tests on what happens in case some of the NALUs get lost due to packet loss? Best, Attila --

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-07-06 Thread Faraz Khan
Atilla, We tried this and came to the conclusion that ffmpeg is probably not designed to handle a single NALU at a time. You can get the parser to work in a sort of unreliable fashion if you turn on Annex-b headers in your encoder (we were using x264). However the parser may still be unable to read

[Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-07-06 Thread Attila Sukosd
Hi guys, There was this thread about decoding NALUs one-by-one with parser2/decode2 and I'm having exactly the same issue. I have x264 creating a bunch of NALUs, in annex_b and repeate_headers, and trying to decode them one by one on the client side. When I concatenate all the NALUs per frame int

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-06-10 Thread Faraz Khan
Also - av_parser_parse2 doesnt seem to like out of order NAL packets - is this also a known issue? On Mon, Jun 10, 2013 at 3:43 PM, Faraz Khan wrote: > So I got the decoder to work with the parser! It was a bug on my end - > However it still seems that the parser waits for the entire frame to

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-06-10 Thread Faraz Khan
So I got the decoder to work with the parser! It was a bug on my end - However it still seems that the parser waits for the entire frame to complete and then sets an outsize? Is this intentional? Is it possible to decode a single NALU? On Mon, Jun 10, 2013 at 2:57 PM, Faraz Khan wrote: > So th

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-06-10 Thread Faraz Khan
So the keyframe cannot be fed to the decoder one nal at a time? Is that what you are suggesting? On Mon, Jun 10, 2013 at 2:40 PM, Andy Shaules wrote: > I always had to decode from the latest key frame up to the desired > stream time nal, > > > On 6/10/2013 2:36 PM, Faraz Khan wrote: > > Hi a

Re: [Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-06-10 Thread Andy Shaules
I always had to decode from the latest key frame up to the desired stream time nal, On 6/10/2013 2:36 PM, Faraz Khan wrote: Hi all, I'm trying to use ffmpeg as a decoder for a real-time x264 stream that I'm generating. It works fine if I try to decode entire frames, but if I try to decode a s

[Libav-user] Decoding single NALUs from x264 programmatically (no luck even with parser), works fine with concatenated NALUs

2013-06-10 Thread Faraz Khan
Hi all, I'm trying to use ffmpeg as a decoder for a real-time x264 stream that I'm generating. It works fine if I try to decode entire frames, but if I try to decode a single NALU the decoder errors out saying 'no frame'. I've tried using the parser (av_parser_parse2) but the h264 decoder doesnt se