<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman"; font-size: 12pt;">Hi all,</span><br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";"><br>
</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";">I've recently downloaded ffmpeg / libav* to integrate it into an AVOD project.</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";">Basically, I need to gather a bunch of info  of a given media (codec, number of audio/video tracks, features, metadata, encryption
 flag etc.)</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";">Whatever its file format (mp4, mkv and ismv).</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";"><br>
</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";">Regarding the ISMV files (microsoft smoothstreaming), I haven't found yet a way to detect that a media is encrypted, its encryption
 scheme and some info such as key id used etc.</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";">It was possible using Bento4 lib, so I suppose there's way to achieve it with libAv.</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";"><br>
</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";">When I open an ISMV file using <b>avformat_open_input</b>(), <b>avformat_find_stream_info</b>(), and <b>avcodec_find_decoder</b>(),
 I can find my audio and video codec data stucture. Which is good.</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";">But I haven't found any data regarding the encryption part.</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";"><br>
</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";">Any idea ?</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";"><br>
</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";">Thanks.</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";"><br>
</span></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span style="font-family: "Times New Roman";">Karim</span></p>
<br>
<p></p>
</div>
</body>
</html>