ajdahlenburg / ffmbc

Automatically exported from code.google.com/p/ffmbc
0 stars 0 forks source link

XDCAM HD422 not using all CPU threads #171

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Export using XDCAM HD422 codec

What is the expected output? What do you see instead?
Expecting to utilize all available CPU threads, ffmbc is only using half.

What version of the product are you using? On what operating system?
0.7-rc8
Windows 7 Professional SP1

Please provide any additional information below:

D:\Shared Folder>mxf sample
05:26 PM
FFmbc version 0.7-rc8
Copyright (c) 2008-2013 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample.mp4':
  Metadata:
    major_brand: mp42
    minor_version: 0
    compatible_brands: mp42isomavc1
    title: A1
    artist: admin
    composer: Volicon Observer
    comment: Name: A1

Track: 1

Channel: A1

Author: admin

Date: 27/02/2014
    date: 2014
    encoder: HandBrake 0.9.6 2012022800
  Duration: 00:01:00.03, bitrate: 7038 kb/s
    Stream #0.0(und): Video: mpeg4 (Simple Profile), yuv420p, 1920x1080p [PAR 1:
1 DAR 16:9], 6875 kb/s, 29.97 fps
    Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 160 kb/s
    Metadata:
      reel_name: Stereo
[scale @ 0035b060] w:1920 h:1080 fmt:yuv420p -> w:1920 h:1080 fmt:yuv422p flags:
0x4 il:0
Incompatible sample format 's16' for codec 'pcm_s24le', auto-selecting format 's
32'
    Last message repeated 1 times
[pcm_s24le @ 03fd0f00] The requested thread algorithm is not supported with this
 thread library.
[pcm_s24le @ 03fd1340] The requested thread algorithm is not supported with this
 thread library.
Output #0, mxf, to 'sample.mxf':
  Metadata:
    encoder: FFmbc 0.7
    Stream #0.0(und): Video: mpeg2video, yuv422p, 1920x1080p [PAR 1:1 DAR 16:9],
 cbr, 50000 kb/s, 29.97 fps
    Stream #0.1(und): Audio: pcm_s24le, 48000 Hz, stereo, s32, 2304 kb/s
    Stream #0.2(und): Audio: pcm_s24le, 48000 Hz, stereo, s32, 2304 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
  Stream #0.1 -> #0.2
