mac 安装 qt5 for tsmuxer

  • tsmuxer 是开源项目
  • 带一个qt5的界面
  • 并能编译为一个mac的app

mac 安装 qt5

qt5 过程过程

  • homebrew 下载源码
  • configure make make install
Warning: pkg-config 0.29.2 is already installed and up-to-date
To reinstall 0.29.2, run `brew reinstall pkg-config`
+ brew install freetype
Updating Homebrew...
Warning: freetype 2.10.1 is already installed and up-to-date
To reinstall 2.10.1, run `brew reinstall freetype`
+ brew install zlib
Updating Homebrew...
Warning: zlib 1.2.11 is already installed and up-to-date
To reinstall 1.2.11, run `brew reinstall zlib`
+ builddir=/Users/zhangbin/myProjects/tsMuxer
+ mkdir bin/mac
+ mkdir build
+ pushd build
~/myProjects/tsMuxer/build ~/myProjects/tsMuxer
+ cmake -DCMAKE_BUILD_TYPE=Release -DTSMUXER_GUI=TRUE ..
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'zlib'
--   Found zlib, version 1.2.8
-- Checking for module 'freetype2'
--   Found freetype2, version 23.1.17
flags : -L/usr/local/opt/freetype/lib;-lfreetype
dirs : /usr/local/opt/freetype/lib
CMake Error at tsMuxerGUI/CMakeLists.txt:12 (find_package):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5" with any of
  the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "/Users/zhangbin/myProjects/tsMuxer/build/CMakeFiles/CMakeOutput.log".
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> Downloading and installing Homebrew...
HEAD is now at 4d00a7bfe Merge pull request #7037 from issyl0/tap-new-github-actions-ci
Already up-to-date.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
==> Next steps:
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh
 zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  brew install qt5

==> Downloading https://homebrew.bintray.com/bottles/qt-5.14.1.catalina.bottle.t
==> Downloading from https://akamai.bintray.com/e4/e40589965586f2c1132da117aca2e
###########################################################               83.2%


nn
curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
Error: Failed to download resource "qt"
Download failed: https://homebrew.bintray.com/bottles/qt-5.14.1.catalina.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://download.qt.io/official_releases/qt/5.14/5.14.1/single/q
==> Downloading from http://mirrors-wan.geekpie.club/qtproject/archive/qt/5.14/5
#########################                                                 35.1%
##########################################                                58.6%
##########################################                                58.6%
##########################################                                58.6%
##########################################                                58.6%
#################################################                         68.6%
##############################################################            86.8%
curl: (18) transfer closed with 72231110 bytes remaining to read
Trying a mirror...
==> Downloading https://mirrors.dotsrc.org/qtproject/archive/qt/5.14/5.14.1/sing
######################################################################## 100.0%
==> ./configure -verbose -prefix /usr/local/Cellar/qt/5.14.1 -release -opensourc
==> make


==> make install

Error: An exception occurred within a child process:
  Errno::ENOENT: No such file or directory @ rb_sysopen - /Users/zhangbin/Library/Logs/Homebrew/qt/config.log
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  nn
zsh: command not found: nn
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  brew install qt5

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
mikutter

==> Downloading https://homebrew.bintray.com/bottles/qt-5.14.1.catalina.bottle.t
==> Downloading from https://akamai.bintray.com/e4/e40589965586f2c1132da117aca2e
######################################################################## 100.0%
==> Pouring qt-5.14.1.catalina.bottle.tar.gz
==> Caveats
We agreed to the Qt open source license for you.
If this is unacceptable you should uninstall.

qt is keg-only, which means it was not symlinked into /usr/local,
because Qt 5 has CMake issues when linked.

If you need to have qt first in your PATH run:
  echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.zshrc

For compilers to find qt you may need to set:
  export LDFLAGS="-L/usr/local/opt/qt/lib"
  export CPPFLAGS="-I/usr/local/opt/qt/include"

