Menu

#320 MP4Client playback

v1.0 (example)
open
nobody
MP4Client (1)
5
2014-08-16
2014-07-14
Haitham
No

Hi created the following MPD from a mp4 using MP4Box, however when i tried playing it (playback) on my PC MP4Client just pops up and doesn't play anything.

<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" minbuffertime="PT1.500000S" type="static" mediapresentationduration="PT0H1M39.06S" profiles="urn:mpeg:dash:profile:full:2011">
<programinformation moreinformationurl="http://gpac.sourceforge.net">
<title>Video4_dash.mpd generated by GPAC</title>
</programinformation></mpd>

<period id="" duration="PT0H1M39.06S">
<adaptationset segmentalignment="true" maxwidth="1280" maxheight="720" maxframerate="25" par="16:9" lang="und">
<contentcomponent id="user-content-1" contenttype="video">
<contentcomponent id="user-content-2" contenttype="audio">
<representation id="user-content-1" mimetype="video/mp4" codecs="avc1.64001f,mp4a.40.2" width="1280" height="720" framerate="25" sar="1:1" audiosamplingrate="44100" startwithsap="1" bandwidth="2751592">
<audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2">
<baseurl>Video4_dashinit.mp4</baseurl>
<segmentlist timescale="1000" duration="0">
<initialization range="0-2052">
<segmenturl mediarange="2053-2910802" indexrange="2053-2193">
<segmenturl mediarange="2910803-5805856" indexrange="2910803-2910943">
<segmenturl mediarange="5805857-8352362" indexrange="5805857-5805997">
<segmenturl mediarange="8352363-11437604" indexrange="8352363-8352503">
<segmenturl mediarange="11437605-14818698" indexrange="11437605-11437745">
<segmenturl mediarange="14818699-18213025" indexrange="14818699-14818839">
<segmenturl mediarange="18213026-21725616" indexrange="18213026-18213166">
<segmenturl mediarange="21725617-25850458" indexrange="21725617-21725769">
<segmenturl mediarange="25850459-28085785" indexrange="25850459-25850587">
<segmenturl mediarange="28085786-30698472" indexrange="28085786-28085926">
<segmenturl mediarange="30698473-33589128" indexrange="30698473-30698625">
<segmenturl mediarange="33589129-34070330" indexrange="33589129-33589209">
</segmenturl></segmenturl></segmenturl></segmenturl></segmenturl></segmenturl></segmenturl></segmenturl></segmenturl></segmenturl></segmenturl></segmenturl></initialization></segmentlist>
</audiochannelconfiguration></representation>
</contentcomponent></contentcomponent></adaptationset>
</period>

Also if I try opening MP4Client itself, I get the following message:

alkhuhsm@dev-NW504:~$ MP4Client
Using config file in /home/alkhuhsm directory
System info: 1995 MB RAM - 2 cores
Modules Found : 25
Loading GPAC Terminal
[Core] Plugin No Audio Output Available not found in 25 modules.
[OSS] Cannot open audio device
Could not setup audio out OSS Audio Output
[Core] Plugin FreeType Font Reader not found in 25 modules.
[Thread MediaManager] Couldn't set priority(2) for thread ID 0x00000000
[Thread MediaManager] Couldn't set priority(2) for thread ID 0xb63cbb40
Terminal Loaded in 3 ms
WARNING: no audio output available - make sure no other program is locking the sound card
Hit 'h' for help

Is the above normal standard?

I'm using Ubuntu 12.04

MP4Box:

MP4Box - GPAC version 0.5.1-DEV-rev5290
GPAC Copyright (c) Telecom ParisTech 2000-2012
GPAC Configuration:
Features: GPAC_HAS_SSL GPAC_DISABLE_3D

MP4Client:

MP4Client 0.5.1-DEV-rev 5290

I would also like to stream this MPD to another PC, what is the best way to do that

