Page 1 of 1

How To Set Up Conditions in the Profile

PostPosted: Sat Nov 01, 2014 2:48 pm
by mavigozler
Serviio 1.4.1.2
TV: Sony Bravia KDL-50A550R (profile set for Sony 2012)

I am having trouble with MP4 files from a certain source that often stop rendering at "98%" and require leaving the Serviio-TV connection.

To see what was stopping the rendering, I ran the "ffmpeg -i" command as advised, and after getting the error requiring the naming of an output file, I ran it again (with named output file) and got the following error:

[aac @ 04E038C0] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.

When I managed to key in "-strict -2" into the output file options, the operation to recode ("encode"?) continued without error.

I am guessing that ffmpeg.exe finds files with different parameters in the media. Is there a way to set up the profile in Serviio to deal with ffmpeg errors conditionally?

Re: How To Set Up Conditions in the Profile

PostPosted: Sat Nov 01, 2014 7:10 pm
by Illico
Are you PC or Linux or else?

Re: How To Set Up Conditions in the Profile

PostPosted: Sat Nov 01, 2014 7:38 pm
by mavigozler
Windows 7 Home Premium x64 SP1

Re: How To Set Up Conditions in the Profile

PostPosted: Sun Nov 02, 2014 8:28 am
by Illico
mavigozler wrote:I am guessing that ffmpeg.exe finds files with different parameters in the media. Is there a way to set up the profile in Serviio to deal with ffmpeg errors conditionally?

Could you provide information about your file (ffmpeg -i result) , to see if we can find a media type information where we should add specific option "-strict -2" ?
Otherwise, we'll always add this option for all aac audio (not sure it's a good idea)

Re: How To Set Up Conditions in the Profile

PostPosted: Sun Nov 02, 2014 3:29 pm
by mavigozler
Command and output below, with color renderings from the cmd processor

C:\Program Files\Serviio\lib>ffmpeg.exe -i "D:\test.mp4" outtest.mp4
ffmpeg version N-54096-ge41bf19 Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 18 2013 10:49:28 with gcc 4.7.2 (GCC)
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-libass
--enable-librtmp --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --extra-libs='-lrtmp -lpolarssl -lws2_32
-lwinmm -lexpat -lfreetype -lfribidi -lz' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32
--cross-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 16.100 / 55. 16.100
libavformat 55. 9.100 / 55. 9.100
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\test.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2014-10-04 17:09:23
Duration: 02:11:34.46, start: 0.000000, bitrate: 2125 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x800, 2027 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
Metadata:
creation_time : 2014-10-04 17:09:23
handler_name : video.264#trackID=1:fps=23.976 - Imported with GPAC 0.5.0-rev4065
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s
Metadata:
creation_time : 2014-10-04 17:09:49
handler_name : GPAC ISO Audio Handler
[libx264 @ 035ED1E0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 035ED1E0] profile High, level 4.0
[libx264 @ 035ED1E0] 264 - core 133 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[aac @ 052E4460] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.



I hope you can find something that triggers the right setting in transcoding.

Re: How To Set Up Conditions in the Profile

PostPosted: Sun Nov 02, 2014 5:05 pm
by jhb50
Why are you just reencoding the existing streams?
ffmpeg.exe -i "D:\test.mp4" outtest.mp4 is not a valid transcode and you are just rencoding AAC to AAC which is pointless.
The sony2012 profile is tested and should work but you need to use the ffmpeg command from the debug log that serviio issued to transcode your video at the point of failure which will transcode your mp4 audio to ac3. It is certainly not ffmpeg.exe -i "D:\test.mp4" outtest.mp4