For pkg-config to find qt you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/qt/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/qt/5.14.1: 10,389 files, 363.0MB
 zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  ./build_macos_native.sh
+ set -e
+ export MACOSX_DEPLOYMENT_TARGET=10.10
+ MACOSX_DEPLOYMENT_TARGET=10.10
+ brew install pkg-config
Warning: pkg-config 0.29.2 is already installed and up-to-date
To reinstall 0.29.2, run `brew reinstall pkg-config`
+ brew install freetype
Warning: freetype 2.10.1 is already installed and up-to-date
To reinstall 2.10.1, run `brew reinstall freetype`
+ brew install zlib
Warning: zlib 1.2.11 is already installed and up-to-date
To reinstall 1.2.11, run `brew reinstall zlib`
+ builddir=/Users/zhangbin/myProjects/tsMuxer
+ mkdir bin/mac
mkdir: bin/mac: File exists
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  ./build_macos_native.sh
+ set -e
+ export MACOSX_DEPLOYMENT_TARGET=10.10
+ MACOSX_DEPLOYMENT_TARGET=10.10
+ brew install pkg-config
Warning: pkg-config 0.29.2 is already installed and up-to-date
To reinstall 0.29.2, run `brew reinstall pkg-config`
+ brew install freetype
Warning: freetype 2.10.1 is already installed and up-to-date
To reinstall 2.10.1, run `brew reinstall freetype`
+ brew install zlib
Warning: zlib 1.2.11 is already installed and up-to-date
To reinstall 1.2.11, run `brew reinstall zlib`
+ builddir=/Users/zhangbin/myProjects/tsMuxer
+ mkdir bin/mac
+ mkdir build
mkdir: build: File exists
 ✘ zhangbin@pb6a80114  ~/myProjects/tsMuxer   native-macos-build  

tsmuxer

  • 从上面看tsmuxer没安装成功

cmake 工程看起来ok

  • clion打开cmakelist.txt可以直接跑
  • 默认是不带ui的
/Users/zhangbin/myProjects/tsMuxer/cmake-build-debug/tsMuxer/tsmuxer
tsMuxeR version git-714642d. github.com/justdan96/tsMuxer

tsMuxeR is  simple  program to  mux video to  TS/M2TS files or create BD disks.
tsMuxeR does not use external filters (codecs).

Examples:
    tsMuxeR <media file name>
    tsMuxeR <meta file name> <out file/dir name>

tsMuxeR can be run in track detection mode or muxing mode. If run tsMuxeR  with
only  one argument  then tsMuxeR  display  input track information  required to
construct  meta  file.  If run tsMuxeR  with two arguments tsMuxeR start muxing
or demuxing process.

Meta file format:
File MUST has extension .meta.  This file  define files you want to  multiplex.
First line of meta file contain additional parameters that apply to all tracks.
In this case the line should begin with the word MUXOPT.

Following lines indicate a list of tracks  and their parameters.  The format is
as follows:   <code name>,   <file name>,   <parameters>   Parameters are comma
separated. Each parameter indicates the name and value.
Example of META file:

MUXOPT --blu-ray
V_MPEG4/ISO/AVC, D:/media/test/stream.h264, fps=25
A_AC3, D:/media/test/stream.ac3, timeshift=-10000ms

In this example one AC3 audio stream and one H264 video stream are  multiplexed
to BD disk.  Input file name can reference to elementary stream or track inside
container.

Supported input containers:
- TS/M2TS/MTS
- EVO/VOB/MPG/MPEG
- MKV
- MOV/MP4
- MPLS (Blu-ray media play list file)

Names of codecs in the meta file:
- V_MPEGH/ISO/HEVC  H.265/HEVC
- V_MPEG4/ISO/AVC   H.264/AVC
- V_MPEG4/ISO/MVC   H.264/MVC
- V_MS/VFW/WVC1     VC1
- V_MPEG-2          MPEG2
- A_AC3             AC3/AC3+/TRUE-HD
- A_AAC             AAC
- A_DTS             DTS/DTS-Express/DTS-HD
- A_MP3             MPEG audio layer 1/2/3
- A_LPCM            raw pcm data or PCM WAV file
- S_HDMV/PGS        Presentation graphic stream (BD subtitle format)
- S_TEXT/UTF8       SRT subtitle format.  Encoding MUST be  UTF-8/UTF-16/UTF-32

