recode a new TS-Player

  • Hi,



    I'm trying to find out how to code a new TS-file player on a DM7025.
    I did a small plugin that perform a stopService() in enigma2 so it closes all opened devices (video0, etc...).


    Now i'm trying to find out the sequence needed to open a TS file and play it back with some basic primitives:


    tsfile=open(tsfilepath, O_RDONLY);
    vdec=open("/dev/dvb/adapter0/video0", O_RDWR);
    vdmx=open("/dev/dvb/adapter0/demux0", O_RDWR);
    ioctl(vdec, VIDEO_PLAY);


    etc...



    Could somebody help me to get the right sequence and the proper filters etc to set ?


    Thanks



    PS:
    I read on linuxtv.org that the dvr device for writing is /dev/dvb/adapter0/dvr0, but I found out that there is also a /dev/misc/pvr device on the dm7025. who's the bad, who's the good (for ts file playback) ?



    PS 2:
    Don't ask why I am trying to do this it is a secret :grinning_face_with_smiling_eyes: (actually it is to playback some streaming ts coming from a PC running VLC, for transcoding divx, etc...)

    Einmal editiert, zuletzt von mctd ()

  • you might want to take a look at enigma2's "lib/dvb/decoder.cpp". You will find a class there which does all the decoder device handling.


    you have to use /dev/misc/pvr until we implemented the proper device.