Press [q] to stop, [?] for help
frame=   13 fps= 50 q=1.0 size=    2800kB time=00:00:00.43 bitrate=52885.8kbits/
frame=   24 fps= 42 q=2.0 size=    5972kB time=00:00:00.74 bitrate=65526.6kbits/
frame=   37 fps= 51 q=1.0 size=    9057kB time=00:00:01.23 bitrate=60101.0kbits/
frame=   50 fps= 51 q=1.0 size=   11926kB time=00:00:01.64 bitrate=59476.1kbits/
frame=   61 fps= 42 q=2.0 size=   14460kB time=00:00:02.03 bitrate=58198.7kbits/
frame=   73 fps= 45 q=2.0 size=   17059kB time=00:00:02.43 bitrate=57373.2kbits/
frame=   85 fps= 46 q=2.0 size=   19782kB time=00:00:02.83 bitrate=57137.4kbits/
frame=   96 fps= 42 q=1.0 size=   22028kB time=00:00:03.13 bitrate=57543.6kbits/
frame=  106 fps= 40 q=1.0 size=   24467kB time=00:00:03.53 bitrate=56669.7kbits/
frame=  118 fps= 47 q=2.0 size=   27032kB time=00:00:03.88 bitrate=57035.5kbits/
frame=  131 fps= 51 q=1.0 size=   29992kB time=00:00:04.33 bitrate=56733.6kbits/
frame=  144 fps= 48 q=1.0 size=   32964kB time=00:00:04.77 bitrate=56509.1kbits/
frame=  156 fps= 46 q=1.0 size=   35208kB time=00:00:05.07 bitrate=56806.0kbits/
frame=  167 fps= 43 q=1.0 size=   38158kB time=00:00:05.52 bitrate=56574.2kbits/
frame=  178 fps= 41 q=2.0 size=   40354kB time=00:00:05.93 bitrate=55660.2kbits/
frame=  190 fps= 48 q=2.0 size=   43070kB time=00:00:06.33 bitrate=55654.1kbits/
frame=  201 fps= 42 q=2.0 size=   45587kB time=00:00:06.70 bitrate=55683.4kbits/
frame=  212 fps= 42 q=1.0 size=   48200kB time=00:00:07.01 bitrate=56257.2kbits/
frame=  223 fps= 41 q=2.0 size=   50394kB time=00:00:07.44 bitrate=55481.7kbits/
frame=  234 fps= 41 q=2.0 size=   52884kB time=00:00:07.76 bitrate=55789.9kbits/
frame=  244 fps= 40 q=2.0 size=   55065kB time=00:00:08.06 bitrate=55939.5kbits/
frame=  255 fps= 39 q=2.0 size=   57678kB time=00:00:08.50 bitrate=55532.0kbits/
frame=  264 fps= 36 q=2.0 size=   59589kB time=00:00:08.80 bitrate=55416.8kbits/
frame=  274 fps= 36 q=2.0 size=   62084kB time=00:00:09.10 bitrate=55831.8kbits/
frame=  285 fps= 44 q=1.0 size=   64116kB time=00:00:09.50 bitrate=55233.3kbits/
frame=  302 fps= 67 q=1.0 size=   67023kB time=00:00:10.07 bitrate=54487.3kbits/
frame=  323 fps= 81 q=1.0 size=   71784kB time=00:00:10.75 bitrate=54692.5kbits/
frame=  342 fps= 72 q=1.0 size=   75963kB time=00:00:11.41 bitrate=54532.0kbits/
frame=  360 fps= 71 q=1.0 size=   79986kB time=00:00:11.94 bitrate=54847.3kbits/
frame=  379 fps= 73 q=1.0 size=   84325kB time=00:00:12.64 bitrate=54625.7kbits/
frame=  397 fps= 68 q=1.0 size=   88255kB time=00:00:13.24 bitrate=54578.8kbits/
frame=  413 fps= 60 q=1.0 size=   91830kB time=00:00:13.78 bitrate=54589.9kbits/
frame=  427 fps= 54 q=1.0 size=   95028kB time=00:00:14.18 bitrate=54873.3kbits/
frame=  439 fps= 47 q=1.0 size=   98384kB time=00:00:14.63 bitrate=55071.9kbits/
frame=  449 fps= 39 q=1.0 size=  101166kB time=00:00:14.98 bitrate=55317.8kbits/
frame=  458 fps= 35 q=1.0 size=  103023kB time=00:00:15.23 bitrate=55407.4kbits/
frame=  468 fps= 40 q=1.0 size=  104918kB time=00:00:15.53 bitrate=55341.6kbits/
frame=  478 fps= 39 q=2.0 size=  107344kB time=00:00:15.94 bitrate=55135.1kbits/
frame=  489 fps= 42 q=2.0 size=  109999kB time=00:00:16.31 bitrate=55227.9kbits/
frame=  500 fps= 42 q=1.0 size=  111982kB time=00:00:16.57 bitrate=55342.4kbits/
frame=  511 fps= 41 q=2.0 size=  114897kB time=00:00:17.02 bitrate=55288.9kbits/
frame=  522 fps= 40 q=2.0 size=  117240kB time=00:00:17.41 bitrate=55141.9kbits/
frame=  533 fps= 41 q=2.0 size=  119734kB time=00:00:17.77 bitrate=55195.7kbits/
frame=  544 fps= 41 q=2.0 size=  122052kB time=00:00:18.06 bitrate=55334.0kbits/
frame=  555 fps= 42 q=2.0 size=  124523kB time=00:00:18.51 bitrate=55088.5kbits/
frame=  566 fps= 44 q=1.0 size=  127285kB time=00:00:18.88 bitrate=55212.7kbits/
frame=  576 fps= 40 q=2.0 size=  128947kB time=00:00:19.11 bitrate=55263.2kbits/
frame=  587 fps= 40 q=2.0 size=  131773kB time=00:00:19.56 bitrate=55180.8kbits/
frame=  599 fps= 44 q=1.0 size=  134601kB time=00:00:19.98 bitrate=55169.3kbits/
frame=  610 fps= 42 q=2.0 size=  136982kB time=00:00:20.30 bitrate=55253.4kbits/
frame=  620 fps= 40 q=1.0 size=  138820kB time=00:00:20.60 bitrate=55183.3kbits/
frame=  630 fps= 39 q=2.0 size=  141211kB time=00:00:21.02 bitrate=55030.8kbits/
frame=  641 fps= 44 q=1.0 size=  143940kB time=00:00:21.38 bitrate=55131.6kbits/
frame=  651 fps= 40 q=2.0 size=  146032kB time=00:00:21.65 bitrate=55247.7kbits/
frame=  661 fps= 40 q=2.0 size=  148420kB time=00:00:22.05 bitrate=55127.6kbits/
frame=  672 fps= 41 q=2.0 size=  150640kB time=00:00:22.40 bitrate=55091.3kbits/
frame=  683 fps= 43 q=1.0 size=  153052kB time=00:00:22.69 bitrate=55237.0kbits/
frame=  694 fps= 41 q=2.0 size=  155648kB time=00:00:23.14 bitrate=55086.4kbits/
frame=  706 fps= 45 q=2.0 size=  158557kB time=00:00:23.55 bitrate=55138.8kbits/
frame=  718 fps= 45 q=2.0 size=  161155kB time=00:00:23.95 bitrate=55105.7kbits/
frame=  730 fps= 47 q=2.0 size=  163830kB time=00:00:24.34 bitrate=55136.5kbits/
frame=  742 fps= 45 q=2.0 size=  166626kB time=00:00:24.75 bitrate=55133.6kbits/
frame=  753 fps= 42 q=2.0 size=  168961kB time=00:00:25.12 bitrate=55089.3kbits/
frame=  765 fps= 45 q=1.0 size=  171619kB time=00:00:25.52 bitrate=55078.5kbits/
frame=  777 fps= 44 q=2.0 size=  174198kB time=00:00:25.92 bitrate=55042.6kbits/
frame=  789 fps= 47 q=1.0 size=  177184kB time=00:00:26.32 bitrate=55134.8kbits/
frame=  800 fps= 43 q=1.0 size=  179078kB time=00:00:26.58 bitrate=55189.5kbits/
frame=  811 fps= 42 q=2.0 size=  181805kB time=00:00:27.02 bitrate=55101.0kbits/
frame=  823 fps= 44 q=2.0 size=  184437kB time=00:00:27.46 bitrate=55020.7kbits/
frame=  835 fps= 45 q=2.0 size=  187102kB time=00:00:27.77 bitrate=55182.1kbits/
frame=  847 fps= 46 q=2.0 size=  189930kB time=00:00:28.22 bitrate=55127.2kbits/
frame=  859 fps= 45 q=2.0 size=  192666kB time=00:00:28.66 bitrate=55066.8kbits/
frame=  871 fps= 45 q=2.0 size=  195182kB time=00:00:28.97 bitrate=55191.3kbits/
frame=  883 fps= 46 q=2.0 size=  197877kB time=00:00:29.41 bitrate=55101.5kbits/
frame=  896 fps= 50 q=1.0 size=  200962kB time=00:00:29.86 bitrate=55120.9kbits/
frame=  909 fps= 51 q=1.0 size=  203984kB time=00:00:30.31 bitrate=55123.1kbits/
frame=  921 fps= 45 q=1.0 size=  206631kB time=00:00:30.73 bitrate=55082.5kbits/
frame=  933 fps= 45 q=1.0 size=  209431kB time=00:00:31.13 bitrate=55110.7kbits/
frame=  944 fps= 44 q=1.0 size=  211571kB time=00:00:31.49 bitrate=55025.1kbits/
frame=  956 fps= 45 q=2.0 size=  214136kB time=00:00:31.80 bitrate=55149.8kbits/
frame=  969 fps= 49 q=1.0 size=  217300kB time=00:00:32.33 bitrate=55057.1kbits/
frame=  981 fps= 45 q=1.0 size=  219910kB time=00:00:32.73 bitrate=55036.7kbits/
frame=  993 fps= 45 q=1.0 size=  222738kB time=00:00:33.13 bitrate=55070.8kbits/
frame= 1005 fps= 46 q=1.0 size=  225365kB time=00:00:33.53 bitrate=55055.0kbits/
frame= 1016 fps= 44 q=1.0 size=  227748kB time=00:00:33.89 bitrate=55037.9kbits/
frame= 1028 fps= 46 q=1.0 size=  230144kB time=00:00:34.19 bitrate=55131.2kbits/
frame= 1039 fps= 44 q=2.0 size=  232792kB time=00:00:34.64 bitrate=55044.4kbits/
frame= 1050 fps= 42 q=2.0 size=  235090kB time=00:00:35.03 bitrate=54969.5kbits/
frame= 1062 fps= 47 q=1.0 size=  238077kB time=00:00:35.39 bitrate=55106.4kbits/
frame= 1073 fps= 43 q=1.0 size=  240602kB time=00:00:35.80 bitrate=55052.4kbits/
frame= 1084 fps= 43 q=1.0 size=  243173kB time=00:00:36.13 bitrate=55123.0kbits/
frame= 1095 fps= 44 q=2.0 size=  245270kB time=00:00:36.53 bitrate=54993.0kbits/
frame= 1106 fps= 43 q=1.0 size=  247870kB time=00:00:36.88 bitrate=55050.4kbits/
frame= 1117 fps= 42 q=2.0 size=  250387kB time=00:00:37.27 bitrate=55034.5kbits/
frame= 1127 fps= 38 q=1.0 size=  252614kB time=00:00:37.60 bitrate=55031.4kbits/
frame= 1137 fps= 36 q=2.0 size=  254441kB time=00:00:37.93 bitrate=54952.5kbits/
frame= 1148 fps= 43 q=1.0 size=  256994kB time=00:00:38.22 bitrate=55070.1kbits/
frame= 1158 fps= 37 q=1.0 size=  259553kB time=00:00:38.63 bitrate=55029.4kbits/
frame= 1168 fps= 39 q=2.0 size=  261558kB time=00:00:38.97 bitrate=54979.6kbits/
frame= 1180 fps= 47 q=1.0 size=  264127kB time=00:00:39.27 bitrate=55092.3kbits/
frame= 1193 fps= 52 q=1.0 size=  266743kB time=00:00:39.80 bitrate=54894.7kbits/
frame= 1206 fps= 51 q=1.0 size=  269666kB time=00:00:40.24 bitrate=54898.0kbits/
frame= 1220 fps= 54 q=1.0 size=  271945kB time=00:00:40.61 bitrate=54846.1kbits/
frame= 1234 fps= 53 q=1.0 size=  275287kB time=00:00:41.17 bitrate=54770.7kbits/
frame= 1250 fps= 63 q=1.0 size=  278863kB time=00:00:41.66 bitrate=54830.2kbits/
frame= 1271 fps= 80 q=1.0 size=  283557kB time=00:00:42.40 bitrate=54773.6kbits/
frame= 1289 fps= 69 q=1.0 size=  287584kB time=00:00:43.00 bitrate=54777.9kbits/
frame= 1307 fps= 70 q=1.0 size=  291607kB time=00:00:43.60 bitrate=54783.3kbits/
frame= 1325 fps= 71 q=1.0 size=  295630kB time=00:00:44.20 bitrate=54788.6kbits/
frame= 1344 fps= 73 q=1.0 size=  299877kB time=00:00:44.80 bitrate=54834.6kbits/
frame= 1364 fps= 78 q=1.0 size=  303909kB time=00:00:45.39 bitrate=54840.8kbits/
frame= 1384 fps= 77 q=1.0 size=  308817kB time=00:00:46.14 bitrate=54824.6kbits/
frame= 1404 fps= 77 q=1.0 size=  312849kB time=00:00:46.74 bitrate=54830.7kbits/
frame= 1423 fps= 76 q=1.0 size=  317533kB time=00:00:47.48 bitrate=54785.0kbits/
frame= 1442 fps= 75 q=1.0 size=  321780kB time=00:00:48.08 bitrate=54819.6kbits/
frame= 1462 fps= 77 q=1.0 size=  326250kB time=00:00:48.78 bitrate=54787.3kbits/
frame= 1481 fps= 75 q=1.0 size=  330496kB time=00:00:49.41 bitrate=54788.4kbits/
frame= 1500 fps= 75 q=1.0 size=  334743kB time=00:00:50.02 bitrate=54815.0kbits/
frame= 1519 fps= 75 q=1.0 size=  338989kB time=00:00:50.62 bitrate=54855.4kbits/
frame= 1538 fps= 75 q=1.0 size=  343240kB time=00:00:51.31 bitrate=54792.2kbits/
frame= 1557 fps= 75 q=1.0 size=  347487kB time=00:00:51.95 bitrate=54793.2kbits/
frame= 1577 fps= 78 q=1.0 size=  351957kB time=00:00:52.61 bitrate=54794.2kbits/
frame= 1596 fps= 74 q=1.0 size=  355989kB time=00:00:53.16 bitrate=54855.5kbits/
frame= 1615 fps= 76 q=1.0 size=  360450kB time=00:00:53.88 bitrate=54796.0kbits/
frame= 1635 fps= 76 q=1.0 size=  364920kB time=00:00:54.50 bitrate=54845.1kbits/
frame= 1655 fps= 77 q=1.0 size=  369390kB time=00:00:55.22 bitrate=54797.9kbits/
frame= 1674 fps= 76 q=1.0 size=  373636kB time=00:00:55.85 bitrate=54803.8kbits/
frame= 1694 fps= 77 q=1.0 size=  378106kB time=00:00:56.52 bitrate=54799.6kbits/
frame= 1714 fps= 78 q=1.0 size=  382576kB time=00:00:57.19 bitrate=54800.5kbits/
frame= 1734 fps= 76 q=1.0 size=  387046kB time=00:00:57.85 bitrate=54801.3kbits/
frame= 1754 fps= 78 q=1.0 size=  391516kB time=00:00:58.52 bitrate=54802.1kbits/
frame= 1773 fps= 75 q=1.0 size=  395763kB time=00:00:59.13 bitrate=54824.3kbits/
frame= 1793 fps= 77 q=1.0 size=  400237kB time=00:00:59.82 bitrate=54804.3kbits/
frame= 1794 fps=  1 q=1.0 size=  400461kB time=00:00:59.85 bitrate=54804.3kbits/
frame= 1799 fps= 51 q=1.0 Lsize=  402046kB time=00:01:00.02 bitrate=54868.3kbits
/s
video:366373kB audio:33768kB global headers:0kB muxing overhead 0.475989%
05:27 PM

