FAQ  •  Register  •  Login

[SOLVED] ffmpeg issue in 1.0

<<

xs2inattar

DLNA master

Posts: 143

Joined: Sun Jun 24, 2012 5:49 pm

Post Thu Jul 26, 2012 1:52 am

[SOLVED] ffmpeg issue in 1.0

I have been issue with online items since installing 1.0. From logs it seems like ffmpeg command fails with the following error.

  Code:
2012-07-25 21:33:50,006 DEBUG [VideoDeliveryEngine] Extracting new URL for the expired feed item
2012-07-25 21:33:50,007 DEBUG [FeedItemUrlExtractor] cwtv.com: Starting extraction of url for item: Shut Up, Dr. Phil
2012-07-25 21:33:50,008 DEBUG [FeedItemUrlExtractor] cwtv.com: Finished extraction of url: ContentURLContainer [fileType=VIDEO, contentUrl="rtmpe://cwtvfs.fplive.net/cwtv/ playpath=mp4:cwtvLevel3/videos/2011/10/21/SUP705-shutupdrphil_b7de1d653_500kbps.mp4 swfUrl=http://pdl.warnerbros.com/cwtv/digital-smiths/production_player/vsplayer.swf swfVfy=0", thumbnailUrl=http://media.cwtv.com/cwtv/digital-smiths/thumbs/2011/10/21/SUP705-shutupdrphil_b7de1d653_CWtv_141x79.jpg, expiresImmediately=true, cacheKey=CW_86538615-4f68-4d94-abe2-4d8a99c472fa_MEDIUM, live=false, ]
2012-07-25 21:33:50,008 DEBUG [VideoDeliveryEngine] Successfully set new URL for the feed item
2012-07-25 21:33:50,009 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: "rtmpe://cwtvfs.fplive.net/cwtv/ playpath=mp4:cwtvLevel3/videos/2011/10/21/SUP705-shutupdrphil_b7de1d653_500kbps.mp4 swfUrl=http://pdl.warnerbros.com/cwtv/digital-smiths/production_player/vsplayer.swf swfVfy=0"
2012-07-25 21:33:50,010 DEBUG [ProcessExecutor] Starting /volume1/@appstore/Serviio/bin/ffmpeg -fflags +genpts -i "rtmpe://cwtvfs.fplive.net/cwtv/ playpath=mp4:cwtvLevel3/videos/2011/10/21/SUP705-shutupdrphil_b7de1d653_500kbps.mp4 swfUrl=http://pdl.warnerbros.com/cwtv/digital-smiths/production_player/vsplayer.swf swfVfy=0" -y -copyts -c:v copy -vbsf h264_mp4toannexb -c:a ac3_fixed -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /.tmp/Serviio/transcoding-temp-1000000001070004-1-ORIGINAL.stf
2012-07-25 21:33:50,026 WARN  [ProcessExecutor] Process /volume1/@appstore/Serviio/bin/ffmpeg has a return code of 1! This is a possible error.
2012-07-25 21:33:50,027 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2012-07-25 21:33:50,486 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.3:59794
2012-07-25 21:33:50,486 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-07-25 21:33:53,487 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.3:59794
2012-07-25 21:33:53,488 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-07-25 21:33:55,514 DEBUG [PlaylistDAOImpl] Reading all Playlists
2012-07-25 21:33:56,489 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.3:59794
2012-07-25 21:33:56,489 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-07-25 21:33:59,986 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:9335
2012-07-25 21:33:59,986 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-07-25 21:33:59,989 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:9335
2012-07-25 21:33:59,989 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-07-25 21:33:59,991 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:9335
2012-07-25 21:33:59,993 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:9335
2012-07-25 21:34:15,504 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: Transcoded file '/.tmp/Serviio/transcoding-temp-1000000001070004-1-ORIGINAL.stf' cannot be found, FFmpeg execution probably failed
java.io.IOException: Transcoded file '/.tmp/Serviio/transcoding-temp-1000000001070004-1-ORIGINAL.stf' cannot be found, FFmpeg execution probably failed
   at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:45)
   at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:125)
   at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:95)
   at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:120)
   at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:84)
   at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:79)
   at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
   at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
   at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
   at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
   at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:191)


running ffmpeg from the console seems to work but fails in serviio 1.0

  Code:
