PDA

View Full Version : FFmpeg and Windows 8.1



ltm82
11-11-2013, 08:29 PM
Hi to All,

After the upgrade from Windows 8 pro to Windows 8.1 pro (i have done a fresh installation of Windows 8 pro and then i have upgraded to windows 8.1 pro) i get that ffmpeg.exe (64Bit version) uses all cpu ( Near to 100%) and i get in mezzmo the alert that the video conversion is too slow (under 23 fps).
I have installed the latest version of mezzmo available.

Before upgrading using the same pc with windows 8 pro i did not get this behavior. In this situation i got that ffmpeg process has used "only" 60% of cpu.

Another strange behavior is that if i stop to watch the movie (for example i stop the movie from the tablet) i get that in windows the ffmpeg.exe process is not stopped but it continues to transcode the movie . before this test I have unchecked the option to get that all the conversions in backgroud must be stopped.

Could you please help me to understand what is changed?

thanks for your help

Besta regards

ltm82

Paul
11-12-2013, 09:47 AM
Hi ltm82,

I don't think it will will be related to Windows 8.1. It may be simply the wrong device profile assigned to your device in Mezzmo.

Let us know a few things:


What device/app are your streaming to?
What device profile is assigned to your device? Go to the Media Devices dialog in Mezzmo to see this.
What is the FFmpeg information for the video that you are streaming? Right-click on the video in Mezzmo and click 'Get FFmpeg Information'.

ltm82
11-13-2013, 07:11 AM
Hi Paul,

I get cpu near 100% using my Panasonic VT30 when i try to see for example "Amazing Spiderman.mkv".

I have tried to set all the profiles for Panasonic (Model 2011) but the behavior is the same.

In particular i saw that the transcoding action does not stop when i stop the movie. Why? It seems that ffmpeg.exe is not controlled by mezzmo service.

Here Below you can find the info about my test file:

ffmpeg version N-50460-g393dcbf Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 27 2013 17:20:20 with gcc 4.6.2 (GCC)
configuration: --enable-memalign-hack --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --enable-static --disable-shared --enable-zlib --disable-postproc --prefix=/home/peter/ffmpeg/build/gpl64 --enable-libmp3lame --enable-libx264 --enable-gpl --extra-libs='-lx264 -lpthread' --enable-runtime-cpudetect --extra-cflags=-I/home/peter/cc64/include --extra-ldflags=-L/home/peter/cc64/lib --pkg-config=pkg-config --disable-w32threads --enable-zlib
libavutil 52. 17.103 / 52. 17.103
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.102 / 54. 63.102
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 41.100 / 3. 41.100
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
[h264 @ 0000000002ef8f20] sps_id out of range
[matroska,webm @ 000000000194dcc0] max_analyze_duration 60000000 reached at 60018292 microseconds
[matroska,webm @ 000000000194dcc0] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 000000000194dcc0] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'E:\Blu-Ray Disc\Amazing Spider-man\Amazing Spider-Man.mkv':
Metadata:
title : Amazing Spider-Man, The - 3D Blu-ray™
creation_time : 2012-12-29 14:40:27
Duration: 02:16:17.17, start: 0.000000, bitrate: 36466 kb/s
Chapter #0.0: start 0.000000, end 465.923778
Metadata:
title : Chapter 00
Chapter #0.1: start 465.923778, end 879.670444
Metadata:
title : Chapter 01
Chapter #0.2: start 879.670444, end 1377.542822
Metadata:
title : Chapter 02
Chapter #0.3: start 1377.542822, end 1978.226244
Metadata:
title : Chapter 03
Chapter #0.4: start 1978.226244, end 2485.065911
Metadata:
title : Chapter 04
Chapter #0.5: start 2485.065911, end 2922.502911
Metadata:
title : Chapter 05
Chapter #0.6: start 2922.502911, end 3310.932622
Metadata:
title : Chapter 06
Chapter #0.7: start 3310.932622, end 3797.293489
Metadata:
title : Chapter 07
Chapter #0.8: start 3797.293489, end 4349.011333
Metadata:
title : Chapter 08
Chapter #0.9: start 4349.011333, end 4671.750400
Metadata:
title : Chapter 09
Chapter #0.10: start 4671.750400, end 5078.948867
Metadata:
title : Chapter 10
Chapter #0.11: start 5078.948867, end 5644.555578
Metadata:
title : Chapter 11
Chapter #0.12: start 5644.555578, end 6179.548356
Metadata:
title : Chapter 12
Chapter #0.13: start 6179.548356, end 6736.354622
Metadata:
title : Chapter 13
Chapter #0.14: start 6736.354622, end 7252.912333
Metadata:
title : Chapter 14
Chapter #0.15: start 7252.912333, end 8177.169000
Metadata:
title : Chapter 15
Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0:1(ita): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
Metadata:
title : Lossless
Stream #0:2(ita): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
Metadata:
title : 3/2+1
Stream #0:3(ita): Subtitle: hdmv_pgs_subtitle (default)
Stream #0:4(ita): Subtitle: hdmv_pgs_subtitle
Stream #0:5(ita): Subtitle: hdmv_pgs_subtitle
At least one output file must be specified

<MEZZMO>: Child process ended with code: 109, ExitCode=1


---> DB Level Info: 41, 100
---> Frame rate: 23,98
---> Aspect ratio: 16:9 PAR=1:1

Paul
11-13-2013, 10:05 AM
Thanks for the further information. The reason for high CPU usage is the original video is being transcoded so it can be played on your Viera TV. Mezzmo uses 'ffmpeg.exe' to transcode audio and video files, and the amount of CPU that it uses does depend on the characteristics of the file being transcoded. In your case, your Blu-ray rip has a very high video bitrate (36Mpbs) and 1080p resolution so transcoding is working very hard. This will result in transcoding on-the-fly being too slow for real time streaming & playback on your devices. There are two workarounds for this: (i) you can pre-transcode your video before streaming it and you will have smooth playback (see this FAQ to pre-transcode a video - http://forum.conceiva.com/showthread.php/6025-Tutorial-Pre-transcoding-Files), or (ii) if you are ripping your Blu-ray discs, then you can lower the video bitrate in your ripping software tool to (say) 10Mbps and that will provide much faster transcoding on-the-fly (and you should not notice any degradation in onscreen video quality).

ltm82
11-13-2013, 05:36 PM
Hi Paul,

Thanks for you information.

Do you have any idea about my second issue. When I stop the movie from my tv i see that ffmpeg.exe does not stop in my pc.
I suppose that if i stop the movie also ffmpeg have to stop trascoding.


I unchecked the option to finish tanscoding in background but it seems that it does not work. I have to stop manually everytime the transcoding.

Could you please help me?

thanks fot your help

ltm82

Paul
11-13-2013, 05:43 PM
Mezzmo does not remove the ffmpeg.exe processes immediately. It waits for 2 minutes of non-streaming activity and then kills them. So you will see the ffmpeg.exe processes continue for a few minutes, but they should eventually be killed.