This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Need help in MP3 Decoding with FFMPEG and cross compilation for AM335x for Audio

Hi,

We are AM335x and 3.14 kernel version with gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313  cross toolchain.

for ffmpeg cross compilation we are taken this reference :

compiling ffmpeg : in this below link

https://trac.ffmpeg.org/wiki/CompilationGuide/RaspberryPi

in some of the steps we are getting errors either in configuration or in building/compilation .

Ex: in this : ./configure --enable-cross-compile --cross-prefix=${CCPREFIX} --arch=armel --target-os=linux --prefix=/my/path/were/i/keep/built/arm/stuff

1.  --arch= ____ ??   2. --prefix= __ ?? --cross-prefix=arm-linux-gnueabihf(we are assuming toolchain).

please any one help in this.

regards,.

Viswanath K

  • forwarding this to the SW team.
  • Hi Viswanath,

    I advise to execute those steps from ti-sdk folder.

    Set "arch=arm", "prefix" should be the folder where you keep the Arago fs binaries and "cross-prefix" should be arm-linux-gnueabihf- .
    Also don't forget to export the PATH variable to point to your ti-sdk/linux-devkit/sysroot/i686-arago-linux/usr/bin.

    It will also be useful to source the environment-setup file.

    Best Regards,
    Yordan
  • Thank you Yordan.

    Thank you it is compiled and we are able to configure and make is also done with out error.

    Command:
    ./configure --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=arm-linux --prefix=/home/vk29835/ti-sdk-am335x-evm-08.00.00.00/filesystem/tisdk-rootfs-image-am335x-evm/usr --enable-gpl --enable-nonfree --extra-cflags="-I/home/vk29835/ti-sdk-am335x-evm-08.00.00.00/filesystem/tisdk-rootfs-image-am335x-evm/usr/include" --extra-ldflags="-L/home/vk29835/ti-sdk-am335x-evm-08.00.00.00/filesystem/tisdk-rootfs-image-am335x-evm/usr/lib" --extra-libs=-ldl

    here my doubt is: make : is it take as per configuration ..?? and

    make install : where it will install -- or do we need to give any another path with cross toolchain for the target. ???  or else.

                                 

    regards,

    Viswanath K

  • Hi,

    Make install should put the output files (from the compilation) inside the specified --prefix path, in your case /ti-sdk-am335x-evm-08.00.00.00/filesystem/tisdk-rootfs-image-am335x-evm/usr

    You can either use make install, or manually copy each of the compiled files to your filesystem.

    Best Regards,
    Yordan
  • Thank you Yordan. I cross compiled ffmpeg successfully. But no Luck. ffplay is not generated and with ffmpeg we not able to play the mp3 file.
    and then we tried with gstreamer: gst-launch commands --- but still no luck

    Log for ffmpeg :
    //------------------------------------------------------------------------------------
    root@am335x-evm:/usr# ffplay
    -sh: ffplay: command not found
    root@am335x-evm:/usr# ffmpeg
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

    Use -h to get full help or, even better, run 'man ffmpeg'

    //--------------------------------------------------------------------------------------
    root@am335x-evm:/usr# ffmpeg -i 03Varaveena.mp3
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    [mp3 @ 0x1169d30] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x1169d30] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    At least one output file must be specified

    //-----------------------------------------------------------------------------------------
    root@am335x-evm:/usr# aplay -L
    null
    Discard all samples (playback) or generate zero samples (capture)
    default:CARD=AM335xEVMSK
    AM335x-EVMSK,
    Default Audio Device
    sysdefault:CARD=AM335xEVMSK
    AM335x-EVMSK,
    Default Audio Device
    root@am335x-evm:/usr# ffmpeg -i 03Varaveena.mp3 -f alsa hw:0
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    [mp3 @ 0x1171560] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x1171560] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    [NULL @ 0x1173210] Requested output format 'alsa' is not a suitable output format
    hw:0: Invalid argument

    //-------------------------------------------------------------------------------------------

    root@am335x-evm:/usr# alsa
    -sh: alsa: command not found
    //------------------------------------------------------------------------------------------
    root@am335x-evm:/usr# ffmpeg -i 03Varaveena.mp3 hw:0
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    [mp3 @ 0x1171560] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x1171560] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    [NULL @ 0x1173600] Unable to find a suitable output format for 'hw:0'
    hw:0: Invalid argument
    root@am335x-evm:/usr# ffmpeg -codecs
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    Codecs:
    D..... = Decoding supported
    .E.... = Encoding supported
    ..V... = Video codec
    ..A... = Audio codec
    ..S... = Subtitle codec
    ...I.. = Intra frame-only codec
    ....L. = Lossy compression
    .....S = Lossless compression
    -------below all supported codec list was came
    root@am335x-evm:/usr# ffmpeg -i 03Varaveena.mp3 hw:0
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    [mp3 @ 0x1171560] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x1171560] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    [NULL @ 0x1173600] Unable to find a suitable output format for 'hw:0'
    hw:0: Invalid argument
    root@am335x-evm:/usr# ffmpeg -i 03Varaveena.mp3 -c:a pcm hw:0
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    [mp3 @ 0x1171560] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x1171560] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    [NULL @ 0x1173210] Unable to find a suitable output format for 'hw:0'
    hw:0: Invalid argument
    root@am335x-evm:/usr# ffmpeg -i 03Varaveena.mp3 -acodec alsa hw:0
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    [mp3 @ 0x1171560] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x1171560] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    [NULL @ 0x1173210] Unable to find a suitable output format for 'hw:0'
    hw:0: Invalid argument
    root@am335x-evm:/usr# ffmpeg -i 03Varaveena.mp3 -acodec alsa ""
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    [mp3 @ 0x1171560] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x1171560] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    [NULL @ 0x1173210] Unable to find a suitable output format for ''
    : Invalid argument
    root@am335x-evm:/usr# ffmpeg -i 03Varaveena.mp3 -f alsa "hw:0"
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    [mp3 @ 0x1171560] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x1171560] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    [NULL @ 0x1173210] Requested output format 'alsa' is not a suitable output format
    hw:0: Invalid argument
    root@am335x-evm:/usr# ffmpeg -i 03Varaveena.wav -f alsa "hw:0"
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    Guessed Channel Layout for Input Stream #0.0 : stereo
    Input #0, wav, from '03Varaveena.wav':
    Duration: 00:03:52.12, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
    [NULL @ 0x11b1150] Requested output format 'alsa' is not a suitable output format
    hw:0: Invalid argument
    root@am335x-evm:/usr# ffmpeg -i 03Varaveena.wav "hw:0"
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    Guessed Channel Layout for Input Stream #0.0 : stereo
    Input #0, wav, from '03Varaveena.wav':
    Duration: 00:03:52.12, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
    [NULL @ 0x11b1150] Unable to find a suitable output format for 'hw:0'
    hw:0: Invalid argument
    root@am335x-evm:/usr# ffmpeg -i 03Varaveena.wav
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    Guessed Channel Layout for Input Stream #0.0 : stereo
    Input #0, wav, from '03Varaveena.wav':
    Duration: 00:03:52.12, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
    At least one output file must be specified
    root@am335x-evm:/usr# ffmpeg -i file -f alsa plughw:0,3
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    file: No such file or directory
    root@am335x-evm:/usr# ffmpeg -i 03Varaveena.mp3 -f alsa plughw:0,3
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    [mp3 @ 0x1171560] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x1171560] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    [NULL @ 0x1173210] Requested output format 'alsa' is not a suitable output format
    plughw:0,3: Invalid argument
    root@am335x-evm:/usr# ffmpeg -i 03Varaveena.mp3 -f alsa plughw:0
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    [mp3 @ 0x1171560] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x1171560] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    [NULL @ 0x1173210] Requested output format 'alsa' is not a suitable output format
    plughw:0: Invalid argument oot@am335x-evm:/usr# ffmpeg -loglevel debug
    root@am335x-evm:/usr# ffmpeg -loglevel debug -i 03Varaveena.mp3 -f alsa plughw:0
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    Splitting the commandline.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input file with argument '03Varaveena.mp3'.
    Reading option '-f' ... matched as option 'f' (force format) with argument 'alsa'.
    Reading option 'plughw:0' ... matched as output file.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option loglevel (set logging level) with argument debug.
    Successfully parsed a group of options.
    Parsing a group of options: input file 03Varaveena.mp3.
    Successfully parsed a group of options.
    Opening an input file: 03Varaveena.mp3.
    [mp3 @ 0x11714f0] Format mp3 probed with size=8192 and score=51
    [mp3 @ 0x11714f0] id3v2 ver:3 flags:00 len:4086
    [mp3 @ 0x11714f0] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x11714f0] Before avformat_find_stream_info() pos: 4513 bytes read:32768 seeks:0
    [mp3 @ 0x11714f0] All info found
    [mp3 @ 0x11714f0] Estimating duration from bitrate, this may be inaccurate
    [mp3 @ 0x11714f0] After avformat_find_stream_info() pos: 26017 bytes read:32768 seeks:0 frames:50
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0, 50, 1/14112000: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    Successfully opened the file.
    Parsing a group of options: output file plughw:0.
    Applying option f (force format) with argument alsa.
    Successfully parsed a group of options.
    Opening an output file: plughw:0.
    [NULL @ 0x1173490] Requested output format 'alsa' is not a suitable output format
    plughw:0: Invalid argument
    root@am335x-evm:/usr# ffmpeg -loglevel debug -i 03Varaveena.mp3 plughw:
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    Splitting the commandline.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input file with argument '03Varaveena.mp3'.
    Reading option 'plughw:0' ... matched as output file.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option loglevel (set logging level) with argument debug.
    Successfully parsed a group of options.
    Parsing a group of options: input file 03Varaveena.mp3.
    Successfully parsed a group of options.
    Opening an input file: 03Varaveena.mp3.
    [mp3 @ 0x11714f0] Format mp3 probed with size=8192 and score=51
    [mp3 @ 0x11714f0] id3v2 ver:3 flags:00 len:4086
    [mp3 @ 0x11714f0] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x11714f0] Before avformat_find_stream_info() pos: 4513 bytes read:32768 seeks:0
    [mp3 @ 0x11714f0] All info found
    [mp3 @ 0x11714f0] Estimating duration from bitrate, this may be inaccurate
    [mp3 @ 0x11714f0] After avformat_find_stream_info() pos: 26017 bytes read:32768 seeks:0 frames:50
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0, 50, 1/14112000: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    Successfully opened the file.
    Parsing a group of options: output file plughw:0.
    Successfully parsed a group of options.
    Opening an output file: plughw:0.
    [NULL @ 0x11734f0] Unable to find a suitable output format for 'plughw:0'
    plughw:0: Invalid argument
    [AVIOContext @ 0x1170ca0] Statistics: 32768 bytes read, 0 seeks
    root@am335x-evm:/usr# ffmpeg -loglevel debug -i 03Varaveena.mp3 "plughw:0"
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    Splitting the commandline.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input file with argument '03Varaveena.mp3'.
    Reading option 'plughw:0' ... matched as output file.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option loglevel (set logging level) with argument debug.
    Successfully parsed a group of options.
    Parsing a group of options: input file 03Varaveena.mp3.
    Successfully parsed a group of options.
    Opening an input file: 03Varaveena.mp3.
    [mp3 @ 0x11714f0] Format mp3 probed with size=8192 and score=51
    [mp3 @ 0x11714f0] id3v2 ver:3 flags:00 len:4086
    [mp3 @ 0x11714f0] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x11714f0] Before avformat_find_stream_info() pos: 4513 bytes read:32768 seeks:0
    [mp3 @ 0x11714f0] All info found
    [mp3 @ 0x11714f0] Estimating duration from bitrate, this may be inaccurate
    [mp3 @ 0x11714f0] After avformat_find_stream_info() pos: 26017 bytes read:32768 seeks:0 frames:50
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0, 50, 1/14112000: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    Successfully opened the file.
    Parsing a group of options: output file plughw:0.
    Successfully parsed a group of options.
    Opening an output file: plughw:0.
    [NULL @ 0x11734f0] Unable to find a suitable output format for 'plughw:0'
    plughw:0: Invalid argument
    [AVIOContext @ 0x1170ca0] Statistics: 32768 bytes read, 0 seeks
    root@am335x-evm:/usr# ffmpeg -loglevel debug -i 03Varaveena.mp3 -f wav
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    Splitting the commandline.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input file with argument '03Varaveena.mp3'.
    Reading option '-f' ... matched as option 'f' (force format) with argument 'wav'.
    Trailing options were found on the commandline.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option loglevel (set logging level) with argument debug.
    Successfully parsed a group of options.
    Parsing a group of options: input file 03Varaveena.mp3.
    Successfully parsed a group of options.
    Opening an input file: 03Varaveena.mp3.
    [mp3 @ 0x1169d50] Format mp3 probed with size=8192 and score=51
    [mp3 @ 0x1169d50] id3v2 ver:3 flags:00 len:4086
    [mp3 @ 0x1169d50] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x1169d50] Before avformat_find_stream_info() pos: 4513 bytes read:32768 seeks:0
    [mp3 @ 0x1169d50] All info found
    [mp3 @ 0x1169d50] Estimating duration from bitrate, this may be inaccurate
    [mp3 @ 0x1169d50] After avformat_find_stream_info() pos: 26017 bytes read:32768 seeks:0 frames:50
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0, 50, 1/14112000: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    Successfully opened the file.
    At least one output file must be specified
    [AVIOContext @ 0x11722f0] Statistics: 32768 bytes read, 0 seeks
    root@am335x-evm:/usr# ffmpeg -loglevel debug -i 03Varaveena.mp3 -f wav ""
    ffmpeg version N-73902-g6b2bb3d Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.3 (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 20130226 (prerelease)
    configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=/home/vk29835/ti-sdk-l
    libavutil 54. 28.100 / 54. 28.100
    libavcodec 56. 50.101 / 56. 50.101
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 25.100 / 5. 25.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    Splitting the commandline.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input file with argument '03Varaveena.mp3'.
    Reading option '-f' ... matched as option 'f' (force format) with argument 'wav'.
    Reading option '' ... matched as output file.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option loglevel (set logging level) with argument debug.
    Successfully parsed a group of options.
    Parsing a group of options: input file 03Varaveena.mp3.
    Successfully parsed a group of options.
    Opening an input file: 03Varaveena.mp3.
    [mp3 @ 0x11714f0] Format mp3 probed with size=8192 and score=51
    [mp3 @ 0x11714f0] id3v2 ver:3 flags:00 len:4086
    [mp3 @ 0x11714f0] Skipping 417 bytes of junk at 4096.
    [mp3 @ 0x11714f0] Before avformat_find_stream_info() pos: 4513 bytes read:32768 seeks:0
    [mp3 @ 0x11714f0] All info found
    [mp3 @ 0x11714f0] Estimating duration from bitrate, this may be inaccurate
    [mp3 @ 0x11714f0] After avformat_find_stream_info() pos: 26017 bytes read:32768 seeks:0 frames:50
    Input #0, mp3, from '03Varaveena.mp3':
    Metadata:
    album : Andhrawave.com
    track : 3
    genre : Other
    date : 2008
    Duration: 00:03:52.13, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0, 50, 1/14112000: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    Successfully opened the file.
    Parsing a group of options: output file .
    Applying option f (force format) with argument wav.
    Successfully parsed a group of options.
    Opening an output file: .
    : No such file or directory
    [AVIOContext @ 0x1170ca0] Statistics: 32768 bytes read, 0 seeks
    root@am335x-evm:/usr# apt-get
    -sh: apt-get: command not found
    root@am335x-evm:/usr# ls
    03Varaveena.mp3 mpg123
    03Varaveena.wav sbin
    5706.chkusb.sh share
    arm-oe-linux-gnueabi src
    bin tailyn
    games tailyn_bk
    include test_beep
    lib test_stereo_48000Hz_8bit_PCM.wav
    libexec usbreg.sh
    root@am335x-evm:/usr# cd lib
    root@am335x-evm:/usr/lib# ls
    ES3.0
    ES5.0
    ES6.0
    ES8.0
    ES9.0
    alsa-lib
    crda
    dbus
    e2initrd_helper
    elfutils
    engines
    fonts
    gio
    gstreamer
    gstreamer-0.10
    libEGL.so
    libEGL.so.1
    libEGL.so.1.10
    libEGL.so.1.10.2359475
    libEGL_eglimage.so
    libEGL_eglimage.so.1
    libEGL_eglimage.so.1.10
    libEGL_eglimage.so.1.10.2359475
    libFLAC.so.8
    libFLAC.so.8.3.0
    libGLES_CM.so
    libGLES_CM.so.1
    libGLES_CM.so.1.10
    libGLES_CM.so.1.10.2359475
    libGLES_CM_eglimage.so
    libGLES_CM_eglimage.so.1
    libGLES_CM_eglimage.so.1.10
    libGLES_CM_eglimage.so.1.10.2359475
    libGLESv2.so
    libGLESv2.so.1
    libGLESv2.so.1.10
    libGLESv2.so.1.10.2359475

    and so on complete list of files in /usr/lib.

    log for gstreamer:
    root@am335x-evm:/usr# gst-launch -p 03Varaveena.wav
    /usr/bin/gst-launch-0.10 03Varaveena.wav

    (gst-plugin-scanner:1587): GLib-GObject-WARNING **: cannot register existing type 'GstVorbisDec'

    (gst-plugin-scanner:1587): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

    (gst-plugin-scanner:1587): GStreamer-CRITICAL **: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed
    ERROR: pipeline could not be constructed: Unrecoverable syntax error while parsing pipeline 03Varaveena.wav .
    root@am335x-evm:/usr# gst-launch-1.0 playbin uri=03Varaveena.wav
    -sh: gst-launch-1.0: command not found
    root@am335x-evm:/usr# gst-launch playbin uri=03Varaveena.wav
    Setting pipeline to PAUSED ...
    ERROR: Pipeline doesn't want to pause.
    ERROR: from element /GstPlayBin:playbin0: Invalid URI "03Varaveena.wav".
    Additional debug info:
    /home/jenkins/amsdk-nightly-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/cortexa8t2hf-vfp-neon-oe-linux-gnueabi/gst-pl0
    Setting pipeline to NULL ...
    Freeing pipeline ...

    //--------------------------------------------
    root@am335x-evm:/usr# pwd
    /usr

    //---------------------------------------------

    root@am335x-evm:/usr# gst-launch playbin uri=file:///usr/03Varaveena.wav
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    [ 276.471106] davinci_mcasp_startup:dir:1 substream->stream:0
    [ 276.655239] ## aic31xx_set_dai_sysclk: clk_id = 0, freq = 24000000, dir = 1
    [ 276.662646] davinci_mcasp_set_sysclk:mcasp->sysclk_freq:24000000 ; dir:1
    [ 276.676648] ## aic31xx_setup_pll: mclk_p:12000000 bclk_n:8 bclk_score:0 match:15
    [ 276.684623] davinci-mcasp 4803c000.mcasp: Inaccurate BCLK: 24000000 Hz / 17 != 1411200 Hz
    [ 276.693181] davinci_mcasp_hw_params:mcasp->sysclk_freq:24000000 bclk_freq:1411200
    [ 276.701131] davinci_mcasp_hw_params:word_length:16
    [ 276.723906] ## aic31xx_dapm_power_event:event:2 w->reg:63 w->shift:7
    [ 276.730717] ##PMU: reg:0x25:mask:128
    [ 276.737502] ## aic31xx_dapm_power_event:event:2 w->reg:160 w->shift:7
    [ 276.744426] ##PMU: reg:0x25:mask:16
    [ 276.750625] ## Speaker connected
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    [ 276.873943] davinci_mcasp_start:
    [ 276.877361] mcasp_start_tx:
    New clock: GstAudioSinkClock
    ^CCaught interrupt -- handling interrupt.
    Interrupt: Stopping pipeline ...
    Execution ended after 6264915335 ns.
    Setting [ 283.155199] mcasp_stop_tx:
    pipeline to PAUSED ...
    [ 283.161703] ## Speaker connected
    Setting pipeline to READY ...
    [ 283.286295] ## Speaker connected
    Setting pipeline to NULL ...
    Freeing pipeline ...

    //------------------------------------------------------------------------------------
    root@am335x-evm:/usr# gst-launch playbin uri=file:///usr/03Varaveena.mp3
    [ 288.565272] ## aic31xx_dapm_power_event:event:8 w->reg:160 w->shift:7
    [ 288.572242] ##PMD: reg:0x25:mask:16
    [ 288.595857] ## aic31xx_dapm_power_event:event:8 w->reg:63 w->shift:7
    [ 288.602663] ##PMD: reg:0x25:mask:128
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    ** Message: don't know how to handle audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(e
    Missing element: MPEG-1 Layer 3 (MP3) decoder
    ERROR: from element /GstPlayBin:playbin0: You do not have a decoder installed to handle this file. You might need to install the necess.
    Additional debug info:
    /home/jenkins/amsdk-nightly-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/cortexa8t2hf-vfp-neon-oe-linux-gnueabi/gst-pl0
    ERROR: pipeline doesn't want to preroll.
    Setting pipeline to NULL ...
    Freeing pipeline ...
    root@am335x-evm:/usr# [ 289.677309] tlv320aic31xx-codec 0-0018: aic31xx_wait_bits: Failed! 0x25 was 0x88 expected 0x0 (0, 0x80, 500000)
    [ 289.688291] tlv320aic31xx-codec 0-0018: ASoC: POST_PMD: DAC Left event failed: -1



    //--------------this is the log for the ffmpeg and gstreamer.

    Please anyone help in this.

    regards,

    Viswanath K