FAQ  •  Register  •  Login

[SOLVED] LDS Feeds (Conference)

<<

dpippin

Serviio newbie

Posts: 13

Joined: Sun Sep 25, 2011 6:41 pm

Post Sat Oct 01, 2011 7:22 pm

[SOLVED] LDS Feeds (Conference)

I've been trying for a couple of weeks on programing this one all to no avail (I no little to nothing about programming).

The feed is http://feeds.lds.org/LDSGCComplete_eng_mp4
XML Feed is http://feeds.lds.org/LDSGCComplete_eng_mp4?format=xml

I'm thinking it will be fairly easy:
1. Capture the file name (see in blue) from XML <media:content url="http://feeds.lds.org/~r/lds-general-conference-sd-eng/~5/BT1XK2LXo5o/66852713001_859513978001_2011-03-0001-high-on-the-mountain-top-8000k-eng.mp4"

2. Also Capture the first 11 numbers in the file name 66852713001

3. Add a forward slash to the capture number 66852713001/ = 66852713001/

4. Then add first 11 numbers plus a slash and then filename above at the end of the URL http://brightcove.lds.com.edgesuite.net/66852713001/66852713001_859513978001_2011-03-0001-high-on-the-mountain-top-8000k-eng.mp4

Thank you for the help.

By the way I don't know if it will work but I found this code for extracting filename from a URL
  Code:
 def id = linkurl.substring(url.lastindexof('/'+1, linkurl.length()))


Thanks I would greatly appreciate this.
Last edited by dpippin on Tue Oct 18, 2011 4:28 am, edited 1 time in total.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Oct 09, 2011 2:33 pm

Re: LDS Feeds (Conference)

this should work without a plugin. are you seeing any errors?
<<

dpippin

Serviio newbie

Posts: 13

Joined: Sun Sep 25, 2011 6:41 pm

Post Sun Oct 16, 2011 9:31 pm

Re: LDS Feeds (Conference)

this should work without a plugin. are you seeing any errors?


It looks like it is pulling the right information and getting the file name. From reading the log (see below) it looks like it can't decode the mp4 file "Unknown video file type". I'm running Serviio 0.6 on Linux.

  Code:
2011-10-09 10:44:40,122 DEBUG [FeedUpdaterThread] Retrieving information about the video stream
2011-10-09 10:44:40,122 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: http://feeds.lds.org/~r/lds-general-conference-sd-eng/~5/lKNHPzxuEEU/66852713001_1205467357001_2011-10-3010-elder-jeffrey-r-holland-8000k-eng.mp4
2011-10-09 10:44:40,123 DEBUG [ProcessExecutor] Starting ffmpeg -i http://feeds.lds.org/~r/lds-general-conference-sd-eng/~5/lKNHPzxuEEU/66852713001_1205467357001_2011-10-3010-elder-jeffrey-r-holland-8000k-eng.mp4
2011-10-09 10:44:40,345 WARN  [FeedUpdaterThread] Failed to retrieve feed item information for http://feeds.lds.org/~r/lds-general-conference-sd-eng/~5/lKNHPzxuEEU/66852713001_1205467357001_2011-10-3010-elder-jeffrey-r-holland-8000k-eng.mp4. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.online.metadata.FeedUpdaterThread.updateLazyLoadedProperties(FeedUpdaterThread.java:188)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:93)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.metadata.FFmpegMetadataRetriever.validateCodecsFound(FFmpegMetadataRetriever.java:318)
   at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:68)
   at org.serviio.library.online.metadata.FeedUpdaterThread.updateLazyLoadedProperties(FeedUpdaterThread.java:169)
   ... 1 more


I went to that site and I am downloading that exact file right now. I will load it into Serviio and try to play it manually and let you know. Thank you for the response.
<<

dpippin

Serviio newbie

Posts: 13

Joined: Sun Sep 25, 2011 6:41 pm

Post Sun Oct 16, 2011 10:02 pm

Re: LDS Feeds (Conference)

The file played fine from Serviio when I manually downloaded it and added it to my library. I'm not quite sure why it can't pick it up from the RSS Feed. Below is info from ffmpeg and mediainfo.

FFMPEG -i
  Code:
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Sep 16 2011 17:04:18, gcc: 4.4.3

Seems stream 0 codec frame rate differs from container frame rate: 59.94 (5994/100) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '66852713001_1205467357001_2011-10-3010-elder-jeffrey-r-holland-8000k-eng.mp4':
  Duration: 00:15:26.89, start: 0.000000, bitrate: 1231 kb/s
    Stream #0.0(und): Video: h264, yuv420p, 720x404, 29.97 tbr, 29.97 tbn, 59.94 tbc
    Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16
At least one output file must be specified


Info from Mediainfo:
  Code:
General
Complete name                    : C:\Users\dpippin\Desktop\Jdownloader\66852713001_1205467357001_2011-10-3010-elder-jeffrey-r-holland-8000k-eng.mp4
Format                           : MPEG-4
Format profile                   : Base Media
Codec ID                         : isom
File size                        : 136 MiB
Duration                         : 15mn 26s
Overall bit rate                 : 1 232 Kbps
Writing application              : Lavf53.4.0

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : Main@L3.0
Format settings, CABAC           : Yes
Format settings, ReFrames        : 1 frame
Codec ID                         : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                         : 15mn 26s
Bit rate                         : 1 100 Kbps
Width                            : 720 pixels
Height                           : 404 pixels
Display aspect ratio             : 16:9
Frame rate mode                  : Constant
Frame rate                       : 29.970 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.126
Stream size                      : 122 MiB (89%)
Writing library                  : x264 core 116
Encoding settings                : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=5 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=24 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=2 / keyint=150 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1100 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.41 / aq=1:1.00

Audio
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format profile                   : LC
Codec ID                         : 40
Duration                         : 15mn 22s
Bit rate mode                    : Constant
Bit rate                         : 128 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 44.1 KHz
Compression mode                 : Lossy
Stream size                      : 14.1 MiB (10%)



Any help on why the RSS Feed rejected the video file would help. Thanks,
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Oct 16, 2011 11:10 pm

Re: LDS Feeds (Conference)

try updating your FFmpeg first, you have version 0.5, they are now on 0.8.
<<

dpippin

Serviio newbie

Posts: 13

Joined: Sun Sep 25, 2011 6:41 pm

Post Tue Oct 18, 2011 4:28 am

Re: LDS Feeds (Conference)

It worked Thank You!

Return to Plugin requests

Who is online

Users browsing this forum: No registered users and 9 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.