Search the Community
Showing results for tags 'ffmpeg'.
-
I'm not sure if this is a known issue. I am running elementary OS, which is based on Ubuntu 14.04. After installing, attempting to play transcoded streams gave me: The logs told me FFmpeg had exited with error code 1. When I attempted to run the ffmpeg command myself, it turned out to be a symlink to avconv, which gave me: I found the solution on this forum. Apparently Ubuntu 14.04 includes libav instead of the original ffmpeg, and they are not 100% compatible. I had to install the original ffmpeg from a PPA to fix the issue. I am posting it here because this likely affects all Ubuntu 14.04 installs. For reference, this was the log output: 2016-07-03 16:26:58.1187 Info App: /usr/bin/ffmpeg -fflags +genpts -i file:"/media/data/somefile.mkv" -map 0:0 -map 0:1 -codec:v:0 libx264 -force_key_frames expr:gte(t,n_forced*5) -copyts -avoid_negative_ts disabled -start_at_zero -pix_fmt yuv420p -preset superfast -crf 23 -b:v 7026752 -maxrate 7026752 -bufsize 14053504 -vsync vfr -profile:v high -level 51 -filter_complex "[0:3]format=yuva444p,scale=1920:1080,lut=u=128:v=128:y=gammaval(.3)[sub] ; [0:0] [sub] overlay" -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 128000 -af "aresample=async=1" -y "/var/lib/emby-server/transcoding-temp/42e6e4097c3e1841e03b65e72f16bab9.mkv" 2016-07-03 16:26:58.1895 Info App: FFMpeg exited with code 1 2016-07-03 16:26:59.2427 Error App: Error streaming media. The client has most likely disconnected or transcoding has failed. *** Error Report *** Version: 3.0.5973.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 3.16.0.38 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Dec 3 04:04:55 UTC 2015) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe One or more errors occurred. System.AggregateException at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) <0x7f7c4df83110 + 0x005a9> in <filename unknown>:0 at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, Int32 millisecondsTimeout) <0x7f7c4df830b0 + 0x00028> in <filename unknown>:0 at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks) <0x7f7c4df83020 + 0x00016> in <filename unknown>:0 at MediaBrowser.Api.Playback.Progressive.ProgressiveStreamWriter.WriteToInternal (System.IO.Stream responseStream) <0x4189b910 + 0x000e4> in <filename unknown>:0 InnerException: System.IO.FileNotFoundException Could not find file "/var/lib/emby-server/transcoding-temp/42e6e4097c3e1841e03b65e72f16bab9.mkv". at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x7f7c4e03f060 + 0x005cd> in <filename unknown>:0 at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) <0x7f7c4e03ed20 + 0x0004d> in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int) at CommonIO.ManagedFileSystem.GetFileStream (System.String path, FileMode mode, FileAccess access, FileShare share, Boolean isAsync) <0x414a90c0 + 0x000bd> in <filename unknown>:0 at MediaBrowser.Api.Playback.Progressive.ProgressiveFileCopier+<StreamFile>c__async0.MoveNext () <0x4189bfe0 + 0x000d6> in <filename unknown>:0
- 4 replies
-
- bug report
- ubuntu
-
(and 5 more)
Tagged with:
-
Hello, Trying out Emby on my Mac (OS X Lion 10.7.5, 3.06 GHz Intel Core 2 Duo) so see if better than on my ubuntu server with a slower CPU than this. Look around 8:33am today on the log file. Using web browser on the same mac. I have also tried a couple days ago on my iOS device as well as android tv with the same errors in the log. I can playback the same files through VLC fine. I had installed ffmpeg separately as I thought that may have been the issue looking through similar issues on this forum. Same errors on the log on playback before and after the ffmpeg install. Thanks Mike Log.txt.zip
-
Why? My brother was a bit messy with his encodes, such as mixing Bluray with DVD, along with encodes done in ether H264 or Xvid. This moves things around, so its easier to figure out if something should be ripped again in H264 rather than leaving it in Xvid...or replace DVD rips with Blurays that are now available. Notes: The Folders this script is to run against must be on ether a local or network mapped drive, as the script isn't setup to handle UNC paths. Requirements: AutoIt FFMpeg Instructions: Install AutoIt and set it to execute scripts when double clicked. Create a folder somewhere...lets call it "Segregate Movies" just to be unimaginative. Now inside "Segregate Movies" create a sub folder called "Bin". Now extract the contents of FFMpeg's "Bin" folder into your new "Bin" sub folder. Now going back into "Segregate Movies" folder Right Click on it's background and select "New\AutoIt v3 Script" from the context menu, and Rename it "Segregate Movies.au3" Now Right Click "Segregate Movies.au3" & select "Edit Script" from the context menu. Now paste the following code into: Now you'll have to edit a User Var namely the path to FFMpeg...normally I'd have this set automatically to the Bin folder holding the script...but I'm getting a lot of scripts depending on FFMpeg...so I'm allowing you to set the path...so you really only have 1 copy on your system...or at least 1 less do to this script allowing you to set it to a different location. Now save the script & execute it by double clicking it. You will be asked for the "Source Folder"...this should be your main "Movies" folder...ie it should hold a collection of movies each in sub folders. Next you will be asked for the "Final Folder"...this should ideally be on the same hard drive as the "Source Folder", to make things much quicker. Once done you'll be able to look into your "Final Folder" and see sub folders labeled by resolution & codec...example _1080p_H264
-
- Organization
- AutoIt
-
(and 1 more)
Tagged with:
-
Why? I had noticed that my Images for People, had grown to over 22gigs...and thought that was a bit excessive, so I wrote this script & after running it those images came in under 3gigs, and as a result I'm a happy camper now. Notes: The Folders this script is to run against must be on ether a local or network mapped drive, as the script isn't setup to handle UNC paths. This script doesn't scale up images...only scales down. Requirements: AutoIt FFMpeg Instructions: Install AutoIt and set it to execute scripts when double clicked. Create a folder somewhere...lets call it "Resize Images" just to be unimaginative. Now inside "Resize Images" create a sub folder called "Bin". Now extract the contents of FFMpeg's "Bin" folder into your new "Bin" sub folder. Now going back into "Resize Images" folder Right Click on it's background and select "New\AutoIt v3 Script" from the context menu, and Rename it "Resize Images.au3" Now Right Click "Resize Images.au3" & select "Edit Script" from the context menu. Now paste the following code into: Now you'll have to edit some User Vars to make use of this script on your system. Now in my example use of People images...older versions of Emby used "folder.jpg" however newer ones are making use of "poster.jpg" so you may need to run it twice with different naming. Next you'll have to give the script the path to the images you wish to resize, then the max Width & Height for the images. Finally the path to FFMpeg...normally I'd have this set automatically to the Bin folder holding the script...but I'm getting a lot of scripts depending on FFMpeg...so I'm allowing you to set the path...so you really only have 1 copy on your system...or at least 1 less do to this script allowing you to set it to a different location. Now save the script & execute it by double clicking it. Now go do something else, this will take a while. The script will notify you when it's done.
-
At times, I have issues in the web interface where playback ability dies, which is no big deal, I restart the Emby service and that fixes it. However, sometimes this then spawn's ffmpeg processes, where the browser now tries to playback previous requests.... in this case it created 3 ffmpeg processes. However, someone else starts watching a movie, and now I have 4 ffmpeg processes. As far as I can tell, the pid of the ffmpeg process, is not listed in the log, so we have no way of telling which ffmpeg process is the one for the movie being watched, and which I can kill. Is it possible that we log in the transcode log the pid of the ffmpeg process?
-
Show ffmpeg processes and allow them to be terminated from the WebUI
AdrianW posted a topic in Feature Requests
This morning when I woke up and I could hear my NUC's fan working overtime. I knew straight away that there must be a rogue ffmpeg process chewing up CPU, and there was - I've no idea why it needs to run for over six hours without terminating though. I often get these processes left over when I've tested the iOS app or viewed content in a browser. Please add some indication of running ffmpeg processes to the WebUI and if possible also add the ability to kill them. -
First off, I love Emby. The amount of progress just over the last year that I have been using it has been pretty amazing, both on the client side and on the server side. I have a question about the potential for improvements transcoding live TV. I use Ceton tuners on two setups, and they don't support DNLA or built-in transcoding so I'm worse off than most. As I understand it, transcoding is achieved through a complicated series of steps where ServerWMC (or another backend) takes the raw MPEG2 streams, writes them to disk, and then ffmpeg transcodes that file to another file, which is then served up using HLS or some other streaming protocol. This introduces long wait times while the stream is prepared, and the potential for orphaned ffmpeg processes and glitchy controls that don't respond consistently or timely. I know EmbyTV removes the third party back end which is a benefit, but will it be technically possible to improve this basic sequence? For example, can the stream from the tuner be fed directly into ffmpeg (or another encoder) within memory without an intermediate file? I understand that some features are limited due to manpower, but others are just technically impossible. I'm just curious as to whether it is possible to improve upon the existing sequence. Also, another potential method to reduce the lag and glitches created by building and tearing down streams, would be to immediately activate a tuner as soon as the Live TV module is loaded. It would immediately create a transcoded stream based on whatever is coming out of the first available tuner so the user doesn't have to wait every time a program is selected for the stream to be created. Selecting the program would change the channel on the tuner with the steam already in progress which would eliminate all lag except for the buffer. Only when you exit the Live TV module would the tuner be released and ffmpeg shutdown. Combine this with upcoming hardware encoding improvements to ffmpeg, and I think the live tv experience would be greatly improved.
-
- transcoding
- ffmpeg
-
(and 2 more)
Tagged with:
-
I'm testing the hardware decoding feature with 3.0.5768.0. If I enable Quick Sync, ffmpeg crashes and restarts in an endless loop. Leaving the hardware decoding set to "Auto" works, but doesn't use Quick Sync. I have an i5-4690s with the latest Intel drivers. To test that Quick Sync is working, I installed OBS, enabled Quick Sync, and captured the screen and it worked fine. https://obsproject.com/download FWIW, I configured OBS to capture the screen and played a video that required transcoding. Playing the video within chrome on the same computer that is running Emby Server, ffmpeg used about 50% of the CPU to transcode the original file with throttling enabled, while OBS used 8% to capture and stream the screen (preview mode). Here is the transcoding log when Quick Sync transcoding fails: {"Protocol":"File","Id":"5fd7e054debb9326f3fc6a5aff109c0b","Path":"F:\\path\\to\\filename.avi","Type":"Default","Container":"avi","Name":"SD/H264/AC3","RunTimeTicks":80872880000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","IsInterlaced":false,"BitRate":992083,"BitDepth":8,"RefFrames":3,"IsDefault":false,"IsForced":false,"Height":288,"Width":688,"AverageFrameRate":23.97602,"RealFrameRate":23.97602,"Profile":"High","Type":"Video","AspectRatio":"2.40:1","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":51,"IsAnamorphic":false,"IsCabac":true},{"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":[],"Bitrate":1449455,"RequiredHttpHeaders":{}} C:\Users\Ceth\AppData\Roaming\Emby-Server\ffmpeg\20150918\ffmpeg.exe -c:v h264_qsv -i file:"F:\path\to\filename.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 -b:v 992083 -maxrate 992083 -bufsize 1984166 -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 -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 6 -ab 320000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -y "h:\embytranscode\transcoding-temp\0e28bb208bd703b47c6db8071b6abe91.m3u8" ffmpeg version N-75410-g58fe57d Copyright (c) 2000-2015 the FFmpeg developers built 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-cpudetect libavutil 55. 2.100 / 55. 2.100 libavcodec 57. 3.100 / 57. 3.100 libavformat 57. 2.100 / 57. 2.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 5.100 / 6. 5.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 / 2. 0.100 libpostproc 54. 0.100 / 54. 0.100
- 42 replies
-
- quick sync
- ffmpeg
-
(and 1 more)
Tagged with:
-
First of all, thanks for the great, free service. I look forward to supporting in the future. To the point - I wasn't able to carry out these steps: # Reinstall FFMpeg from ports with lame option enabled cd /usr/ports/multimedia/ffmpeg make config # enable the lame option # enable the ass subtitles option make install clean Because of read-only access. No multimedia folder existed. Instead, I just reinstalled FFMpeg (2.8 I think) - everything is working, I'm just wondering if maybe the CPU usage would be more efficient if lame was enabled. I really know nothing about media files and transcoding, sorry. But from what I've heard from others, an i5 processor should easily be able to serve several clients (~4mbps). Right now, at least when the movie initially plays, the CPU hits 90-100% usage, 80% for lower quality files. Does that sound about right? Thanks. **environment- NAS4FREE with Emby installed in a jail
-
Dear all, I'm trying to optimize my home multimedia setup. RIght now I have kodi installations on a HTPC and on android devices, and I share the kodi library via mysql installed ona QNAP nas. Trying to solve the slowness of this setup, I found about emby, so I'd like to test how faster this solution is. The QNAP package is not working for me as I have an ARM NAS, but as I had a spare RPi2 and I saw some posts around about people making it work, I decided to try it. So I followed these steps: 1) Installed linux on the RPI2 (https://wiki.ubuntu.com/ARM/RaspberryPi) 2) Followed this tutorial for the RPi2 https://discourse.osmc.tv/t/howto-install-emby-server/6364/8 However when I try to start the server: mono MediaBrowser.Server.Mono.exe --ffmpeg "/usr/local/bin/ffmpeg" --ffprobe "/usr/local/bin/ffprobe" or with mono MediaBrowser.Server.Mono.exe --ffmpeg "/usr/local/bin/" --ffprobe "/usr/local/bin/" or even with mono MediaBrowser.Server.Mono.exe i get the error "fmpeg unvailable. Please install it and start the server with two command line arguments: -ffmpeg "{PATH}" and -ffprobe "{PATH}"" Note that I recompiled ffmpeg as by instructions, and that it is accessible via PATH (just running ffmpeg) as well as from /usr/local/bin Can you help me? Thanks in advance!
-
Hello, I have recently installed the Emby plugin on Open Media Vault however I'm not able to play a show I wish to watch. This is the error I can locate on the logs when I try: 2015-08-10 02:45:19.4810 Error - App: Error starting ffmpeg *** Error Report *** Version: 3.0.5675.1 Command line: /opt/emby/MediaBrowser.Server.Mono.exe -programdata /media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby -restartpath /usr/sbin/emby.sh Operating system: Unix 3.2.0.4 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby Mono: 4.0.2 (Stable 4.0.2.5/c99aa0c Wed Jun 24 10:04:37 UTC 2015) Application Path: /opt/emby/MediaBrowser.Server.Mono.exe ApplicationName='/media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby/ffmpeg/20150331/ffmpeg', CommandLine='-fflags +genpts -i file:"/media/c1a0b79e-e049-4412-8668-c1963a2b91db/TV/Halt and Catch Fire/Season 2/Halt and Catch Fire - S02E06 - 10Broad36 HDTV-720p.mkv" -map_metadata -1 -threads 0 -sn -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -maxrate 1372000 -bufsize 2744000 -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" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/bd799cf6dcb5f00bc1f6449a42b42c5c/" -y "/media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby/transcoding-temp/bd799cf6dcb5f00bc1f6449a42b42c5c.m3u8"', CurrentDirectory='', Native error= Access denied System.ComponentModel.Win32Exception at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 at System.Diagnostics.Process.Start () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start () at MediaBrowser.Api.Playback.BaseStreamingService+<StartFfMpeg>d__17.MoveNext () [0x00000] in <filename unknown>:0 It repeats this same error multiple times for some reason. I have had no problems using Plex Media Server to play media files, so I went to the /etc/init.d/emby.conf file and replaced the user and usergroup fields with plex so it would run under the same user. I still have the same issue. Does anyone have any suggestions?
- 2 replies
-
- omv
- open media vault
-
(and 3 more)
Tagged with:
-
Heads Up on state of FFMpeg project - leader resigns
cfineman posted a topic in Non-Emby General Discussion
Came across this story on hacker news this morning and thought it would be of interest to the community. The leader of the FFMpeg project is stepping down: http://ffmpeg.org/pipermail/ffmpeg-devel/2015-July/176489.html -
Buffer/Pausing when streaming to Chrome Web UI / FFMPEG hammering CPU
Concept211 posted a topic in General/Windows
I've been experiencing streaming issues in the last couple of weeks. It used to stream fast and smooth and now even when i turn the quality down to the point where it's almost unwatchable (144p), it still pauses/buffers. I'm running a AMD A8 quad-core 3.0GHz cpu w/ 16GB of ram and when I monitor the system, ffmpe.exe is maxing out all 4 cores. Did something change in the transcoding configuration because I've been using MB/Emby for years and never had an issue before. In fact, I used to run it on a slower system (3-cores, lower cpu speed and half the ram) about a year ago and it still ran flawlessly. Here are my logs: Server log: http://paste2.org/sYwc2ZM5 Transcoding log: http://paste2.org/jJ3kb31n Any help is greatly appreciated! -
Why does ffmpeg use so much cpu power when i add a video to the library
scan718 posted a topic in Web App
its getting to be a deal breaker, seems like it scans the whole library all over, does anyone know why ffmpeg has to run? -
The Viblast blog post had an assertion that VP9 encoding wasn't multithreaded. It turns out, that was true up until April and currently is still true with the emby ffmpeg builds for OSX. As of libvpx 1.4.0, VP9 encoding is multithreaded. As a consequence of my job, I keep ffmpeg and all its libraries fairly up-to-date via homebrew (and a launchd task). Homebrew tends to roll out updates within a week of a new release. Initially, I have installed ffmpeg with this: brew install ffmpeg --with-fontconfig --with-freetype --with-libquvi --with-libvidstab --with-libvorbis --with-libvpx --with-openjpeg --with-openssl --with-opus --with-frei0r --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools --with-x265 --with-webp --without-xvid --without-qtkit A couple of those libraries are for other things I do, but I'm not sure how much can be left out and ffmpeg will still work as expected. There's a lag in ffmpeg emby updates for OSX, so this is probably the best way to go for anyone interested in lower CPU use, encoding quality, etc. Younger libraries like libvpx and libx265 see a lot of ongoing activity and are constantly improving, so it's worth it to keep up. Initially, all I did was replace the contents of ~/.config/emby-server/ffmpeg/20150110/ with symbolic links, and that will work fine. Since then I've replaced them with bash scripts so I can override some of the hardcoded options and limit thread usage to something my computer can safely encode with without the fans repeatedly cycling up and down. There are some library differences between the tessus build and what came from homebrew, particularly regarding audio, but libvo-aacenc apparently underperforms compared to the native encoder and I haven't noticed any problems otherwise.
-
[sorry tried to edit title after posting because it was WAY TOO VAGUE but seems I can't change it after it's been submitted] So I just installed emby on a "clean" Jessie VM (just jessie plus vm tools). Had some issues with ImageMagick (see my other thread) but I think I've resolved that. I mounted a test directory with a couple movies in it but I can't play (either locally or remotely). The transcription log (below) seems to indicate a low confidence in it's detection of the format. I tried uninstalling ImageMagick again based on another posting I saw from Luke (the idea being that it would degrade the transcription but might be more reliable). The logs below are from the post-uninstallation-of-IM era (I saw the same exact errors before removing IM. I may try a Wheezy or Ubuntu VM tomorrow to see if that makes a difference. Here is an excerpt from the server log right after I hit play on the windows browser client: Here is the transcribe log from the server
-
Will a new CPU fix my issue or is this a fault, opinions welcome, logs, pics attached
bassistgak posted a topic in General/Windows
Hi, Been having issues with playback stutter, testing below. I'm not sure if its time for an upgrade or if this is a fault that can be resolve, read on and you decide. Test has been performed on a complete fresh install of Windows 7 64 bit SP1 with all updates and all drivers up to date. Emby server: Version 3.0.5597.1 Using Inerstellar 1080p MKV for test file. When running the file through Emby classic (classic is located on the same PC as the Emby server), CPU resources are barely used and video runs great: when running through web browser on Emby sever, CPU usage spikes with ffmpeg.exe and video stutters. Video is running at the highest framerate of 30mbs, but ihave tried various framerates and it has no affect. Logs are attached in case this is a fault. PC specs ( dont laugh, this PC has treated me well) Intel core quad q9400 2.66 8 gig ddr2 Amd radeon hd6450 I guesss there are 2 questions here: 1. Since Emby classic runs fine, why does the Emby Browser browser not, or seem resource hungry when playing the video file? 2. Will upgrading my hardware resolve this? Really want to know before i throw money at new hardware. Thanks for you time and opinions in advance. server-63566439170.txt transcode-0d89b082-efbe-46ac-b6de-1383e5333320.txt transcode-5ec95818-965a-454d-bcc8-cebe6c04914b.txt transcode-16e6db7b-51fa-4ae5-9869-ad6fd5ff62b6.txt transcode-4091e784-c5a9-455e-8f9e-9d4a07bfb5ec.txt transcode-98716041-bb5e-4bba-8c1e-3cf98e91e2a5.txt transcode-af82c4cb-7c42-42ec-a5c7-933ccdec84d7.txt -
Why: mediacowboy needed something to help find videos that wouldn't play directly on the Roku, but ended up required transcoding to do so. Notes: This only detects at present very basic reasons a file might fail. Container not mkv, mp4, mov, m4v, m3u8, ts Video Codec not H.264 Audio Codec not AC3 or Stero AAC Requirements: AutoIt FFMpeg Instructions: Install AutoIt and set it to execute scripts when double clicked. Create a folder somewhere...lets call it "Roku Detect uncompliant Videos" just to be unimaginative. Now inside "Roku Detect Uncompliant Videos" create a sub folder called "Bin". Now extract the contents of FFMpeg's "Bin" folder into your new "Bin" sub folder. Now going back into "Roku Detect Uncompliant Videos" folder Right Click on it's background and select "New\AutoIt v3 Script" from the context menu, and Rename it "Roku Detect Uncompliant Videos.au3" Now Right Click "Roku Detect Uncompliant Videos.au3" & select "Edit Script" from the context menu. Now paste the following code into: #Include <Array.au3> #Include <File.au3> #Include <String.au3> Dim $aKnown[7] = [6 , '.mkv' , '.mp4' , '.mov' , '.m4v' , '.m3u8' , '.ts'] Dim $aUnknown[1] = [0] Dim $sErrorLog ; Select Video Folder While 1 $sFolder = FileSelectFolder( 'Select Video Folder.' , '' , 6 ) If @Error = 1 AND $sFolder = '' Then MsgBox( 4096 , 'Exit:' , 'Ending Application' ) Exit ElseIf $sFolder = '' Then MsgBox( 4096 , 'Error:' , 'Unable To Open Folder.' ) ElseIf NOT FileExists ( $sFolder ) Then MsgBox( 4096 , 'Error:' , 'Invalid Folder.' ) Else If StringRight( $sFolder , 1 ) <> '\' Then $sFolder &= '\' $aAllFiles = _FileListToArrayRec( $sFolder , '*.*|*.bif;*.db;*.jpg;*.nfo;*.png;*.tbn;*.xml;*.srt;*.sub;*.ssa;*.mp3' , 1 , 1 , 0 , 2 ) If NOT IsArray( $aAllFiles ) Then MsgBox( 4096 , 'Error:' , 'No Videos Found.' ) Else _ArraySort( $aAllFiles , 0 , 1 ) ExitLoop EndIf EndIf WEnd For $ii = 1 To $aAllFiles[0] _Macros( $aAllFiles[$ii] ) $iFind1 = _ArraySearch( $aKnown , $sFileExt , 1 ) If @Error Then $sErrorLog &= 'Unknown File Type:' & @CRLF & $aAllFiles[$ii] & @CRLF & @CRLF $iFind2 = _ArraySearch( $aUnknown , $sFileExt , 1 ) If @Error Then _ArrayAdd( $aUnknown , $sFileExt ) $aUnknown[0] += 1 EndIf Else ; Build Array of Streams $sRandomString = _RandomString() RunWait( @ComSpec & ' /c ffprobe -show_streams "' & $aAllFiles[$ii] & '">"' & @TempDir & '\' & $sRandomString & '.txt"' , @ScriptDir & '\BIN\' , @SW_HIDE ) $aAllStreams = _StringBetween( FileRead( @TempDir & '\' & $sRandomString & '.txt' ) , '[STREAM]' , '[/STREAM]' ) FileDelete( @TempDir & '\' & $sRandomString & '.txt' ) ; Find Video Streams $aFindVideoStreams = _ArrayFindAll( $aAllStreams , 'codec_type=video' , 0 , 0 , 0 , 1 ) If $aFindVideoStreams <> -1 Then ; Process Video Streams For $aa = 0 To UBound( $aFindVideoStreams ) - 1 $sSVideoCodec = _RegExString( $aAllStreams[$aFindVideoStreams[$aa]] , '(?s)(?i)(?:.+?codec_name=(\S+))?' ) If $sSVideoCodec <> 'h264' And $sSVideoCodec <> 'mpeg4' Then $sErrorLog &= 'Unsupported Video Codec: (' & $sSVideoCodec & ')' & @CRLF & $aAllFiles[$ii] & @CRLF & @CRLF ContinueLoop 2 EndIf Next Else $sErrorLog &= 'Missing Video Stream:' & @CRLF & $aAllFiles[$ii] & @CRLF & @CRLF ContinueLoop EndIf ; Find Audio Streams $aFindAudioStreams = _ArrayFindAll( $aAllStreams , 'codec_type=audio' , 0 , 0 , 0 , 1 ) If $aFindAudioStreams <> -1 Then ; Process Audio Streams For $aa = 0 To UBound( $aFindAudioStreams ) - 1 $sSAudioCodec = _RegExString( $aAllStreams[$aFindAudioStreams[$aa]] , '(?s)(?i)(?:.+?codec_name=(\S+))?' ) $iSAudioChannels = _RegExString( $aAllStreams[$aFindAudioStreams[$aa]] , '(?s)(?i)(?:.+?channels=(\S+))?' ) If $sSAudioCodec <> 'AAC' And $sSAudioCodec <> 'AC3' Then $sErrorLog &= 'Unsupported Audio Codec: (' & $sSAudioCodec & ')' & @CRLF & $aAllFiles[$ii] & @CRLF & @CRLF ContinueLoop 2 EndIf If $sSAudioCodec = 'AAC' And $iSAudioChannels > 2 Then $sErrorLog &= 'To Many Audio Channels: (' & $iSAudioChannels & ')' & @CRLF & $aAllFiles[$ii] & @CRLF & @CRLF ContinueLoop 2 EndIf Next Else $sErrorLog &= 'Missing Audio Stream:' & @CRLF & $aAllFiles[$ii] & @CRLF & @CRLF ContinueLoop EndIf EndIf Next ; Create Error Log If StringLen( $sErrorLog ) > 1 Then If NOT FileExists( @ScriptDir & '\Error Logs\' ) Then DirCreate( @ScriptDir & '\Error Logs\' ) $sErrorLogFile = @ScriptDir & '\Error Logs\[' & @YEAR & '-' & @MON & '-' & @MDAY & '] ' & @HOUR & '-' & @MIN & '-' & @SEC & '.txt' FileWrite( $sErrorLogFile , $sErrorLog ) ShellExecute( $sErrorLogFile ) EndIf ; Create Unknown File Extensions Text If $aUnknown[0] > 0 Then $sUknownExtensions = @ScriptDir & '\UnKnown.txt' If FileExists( $sUknownExtensions ) Then Dim $aPriorUnknown _FileReadToArray( $sUknownExtensions , $aPriorUnknown ) For $ii = 1 To $aPriorUnknown[0] $iFind2 = _ArraySearch( $aUnknown , $aPriorUnknown[$ii] , 1 ) If @Error Then _ArrayAdd( $aUnknown , $aPriorUnknown[$ii] ) $aUnknown[0] += 1 EndIf Next FileDelete( $sUknownExtensions ) EndIf _FileWriteFromArray( $sUknownExtensions , $aUnknown , 1 ) ShellExecute( $sUknownExtensions ) EndIf MsgBox( 0 , 'Finished' , 'Batch Operation Complete' ) Func _Macros( $sFile ) Global $sFileDir = StringLeft ( $sFile , StringInStr( $sFile , '\' , 0 , -1 ) ) Global $sFileExt = StringTrimLeft ( $sFile , StringInStr( $sFile , '.' , 0 , -1 ) - 1 ) Global $sFileName = StringTrimLeft ( $sFile , StringInStr( $sFile , '\' , 0 , -1 ) ) Global $sShortName = StringLeft ( $sFileName , StringInStr( $sFileName , '.' , 0 , -1 ) - 1 ) Global $sParent = StringLeft ( $sFileDir , StringInStr( $sFileDir , '\' , 0 , -2 ) ) Global $sFolderName = StringTrimRight( StringTrimLeft( $sFileDir , StringInStr( $sFileDir , '\' , 0 , -2 ) ) , 1 ) EndFunc Func _RandomString() $sString = '' Dim $aSpace[3] For $i = 1 To 15 $aSpace[0] = Chr( Random( 65 , 90 , 1 )) ; A-Z $aSpace[1] = Chr( Random( 97 , 122 , 1 )) ; a-z $aSpace[2] = Chr( Random( 48 , 57 , 1 )) ; 0-9 $sString &= $aSpace[Random( 0 , 2 , 1 )] Next Return $sString EndFunc Func _RegExString( $sString , $sRegEx ) Local $sValue = _ArrayToString( StringRegExp( $sString , $sRegEx , 1 )) If StringIsFloat( $sValue ) = 1 OR StringIsInt( $sValue ) = 1 Then Return Number( $sValue ) Else If $sValue = 'N/A' OR $sValue = 'N' OR $sValue = 'A' Then Return '' Else Return $sValue EndIf EndIf EndFunc Now save the script & execute it by double clicking it and then select the folder holding your videos that you wish to process. Now go do something else, this will take a while...maybe a great while depending on the number of videos you have. The script will notify you when it's done...and if you're curious as to if it's still running there should be a icon in your system tray that looks like a blue "A". Past that you can start your Task Manager and you should more than likely see FFMpeg running in the background. Result: This should possibly produce one or more text files. The primary one will be what is produced in the "Error Logs" folder, this will list what files failed and why...but keep in mind these only list the first reason why it failed, not all possible reasons it may have failed. A number of these may not even be video files at all...but a format that should have been excluded from the search. Which brings me to the next file "UnKnown.txt" this file will be updated with one instance per unknown file extension, possibly every time you run the script and it finds something new. Now ideally I have all or at least most common non video extensions excluded from the search...this is everything on the right side of the pipe "|" symbol on line 21 at present. You may wish to add new extensions to be excluded from future searches...thus speeding the script along...but please consider sharing your additional excludes here in this thread, to help others out as well. What Next: You may wish to use one of my app's, called VideoGain (free) to process the failed video files. It's main purpose is to batch adjust audio volume, so that all the videos have more or less the same gain...so you don't have to monkey around with your volume all the time. Originally it only processed folders full of videos...not individual, but since I was already making some corrections to it already...I set it up to do single files as well. Here is where we get hackish. Download VideoGain & extract it somewhere...ideally in a folder called VideoGain so it's easier to find later on. Now Start it by double clicking on it's exe...then close the app...it will now have produced a new INI file...and we are going to edit it's contents with whatever your favorite text editor happens to be (Notepad, Notepad++, UltraEdit,..). In the VideoGain.ini all the way at the bottom...you should see an entry called "[Folders]". Now below that we'll be adding entries of our own...basically copy and paste from your Error Logs...into this file...but before each path put "Folder_#=" replacing the # with a number value...please keep each value different, and each entry on a new line. I'll likely write a simple script to help in this matter tomorrow. Anyways once all the edits are made...save the file, and restart VideoGain. You should now see all the files you want to process listed on the "Folders" tab. Now check "Direct Replace" and uncheck "Recurse Folders" (not needed). Now click on the "Settings" tab. If you had any videos that failed because they were not H264 then set the Encoder to "Conditional" which basically means if VideoGain doesn't detect the video stream to be H264..to then encode..but only then. Make further adjustments as you like to the H264 settings and Video settings. Now if you had Audio errors, you have a few picks...you can go with AAC or AC3...encoders...with the covet that AAC is limited to stereo. Right now if you select AC3...all videos will have the audio track re-encoded, bar non...I don't have an early out for that right now as I just added AC3 support...however if you select AAC and a number of your tracks are already AAC...and those tracks are Stereo...then you can select "ReplayGain (Tags)" this will do a non damaging adjustment to the AAC tracks...however all non AAC tracks will be encoded to AAC. Select "Stereo DownMix" if you plan to use AAC. All resulting files will ether be Mp4 or Mkv depending on what you selected for a container, from the drop down at the bottom of the application. Press "Start" and away you go. I would personally suggest doing at little processing as you need to. Each time something gets encoded...it gets more damaged.
-
What this solves: 1. On demand creating Roku Bif files recursively through sub folders, using Emby Servers naming scheme. (Simple Dialog Interface, Command Line and SendTo {must be compiled}). 2. Scheduled Bif file creation, 3. Allow networked computers to work on shared folders to speed things along. Only limiting factors are the speed of your network & the number of systems connected. Notes: The Folders this script is to run against must be on ether a local or network mapped drive, as the script isn't setup to handle UNC paths. Also checkout the concurrent version further down in the thread. Requirements: AutoIt FFMpeg Roku SDK Instructions: Install AutoIt and set it to execute scripts when double clicked. Create a folder somewhere...lets call it "Creat BIF" just to be unimaginative. Now inside "Create BIF" create a sub folder called "Bin". Now extract the contents of FFMpeg's "Bin" folder into your new "Bin" sub folder. Now extract "biftool.exe" from the Roku SDK into your new "Bin" sub folder. Now going back into "Create BIF" folder Right Click on it's background and select "New\AutoIt v3 Script" from the context menu, and Rename it "Create BIF.au3" Now Right Click "Create BIF.au3" & select "Edit Script" from the context menu. Now paste the following code into: Now save the script & execute it by double clicking it and then select the folder holding your videos that you wish to process. Now go do something else, this will take a while...maybe a great while depending on the number of videos you have. The script will notify you when it's done...and if you're currious as to if it's still running there should be a icon in your system tray that looks like a blue "A". Past that you can start your Task Manager and you should more than likely see FFMpeg running in the background. By default this will create 320px aspect correct BIF files, if you wish to create 240px or any other size you'll need to edit line 7. Example: from $iVideoWidthSize = 320 to $iVideoWidthSize = 240 Update 1: I decided to let FFMpeg do all the calculations for resize...which result in a massive code reduction. Update 2: Added passing folders via command line. This is mostly aimed at adding SendTo context menu support. 1. Right Click on "Create BIF.au3" and select "Compile Script (x86)" from the context menu 2. ALT + Left Click on "Create BIF.exe" and Drag to create a shortcut...rename to remove ".exe" from the file name 3. Cut & Paste shortcut to your SendTo folder: %APPDATA%\Microsoft\Windows\SendTo\ Now you don't even need to hunt down the script when you need it. Update 3: Added very simplistic scheduling based on a 24 hour clock. Currently you can not start on one day and end on the following. Only one time block allowed per day. The script now produces an INI that can be edited "Create Bif.ini" If you choose to use the scheduling the script needs to be compiled. Once compiled & the INI edited to your liking, open up a console in the script folder. Then enter: "Create Bif.exe" ScheduleNew Now new tasks have been created in the Windows Task Scheduler. To remove tasks enter: "Create Bif.exe" ScheduleDelete To not have a task scheduled for a day, set the start time and end time to be the same. Update 4: Command Line now supports both Folders & Files...thus making a SendTo shortcut more useful. Update 5: Added auto SendTo shortcut creation...only happens if script is compiled. To trigger this...simply use the executable once...you don't even have to actually process a file. If you don't want this feature simply delete the code on and between lines 17 & 25 (currently) Update 6: Now allows only one instance to run at a time, to prevent bogging down your system. This applies to Command Line and GUI, but not Task Scheduler...as the Task Scheduler should only have one instance anyways. This allows you to cue up several folders\files to be processed, even though they are in very different locations. Update 7: Made it easier for the script to clean up after it's self.
-
Bug: Upgrading server using a newer version of ffmpeg invalidates the firewall rule
mford posted a topic in General/Windows
Hello, I noticed that somewhere along the way ffmpeg was installed into a new path (.....\ffmpeg\20150110\ffmpeg.exe) which is different than the path used in the firewall configuration (....\ffmpeg\20141111\ffmpeg.exe). I'm not sure if the firewall configuration is part of the MBS base product or if it's configured as part of ServerWMC, but I have both installed. Michael -
I have just discovered MediaBrowser and decided to try it out on my laptop. I am using ArchLinux and running the latest version from the AUR repo. I got it installed and setup OK. However, when I try to view a video it won't play. Looking at top ffmpeg is using all my CPU, presumably trying to transcode the video. If I drag the slider through the video, I can preview the snap shot OK. The laptop is a core i5 with 8GB RAM and I have tried various videos - mostly mp4 either from a GoPro, or transcoded via Handbrake using the Android profile. The computer can play the same videos back using VLC. I am using Chromium.
-
Hey guys, I am experiencing an odd issue on my Windows 7 Home Premium server I was streaming some movies and things to my chromecast VIA the android app the other day, everything was fine. All of a sudden the media would pause on its own and sit for like a minute then it would play for a minute then pause again. I thought this was odd so I remote into my machine to see what was what, and found that ffmpeg has my cpu maxed out. I restarted my machine and it cleared up the issue, for a while. Now this happens at least once a day. Its quite an annoyance. Any clue on what I can do to clear this up? Thanks!! John
-
Recently I've been getting: Unable to get property 'Codec' of undefined or null reference trying to play some movies. It's not all new movies I ripped and it happens in all web browsers as well as Roku. There are other people reporting, what I believe is the same issue, in the Roku forum. ffmpeg logs.zip Attached are some ffmpeg logs to look at. The codec is the exact same I use for all my movies so not sure why this movie has an issue and the other movies don't.
-
Hi, I use mediabrowser wwhile a long time. Very giid job for this server, theater etc. Now i try WP8 apps. I have no problem for music but impossible to play movies. When i try a movie, apps try for somes seconds then show "The video failed to play" In ffmep log i can find : I have just one movie wich work, maybe source size ? Thanks for our support. Error - ffmpeg-284ccc10-fc2b-43c9-b54d-92a92a23200c.txt Error - ffmpeg-450fcf66-4ddc-49d5-af0b-a7a06a2b92fa.txt Work - ffmpeg-55cc8e33-af94-4075-8cff-35771ccf30c2.txt WP8 log.txt