pir8radio 1312 Posted January 18, 2016 Posted January 18, 2016 (edited) So I'm having a hard time getting an RTSP stream to play in emby, yet it plays fine in VLC. I'm no pro when it comes to ffmpeg, so any guidance would be greatly appreciated. When playing in Emby, after a long delay I will get a single still image that just sits there. VLC codec information: Stream 0 Type: Video codec: H264 - Mpeg-4 AVC (part 10) (h264) Resolution: 1280x720 Decoded format: Planar 4:2:0 YUV Stream 1 Type: Audio Codec: PCM ALAW (alaw) Sample rate: 8000Hz bits per sample: 8 Here is the transcode log from Emby: http://server:8080/emby/videos/a50cdeef706f549f79a88544877f32f0/stream.mkv?DeviceId=f1a002dad7ab9d4d41e6d31a43f930977d548934&MediaSourceId=a50cdeef706f549f79a88544877f32f0&VideoCodec=h264&AudioCodec=mp3&VideoBitrate=3680002&AudioBitrate=320000&MaxAudioChannels=6&MaxHeight=1080&Level=41&Profile=high&PlaySessionId=b91f6d71c13f4af1863a2827a296f647&api_key=a6fcc8b547a7436494ac1831aa8c5373{"Protocol":"Rtsp","Id":"a50cdeef706f549f79a88544877f32f0","Path":"rtsp://10.0.1.102:554/","Type":"Default","Container":"strm","Name":"","ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[],"PlayableStreamFileNames":[],"Formats":[],"RequiredHttpHeaders":{}}C:\Users\DL380e-User\AppData\Roaming\MediaBrowser-Server\ffmpeg\20151111\ffmpeg.exe -fflags +genpts -noaccurate_seek -i "rtsp://10.0.1.102:554/" -sn -codec:v:0 libx264 -force_key_frames expr:gte(t,n_forced*5) -vf "scale=trunc(oh*a/2)*2:min(ih\,1080)" -pix_fmt yuv420p -preset superfast -crf 23 -b:v 3680002 -vsync vfr -profile:v high -level 41 -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "aresample=async=1" -y "D:\MB Transcode\transcoding-temp\7e64dc57eef2bd1e526097c25667a08c.mkv"ffmpeg version N-76598-g2905c51 Copyright © 2000-2015 the FFmpeg developersbuilt with gcc 5.2.0 (GCC)configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/mceuser/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --disable-w32threads --enable-gpl --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-libx265 --enable-decklink --extra-libs=-loleaut32 --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2 --enable-libdcadec --enable-avisynth --enable-gray --enable-libmfx --extra-libs=-lpsapi --extra-cflags= --enable-static --disable-shared --prefix=/home/mceuser/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-runtime-cpudetectlibavutil 55. 5.100 / 55. 5.100libavcodec 57. 15.100 / 57. 15.100libavformat 57. 14.100 / 57. 14.100libavdevice 57. 0.100 / 57. 0.100libavfilter 6. 15.100 / 6. 15.100libswscale 4. 0.100 / 4. 0.100libswresample 2. 0.101 / 2. 0.101libpostproc 54. 0.100 / 54. 0.100[rtsp @ 0000000000665120] max delay reached. need to consume packet[h264 @ 0000000000667f20] RTP: missed 3 packets[rtsp @ 0000000000665120] max delay reached. need to consume packet[h264 @ 0000000000667f20] RTP: missed 3 packets[rtsp @ 0000000000665120] max delay reached. need to consume packet[h264 @ 0000000000667f20] RTP: missed 10 packets[rtsp @ 0000000000665120] max delay reached. need to consume packet[h264 @ 0000000000667f20] RTP: missed 3 packetsGuessed Channel Layout for Input Stream #0.1 : monoInput #0, rtsp, from 'rtsp://10.0.1.102:554/':Metadata:title : Media PresentationDuration: N/A, start: 0.000000, bitrate: N/AStream #0:0: Video: h264 (Baseline), yuv420p, 1280x720, 30 tbr, 90k tbn, 180k tbcStream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s[libx264 @ 00000000034fc480] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX[libx264 @ 00000000034fc480] profile High, level 4.1[libx264 @ 00000000034fc480] 264 - core 148 r2601 a0cd7d3 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html- options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=16 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=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00Output #0, matroska, to 'D:\MB Transcode\transcoding-temp\7e64dc57eef2bd1e526097c25667a08c.mkv':Metadata:encoder : Lavf57.14.100Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 1280x720, q=-1--1, 3680 kb/s, 30 fps, 1k tbn, 30 tbcMetadata:encoder : Lavc57.15.100 libx264Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 8000 Hz, stereo, s16p, 320 kb/sMetadata:encoder : Lavc57.15.100 libmp3lameStream mapping:Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))Stream #0:1 -> #0:1 (pcm_alaw (native) -> mp3 (libmp3lame))Press [q] to stop, [?] for help[h264 @ 0000000003815840] out of range intra chroma pred mode at 76 24[h264 @ 0000000003815840] error while decoding MB 76 24[h264 @ 0000000003815840] concealing 1653 DC, 1653 AC, 1653 MV errors in P frame[h264 @ 000000000398aa40] concealing 1649 DC, 1649 AC, 1649 MV errors in P frame[h264 @ 000000000382fa00] concealing 3495 DC, 3495 AC, 3495 MV errors in P frame[h264 @ 000000000398aa40] concealing 1648 DC, 1648 AC, 1648 MV errors in P frameframe= 110 fps=0.0 q=17.0 size= 1kB time=00:00:04.16 bitrate= 1.7kbits/sframe= 121 fps=109 q=22.0 size= 1kB time=00:00:04.73 bitrate= 1.5kbits/sframe= 131 fps= 81 q=22.0 size= 1kB time=00:00:05.23 bitrate= 1.4kbits/sframe= 142 fps= 66 q=19.0 size= 1kB time=00:00:05.76 bitrate= 1.2kbits/sframe= 153 fps= 57 q=22.0 size= 1kB time=00:00:06.33 bitrate= 1.1kbits/sframe= 163 fps= 50 q=20.0 size= 1kB time=00:00:06.83 bitrate= 1.1kbits/sframe= 175 fps= 46 q=19.0 size= 1kB time=00:00:07.43 bitrate= 1.0kbits/sframe= 186 fps= 43 q=19.0 size= 1kB time=00:00:07.96 bitrate= 0.9kbits/s[rtsp @ 0000000000665120] max delay reached. need to consume packet[NULL @ 0000000000667f20] RTP: missed 1 packets[h264 @ 000000000398a5c0] P sub_mb_type 12 out of range at 71 15[h264 @ 000000000398a5c0] error while decoding MB 71 15[h264 @ 000000000398a5c0] concealing 2378 DC, 2378 AC, 2378 MV errors in P frameframe= 197 fps= 40 q=21.0 size= 1kB time=00:00:08.53 bitrate= 0.8kbits/sframe= 208 fps= 38 q=22.0 size= 1kB time=00:00:09.06 bitrate= 0.8kbits/s[rtsp @ 0000000000665120] max delay reached. need to consume packet[NULL @ 0000000000667f20] RTP: missed 2 packets[h264 @ 000000000398aa40] out of range intra chroma pred mode at 59 13[h264 @ 000000000398aa40] error while decoding MB 59 13frame= 217 fps= 36 q=22.0 size= 1kB time=00:00:09.53 bitrate= 0.8kbits/s[h264 @ 000000000398aa40] concealing 2550 DC, 2550 AC, 2550 MV errors in P frameframe= 230 fps= 35 q=22.0 size= 148kB time=00:00:10.16 bitrate= 119.0kbits/sframe= 241 fps= 34 q=21.0 size= 292kB time=00:00:10.73 bitrate= 222.9kbits/s[rtsp @ 0000000000665120] max delay reached. need to consume packet[NULL @ 0000000000667f20] RTP: missed 2 packetsframe= 252 fps= 33 q=19.0 size= 483kB time=00:00:11.26 bitrate= 351.1kbits/s[h264 @ 000000000398aa40] P sub_mb_type 9 out of range at 42 28[h264 @ 000000000398aa40] error while decoding MB 42 28[h264 @ 000000000398aa40] concealing 1367 DC, 1367 AC, 1367 MV errors in P frameframe= 263 fps= 32 q=22.0 size= 679kB time=00:00:11.83 bitrate= 469.9kbits/s[rtsp @ 0000000000665120] max delay reached. need to consume packet[NULL @ 0000000000667f20] RTP: missed 1 packetsframe= 272 fps= 31 q=20.0 size= 799kB time=00:00:12.26 bitrate= 533.8kbits/sframe= 284 fps= 31 q=20.0 size= 1015kB time=00:00:12.86 bitrate= 646.1kbits/s[rtsp @ 0000000000665120] max delay reached. need to consume packet[NULL @ 0000000000667f20] RTP: missed 2 packets[h264 @ 000000000398a5c0] concealing 758 DC, 758 AC, 758 MV errors in P frame[rtsp @ 0000000000665120] max delay reached. need to consume packet[NULL @ 0000000000667f20] RTP: missed 3 packets[h264 @ 0000000003804800] concealing 2869 DC, 2869 AC, 2869 MV errors in P frameframe= 292 fps= 30 q=19.0 size= 1152kB time=00:00:13.26 bitrate= 711.1kbits/s[rtsp @ 0000000000665120] max delay reached. need to consume packet[NULL @ 0000000000667f20] RTP: missed 1 packetsframe= 304 fps= 29 q=21.0 size= 1356kB time=00:00:13.86 bitrate= 801.0kbits/s[rtsp @ 0000000000665120] max delay reached. need to consume packet[NULL @ 0000000000667f20] RTP: missed 1 packets[h264 @ 000000000398a5c0] concealing 1328 DC, 1328 AC, 1328 MV errors in P frameframe= 316 fps= 29 q=26.0 size= 1589kB time=00:00:14.53 bitrate= 895.6kbits/sframe= 326 fps= 28 q=21.0 size= 1935kB time=00:00:15.03 bitrate=1054.5kbits/sframe= 337 fps= 28 q=22.0 size= 2084kB time=00:00:15.56 bitrate=1096.7kbits/s[rtsp @ 0000000000665120] max delay reached. need to consume packet[NULL @ 0000000000667f20] RTP: missed 2 packetsframe= 347 fps= 28 q=21.0 size= 2269kB time=00:00:16.13 bitrate=1152.2kbits/sframe= 358 fps= 27 q=21.0 size= 2458kB time=00:00:16.66 bitrate=1208.3kbits/sframe= 369 fps= 27 q=21.0 size= 2682kB time=00:00:17.23 bitrate=1275.1kbits/sframe= 380 fps= 27 q=20.0 size= 2855kB time=00:00:17.83 bitrate=1311.4kbits/sframe= 391 fps= 27 q=20.0 size= 3069kB time=00:00:18.36 bitrate=1368.8kbits/sframe= 402 fps= 26 q=21.0 size= 3259kB time=00:00:18.90 bitrate=1412.4kbits/sframe= 413 fps= 26 q=20.0 size= 3442kB time=00:00:19.43 bitrate=1451.0kbits/sframe= 424 fps= 26 q=22.0 size= 3785kB time=00:00:20.00 bitrate=1550.2kbits/sframe= 435 fps= 26 q=22.0 size= 3926kB time=00:00:20.53 bitrate=1566.5kbits/sframe= 446 fps= 25 q=21.0 size= 4128kB time=00:00:21.10 bitrate=1602.7kbits/sframe= 457 fps= 25 q=20.0 size= 4291kB time=00:00:21.63 bitrate=1624.7kbits/s Edited January 18, 2016 by pir8radio
pir8radio 1312 Posted January 19, 2016 Author Posted January 19, 2016 No one else is good with ffmpeg either?
pir8radio 1312 Posted January 23, 2016 Author Posted January 23, 2016 Wow that's a first... an unanswerable question on the emby forums!
JDCaduceus 1 Posted January 23, 2016 Posted January 23, 2016 VLC is the end all be all to play anything - I thought Emby, Plex and Kodi all could play any format as well. Sorry I have not run into this issue with FFMPEG 1
Happy2Play 9780 Posted January 23, 2016 Posted January 23, 2016 Just a guess but isn't this the wrong path for a strm file "rtsp://10.0.1.102:554/"? That is a proper link for VLC, but a different physical different physical file path was given to create that streaming link. So your strm file should have the same file path you created the VLC stream with.
pir8radio 1312 Posted January 24, 2016 Author Posted January 24, 2016 say what? the .strm file contains rtsp://flkjfdslkjfsdlkj/ the strm file is in with my library and i can open it and almost start the stream, but i get errors... not sure i understand what your saying.. VLC can open the RTSP stream and play it. ffmpeg cant, it tries but has issues.
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