Unable to stream video

Help
jpm
2012-12-13
2013-05-29
  • jpm

    jpm - 2012-12-13

    Hi

    I'm running minidlna on an Excito B3 server (Debian 6.0.3)

    Streaming mp3 and pictures to my samsung BD C6500 bluray works, but not video.

    I can't figure out how to post the logs here without the post being rejected as spam, but here is a key excerpt from running with -d

    [2012/12/13 06:38:35] upnphttp.c:654: debug: SOAPAction: urn:schemas-upnp-org:service:ContentDirectory:1#Browse
    [2012/12/13 06:38:35] upnpsoap.c:1547: debug: SoapMethod: Browse
    [2012/12/13 06:38:35] upnpsoap.c:1075: debug: Browsing ContentDirectory:
     * ObjectID: 2
     * Count: 1
     * StartingIndex: 0
     * BrowseFlag: BrowseDirectChildren
     * Filter: *
     * SortCriteria: (null)
    [2012/12/13 06:38:35] upnpsoap.c:1145: debug: Browse SQL: SELECT o.OBJECT_ID, o.PARENT_ID, o.REF_ID, o.DETAIL_ID, o.CLASS, d.SIZE, d.TITLE, d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM, d.GENRE, d.COMMENT, d.CHANNELS, d.TRACK, d.DATE, d.RESOLUTION, d.THUMBNAIL, d.CREATOR, d.DLNA_PN, d.MIME, d.ALBUM_ART, d.DISC from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID) where PARENT_ID = '2'  limit 0, 1;
    [2012/12/13 06:38:35] upnpsoap.c:1607: warn: Returning UPnPError 701: No such object error
    [2012/12/13 06:38:35] upnphttp.c:1132: debug: HTTP RESPONSE: HTTP/1.1 500 Internal Server Error
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 404
    Server: Debian/6.0.3 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.0
    

    If this post is accepted I'll reply with some more info

    Any suggestions would be welcomed.

    Regards

     
  • jpm

    jpm - 2012-12-13

    Here is my conf file

    # port for HTTP (descriptions, SOAP, media transfer) traffic
    port=8200
    # network interface to bind to (this is the only interface that will serve files)
    network_interface=br0
    # set this to the directory you want scanned.
    # * if have multiple directories, you can have multiple media_dir= lines
    # * if you want to restrict a media_dir to a specific content type, you
    #   can prepend the type, followed by a comma, to the directory:
    #   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)
    #   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)
    #   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
    media_dir=A,/home/storage/music
    media_dir=V,/home/storage/video
    media_dir=P,/home/storage/pictures
    # set this if you want to customize the name that shows up on your clients
    friendly_name=Excito B3 DLNA Server
    # set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
    #db_dir=/var/cache/minidlna
    # set this if you would like to specify the directory where you want MiniDLNA to store its log file
    log_dir=/var/log
    # this should be a list of file names to check for when searching for album art
    # note: names should be delimited with a forward slash ("/")
    album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
    # set this to no to disable inotify monitoring to automatically discover new files
    # note: the default is yes
    inotify=yes
    # set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
    enable_tivo=no
    # set this to strictly adhere to DLNA standards.
    # * This will allow server-side downscaling of very large JPEG images,
    #   which may hurt JPEG serving performance on (at least) Sony DLNA products.
    strict_dlna=no
    # default presentation url is http address on port 80
    presentation_url=http://excito.com
    # notify interval in seconds. default is 895 seconds.
    notify_interval=900
    # serial and model number the daemon will report to clients
    # in its XML description
    serial=12345678
    model_number=1
    

    And here is the contents of /home/storage/video

    /home/storage/video# file *
    j.mp4:                         ISO Media, MPEG v4 system, 3GPP
    k.mpg:                         MPEG sequence, v1, system multiplex
    video-2012-02-18-10-19-46.mp4: ISO Media, MPEG v4 system, 3GPP
    x.mpg:                         MPEG sequence, v1, system multiplex
    y.ts:                          data
    z.mpeg:                        MPEG sequence, v1, system multiplex
    

    The part of the minidlna transcript  not posted reports an inotify monitor is successfully added to /home/storage/video

    Thanks

     
  • jpm

    jpm - 2012-12-13

    Nosing about the database, it looks like there is nothing with OBJECT_ID 2.

    What could be the problem?

     
  • Craig Chambers

    Craig Chambers - 2012-12-13

    1)  When you say streaming video doesn't work, what sort of error are you seeing?  e.g. Files are listed, but fail to stream with some form of error, or files are not listed at all?

    2) If you have photos and music working, then clearly you have a working db normally.  How did you run debug mode?  Are you supplying a path for the database, or is it using the default path (which is /var/lib/minidlna on the packaged Ubuntu version - not sure about Debian).

    It's probably worth looking in the database after running normally to see if the videos are present in there:
    sqlite3 /path/to/your/minidlna.db "select path,mime,dlna_pn from details where path like '%/video/%'"

    Looking at your file list, it's possible that none of the files are supported on the client, or possibly that minidlna does not know what DLNA_PN to assign to them…
    3gpp video does not have a huge amount of support outside of phones
    DLNA only mandates support for MPEG v2, not MPEG v1, MPEG 1 may not be supported.
    I can't see the contents of your .ts file from the above, but it may also be in some way invalid

    It may be worth trying with a file type that is mandatory in DLNA such as an MPEG 2 file (mpeg 2 video with either mp2 or ac3 audio) to see if that becomes visible on the TV.

    HTH,
    Craig

     
  • jpm

    jpm - 2012-12-13

    Thanks for your suggestions, but no luck so far …..

    1)  When you say streaming video doesn't work, what sort of error are you seeing?  e.g. Files are listed, but fail to stream with some form of error, or files are not listed at all?

    The bluray says there is no media of that type (video)

    It's probably worth looking in the database after running normally to see if the videos are present in there:
    sqlite3 /path/to/your/minidlna.db "select path,mime,dlna_pn from details where path like '%/video/%'"

    All present :

    sqlite> select path,mime,dlna_pn from details where path like '%/video/%';
    PATH|MIME|DLNA_PN
    /home/storage/video/j.mp4|video/mp4|
    /home/storage/video/video-2012-02-18-10-19-46.mp4|video/mp4|
    /home/storage/video/k.mpg|video/mpeg|MPEG1;DLNA.ORG_OP=01;DLNA.ORG_CI=0
    /home/storage/video/z.mpeg|video/mpeg|MPEG1;DLNA.ORG_OP=01;DLNA.ORG_CI=0
    /home/storage/video/x.mpg|video/mpeg|MPEG1;DLNA.ORG_OP=01;DLNA.ORG_CI=0
    /home/storage/video/y.ts|video/mpeg|MPEG_TS_SD_NA_ISO;DLNA.ORG_OP=01;DLNA.ORG_CI=0
    sqlite>
    

    I ran debug mode by stopping the server and then running from command line as root :
    minidlna - d -f /etc/minidlna.conf

    I've tried all sorts of clips I can find on the web. Are any of these mandatory :

    This is what the database currently holds, but player still says no videos on server.

    sqlite> select path,mime,dlna_pn from details where path like '%/video/%';
    /home/storage/video/j.mp4|video/mp4|
    /home/storage/video/video-2012-02-18-10-19-46.mp4|video/mp4|
    /home/storage/video/k.mpg|video/mpeg|MPEG1;DLNA.ORG_OP=01;DLNA.ORG_CI=0
    /home/storage/video/z.mpeg|video/mpeg|MPEG1;DLNA.ORG_OP=01;DLNA.ORG_CI=0
    /home/storage/video/x.mpg|video/mpeg|MPEG1;DLNA.ORG_OP=01;DLNA.ORG_CI=0
    /home/storage/video/y.ts|video/mpeg|MPEG_TS_SD_NA_ISO;DLNA.ORG_OP=01;DLNA.ORG_CI=0
    /home/storage/video/test-mpeg2.mpg|video/mpeg|
    /home/storage/video/test-mpeg2_512kb.mp4|video/mp4|
    /home/storage/video/cinedemo.avi|video/x-msvideo|
    /home/storage/video/fair.mpg|video/mpeg|MPEG_PS_NTSC;DLNA.ORG_OP=01;DLNA.ORG_CI=0
    /home/storage/video/TITLE01-ANGLE1.VOB|video/mpeg|MPEG_PS_PAL;DLNA.ORG_OP=01;DLNA.ORG_CI=0
    /home/storage/video/Test_1440x576_WVC1_6Mbps.wmv|video/x-ms-wmv|
    /home/storage/video/MELT.MPG|video/mpeg|
    sqlite>
    

    cheers

     
  • jpm

    jpm - 2012-12-13

    I;ve installed a dlna client on my smartphone and when browsing I noticed that the server lists only music and pictures, not video.

    Now installed a second client, same thing, no video offered.

    cheers

     
  • jpm

    jpm - 2012-12-13

    OK, resolved it.

    I blew away the log and the database and restarted the server. Once it had rebuilt I had video access.

    I can only guess the DB had become corrupted.

    Thanks for your help

     
  • Craig Chambers

    Craig Chambers - 2012-12-14

    Glad you got it sorted. 

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks