1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Advert/commercial removing

Discussion in 'HD/HDR-FOX T2 Customised Firmware' started by darkflare, Feb 17, 2012.

  1. darkflare

    darkflare Member

    Hi Guys

    Before investing in a humax box I was using a pc with a freesat card to get and record shows. I tried windows and linux, mythtv(linux) and mediaportal(windows). One feature I really miss is advert skipping. Has anyone conducted any research into this area?

  2. Black Hole

    Black Hole Theloniuos Abbot

    There is no way we could implement anything like that on the HDR-FOX - too much processing required to recognise the programme start/stop slide frames. The custom software does have editing abilities - you can manually set bookmarks at the beginning and end of advert breaks, and then crop them out with nicesplice.
  3. oijonesey

    oijonesey Hummy.tv SEO Guru

    Did you want to edit them out or just skip them? If it's just skipping as you watch you can program the trick play buttons to jump forward certain intervals so assuming the ad breaks are usually 3 or 4 minutes long (or whole numbers of minutes at least) having a jump forward of 1 min per press makes it pretty quick to get through ads on the fly. Not quite what you were looking for but this is my nearest workaround!
  4. Ezra Pound

    Ezra Pound Well-Known Member

    It looks like the Humax HDR FREESAT receiver has Advert Skip as a built-in feature, Please note However that this thread is for the Humax HDT Fox T2 (NOT FreeSat) so the replys you get may not be applicable, The HDR Fox T2 does have a 'time skip' of 1,2 4 Mins. as detailed above
  5. darkflare

    darkflare Member

    I keep writing out posts and forgetting to submitt them! So this post may be a monster, my apologies

    The skip feature in the freesat box sounds exactly like the hdr skip feature just described a little differently.

    I didnt know the jumps where configurable, interesting but still not ideal as shows on itv have adverts every 15 minutes and so really interupts the flow of the tv programme.

    Nicesplice is a good idea however manually setting bookmarks is too much effort for every program and means you have to watch the show first before enjoying the seemless show.

    What I am aiming for is something like media portal had where it would detect adverts and write a sidecar file which would hold chapters. It uses these chapter markers to jump at certain parts of the video. This way leaves the file intact and so if the advert detection is imperfect you dont miss anything and manually rewind.

    I dont think it would take too much processing power as I am not after a realtime or even quick procedure. I imagine a background task that runs over night.

    I've done some research on the subject and a few things may be possible:

    • Use ComSkip and wine to find the adverts (this depends on the difficulty of running wine on the humax box)
    • look into porting mythtv advert detection code (as mythtv is linux based)
    Personally I think the best way would be to try and use comskip but it depends on Wine.
  6. mingw.android

    mingw.android New Member

    I wanted to post this in:


    ..but that didn't work for some reason.


    How about some more ramblings from me... Although I tried specifically to look into commercial removing, this just ends up being a question/bug-report about GCC mips 4.5.2 and another about uclibc, so sorry in advance that I end up hijacking this thread; however, if I can get to the bottom of the problems I'll be able to proceed with commercial removal investigation! One thing I will say in direct response is that Wine can't be run on mips (Windows is not Emulated) and would be massive overkill even if it could.

    Why does uclibc think sizeof sigset_t is 128 bytes (that's how many bytes sigemptyset clears anyway) when /mod/include/asm/signal.h says it's 16 (128 signals/8 bits)?

    I started to look at mp3splt as per mythtv and managed to get it to compile (it was a bit of a pain), however the plugins are not enabled or built which was disappointing. Also, making an mp3 just to do silence detect is overkill IMHO.

    So I looked into alternatives involving ffmpeg and it seems that recently silencedetect was added as a filter:


    ...I tried to compile this as well, and got quite far through the process, however I ran into a known mips GCC bug compiling h264.c:


    ...so it looks like I need GCC 4.7 for ffmpeg.

    ...I tried to compile that, for which I need m4, flex, bison, mpfr, mpc, gmp etc etc.

    I built m4, but get a stack overflow when I tried to run it. I debugged this and the error comes from a stack overflow caused by:
    main (int argc, char *const *argv)
    struct sigaction act;
    (which is in uclibc)

    I traced into this and it ends up calling memset(addr,0,128) to do the clear, however, from gdb, print sizeof(act.sa_mask)=16.

    Further digging turns up /mod/include/asm/signal.h

    #define _NSIG 128
    #define _NSIG_BPW (sizeof(unsigned long) * 8)
    #define _NSIG_WORDS (_NSIG / _NSIG_BPW)

    typedef struct {
    unsigned long sig[_NSIG_WORDS];
    } sigset_t;

    ...which would be why my m4 compile has the size of sa_mask as 16 bytes, so what's going on with our uclibc?

    Can anyone provide any insight into this? (Or just a newer GCC and/or ffmpeg ;-))
  7. Black Hole

    Black Hole Theloniuos Abbot

  8. Brian

    Brian Administrator Staff Member

  9. Brian

    Brian Administrator Staff Member

    I had to use IE9 to post this and the above message as my usual Firefox 10.0.2 would not let me.
  10. af123

    af123 Administrator Staff Member

    According to Mr Google it happens when you link without the -muclibc option.
    I haven't experimented though.

    ffmpeg 0.10 is on its way up to the repository.

    (I had to use Safari, FF not working for me either)
  11. mingw.android

    mingw.android New Member

    Cool. What gcc did you use?
  12. mingw.android

    mingw.android New Member

    Of course ffmeg tells you that when you run it.. 4.2 it is then.
  13. af123

    af123 Administrator Staff Member

    I used the cross compiler that Humax have on their open source site.