Each track may has addition parameters.  Track parameters do not  have dash. If
parameter value has several words, parameter must be enclosed in quotes.

Common additional parameters for any type of track:
- track             track number if input file is container.
- lang              track language. MUST contains exact 3 letters.

Additional parameters for audio tracks:
- timeshift         Shift audio track to future (positive value) or to past.
                    Measured at milliseconds.
- down-to-dts       Available only for DTS-HD tracks. Filter out HD part.
- down-to-ac3       Available only for TRUE-HD tracks. Filter out HD part.
- secondary         Mux as secondary audio.  Available for DD+ and DTS-Express.

Additional parameters for video tracks:
- fps               Video fps. If not defined, default value auto detected from
                    a source stream if present. If not, default value 23.976.
- delPulldown       Remove pulldown from the track if exists.  This option lead
                    to fps change from 30 to 24 if pulldown exists.
- ar                Override video aspect ratio. 16:9, 4:3 e.t.c.

Additional parameters for H.264 video tracks:
- level             Overwrite  level in the H264 stream.  Note:  option  update
                    headers only. The H264 stream may not meet the requirements
                    of a lower level.
- insertSEI         If original   stream  does not contain  SEI picture timing,
                    SEI buffering period or VUI parameters,  then add this data
                    to the stream. This option is recommended for BD muxing.
- forceSEI          Add SEI picture timing, buffering period and VUI parameters
                    to the stream. Rebuild data If data already exist. 
- contSPS           If original video doesn't contain  repetitive SPS/PPS  then
                    SPS/PPS will be added to the stream before  each key frame.
                    This option is recommended for BD muxing.
- subTrack          Used  for  combined  AVC/MVC  tracks  only.  TsMuxeR always
                    demultiplex  such  tracks to separate  AVC and MVC streams.
                    This parameter defined reference to AVC part(if value=1) or
                    or to MVC part (if value=2).
- secondary         Mux as secondary video (PIP).
- pipCorner         Corner for PIP video. Allowed values: "TopLeft","TopRight",
                    "BottomRight", "BottomLeft". 
- pipHOffset        PIP window horizontal offset from the corner in pixels.
- pipVOffset        PIP window vertical offset from the corner in pixels.
- pipScale          PIP window scale factor. Allowed values: "1", "1/2", "1/4",
                    "1.5", "fullScreen".
- pipLumma          Allow PIP window to be transparent. Transparent colors  are
                    lumma colors in range [0..pipLumma]. 

Additional parameters for PG and SRT tracks:

- video-width       The width of the video in pixels.
- video-height      The height of the video in pixels.
- fps               Video fps.  Recommended  to  define this parameter for more
                    carefully timing processing.
- 3d-plane          Parameter  defines  number  of  the '3D offset track' which
                    placed  inside  MVC  track.  Each message has individual 3D
                    offset. This information  stored  inside 3D offset track.

Additional parameters for SRT tracks:

- font-name         Font name to render.
- font-color        Font color. Color can be defined in hexadecimal or  decimal
                    format. If color 24 bit long  (for instance 0xFF00FF)  it's
                    define RGB components.  IF color 32 bit long  (for instance
                    0x80FF00FF) it's define ARGB components.
- font-size         Font size in pixels.
- font-italic       Italic display text.
- font-bold         Bold display text.
- font-underline    Underlined text.
- font-strikeout    Strikethrough text.
- bottom-offset     Distance from the lower edge while displaying text.
- font-border       Outline width.
- fadein-time       Time in ms for smooth subtitle appearance.
- fadeout-time      Time in ms for smooth subtitle disappearance.
- line-spacing      Interval between lines. Default value 1.0.

