Gstreamer-ti

Discussion in 'NEON / DSP' started by klaxonn, Jan 31, 2012.

  1. klaxonn

    klaxonn Still Fresh

    Joined:
    Feb 25, 2011
    Messages:
    88
    i think adding gstream-ti to the Community Codec Package would be the best solution.


    I still don't know how to let the user choose between using some memory for dsp or not.
     
  2. milkshake

    milkshake Advanced Member

    Joined:
    May 18, 2009
    Messages:
    3,734
    Location:
    Rotherham, UK
    is there a way that uboot can give the user a boot choice? or have some setting that can be set in the OS which will only be actioned on reboot i.e.



    Code:
    
    +---------------------------------+
    
    | *  allocate ram to DSP          |
    
    | o  do not allocate ram to DSP   |
    
    |                                 |
    
    |    [  ok  ]      [  cancel  ]   |
    
    +---------------------------------+
    
    
    +---------------------------------+
    
    |   changes will take affect      |
    
    |   on next boot                  |
    
    |                                 |
    
    |                  [  ok  ]       |
    
    +---------------------------------+
    
    
     
  3. EvilDragon

    EvilDragon Administrator Staff Member

    Joined:
    Mar 4, 2003
    Messages:
    19,644
    Location:
    Ingolstadt
    Like this?


    [​IMG]


    Already included and working on my unit. ;)
     
  4. skeezix

    skeezix Internal Development

    Joined:
    Mar 11, 2003
    Messages:
    8,060
    notaz is, as always, a hero :) He's been staying up many long nights lately :)


    jeff
     
  5. EvilDragon

    EvilDragon Administrator Staff Member

    Joined:
    Mar 4, 2003
    Messages:
    19,644
    Location:
    Ingolstadt
    True words :)
     
  6. milkshake

    milkshake Advanced Member

    Joined:
    May 18, 2009
    Messages:
    3,734
    Location:
    Rotherham, UK
    wow!!!! now I am excited!!!!
     
  7. captain_coconut

    captain_coconut Member

    Joined:
    Oct 9, 2008
    Messages:
    132
    Thank you klaxon and notaz! Looking forward to trying this out.


    As a side note, it puzzles me why TI would release things in such a bizarre and sloppy state. I was just watching the contents of the ti-xdctools-tree get unpacked, and it looks like they didn't even bother cleaning their working tree before zipping it up and calling it a release.


    So again thanks for sorting through this mess and integrating everything so nicely.
     
  8. gruso

    gruso thunderbox

    Joined:
    Feb 28, 2008
    Messages:
    7,461
    Location:
    Sydney, Australia
    Great work :)
     
  9. klaxonn

    klaxonn Still Fresh

    Joined:
    Feb 25, 2011
    Messages:
    88
    I will release soon the plugin now the updated kernel and modules are out.


    But mp3 decoder is not included in the firmware so the plugin won't use it.


    I want to update gstream too but i'll do that later.
     
  10. milkshake

    milkshake Advanced Member

    Joined:
    May 18, 2009
    Messages:
    3,734
    Location:
    Rotherham, UK
    its not included but it is added with the community codec pack so please allow mp3 :) or at last support based on the codec pack.
     
  11. klaxonn

    klaxonn Still Fresh

    Joined:
    Feb 25, 2011
    Messages:
    88
    The mp3 decoder, like some other codecs, needs registration from TI to be downloaded.


    So i'm not sure we are allowed to include this one with the others.
     
    Last edited by a moderator: Feb 19, 2012
  12. PokeParadox

    PokeParadox Founder of Pirate Games - Penjin Coder Staff Member

    Joined:
    Dec 8, 2005
    Messages:
    6,511
    Location:
    UK
    Also it's now on you guys to help test and tweak this as I'm simply not finding the time with a pub refurb and reopen... I've finished the latest I have ever done on a Sat night shift tonight, I'll probably have an hour of freedom tomorrow before it's time to be getting ready for work again. Damn I wish I would get offered an interview...
     
  13. EvilDragon

    EvilDragon Administrator Staff Member

    Joined:
    Mar 4, 2003
    Messages:
    19,644
    Location:
    Ingolstadt
    I'll ask TI.


    Once your modules are working fine, I'll include them in the community pack :)
     
  14. Binky

    Binky Death's Steed Staff Member

    Joined:
    May 28, 2003
    Messages:
    6,908
    Location:
    16A (TO)
    Has anyone tried playing audio through the DSP non-stop until the battery runs out?


    How long does/might it last?
     
  15. captain_coconut

    captain_coconut Member

    Joined:
    Oct 9, 2008
    Messages:
    132
    Just wondering if anyone has encountered this build error building ti-dsplink-module and how they worked around it.



    Code:
    
    pder@izabella:/media/wd_1TB/paul/pandora/pandora-oe-environment(master)$ bitbake ti-dsplink-module
    
    NOTE: Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to increase performance.
    
    NOTE: Handling BitBake files: - (8303/8303) [100 %]
    
    Parsing of 8303 .bb files complete (7989 cached, 314 parsed). 8203 targets, 321 skipped, 0 masked, 0 errors.
    
    NOTE: Resolving any missing task queue dependencies
    
    NOTE: Preparing runqueue
    
    NOTE: Executing runqueue
    
    NOTE: Running task 492 of 742 (ID: 10, /media/wd_1TB/paul/pandora/pandora-oe-environment/metadata/openembedded.git/recipes/ti/ti-dsplink_1.65.00.03.bb, do_compile)
    
    NOTE: package ti-dsplink-1_1_65_00_03-r26i: task do_compile: Started
    
    .
    
    .
    
    .
    
    | echo Generating DSP/BIOS configuration files ...
    
    | Generating DSP/BIOS configuration files ...
    
    | /usr//bin/perl /media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/make/bin/runif.pl LINUX "exist /media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/dsp/BUILD/OMAP3530_0/LOOP/BIOS_DEB" "rm -r -f  /media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/dsp/BUILD/OMAP3530_0/LOOP/BIOS_DEB" ""
    
    | /usr//bin/perl /media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/make/bin/runif.pl LINUX "exist /media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/dsp/BUILD/OMAP3530_0/LOOP/BIOS_DEB" "" "mkdir -p /media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/dsp/BUILD/OMAP3530_0/LOOP/BIOS_DEB"
    
    | "/media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/staging/omap3-pandora-angstrom-linux-gnueabi/usr/share/ti/ti-xdctools-tree"/tconf  -Dconfig.importPath="/media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/staging/omap3-pandora-angstrom-linux-gnueabi/usr/share/ti/ti-dspbios-tree/packages;/media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/staging/omap3-pandora-angstrom-linux-gnueabi/usr/share/ti/ti-dspbios-tree/packages/ti/bios;/media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/dsp/inc/DspBios;/media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/dsp/inc/DspBios/5.XX/OMAP3530;/media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/dsp/inc/DspBios/5.XX;/media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/dsp/src/samples/loop;" -Dconfig.programName="/media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/dsp/BUILD/OMAP3530_0/LOOP/BIOS_DEB/loop" /media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/dsp/src/samples/loop/DspBios/5.XX/OMAP3530/loop.tcf 0
    
    | js: "/media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/staging/omap3-pandora-angstrom-linux-gnueabi/usr/share/ti/ti-xdctools-tree/include/utils.tci", line 433: Error: Environment variable 'config.programName'="/media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/dsp/BUILD/OMAP3530_0/LOOP/BIOS_DEB/loop" contains the character '.', which is not allowed in a program name. Please, select a program name without '.' in its path. See SDOCM00050016 for more information.
    
    | make[2]: *** [DspBios/5.XX/OMAP3530/loop.tcf.deb] Error 1
    
    | make[2]: Leaving directory `/media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/dsp/src/samples/loop/DspBios/5.XX/OMAP3530'
    
    | make[1]: *** [objdeb] Error 2
    
    | make[1]: Leaving directory `/media/wd_1TB/paul/pandora/pandora-oe-environment/tmp/angstrom.5/work/omap3-pandora-angstrom-linux-gnueabi/ti-dsplink-1_1_65_00_03-r26i/dsplink_linux_1_65_00_03/dsplink/dsp/src/samples/loop'
    
    | make: *** [loop.objdeb] Error 2
    
    | ERROR: Function do_compile failed
    
    NOTE: package ti-dsplink-1_1_65_00_03-r26i: task do_compile: Failed
    
    ERROR: TaskFailed event exception, aborting
    
    ERROR: Build of /media/wd_1TB/paul/pandora/pandora-oe-environment/metadata/openembedded.git/recipes/ti/ti-dsplink_1.65.00.03.bb do_compile failed
    
    ERROR: Task 10 (/media/wd_1TB/paul/pandora/pandora-oe-environment/metadata/openembedded.git/recipes/ti/ti-dsplink_1.65.00.03.bb, do_compile) failed with exit code 1
    
    ERROR: '/media/wd_1TB/paul/pandora/pandora-oe-environment/metadata/openembedded.git/recipes/ti/ti-dsplink_1.65.00.03.bb' failed
    
    ERROR: '/media/wd_1TB/paul/pandora/pandora-oe-environment/metadata/openembedded.git/recipes/ti/ti-dsplink_1.65.00.03.bb' failed
    
    


    I don't know why having a period in a path matters (the problem is the period in angstrom.5) but here is how I got around it.

    I added this line to tmp/angstrom.5/staging/omap3-pandora-angstrom-linux-gnueabi/usr/share/ti/ti-xdctools-tree/include/utils.tci on line 431





    Code:
    
    	env = env.replace(/\./g, "_");
    
    
    
    

    Then I created a symlink from angstrom_5 to angstrom.5 and everything built fine after that.


    Ugly, so wondering what's the correct way to fix this.
     
    Last edited by a moderator: Feb 19, 2012
  16. Darkknight512

    Darkknight512 Member

    Joined:
    Sep 7, 2010
    Messages:
    637
    Location:
    Canada
    I think right now it will not make much of a difference, but with the new 3.2 kernel it will probably make a very big difference.
     
  17. klaxonn

    klaxonn Still Fresh

    Joined:
    Feb 25, 2011
    Messages:
    88
    Here a pnd which will install the plugin ti-gstreamer and totem, a media player which uses gstreamer.


    It will install this to the nand, exactly like the community package does so you can remove this after the installation.


    You can try videos with totem or with gst-launch-0.10 playbin2 -v uri=absolute_path_of_the_file on the command line to have more information.


    The codec community package must be installed and you must use the special boot for DSP.


    Codecs : MPEG4 encoder and decoder (so Xvid and DivX), H.264 encoder and decoder, MPEG2 decoder, JPEG encoder and decoder, AAC decoder.

    ti-gstreamer.pnd
     

    Attached Files:

    Last edited by a moderator: Feb 20, 2012
  18. Binky

    Binky Death's Steed Staff Member

    Joined:
    May 28, 2003
    Messages:
    6,908
    Location:
    16A (TO)
    Doesn't rockbox (as an app) use gstreamer?
     
  19. klaxonn

    klaxonn Still Fresh

    Joined:
    Feb 25, 2011
    Messages:
    88
  20. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,200
    Location:
    Innsmouth, MA
    Hi klaxon,


    Thank you very much for your work on the DSP :)


    I've downloaded the PND, but it wont show up in the menus or on the desktop...


    When I try to start it from the CLI with "pnd_run", nothing happens...


    What am I doing wrong ?


    Bye, and thanks again !


    Magic Sam
     

Share This Page

Loading...