<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><span style="color: rgb(68, 68, 68); font-family: Calibri; line-height: 22.719999313354492px;">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.</span><div style="line-height: 22.719999313354492px; color: rgb(68, 68, 68); font-family: Calibri;">So I'd like to achieve something like in here (<a href="http://ffmpeg.org/doxygen/trunk/doc_2examples_2decoding_encoding_8c-example.html" target="_blank" style="font-weight: inherit; color: rgb(0, 104, 207); cursor: pointer;">http://ffmpeg.org/doxygen/trunk/doc_2examples_2decoding_encoding_8c-example.html</a>) in the video_decode_example(). But it says </div><div style="line-height: 22.719999313354492px; color: rgb(68, 68, 68); font-family: Calibri;"><font face="monospace,fixed" size="1" color="maroon" style="line-height: normal;"><span style="line-height: 18.459999084472656px; font-size: 13px;">"some other codecs (msmpeg4, mpeg4) are inherently frame</span></font></div><div style="line-height: 22.719999313354492px; color: rgb(68, 68, 68); font-family: Calibri;"><font face="monospace,fixed" size="1" color="maroon" style="line-height: normal;"><span style="line-height: 18.459999084472656px; font-size: 13px;">based, so you must call them with all the data for one</span></font></div><div style="line-height: 22.719999313354492px; color: rgb(68, 68, 68); font-family: Calibri;"><font face="monospace,fixed" size="1" color="maroon" style="line-height: normal;"><span style="line-height: 18.459999084472656px; font-size: 13px;">frame exactly. You must also initialize 'width' and</span></font></div><div style="line-height: 22.719999313354492px; color: rgb(68, 68, 68); font-family: Calibri;"><font face="monospace,fixed" size="1" color="maroon" style="line-height: normal;"><span style="line-height: 18.459999084472656px; font-size: 13px;">'height' before initializing them."</span></font></div><div style="line-height: 22.719999313354492px; color: rgb(68, 68, 68); font-family: Calibri;"><font face="Verdana" size="2" style="line-height: normal;">SO the question would be: what do I need to do differently in the case of the HEVC decoder as this example uses mpegvideo.</font></div><div style="line-height: 22.719999313354492px; color: rgb(68, 68, 68); font-family: Calibri;"><font face="Verdana" size="2" style="line-height: normal;"><br style="line-height: 18.459999084472656px;"></font></div><div style="line-height: 22.719999313354492px; color: rgb(68, 68, 68); font-family: Calibri;"><font face="Verdana" size="2" style="line-height: normal;">Thanks for any answers in advance!</font></div><div style="line-height: 22.719999313354492px; color: rgb(68, 68, 68); font-family: Calibri;"><font face="Verdana" size="2" style="line-height: normal;"><br style="line-height: 18.459999084472656px;"></font></div><div style="line-height: 22.719999313354492px; color: rgb(68, 68, 68); font-family: Calibri;"><font face="Verdana" size="2" style="line-height: normal;">Regards,</font></div><div style="line-height: 22.719999313354492px; color: rgb(68, 68, 68); font-family: Calibri;"><font face="Verdana" size="2" style="line-height: normal;">Daniel</font></div><br><div><hr id="stopSpelling">From: daniel.szeifert@outlook.com<br>To: libav-user@ffmpeg.org<br>Subject: RE: [Libav-user] hevc/h264 decoding example C<br>Date: Thu, 3 Apr 2014 10:40:54 +0200<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">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.<div>So I'd like to achieve something like in here (<a href="http://ffmpeg.org/doxygen/trunk/doc_2examples_2decoding_encoding_8c-example.html" target="_blank">http://ffmpeg.org/doxygen/trunk/doc_2examples_2decoding_encoding_8c-example.html</a>) in the video_decode_example(). But it says </div><div><span style="color:rgb(128, 0, 0);font-family:monospace, fixed;font-size:13px;line-height:1;white-space:pre-wrap;">"some other codecs (msmpeg4, mpeg4) are inherently frame</span></div><div><span style="color:rgb(128, 0, 0);font-family:monospace, fixed;font-size:13px;line-height:1;white-space:pre-wrap;">based, so you must call them with all the data for one</span></div><div><span style="color:rgb(128, 0, 0);font-family:monospace, fixed;font-size:13px;line-height:1;white-space:pre-wrap;">frame exactly. You must also initialize 'width' and</span></div><div><span style="color:rgb(128, 0, 0);font-family:monospace, fixed;font-size:13px;line-height:1;white-space:pre-wrap;">'height' before initializing them."</span></div><div><font size="2" face="Verdana"><span style="line-height:13px;white-space:pre-wrap;">SO the question would be: what do I need to do differently in the case of the HEVC decoder as this example uses mpegvideo.</span></font></div><div><font size="2" face="Verdana"><span style="line-height:13px;white-space:pre-wrap;"><br></span></font></div><div><font size="2" face="Verdana"><span style="line-height:13px;white-space:pre-wrap;">Thanks for any answers in advance!</span></font></div><div><font size="2" face="Verdana"><span style="line-height:13px;white-space:pre-wrap;"><br></span></font></div><div><font size="2" face="Verdana"><span style="line-height:13px;white-space:pre-wrap;">Regards,</span></font></div><div><font size="2" face="Verdana"><span style="line-height:13px;white-space:pre-wrap;">Daniel</span></font></div><div><br></div><div><br><div>> From: anshul.ffmpeg@gmail.com<br>> Date: Thu, 3 Apr 2014 02:35:03 +0530<br>> To: libav-user@ffmpeg.org<br>> Subject: Re: [Libav-user] hevc/h264 decoding example C<br>> <br>> <br>> <br>> "Szeifert Dániel" <dsna@outlook.com> wrote:<br>> >Please, can you provide me a link for that? I searched but didn't find<br>> >it.Or if you are referring to the decoding_encoding_example.c<br>> >(http://ffmpeg.org/doxygen/trunk/doc_2examples_2decoding_encoding_8c-example.html),<br>> >can you tell me what is need to be done otherwise in case of a hevc<br>> >decoder? As the example is using mpegvideo and tells that in case of a<br>> >frame based decoder, the process is different..<br>> >Thank You,Daniel<br>> ><br>> >> From: anshul.ffmpeg@gmail.com<br>> >> Date: Wed, 2 Apr 2014 21:23:32 +0530<br>> >> To: libav-user@ffmpeg.org<br>> >> Subject: Re: [Libav-user] hevc/h264 decoding example C<br>> >> <br>> >> <br>> >> <br>> >> "Szeifert Dániel" <dsna@outlook.com> wrote:<br>> >> ><br>> >> >Actually, for a little extension:  I only need to decode raw, hevc<br>> >> >video streams, so no demuxing needed. I would like to avoid using<br>> >> >avformat_open_inpupt() and would like to use a pure fopen() to open<br>> >my<br>> >> >file. The latter is essential for me.The reason I added this,<br>> >because<br>> >> >the demuxing_decoding.c example is working for me, but I'd like to<br>> >> >bring the decoding function to an embedded platform (standalone),<br>> >this<br>> >> >is why I'd like to use a simple fopen() first to open the file on<br>> >PC,<br>> >> >because it will be easier for me to modify in the future.<br>> >> >I would appreciate any help you can provide!<br>> >> >Daniel<br>> >> >From: dsna@outlook.com<br>> >> >To: libav-user@ffmpeg.org<br>> >> >Date: Wed, 2 Apr 2014 11:12:20 +0200<br>> >> >Subject: [Libav-user] hevc/h264 decoding example C<br>> >> ><br>> >> ><br>> >> ><br>> >> ><br>> >> >Hello Everyone!Please, somebody could give me a working C example<br>> >which<br>> >> >simply decodes a raw HEVC stream from file and save it to a .yuv<br>> >file<br>> >> >(h264 would be OK too, I guess)? I've tried using the example<br>> >provided<br>> >> >by ffmpeg, but I guess it's not working because it is tailored for a<br>> >> >stream based decoder like mpegvideo.<br>> >> >I would be thankful if anyone could help me out!<br>> >> >Best regards,Daniel                                     <br>> >> ><br>> >> >_______________________________________________<br>> >> >Libav-user mailing list<br>> >> >Libav-user@ffmpeg.org<br>> >> >http://ffmpeg.org/mailman/listinfo/libav-user                                    <br>> >> ><br>> >><br>> >>------------------------------------------------------------------------<br>> >> ><br>> >> >_______________________________________________<br>> >> >Libav-user mailing list<br>> >> >Libav-user@ffmpeg.org<br>> >> >http://ffmpeg.org/mailman/listinfo/libav-user<br>> >> <br>> >> <br>> >> There is an example for that, just look more.<br>> >> -- <br>> >> Sent from my Android device with K-9 Mail. Please excuse my brevity.<br>> >> _______________________________________________<br>> >> Libav-user mailing list<br>> >> Libav-user@ffmpeg.org<br>> >> http://ffmpeg.org/mailman/listinfo/libav-user<br>> >                                           <br>> ><br>> >------------------------------------------------------------------------<br>> ><br>> >_______________________________________________<br>> >Libav-user mailing list<br>> >Libav-user@ffmpeg.org<br>> >http://ffmpeg.org/mailman/listinfo/libav-user<br>> <br>> Please please dont top post<br>> <br>> https://www.ffmpeg.org/doxygen/trunk/avio_reading_8c-example.html<br>> -- <br>> Sent from my Android device with K-9 Mail. Please excuse my brevity.<br>> _______________________________________________<br>> Libav-user mailing list<br>> Libav-user@ffmpeg.org<br>> http://ffmpeg.org/mailman/listinfo/libav-user<br></div></div>                                        </div></div>                                        </div></body>
</html>