Mon Apr 01, 2013 11:12 pm by carda
Hi Guys,
I am having trouble playing back videos. If I don't select original, the playback doesn't work. I ideally would pick medium or low when over 4g. I am using MX Player.
I think I have included the right section of the log

- Code:
2013-04-02 09:56:47,611 DEBUG [CDSRetrieveMediaServerResource] GET http://SERVER:23424/cds/resource/6282/MEDIA_ITEM/MPEG_TS_SD_KO_ISO-0/LOW,serviigo?authToken=c531a849bf7d4903bf816197e9ed8cd2 HTTP/1.1
2013-04-02 09:56:47,612 DEBUG [CDSRetrieveMediaServerResource] Creating client with id 'x.x.x.x'
2013-04-02 09:56:47,612 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=x.x.x.x, Profile=ServiiGo'
2013-04-02 09:56:47,613 DEBUG [ResourceDeliveryProcessor] Request for resource 6282 and type 'MEDIA_ITEM' received
2013-04-02 09:56:47,613 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 6282 (local)
2013-04-02 09:56:47,613 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 6282)
2013-04-02 09:56:47,617 DEBUG [VideoDAOImpl] Reading a Video (id = 6282)
2013-04-02 09:56:47,622 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 6282, format MPEG_TS_SD_KO_ISO and profile ServiiGo
2013-04-02 09:56:47,622 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file The Big Bang Theory - S06E02 - The Decoupling Fluctuation.mkv
2013-04-02 09:56:47,623 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file The Big Bang Theory - S06E02 - The Decoupling Fluctuation.mkv: MPEG_TS_SD_EU_ISO
2013-04-02 09:56:47,623 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file The Big Bang Theory - S06E02 - The Decoupling Fluctuation.mkv: MPEG_TS_SD_NA_ISO
2013-04-02 09:56:47,623 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file The Big Bang Theory - S06E02 - The Decoupling Fluctuation.mkv: MPEG_TS_SD_KO_ISO
2013-04-02 09:56:47,623 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file The Big Bang Theory - S06E02 - The Decoupling Fluctuation.mkv: MPEG_TS_SD_EU_ISO
2013-04-02 09:56:47,623 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file The Big Bang Theory - S06E02 - The Decoupling Fluctuation.mkv: MPEG_TS_SD_NA_ISO
2013-04-02 09:56:47,623 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file The Big Bang Theory - S06E02 - The Decoupling Fluctuation.mkv: MPEG_TS_SD_KO_ISO
2013-04-02 09:56:47,623 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 6282 (local)
2013-04-02 09:56:47,623 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 6282)
2013-04-02 09:56:47,624 DEBUG [VideoDAOImpl] Reading a Video (id = 6282)
2013-04-02 09:56:47,629 DEBUG [VideoDeliveryEngine] Delivering item '6282' for client 'Identifier=x.x.x.x, Profile=ServiiGo'
2013-04-02 09:56:47,630 DEBUG [VideoDeliveryEngine] Delivering file 'The Big Bang Theory - S06E02 - The Decoupling Fluctuation.mkv' using transcoding
2013-04-02 09:56:47,630 DEBUG [AbstractTranscodingDeliveryEngine] No other client uses transcoding job of file 'transcoding-temp-6286-serviigo-LOW.stf', will stop the job
2013-04-02 09:56:47,630 DEBUG [AbstractTranscodingDeliveryEngine] Stopping previous transcoding job of file 'transcoding-temp-6286-serviigo-LOW.stf'
2013-04-02 09:56:47,632 DEBUG [TranscodingJobListener] Deleted temp file '/tmp/Serviio/transcoding-temp-6286-serviigo-LOW.stf': true
2013-04-02 09:56:47,632 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=x.x.x.x, Profile=ServiiGo'
2013-04-02 09:56:47,632 DEBUG [MediaItemDAOImpl] Getting file of media item 6282
2013-04-02 09:56:47,635 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /MEDIA/The Big Bang Theory - S06E02 - The Decoupling Fluctuation.mkv
2013-04-02 09:56:47,636 DEBUG [ProcessExecutor] Starting ffmpeg -threads auto -i /MEDIA/The Big Bang Theory - S06E02 - The Decoupling Fluctuation.mkv -y -c:v mpeg2video -b:v 500k -maxrate:v 500k -bufsize:v 500k -vf scale=428:240 -r 24000/1001 -g 15 -c:a libmp3lame -b:a 192k -ar 22050 -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-6282-serviigo-LOW.stf
2013-04-02 09:56:47,724 DEBUG [FFmpegMetadataRetriever] File '/share/Multimedia/TV Shows/Real Time With Bill Maher/Real Time With Bill Maher - 2012-11-02 - November 2, 2012.mp4' has H264 profile HIGH, levels [{RF=2.2, H=3.1}] and 5 ref frames
2013-04-02 09:56:47,724 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve thumbnail for file: /share/Multimedia/TV Shows/Real Time With Bill Maher/Real Time With Bill Maher - 2012-11-02 - November 2, 2012.mp4
2013-04-02 09:56:47,725 DEBUG [ProcessExecutor] Starting ffmpeg -ss 120 -i /share/Multimedia/TV Shows/Real Time With Bill Maher/Real Time With Bill Maher - 2012-11-02 - November 2, 2012.mp4 -an -frames:v 1 -f image2 pipe:
2013-04-02 09:56:47,787 DEBUG [FFmpegMetadataRetriever] File 'rtmp://cp53909.edgefcs.net:1935/mp4:flash/playback/_definst_/haven_01_05.mp4 app=ondemand?auth=daEaccEcIcfbPb1dob5cBcEbbdQaCd0aYd.-brwHcN-8-lml_vGwoG&aifp=v001 playpath=mp4:flash/playback/_definst_/haven_01_05.mp4 swfUrl=http://www.abc.net.au/iview/images/iview.jpg swfVfy=1' has H264 profile HIGH, levels [{RF=2.2, H=3}] and 6 ref frames
2013-04-02 09:56:47,793 DEBUG [TechnicalMetadataCacheDecorator] Stored technical metadata for online item '32150' in the cache (online_technical_metadata), returning it
2013-04-02 09:56:47,794 DEBUG [OnlineLibraryManager] Thumbnail http://tviview.abc.net.au/thumbs/i/haven.jpg not in cache yet, loading it
2013-04-02 09:56:48,166 WARN [ProcessExecutor] Process ffmpeg has a return code of 1! This is a possible error. Detailed output follows.
Stream #0:1: Audio: mp3, 22050 Hz, 2 channels, s16, 192 kb/s (default)
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mpeg2video)
Stream #0:1 -> #0:1 (ac3 -> libmp3lame)
Error while opening decoder for input stream #0:0
2013-04-02 09:56:48,167 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2013-04-02 09:56:48,405 DEBUG [CoverImageService] Resizing and storing cover art image
2013-04-02 09:56:48,405 DEBUG [ImageUtils] Starting image resize, size = 19452 bytes
2013-04-02 09:56:48,460 DEBUG [ImageUtils] Returning resized image, size = 5182 bytes
2013-04-02 09:56:48,460 DEBUG [CoverImageService] Image successfully resized
2013-04-02 09:56:48,477 DEBUG [ThumbnailCacheDecorator] Stored entry in the cache (thumbnails), returning it
Below is the ffmpeg command that is run when selecting LOW. seems to have an issue settings threads to auto. If I remove the threads command, the ffmpeg works. So I assume of I set the transcoding threads to 1 or 2 instead of optimal it would work, but I would prefer not to do this. Any help?
EDIT: Can confirm that if I change the server variable for CPU cores to a number other than optimal it works.
- Code:
sudo ffmpeg -threads auto -i /MEDIA/The\ Big\ Bang\ Theory\ -\ S06E02\ -\ The\ Decoupling\ Fluctuation.mkv -y -c:v mpeg2video -b:v 500k -maxrate:v 500k -bufsize:v 500k -vf scale=428:240 -r 24000/1001 -g 15 -c:a libmp3lame -b:a 192k -ar 22050 -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-6282-serviigo-LOW.stf
[sudo] password for paul:
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
built on Apr 1 2013 00:44:57 with gcc 4.6.3
configuration: --enable-static --disable-shared --bindir=/tmp/ffmpeg --disable-ffplay --disable-ffserver --enable-pthreads --disable-mmx --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libass --enable-nonfree --enable-version3 --enable-librtmp --pkg-config=pkg-config
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
libpostproc 51. 2. 0 / 51. 2. 0
Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -> 48.00 (48/1)
Input #0, matroska,webm, from '/MEDIA/The Big Bang Theory - S06E02 - The Decoupling Fluctuation.mkv':
Duration: 00:21:30.08, start: 0.000000, bitrate: 3251 kb/s
Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 48 tbr, 1k tbn, 47.95 tbc
Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s (default)
[buffer @ 0xad7f110] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[scale @ 0xae3ffd0] w:1280 h:720 fmt:yuv420p -> w:428 h:240 fmt:yuv420p flags:0x4
[mpeg2video @ 0xad7e1f0] impossible bitrate constraints, this will fail
[NULL @ 0xad7d470] [Eval @ 0xbfbe4cb8] Undefined constant or missing '(' in 'auto'
[NULL @ 0xad7d470] Unable to parse option value "auto"
[NULL @ 0xad7d470] Error setting option threads to value auto.
Output #0, mpegts, to '/tmp/Serviio/transcoding-temp-6282-serviigo-LOW.stf':
Stream #0:0(eng): Video: mpeg2video, yuv420p, 428x240 [SAR 320:321 DAR 16:9], q=2-31, 500 kb/s, 90k tbn, 23.98 tbc
Stream #0:1: Audio: mp3, 22050 Hz, 2 channels, s16, 192 kb/s (default)
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mpeg2video)
Stream #0:1 -> #0:1 (ac3 -> libmp3lame)
Error while opening decoder for input stream #0:0