Discussion

  • Haitham

    Haitham - 2014-07-14

    Pls find the DASH content and file created by MP4Box

     
  • Haitham

    Haitham - 2014-07-14

    I also seem to have a problem when trying to playback from a normal mp4 file
    This is what I get

    MP4Client - GPAC command line player - version 0.5.1-DEV-rev5290
    GPAC Written by Jean Le Feuvre (c) 2001-2005 - ENST (c) 2005-200X
    o
    Service Disconnected
    Enter the absolute URL
    /home/alkhuhsm/Desktop/Video4.mp4
    Service Connected
    [Codec] ODM1 ES1: Cannot find decoder for stream type MPEG-4 AVC|H264 Video
    Stream Setup Failure: Media Codec not found
    [Codec] ODM2 ES2: Cannot find decoder for stream type MPEG-4 Audio AAC LC
    Stream Setup Failure: Media Codec not found

     
  • Jean Le Feuvre

    Jean Le Feuvre - 2014-07-15

    This works fine here, are you sure of your MP4Client setup? Could you post the output of ./configure

     
  • Haitham

    Haitham - 2014-07-15

    This is the output from ./configure

    ** System Configuration
    Install prefix: /usr/local
    Source path: /home/alkhuhsm/gpac
    C compiler: gcc
    C++ compiler: g++
    make: make
    CPU: x86
    Big Endian: no

    ** GPAC 0.5.1-DEV rev5294 Core Configuration **
    debug version: no
    GProf enabled: no
    Static build enabled: no
    Memory tracking enabled: no
    Use standard memory allocator: no
    Fixed-Point Version: no
    IPV6 Support: yes
    Static Modules: no

    ** Detected libraries **
    zlib: system
    OSS Audio: yes
    ALSA Audio: yes
    Jack Audio: no
    PulseAudio Audio: yes
    DirectFB support: no
    X11 Shared Memory support: yes (path: /usr/X11R6)
    X11 XVideo support: no
    SDL Support: yes
    OpenGL support: yes
    TinyGL support: no
    OpenSSL support: yes
    Mozilla XUL/GECKO support: no
    DVB Support: yes
    XMLRPC Support: no
    wxWidgets support: no

    ** Extra Libraries used **
    SpiderMonkey: no
    FreeType: system
    JPEG: no
    OpenJPEG: no
    PNG: system
    MAD: no
    FAAD: no
    XVID: no
    FFMPEG: system
    Xiph OGG: system
    Platinum UPnP: no
    AVCap: no
    Xiph Vorbis: system
    Xiph Theora: system
    A52 (AC3): no
    OpenSVCDecoder: no
    OpenHEVCDecoder: no
    Freenect: no

    Creating config.mak
    config.h is unchanged
    Done - type 'make help' for make info, 'make' to build

     
  • Jean Le Feuvre

    Jean Le Feuvre - 2014-07-15

    seems correct for FFMPG, but you miss the AAC decoder (libfaad).
    For your video problem, have you tried removing the .gpacrc file and relaunch MP4Client ?

     
  • Haitham

    Haitham - 2014-07-16

    I added the missing decoder however still semm to have a problem.

    The ./configure output is:

    ** System Configuration
    Install prefix: /usr/local
    Source path: /home/alkhuhsm/gpac
    C compiler: gcc
    C++ compiler: g++
    make: make
    CPU: x86
    Big Endian: no

    ** GPAC 0.5.1-DEV rev5294 Core Configuration **
    debug version: no
    GProf enabled: no
    Static build enabled: no
    Memory tracking enabled: no
    Use standard memory allocator: no
    Fixed-Point Version: no
    IPV6 Support: yes
    Static Modules: no

    ** Detected libraries **
    zlib: system
    OSS Audio: yes
    ALSA Audio: yes
    Jack Audio: no
    PulseAudio Audio: yes
    DirectFB support: no
    X11 Shared Memory support: yes (path: /usr/X11R6)
    X11 XVideo support: yes
    SDL Support: yes
    OpenGL support: yes
    TinyGL support: no
    OpenSSL support: yes
    Mozilla XUL/GECKO support: no
    DVB Support: yes
    XMLRPC Support: no
    wxWidgets support: no

    ** Extra Libraries used **
    SpiderMonkey: no
    FreeType: system
    JPEG: no
    OpenJPEG: no
    PNG: system
    MAD: no
    FAAD: system
    XVID: system
    FFMPEG: system
    Xiph OGG: system
    Platinum UPnP: no
    AVCap: no
    Xiph Vorbis: system
    Xiph Theora: system
    A52 (AC3): no
    OpenSVCDecoder: no
    OpenHEVCDecoder: no
    Freenect: no

    Creating config.mak
    config.h is unchanged
    Done - type 'make help' for make info, 'make' to build

    ========================================

    This is what I get when I playback a local mp4 file on the pc:

    alkhuhsm@dev-NW504:~$ MP4Client /home/alkhuhsm/Desktop/video3.mp4
    Using config file in /home/alkhuhsm directory
    System info: 1995 MB RAM - 2 cores
    Modules Found : 25
    Loading GPAC Terminal
    [Core] Plugin No Audio Output Available not found in 25 modules.
    [OSS] Cannot open audio device
    Could not setup audio out OSS Audio Output
    [Core] Plugin FreeType Font Reader not found in 25 modules.
    [Thread MediaManager] Couldn't set priority(2) for thread ID 0x00000000
    [Thread MediaManager] Couldn't set priority(2) for thread ID 0xb63cbb40
    Terminal Loaded in 3 ms
    WARNING: no audio output available - make sure no other program is locking the sound card
    Opening URL /home/alkhuhsm/Desktop/video3.mp4
    Service Connected
    [Codec] ODM1 ES1: Cannot find decoder for stream type MPEG-4 AVC|H264 Video
    Stream Setup Failure: Media Codec not found
    [Codec] ODM2 ES2: Cannot find decoder for stream type MPEG-4 Audio AAC LC
    Stream Setup Failure: Media Codec not found

    ==========================================

    I added a screen shot of the MP4Client window that pops up.

     
  • Jean Le Feuvre

    Jean Le Feuvre - 2014-07-16

    have you removed the .gpacrc ?

     
    • Haitham

      Haitham - 2014-07-16

      Jean thanks for your swift reply.
      Is the .gpacrc the gpac configure file, if so yes I removed it and relaunched MP4Client however I'm still getting the same problem as before.

       

      Last edit: Haitham 2014-07-16
  • Jean Le Feuvre

    Jean Le Feuvre - 2014-08-01

    you still have the line complaininging about no video decoder for AVC ? In this case you maye have an issue with your FFMPEG setup. Do you have the module gf_ffmpeg in the gpac/bin/gcc directory ?

     

Log in to post a comment.