wurtzelsepp 0 Posted May 17, 2015 Share Posted May 17, 2015 (edited) Hi the app is great but i tried several movies and in some cases it can pass through 5.1 Sound in other cases not It seems to be related to the container format. Here the media info of one Case it cant give me the correct sound: Format : AVI Format/Info : Audio Video Interleave File size : 1.58 GiB Duration : 1h 47mn Overall bit rate : 2 102 Kbps Writing application : VirtualDubMod 1.5.10.2 (build 2540/release) Writing library : VirtualDubMod build 2540/release Video ID : 0 Format : MPEG-4 Visual Format profile : Advanced Simple@L5 Format settings, BVOP : 2 Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Muxing mode : Packed bitstream Codec ID : XVID Codec ID/Hint : XviD Duration : 1h 47mn Bit rate : 1 645 Kbps Width : 720 pixels Height : 304 pixels Display aspect ratio : 2.35:1 Frame rate : 23.976 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.313 Stream size : 1.24 GiB (78%) Writing library : XviD 1.2.1 (UTC 2008-12-04) Audio ID : 1 Format : AC-3 Format/Info : Audio Coding 3 Mode extension : CM (complete main) Format settings, Endianness : Big Codec ID : 2000 Duration : 1h 47mn Bit rate mode : Constant Bit rate : 448 Kbps Channel(s) : 6 channels Channel positions : Front: L C R, Side: L R, LFE Sampling rate : 48.0 KHz Bit depth : 16 bits Compression mode : Lossy Stream size : 345 MiB (21%) Alignment : Split accross interleaves Interleave, duration : 42 ms (1.00 video frame) Interleave, preload duration : 500 ms And here some Info where it performs well: Format : MPEG-4 Format profile : Base Media Codec ID : isom File size : 1.04 GiB Duration : 1h 21mn Overall bit rate : 1 833 Kbps Encoded date : UTC 2015-05-03 08:17:47 Tagged date : UTC 2015-05-03 08:17:47 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High@L3.0 Format settings, CABAC : Yes Format settings, ReFrames : 4 frames Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 1h 21mn Bit rate : 1 450 Kbps Maximum bit rate : 5 309 Kbps Width : 800 pixels Height : 432 pixels Display aspect ratio : 1.85:1 Frame rate mode : Constant Frame rate : 25.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.168 Stream size : 844 MiB (79%) Writing library : x264 core 130 r2273 b3065e6 Encoding settings : 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=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=4 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=1450 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00 Encoded date : UTC 2015-05-02 20:33:27 Tagged date : UTC 2015-05-03 08:18:25 Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Audio ID : 2 Format : AC-3 Format/Info : Audio Coding 3 Mode extension : CM (complete main) Format settings, Endianness : Big Codec ID : ac-3 Duration : 1h 21mn Bit rate mode : Constant Bit rate : 384 Kbps Channel(s) : 6 channels Channel positions : Front: L C R, Side: L R, LFE Sampling rate : 48.0 KHz Bit depth : 16 bits Compression mode : Lossy Stream size : 224 MiB (21%) Language : German Encoded date : UTC 2015-05-03 08:18:14 Tagged date : UTC 2015-05-03 08:18:25 Can you fix it? Edited May 17, 2015 by wurtzelsepp Link to comment Share on other sites More sharing options...
ebr 14929 Posted May 17, 2015 Share Posted May 17, 2015 Can you provide a transcode log (found on the server) for each of those items? Thx. Link to comment Share on other sites More sharing options...
wurtzelsepp 0 Posted May 17, 2015 Author Share Posted May 17, 2015 This is the one which does not work: http://192.168.1.16:8096/mediabrowser/videos/0132f5967c8b1c519e136fcd4fa3840b/hlsdynamic/main/0.ts?DeviceId=3a3db730c50254bc&MediaSourceId=0132f5967c8b1c519e136fcd4fa3840b&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=39872000&AudioBitrate=128000&MaxAudioChannels=2&MaxWidth=1920&MaxHeight=1080&Level=41&ClientTime=1431852571006&MaxVideoBitDepth=8&Profile=high&PlaySessionId=7d9bbbdf2b4745ad94e4fbf87734cb3c&api_key=fbf07de6ff5c478e8bb8a5336c3d16cf {"Protocol":"File","Id":"0132f5967c8b1c519e136fcd4fa3840b","Path":"PATHTOFILMWHICHDOESNOTWORK","Type":"Default","Container":"avi","Name":"480P/MPEG4/AC3","RunTimeTicks":64557890000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"mpeg4","IsInterlaced":false,"BitRate":1644992,"BitDepth":8,"IsDefault":false,"IsForced":false,"Height":304,"Width":720,"AverageFrameRate":23.976,"RealFrameRate":23.976,"Profile":"Advanced Simple Profile","Type":"Video","AspectRatio":"2.35:1","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":5,"IsAnamorphic":false},{"Codec":"ac3","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":448000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"PlayableStreamFileNames":[],"Formats":["avi"],"Bitrate":2102397,"RequiredHttpHeaders":{}} C:\Users\xxx\AppData\Roaming\MediaBrowser-Server\ffmpeg\20150331\ffmpeg.exe -fflags +genpts -i file:"xxx.avi" -map_metadata -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -maxrate 1644992 -bufsize 3289984 -vsync vfr -profile:v high -level 41 -force_key_frames expr:gte(t,n_forced*3) -vf "scale=min(iw\,1280):trunc(ow/dar/2)*2" -flags -global_header -copyts -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1,volume=2" -hls_time 3 -start_number 0 -hls_list_size 0 -y "S:\EMBY-Cache\trans-cache\transcoding-temp\d7347f47fbd172aaf9a4f4b7807a590d.m3u8" ffmpeg version N-71182-g5cba529 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 54. 21.100 / 54. 21.100 libavcodec 56. 32.100 / 56. 32.100 libavformat 56. 27.100 / 56. 27.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 13.101 / 5. 13.101 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [mpeg4 @ 000000000036d3c0] Video uses a non-standard and wasteful way to store B-frames ('packed B-frames'). Consider using a tool like VirtualDub or avidemux to fix it. Input #0, avi, from 'file:xxx.avi': Metadata: encoder : VirtualDubMod 1.5.10.2 (build 2540/release) Duration: 01:47:35.79, start: 0.000000, bitrate: 2102 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 1644 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s [libx264 @ 0000000002cd4380] using SAR=1/1 [libx264 @ 0000000002cd4380] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0000000002cd4380] profile High, level 4.1 Output #0, hls, to 'S:\EMBY-Cache\trans-cache\transcoding-temp\d7347f47fbd172aaf9a4f4b7807a590d.m3u8': Metadata: encoder : Lavf56.27.100 Stream #0:0: Video: h264 (libx264), yuv420p, 720x304 [SAR 1:1 DAR 45:19], q=-1--1, max. 1644 kb/s, 23.98 fps, 90k tbn, 23.98 tbc Metadata: encoder : Lavc56.32.100 libx264 Stream #0:1: Audio: aac, 48000 Hz, stereo, fltp, 128 kb/s Metadata: encoder : Lavc56.32.100 aac Stream mapping: Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (ac3 (native) -> aac (native)) Press [q] to stop, [?] for help [mpeg4 @ 000000000b555220] Video uses a non-standard and wasteful way to store B-frames ('packed B-frames'). Consider using a tool like VirtualDub or avidemux to fix it. Past duration 0.999992 too large Last message repeated 341 times frame= 345 fps=0.0 q=24.0 size=N/A time=00:00:15.14 bitrate=N/A Past duration 0.999992 too large Last message repeated 347 times frame= 693 fps=693 q=27.0 size=N/A time=00:00:29.67 bitrate=N/A Past duration 0.999992 too large Last message repeated 331 times frame= 1025 fps=658 q=25.0 size=N/A time=00:00:43.56 bitrate=N/A Past duration 0.999992 too large Last message repeated 357 times frame= 1383 fps=672 q=25.0 size=N/A time=00:00:58.45 bitrate=N/A Past duration 0.999992 too large Last message repeated 335 times frame= 1719 fps=672 q=25.0 size=N/A time=00:01:12.46 bitrate=N/A Past duration 0.999992 too large Last message repeated 339 times frame= 2059 fps=673 q=25.0 size=N/A time=00:01:26.67 bitrate=N/A Past duration 0.999992 too large Last message repeated 342 times frame= 2402 fps=675 q=25.0 size=N/A time=00:01:40.94 bitrate=N/A Past duration 0.999992 too large Last message repeated 326 times frame= 2729 fps=672 q=23.0 size=N/A time=00:01:54.60 bitrate=N/A Past duration 0.999992 too large Last message repeated 196 times frame= 2926 fps=642 q=23.0 size=N/A time=00:02:02.85 bitrate=N/A Past duration 0.999992 too large Last message repeated 342 times frame= 3269 fps=646 q=22.0 size=N/A time=00:02:17.10 bitrate=N/A Past duration 0.999992 too large Enter command: <target>|all <time>|-1 <command>[ <argument>] Last message repeated 239 times Parse error, at least 3 arguments were expected, only -1 given in string '' Past duration 0.999992 too large frame= 3510 fps=229 q=24.0 size=N/A time=00:02:27.17 bitrate=N/A Past duration 0.999992 too large Last message repeated 337 times frame= 3848 fps=243 q=25.0 size=N/A time=00:02:41.25 bitrate=N/A Past duration 0.999992 too large Last message repeated 346 times frame= 4195 fps=257 q=26.0 size=N/A time=00:02:55.72 bitrate=N/A Past duration 0.999992 too large Last message repeated 360 times frame= 4556 fps=270 q=24.0 size=N/A time=00:03:10.82 bitrate=N/A Past duration 0.999992 too large Last message repeated 340 times frame= 4897 fps=282 q=23.0 size=N/A time=00:03:25.03 bitrate=N/A Past duration 0.999992 too large Last message repeated 347 times frame= 5245 fps=294 q=24.0 size=N/A time=00:03:39.54 bitrate=N/A Past duration 0.999992 too large Last message repeated 327 times frame= 5573 fps=304 q=26.0 size=N/A time=00:03:53.25 bitrate=N/A Past duration 0.999992 too large Last message repeated 333 times frame= 5907 fps=313 q=25.0 size=N/A time=00:04:07.18 bitrate=N/A Past duration 0.999992 too large Last message repeated 296 times frame= 6204 fps=319 q=25.0 size=N/A time=00:04:19.56 bitrate=N/A Past duration 0.999992 too large Last message repeated 291 times frame= 6496 fps=325 q=26.0 size=N/A time=00:04:31.76 bitrate=N/A Past duration 0.999992 too large Last message repeated 286 times frame= 6783 fps=331 q=25.0 size=N/A time=00:04:43.66 bitrate=N/A Past duration 0.999992 too large Last message repeated 332 times frame= 7116 fps=339 q=22.0 size=N/A time=00:04:57.55 bitrate=N/A Past duration 0.999992 too large Last message repeated 310 times frame= 7427 fps=338 q=25.0 size=N/A time=00:05:10.57 bitrate=N/A Past duration 0.999992 too large Last message repeated 351 times frame= 7779 fps=346 q=27.0 size=N/A time=00:05:25.22 bitrate=N/A Past duration 0.999992 too large Last message repeated 340 times frame= 8120 fps=353 q=22.0 size=N/A time=00:05:39.43 bitrate=N/A Past duration 0.999992 too large frame= 8121 fps=353 q=-1.0 Lsize=N/A time=00:05:39.52 bitrate=N/A video:39591kB audio:5294kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown [libx264 @ 0000000002cd4380] frame I:113 Avg QP:18.66 size: 19454 [libx264 @ 0000000002cd4380] frame P:3297 Avg QP:21.17 size: 8244 [libx264 @ 0000000002cd4380] frame B:4711 Avg QP:23.91 size: 2369 [libx264 @ 0000000002cd4380] consecutive B-frames: 11.9% 24.8% 22.6% 40.8% [libx264 @ 0000000002cd4380] mb I I16..4: 15.9% 28.8% 55.4% [libx264 @ 0000000002cd4380] mb P I16..4: 5.4% 6.8% 4.3% P16..4: 68.3% 0.0% 0.0% 0.0% 0.0% skip:15.1% [libx264 @ 0000000002cd4380] mb B I16..4: 0.6% 0.4% 0.1% B16..8: 32.7% 0.0% 0.0% direct:13.9% skip:52.3% L0:28.5% L1:44.7% BI:26.8% [libx264 @ 0000000002cd4380] 8x8 transform intra:38.8% inter:43.7% [libx264 @ 0000000002cd4380] coded y,uvDC,uvAC intra: 58.6% 61.6% 32.3% inter: 23.1% 18.9% 2.1% [libx264 @ 0000000002cd4380] i16 v,h,dc,p: 55% 22% 18% 4% [libx264 @ 0000000002cd4380] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 25% 21% 6% 4% 6% 6% 5% 9% [libx264 @ 0000000002cd4380] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 22% 15% 7% 6% 7% 6% 6% 7% [libx264 @ 0000000002cd4380] i8c dc,h,v,p: 40% 26% 23% 10% [libx264 @ 0000000002cd4380] Weighted P-Frames: Y:3.9% UV:1.9% [libx264 @ 0000000002cd4380] kb/s:957.42 The one which works well does not hav any transcode log. note: both Videos are aviable via smb share and has a correct path-replacement Link to comment Share on other sites More sharing options...
ebr 14929 Posted May 18, 2015 Share Posted May 18, 2015 This app cannot play over smb. Are you positive there is no transcode log for the one that works? Link to comment Share on other sites More sharing options...
wurtzelsepp 0 Posted May 18, 2015 Author Share Posted May 18, 2015 yes i am positive ther is no log for the one working i cleard all logs and have done it again. just the log of the one which doesnt work. Link to comment Share on other sites More sharing options...
ebr 14929 Posted May 18, 2015 Share Posted May 18, 2015 Okay, the one that works is an MP4 - a container that the device understands natively and so it is direct streaming. The one that doesn't work is an AVI - a format that almost no mobile/modern device understands natively so it is having to transcode. I'm not sure why it is transcoding to stereo though... Link to comment Share on other sites More sharing options...
wurtzelsepp 0 Posted May 18, 2015 Author Share Posted May 18, 2015 kodi does it very well may you can do a custom fork cause your interface and overall behaviour is muche better Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now