FAQ  •  Register  •  Login

Plugin issues

<<

mmatula

Serviio newbie

Posts: 6

Joined: Wed Feb 22, 2012 10:57 am

Post Sun Feb 26, 2012 7:14 pm

Plugin issues

Writing a new plugin turned out to be more challenging that I initially envisioned. I am getting the following errors for most of the server streams:

  Code:
/Applications/Serviio.app/Contents/Resources/Java/../../MacOS/ffmpeg -i "rtmp://wcdn101.nacevi.cz/ct-vod/_definst_?id=MTQ0MTA3NDg4NXw2MzQ2NTg4MTY4MjczMjM3NTA=&type=wpl/mp4:iVysilani/2012/02/03/VsechnopartyCT1-030212-MP4_576p.mp4 buffer=100000000" -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /Users/martin/Filmy-transcoded/Serviio/transcoding-temp-1000000000050004-MPEG2TS.stf
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 14 2011 01:44:37 with gcc 4.0.1 (Apple Inc. build 5493)
  configuration: --enable-static --disable-shared --bindir=/tmp/ffmpeg --disable-ffplay --disable-ffserver --enable-libmp3lame --enable-librtmp --enable-pthreads --disable-mmx --extra-ldflags=-L/tmp/static/lib --extra-cflags=-I/tmp/static/include --extra-libs=-lpolarssl
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 0 / 53. 42. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
Metadata:
trackinfo:
  timescale             1000.00
  length                2525970.00
  language              eng
sampledescription:
  sampletype            avc1
  timescale             1000.00
  length                2526038.00
  language              eng
sampledescription:
  sampletype            mp4a
  audiochannels         2.00
  audiosamplerate       1000.00
  videoframerate        inf
  aacaot                2.00
  avclevel              31.00
  avcprofile            66.00
  audiocodecid          mp4a
  videocodecid          avc1
  width                 1024.00
  height                576.00
  frameWidth            1024.00
  frameHeight           576.00
  displayWidth          1024.00
  displayHeight         576.00
  framerate             25.00
  moovposition          36.00
  duration              2526.04
[h264 @ 0x1115400] AVC: nal size 21102623
[h264 @ 0x1115400] no frame!
Input #0, flv, from 'rtmp://wcdn101.nacevi.cz/ct-vod/_definst_?id=MTQ0MTA3NDg4NXw2MzQ2NTg4MTY4MjczMjM3NTA=&type=wpl/mp4:iVysilani/2012/02/03/VsechnopartyCT1-030212-MP4_576p.mp4 buffer=100000000':
  Metadata:
    audiochannels   : 2
    videoframerate  : inf
    aacaot          : 2
    avclevel        : 31
    avcprofile      : 66
    frameWidth      : 1024
    frameHeight     : 576
    displayWidth    : 1024
    displayHeight   : 576
    moovposition    : 36
  Duration: 00:42:06.03, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 25 tbr, 1k tbn, 50 tbc
    Stream #0:1: Audio: aac, 48000 Hz, stereo, s16
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[ac3 @ 0x1204200] channel_layout not specified
[ac3 @ 0x1204200] No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[mpegts @ 0x110bc00] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to '/Users/martin/Filmy-transcoded/Serviio/transcoding-temp-1000000000050004-MPEG2TS.stf':
  Metadata:
    audiochannels   : 2
    videoframerate  : inf
    aacaot          : 2
    avclevel        : 31
    avcprofile      : 66
    frameWidth      : 1024
    frameHeight     : 576
    displayWidth    : 1024
    displayHeight   : 576
    moovposition    : 36
    encoder         : Lavf53.24.0
    Stream #0:0: Video: h264, yuv420p, 1024x576 [SAR 1:1 DAR 16:9], q=2-31, 90k tbn, 25 tbc
    Stream #0:1: Audio: ac3, 48000 Hz, stereo, flt, 384 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (aac -> ac3)
Press [q] to stop, [?] for help
h264_mp4toannexb failed for stream 0, codec copy: Invalid argument
[mpegts @ 0x110bc00] h264 bitstream malformated, no startcode found, use -vbsf h264_mp4toannexb
av_interleaved_write_frame(): Operation not permitted


Any idea what's wrong? Found a few threads on other serviio forums, but none of them seems to be resolved?
Btw, server expires the tokens which are part of the uri, so if you try to run the same command on your computer, it won't work - I can give you instructions on how to extract a valid stream URI if you want to try to debug.

Another issue I have is when new episodes are added, they are added at the beginning of the list of episodes. I noticed, that thumbnails are never refreshed - i.e. the newest episode gets the thumbnail of an episode that used to be the first and now is the second. Is it possible it is a serviio bug?
Also after the refresh it seems occasionally (haven't traced it down) I start getting errors for a particular file which look like serviio thinks it has cached a transcoded version, so does not bother trying to run ffmpeg, but when it goes looking for the transcoded file it is not there, so it fails. Has anyone run into this? Could that also be related to the fact how new episodes are added to the list?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Feb 26, 2012 11:00 pm

Re: Plugin issues

It looks like a problem with the stream, or FFmpeg cannot deal with it. You might try a newer FFmpeg version to see if they fixed it.
<<

mmatula

Serviio newbie

Posts: 6

Joined: Wed Feb 22, 2012 10:57 am

Post Mon Feb 27, 2012 10:05 pm

Re: Plugin issues

Could you please provide instructions on how to build the new ffmpeg with the same settings you are using for serviio? Thanks in advance!

How about the other issue I mentioned regarding the thumbnails. I don't see anything obvious in my plugin, so I am thinking it might be a serviio bug.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Mon Feb 27, 2012 11:00 pm

Re: Plugin issues

mmatula wrote:Could you please provide instructions on how to build the new ffmpeg with the same settings you are using for serviio? Thanks in advance!


read our wiki its in there ;)
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Feb 27, 2012 11:57 pm

Re: Plugin issues

i haven't had any problems with thumbnails yet... might be a problem with the plugin?
<<

mmatula

Serviio newbie

Posts: 6

Joined: Wed Feb 22, 2012 10:57 am

Post Fri Mar 02, 2012 3:06 pm

Re: Plugin issues

Cerberus wrote:
mmatula wrote:Could you please provide instructions on how to build the new ffmpeg with the same settings you are using for serviio? Thanks in advance!


read our wiki its in there ;)


I tried to navigate through links and also went to wiki page index and tried to find it there. Unfortunately I only found this guide specific to linux: http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux

I'm using a Mac and would be grateful if you could point me to the config I should use there (when I start ffmpeg, it does show me what flags were used, but they reference some directories that I have no clue about the content of - also when I use these flags it complains about not being able to locate librtmp although I did download it, built it on Mac and put it on the path). Thanks in advance.

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 12 guests

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