RR-DS212plus> /volume1/@appstore/Serviio/bin/ffmpeg -fflags +genpts -i "rtmpe://cwtvfs.fplive.net/cwtv/ playpath=mp4:cwtvLevel3/videos/2011/10/21/SUP705-shut
updrphil_b7de1d653_500kbps.mp4 swfUrl=http://pdl.warnerbros.com/cwtv/digital-smiths/production_player/vsplayer.swf swfVfy=0" -y -copyts -c:v copy -vbsf h264_
mp4toannexb -c:a ac3_fixed -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /.tmp/Serviio/transcoding-temp-1000000001070004-1-ORIGINAL.stf
ffmpeg version N-42368-gbf53863-Serviio Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 11 2012 01:45:53 with gcc 4.2.3
  configuration: --arch=arm --enable-armv5te --prefix=/opt --extra-cflags=-I/opt/include --extra-ldflags=-L/tmp/lib --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-pthreads --enable-libmp3lame --enable-librtmp --extra-version=Serviio
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 33.100 / 54. 33.100
  libavformat    54. 15.102 / 54. 15.102
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  1.100 /  3.  1.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
HandShake: Type mismatch: client sent 6, server answered 9
Metadata:
  duration              2490.95
  moovPosition          184697874.00
  width                 640.00
  height                352.00
  videocodecid          avc1
  audiocodecid          mp4a
  avcprofile            100.00
  avclevel              32.00
  aacaot                2.00
  videoframerate        29.97
  audiosamplerate       44100.00
  audiochannels         2.00
tags:
  ©too                 Lavf52.31.0
trackinfo:
  length                74728654.00
  timescale             30000.00
  language              eng
sampledescription:
  sampletype            avc1
  length                109850624.00
  timescale             44100.00
  language              eng
sampledescription:
  sampletype            mp4a
Input #0, flv, from 'rtmpe://cwtvfs.fplive.net/cwtv/ playpath=mp4:cwtvLevel3/videos/2011/10/21/SUP705-shutupdrphil_b7de1d653_500kbps.mp4 swfUrl=http://pdl.warnerbros.com/cwtv/digital-smiths/production_player/vsplayer.swf swfVfy=0':
  Metadata:
    moovPosition    : 184697874
    avcprofile      : 100
    avclevel        : 32
    aacaot          : 2
    videoframerate  : 30
    audiochannels   : 2
  Duration: 00:41:30.95, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p, 640x352, 29.97 tbr, 1k tbn, 59.94 tbc
    Stream #0:1: Audio: aac, 44100 Hz, stereo, s16
[graph 0 input from stream 0:1 @ 0x1082180] tb:1/44100 samplefmt:s16 samplerate:44100 chlayout:0x3
[mpegts @ 0xfa4180] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to '/.tmp/Serviio/transcoding-temp-1000000001070004-1-ORIGINAL.stf':
  Metadata:
    moovPosition    : 184697874
    avcprofile      : 100
    avclevel        : 32
    aacaot          : 2
    videoframerate  : 30
    audiochannels   : 2
    encoder         : Lavf54.15.102
    Stream #0:0: Video: h264, yuv420p, 640x352, q=2-31, 90k tbn, 29.97 tbc
    Stream #0:1: Audio: ac3, 44100 Hz, stereo, s16, 384 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (aac -> ac3_fixed)
Press [q] to stop, [?] for help
frame= 1065 fps=255 q=-1.0 Lsize=    4401kB time=00:00:35.52 bitrate=1014.9kbits/s
video:2125kB audio:1665kB subtitle:0 global headers:0kB muxing overhead 16.106672%


Please let me know what seem wrong here.
<<

xs2inattar

DLNA master

Posts: 143

Joined: Sun Jun 24, 2012 5:49 pm

Post Thu Jul 26, 2012 3:08 am

Re: ffmpeg issue in 1.0

I think I figured this out.

It seems like 1.0 uses a different user/rights for the transacoding tmp folder than 0.62. So if the transcoding tmp folder was created by Serviio 0.62, 1.0 will not be able to access that hence ffmpeg fails. So i stopped serviio, deleted the transcoding tmp folder, and started serviio. The new transcoding tmp folder created by Serviio 1.0 had appropriate user/rights and ffmpeg started working.
<<

manonmoon

User avatar

Serviio newbie

Posts: 10

Joined: Sat Aug 06, 2011 2:40 pm

Location: Augsburg, Germany

Post Wed Aug 08, 2012 12:32 pm

Re: [SOLVED] ffmpeg issue in 1.0

I'm having the same issue. I even have transcoding disabled. Where can I find this tmp folder???

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 64 guests

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