Sample Clip Link: http://goo.gl/Xm26gn

Original issue reported on code.google.com by ari.wars...@gmail.com on 17 Mar 2014 at 9:33

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

What is the full ffmbc command line your using there ?

-- 
Mark

Original comment by mark.him...@gmail.com on 19 Mar 2014 at 9:06

GoogleCodeExporter commented 8 years ago
Hi Mark, here is the command line:

ffmbc -i %1.mp4 -threads 16 -r 29.97 -target xdcamhd422 -an %1.mxf -acodec 
pcm_s24le -ar 48000 -newaudio -acodec pcm_s24le -ar 48000 -newaudio

Original comment by ari.wars...@gmail.com on 19 Mar 2014 at 2:34

GoogleCodeExporter commented 8 years ago
Hi,

Using exactly the following command (the same as yours but I like logging), 
using both the 32 bit and 64 bit FFmbc v0.7rc7 (deprecated) from the 
'downloads' section, I have all 4 cores of my Windows 7 box doing encoding work.

ffmbc.exe -loglevel debug -i sample.mp4 -threads 16 -r 29.97 -target xdcamhd422 
-an sample.mxf -acodec pcm_s24le -ar 48000 -newaudio -acodec pcm_s24le -ar 
48000 -newaudio

Original comment by mark.him...@gmail.com on 21 Mar 2014 at 4:16

Attachments:

GoogleCodeExporter commented 8 years ago
But, using my personal builds of rc7 and rc8 I only use 50% of the cores - like 
your original complaint. I expect that's due to different configuration 
parameters or a different compiler.

Did you build your executables yourself?

Can you supply the output of 'ffmbc.exe -version', which should give the 
compile time configuration.

Original comment by mark.him...@gmail.com on 21 Mar 2014 at 4:49

GoogleCodeExporter commented 8 years ago
use more -threads

Original comment by baptiste...@gmail.com on 1 Apr 2014 at 4:30