Yes apologies slipped into non-programmer speak for a second, I meant demux of course (getting a field called PTS from an AVI made me chuckle though). I will be providing the Decoders (although I may use liba52 or libmad to decode the audio initially).Decoding AVI and MP4 does not mean anything. Sorry. To demux them you just need VLC. To decode most of the codecs inside AVI and MP4, you need ffmpeg.
Ok, no one else come across this issue?3. This is the main problem. MSVC does not understand all the C/C++ specifications and is not able to compile it correctly. And here seems to be a struct unrecognized by MSVC. You may be alone on that fight. sorry.
Code: Select all
#if defined(_MSC_VER) && !defined(__MWERKS__) && \
!defined(__ICL) && !defined(__COMO__) && \
!defined(__BORLANDC__)
#define MSVC
# endif
#ifdef MSVC
typedef struct {
long long quot; /* Quotient. */
long long rem; /* Remainder. */
} lldiv_t;
inline lldiv_t lldiv(long long __n, long long __d)
{
lldiv_t __q;
__q.quot = __n / __d;
__q.rem = __n % __d;
return __q;
}
#endif
bylldiv_t (*vlc_lldiv_inner) (long long numer, long long denom);
It will be better to use (if it will be inserted in VLC SVN trunk) the use of conditionnal compilation :lldiv_t (*vlc_lldiv_inner) (int64_t numer, int64_t denom);
- replace in vlc_common.h :# if defined( _MSC_VER ) \
|| defined( UNDER_CE ) \
|| ( defined( WIN32 ) && !defined( __MINGW32__ ) )
lldiv_t (*vlc_lldiv_inner) (int64_t numer, int64_t denom);
#else
lldiv_t (*vlc_lldiv_inner) (long long numer, long long denom);
#endif
by# if defined( _MSC_VER ) \
|| defined( UNDER_CE ) \
|| ( defined( WIN32 ) && !defined( __MINGW32__ ) )
typedef unsigned __int64 uint64_t;
typedef signed __int64 int64_t;
...
VC6 option proprocessor to add :# if defined( _MSC_VER ) \
|| defined( UNDER_CE ) \
|| ( defined( WIN32 ) && !defined( __MINGW32__ ) )
typedef unsigned __int64 uint64_t;
typedef signed __int64 int64_t;
typedef struct {
int64_t quot; /* Quotient. */
int64_t rem; /* Remainder. */
} lldiv_t;
inline lldiv_t lldiv(int64_t __n, int64_t __d)
{
lldiv_t __q;
__q.quot = __n / __d;
__q.rem = __n % __d;
return __q;
}
...
To link the pluging and resolve dependancy on libvlc.dll :__VLC__, __PLUGIN__, HAVE_SHARED_LIBVLC
to get all exported symbols in the libvlc.dlldumpbin /EXPORTS libvlc.dll >libvlc.txt
Then create the imported lib to add in the plugin project :LIBRARY "libvlc"
DESCRIPTION 'libvlc Windows Dynamic Link Library'
EXPORTS
__config_GetPsz
config_Duplicate
config_GetPsz
__var_AddCallback
__vout_AllocatePicture
__vout_Create
vout_Destroy
__vlc_object_detach
__var_DelCallback
vout_DisplayPicture
vout_UnlinkPicture
vout_LinkPicture
vout_DatePicture
msleep
vout_CreatePicture
__msg_GenericVa
__var_Set
__var_Change
Enjoy...lib /DEF:libvlc.def
Of course, it works fine without crash.First does it work without a crash ?
THen if VLC works, can you detail how in the wiki ?
And if that works, please provide SVN patches.
Ok thanksWell, you can't commit directly.
To provide patches, use the SVN trunk, (checkout it under Windows with TortoiseSVN) and check your compilation.
Then provide a diff (SVN diff) of your modification and send it to vlc-devel@
just compile with VC6 only for the moment.Thanks. Does it work with VC6 or VS2005.Net ?
Do you rebuild the contribs or do you use the common ones ?
Return to “VLC media player for Windows Troubleshooting”
Users browsing this forum: No registered users and 86 guests