<div dir="ltr">Hi,<div><br></div><div>I was able to solve the problem.</div><div><br></div><div>I added my custom file extension to <b><i>vlc-android/AndroidManifest.xml</i></b></div><div>But I found out that I also have to add it to the array <b><i>videoExtensions</i></b> in the file <b><i>libvlc/src/org/videolan/libvlc/util/Extensions.java </i></b></div><div><b><i><br></i></b></div><div>Dafna</div><div><b><i><br></i></b><div dir="rtl"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 17, 2017 at 2:56 AM, Dafna Hirschfeld <span dir="ltr"><<a href="mailto:dafna3@gmail.com" target="_blank">dafna3@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>I write a video decoder module for vlc on android. </div><div>The decoder is for a custom encoding format that I developed myself. </div><div>The files with my encoding are mp4 , but they I have a custom fourcc (say "abcd" ) and a different file extension.</div><div><br></div><div>When I click the file from the app, the app does not play it , instead there is the vlc icon rulling around. looking at the logs, I see:</div><div><br></div><div><div>[<i>b84a40f8/58c6] mp4 demux: ISO Media (isom) version 512.</i></div><div><i>[b84a40f8/58c6] mp4 demux: found 1 tracks</i></div><div><i>[b84a40f8/58c6] mp4 demux: elst box found</i></div><div><i>[b84a40f8/58c6] mp4 demux: - [0] duration=33ms media time=-1ms) rate=1.0</i></div><div><i>[b84a40f8/58c6] mp4 demux: - [1] duration=19253ms media time=0ms) rate=1.0</i></div><div><i>[b84a40f8/58c6] mp4 demux: track[Id 0x1] read 3 chunk</i></div><div><i>[b84a40f8/58c6] mp4 demux: STTS table of 2 entries</i></div><div><i>[b84a40f8/58c6] mp4 demux: track[Id 0x1] read 578 samples length:19s</i></div><div><i>[b84a40f8/58c6] essetup demux: Unrecognized FourCC abcd</i></div><div><i>[b87af180/58c6] core input: selecting program id=0</i></div><div><i>[b84a40f8/58c6] mp4 demux: adding track[Id 0x1] video (enable) language undef</i></div><div><i>[b84a40f8/58c6] core demux: using demux module "mp4"</i></div><div><i>[b87af180/58c6] core input: looking for a subtitle file in /storage/emulated/0/</i></div><div><i>[b87af180/58c6] <font color="#ff0000"><b>core input: video is disabled, not selecting ES 0x0</b></font></i></div><div><i>[b8685fd0/58c6] core demux meta: looking for meta reader module matching "any": 2 candidates</i></div><div><i>[b8685fd0/58c6] lua demux meta: Trying Lua scripts in /data/user/0/org.videolan.vlc.<wbr>debug/app_vlc/.share/lua/meta/<wbr>reader</i></div><div><i>[b8685fd0/58c6] lua demux meta: Trying Lua playlist script /data/user/0/org.videolan.vlc.<wbr>debug/app_vlc/.share/lua/meta/<wbr>reader/filename.lua</i></div><div><i>[b8685fd0/58c6] lua demux meta: Trying Lua scripts in /system/usr/share/lua/meta/<wbr>reader</i></div><div><i>[b8685fd0/58c6] core demux meta: no meta reader modules matched</i></div><div><i>[b87af180/58c6] core input: `file:///storage/emulated/0/<wbr>pinwheel_abcd_fourcc.abcd' successfully opened</i></div><div><i>[b87af180/58c6] core input: EOF reached</i></div><div><i>[b84a40f8/58c6] core demux: removing module "mp4"</i></div></div><div><br></div><div><br></div><div>the red line seems to indicate the problem, looking at the code, this log comes from the function <b><i style="background-color:rgb(238,238,238)">static void EsSelect( es_out_t *out, es_out_id_t *es )</i></b> in the file <i><b>vlc/src/input/es_out.c</b></i></div><div>and the code is:</div><div><br></div><div><div><b><i>if( es->fmt.i_cat == VIDEO_ES || es->fmt.i_cat == SPU_ES )</i></b></div><div><b><i> {</i></b></div><div><b><i> if( !var_GetBool( p_input, b_sout ? "sout-video" : "video" ) )</i></b></div><div><b><i> {</i></b></div><div><b><i> msg_Dbg( p_input, "<font color="#ff0000">video is disabled, not selecting ES 0x%x</font>",</i></b></div><div><b><i> es->i_id );</i></b></div><div><b><i> <font color="#ff0000">return;</font></i></b></div><div><b><i> }</i></b></div><div><b><i> }</i></b></div></div><div><b><i><br></i></b></div><div>If I comment out the <i style="font-weight:bold">return </i> command, it fixes the problem and the video is played with my decoder.</div><div>I added some debug logs and the found out that the <i style="font-weight:bold">b_sout </i>is 0 so the <i style="font-weight:bold">var_GetBool </i> return the value of the <i style="font-weight:bold">"video" </i> </div><div><br></div><div>the places that I found related to it are:</div><div><br></div><div><div><b><i>vlc/src/input/var.c:436: var_Create( p_input, "video", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );</i></b></div><div><b><i>vlc/src/input/var.c:771: var_SetBool( p_input, "video", true );</i></b></div></div><div><br></div><div>in more debug prints that I added , the first line sets <b><i>"video"</i></b> to 0x8020</div><div>and the second lines does called.</div><div><br></div><div>I'm a bit stuck with that and really appreciate any help.</div><div><br></div><div>Thanks a lot</div><span class="HOEnZb"><font color="#888888"><div>Dafna Hirschfeld</div><div><i><b><br></b></i></div><div><i><b><br></b></i></div></font></span></div>
</blockquote></div><br></div></div>