tsMuxeR  supports  addition  tag inside  SRT track.  The syntax  and parameters
coincide with HTML: <b>, <i>, <u>, <strike>, <font>. Default relative font size
(used in these tags) - 3.  For example:

<b><font size=5 color="deepskyblue" name="Arial"><u>Test</u>
<font size= 4 color="#806040">colored</font>text</font>
</b>

Global addition parameters placed in the first line of the META file  (MUXOPT).
All parameters in this group started with two dashes:

--pcr-on-video-pid  Do not allocate separate PID for PCR, use an existing video
                    PID.
--new-audio-pes     Use bytes 0xfd instead of 0xbd for AC3, True-HD, DTS and
                    DTS-HD. Parameter is auto activated for BD muxing.
--vbr               Use variable bitrate.
--minbitrate        Sets the lower limit of the vbr bitrate.  If the stream has
                    a  smaller bitrate  then NULL  packets will be inserted  to
                    hold the limit.
--maxbitrate        The upper limit of the vbr bitrate.
--cbr               Muxing mode  with a fixed bitrate.  Options --vbr and --cbr
                    should not be used together.
--vbv-len           The  length  of the  virtual  buffer  in milliseconds.  The
                    default value  is 500.  Typically, this  option  is used in
                    together with --cbr. The parameter is similar to  the value
                    of  vbv-buffer-size  in  the  x264  coder,  but  defined in
                    milliseconds instead of kbit.
--no-asyncio        Do not  create  a separate thread  for writing.  Also, this
                    option  disable  flag  FILE_FLAG_NO_BUFFERING  for writing.
                    Deprecated option.
--auto-chapters     Number.  Insert a chapter every <nn> minutes. Used only for
                    BD/AVCHD mode.
--custom-chapters   A semicolon delimited list of string in format hh:mm:ss.zzz
--demux             In this mode selected audio  and video tracks are stored as
                    separate files instead of muxing. utput name must be folder
                    name.  All selected  effects  (such as change  of level for
                    h264) are processed.  When demux,  certain types  of tracks
                    always get changed on storing into a file:
                    - Subtitles in a Presentation Graphic Stream  are converted
                      into sup format.
                    - PCM audio are saved as WAV files.
--blu-ray           Mux to BD diks. If output file name is folder,  bluray disk
                    is created as folder on HDD.  For BD3D disks ssif files are
                    not  created at  this  case.  If output file name  has .iso
                    extension, then BD disk is created as image file.
--blu-ray-v3        As above - except mux to UHD BD disks.
--avchd             Mux to AVCHD disk.
--cut-start         Trim the beginning of the file.  Value should be  completed
                    with  "ms"  (the number of milliseconds),  "s" (seconds) or
                    "min" (minutes).
--cut-end           Trim  the end of the file.  Value should be  completed with
                    "ms" (the number of milliseconds), "s" (seconds) or "min"
                    (minutes).
--split-duration    Split output to several files.The time specified in seconds
--split-size        Split  output to several files.  Values  should be  written
                    using one of the following postfix: Kb,kib, mb,mib, gb,gib.
--right-eye         Use base video stream for right eye. Used for 3DBD only.
--start-time        Timestamp of the first video frame. May be defined as 45Khz
                    clock (just a number) or as time in format hh:mm:ss.zzz
--mplsOffset        The number of the first MPLS file.  Used for  BD disk mode.
--m2tsOffset        The number of the first M2TS file.  Used for  BD disk mode.
--insertBlankPL     Add extra  short playlist.  Used for cropped video muxed to
                    BD disk.
--blankOffset       Blank playlist number.
--label             Disk label for muxing to ISO file.
--extra-iso-space   Allocate extra space  in 64K units  for ISO  disk  metadata
                    (file and directory names). Normally, tsMuxeR allocate this
                    space automatically. But if split condition generates a lot
                    of small files, extra ISO space may be required to define.


Process finished with exit code 255

相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付 29.90元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值