Thanks for your answer.. However I have to top-post as you don't seem to get my 
problem. I would like to avoid using avformat_open_input() as I have only one 
specific input type: raw hevc video streams.So I'd like to achieve something 
like in here 
(http://ffmpeg.org/doxygen/trunk/doc_2examples_2decoding_encoding_8c-example.html)
 in the video_decode_example(). But it says "some other codecs (msmpeg4, mpeg4) 
are inherently framebased, so you must call them with all the data for oneframe 
exactly. You must also initialize 'width' and'height' before initializing 
them."SO the question would be: what do I need to do differently in the case of 
the HEVC decoder as this example uses mpegvideo.Thanks for any answers in 
advance!Regards,Daniel
From: [email protected]
To: [email protected]
Subject: RE: [Libav-user] hevc/h264 decoding example C
Date: Thu, 3 Apr 2014 10:40:54 +0200




Thanks for your answer.. However I have to top-post as you don't seem to get my 
problem. I would like to avoid using avformat_open_input() as I have only one 
specific input type: raw hevc video streams.So I'd like to achieve something 
like in here 
(http://ffmpeg.org/doxygen/trunk/doc_2examples_2decoding_encoding_8c-example.html)
 in the video_decode_example(). But it says "some other codecs (msmpeg4, mpeg4) 
are inherently framebased, so you must call them with all the data for oneframe 
exactly. You must also initialize 'width' and'height' before initializing 
them."SO the question would be: what do I need to do differently in the case of 
the HEVC decoder as this example uses mpegvideo.
Thanks for any answers in advance!
Regards,Daniel

> From: [email protected]
> Date: Thu, 3 Apr 2014 02:35:03 +0530
> To: [email protected]
> Subject: Re: [Libav-user] hevc/h264 decoding example C
> 
> 
> 
> "Szeifert Dániel" <[email protected]> wrote:
> >Please, can you provide me a link for that? I searched but didn't find
> >it.Or if you are referring to the decoding_encoding_example.c
> >(http://ffmpeg.org/doxygen/trunk/doc_2examples_2decoding_encoding_8c-example.html),
> >can you tell me what is need to be done otherwise in case of a hevc
> >decoder? As the example is using mpegvideo and tells that in case of a
> >frame based decoder, the process is different..
> >Thank You,Daniel
> >
> >> From: [email protected]
> >> Date: Wed, 2 Apr 2014 21:23:32 +0530
> >> To: [email protected]
> >> Subject: Re: [Libav-user] hevc/h264 decoding example C
> >> 
> >> 
> >> 
> >> "Szeifert Dániel" <[email protected]> wrote:
> >> >
> >> >Actually, for a little extension:  I only need to decode raw, hevc
> >> >video streams, so no demuxing needed. I would like to avoid using
> >> >avformat_open_inpupt() and would like to use a pure fopen() to open
> >my
> >> >file. The latter is essential for me.The reason I added this,
> >because
> >> >the demuxing_decoding.c example is working for me, but I'd like to
> >> >bring the decoding function to an embedded platform (standalone),
> >this
> >> >is why I'd like to use a simple fopen() first to open the file on
> >PC,
> >> >because it will be easier for me to modify in the future.
> >> >I would appreciate any help you can provide!
> >> >Daniel
> >> >From: [email protected]
> >> >To: [email protected]
> >> >Date: Wed, 2 Apr 2014 11:12:20 +0200
> >> >Subject: [Libav-user] hevc/h264 decoding example C
> >> >
> >> >
> >> >
> >> >
> >> >Hello Everyone!Please, somebody could give me a working C example
> >which
> >> >simply decodes a raw HEVC stream from file and save it to a .yuv
> >file
> >> >(h264 would be OK too, I guess)? I've tried using the example
> >provided
> >> >by ffmpeg, but I guess it's not working because it is tailored for a
> >> >stream based decoder like mpegvideo.
> >> >I would be thankful if anyone could help me out!
> >> >Best regards,Daniel                                         
> >> >
> >> >_______________________________________________
> >> >Libav-user mailing list
> >> >[email protected]
> >> >http://ffmpeg.org/mailman/listinfo/libav-user                             
> >> >          
> >> >
> >>
> >>------------------------------------------------------------------------
> >> >
> >> >_______________________________________________
> >> >Libav-user mailing list
> >> >[email protected]
> >> >http://ffmpeg.org/mailman/listinfo/libav-user
> >> 
> >> 
> >> There is an example for that, just look more.
> >> -- 
> >> Sent from my Android device with K-9 Mail. Please excuse my brevity.
> >> _______________________________________________
> >> Libav-user mailing list
> >> [email protected]
> >> http://ffmpeg.org/mailman/listinfo/libav-user
> >                                       
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Libav-user mailing list
> >[email protected]
> >http://ffmpeg.org/mailman/listinfo/libav-user
> 
> Please please dont top post
> 
> https://www.ffmpeg.org/doxygen/trunk/avio_reading_8c-example.html
> -- 
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
> _______________________________________________
> Libav-user mailing list
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
                                                                                
  
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to