Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (95)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (7056)

  • Cannot use Mobile FFmpeg and LibVLCSharp together in Xamarin.Forms project

    26 février 2021, par Travis P

    I am adding video stream capture functionality to a Xamarin Forms project. I am trying to use VLC's LibVLCSharp.Forms (https://github.com/videolan/libvlcsharp) package and the Mobile ffmpeg Xamarin wrapper package, Laerdal.Xamarin.FFmpeg.* (https://github.com/Laerdal/Laerdal.Xamarin.FFmpeg.iOS). However, the internal ffmpeg library from VLC is conflicting with the ffmpeg wrapper and is built with different flags which exclude functionality that I need.

    


    For native development, it looks like you can configure a preferred library with the OTHER_LDFLAGS flag in the Pods-<your app="app">.debug.xcconfig</your> file but I don't see where to do that with Xamarin.Forms.&#xA;Source : https://github.com/tanersener/mobile-ffmpeg/wiki/Using-Multiple-FFmpeg-Implementations-In-The-Same-iOS-Application

    &#xA;

    How can I configure Xamarin iOS builds to prefer the mobile ffmpeg library over the VLC ffmpeg library ? If I am able to use the mobile ffmpeg library, will it cause issues with VLC ?

    &#xA;

    Here is a log message when I try to run commands with ffmpeg. As you can see, ffmpeg's internal library paths reference "vlc" :

    &#xA;

    FFmpegExecute: Command: -vsync 1 -i &#x27;rtsp://wowzaec2demo.streamlock.net/vod/mp4:bigbuckbunny_115k.mov&#x27; -force_key_frames "expr: gte(t, n_forced * 2)" -strict experimental -f segment -segment_time 00:00:02 -segment_start_number 0 -reset_timestamps 1 -c:v copy -c:a copy &#x27;[path to temp]/tmp/VideoStream/%01d-record-temp.mp4&#x27;&#xA;Loaded mobile-ffmpeg-full-gpl-x86_64-4.4-lts-20200725&#xA;INFO: ffmpeg version v4.4-dev-416&#xA;INFO:  Copyright (c) 2000-2020 the FFmpeg developers&#xA;INFO:&#xA;INFO:   built with Apple LLVM version 7.3.0 (clang-703.0.31)&#xA;INFO:   configuration: --sysroot=/Applications/Xcode-v7.3.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk --prefix=/Users/taner/Projects/mobile-ffmpeg/prebuilt/ios-x86_64/ffmpeg --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --ar=/Applications/Xcode-v7.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang&#x2B;&#x2B; --as=&#x27;clang -arch x86_64 -target x86_64-ios-darwin -march=x86-64 -msse4.2 -mpopcnt -m64 -mtune=intel -DMOBILE_FFMPEG_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DMOBILE_FFMPEG_LTS -DMOBILE_FFMPEG_BUILD_DATE=20200725 -isysroot /Applications/Xcode-v7.3.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -O2 -mios-simulator-version-min=9.3 -I/Applications/Xcode-v7.3.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/include&#x27; --ranlib=/Applications/Xcode-v7.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v7.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --disable-neon --enable-cross-compile --enable-pic --disable-asm --enable-inline-asm --enable-optimizations --enable-swscale --enable-static --disable-shared --enable-small --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-outdev=audiotoolbox --disable-indev=v4l2 --disable-indev=fbdev --disable-openssl --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libx264 --enable-gpl --enable-libxvid --enable-gpl --enable-libx265 --enable-gpl --enable-libvidstab --enable-gpl --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-audiotoolbox --enable-bzlib --enable-videotoolbox --disable-avfoundation --enable-iconv --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libx264 --enable-gpl --enable-libxvid --enable-gpl --enable-libx265 --enable-gpl --enable-libvidstab --enable-gpl --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-audiotoolbox --enable-bzlib --enable-videotoolbox --disable-avfoundation --enable-iconv --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libx264 --enable-gpl --enable-libxvid --enable-gpl --enable-libx265 --enable-gpl --enable-libvidstab --enable-gpl --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-audiotoolbox --enable-bzlib --enable-videotoolbox --disable-avfoundation --enable-iconv --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libx264 --enable-gpl --enable-libxvid --enable-gpl --enable-libx265 --enable-gpl --enable-libvidstab --enable-gpl --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-audiotoolbox --enable-bzlib --enable-videotoolbox --disable-avfoundation --enable-iconv&#xA;INFO:   WARNING: library configuration mismatch&#xA;INFO:   avutil      configuration: --extra-ldflags=&#x27;-arch x86_64 -v -Wl,-ios_simulator_version_min,8.4 -L/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64/lib -Wl,-ios_simulator_version_min,8.4&#x27; --cc=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --pkg-config=pkg-config --disable-doc --disable-encoder=vorbis --disable-decoder=opus --enable-libgsm --disable-decoder=mlp --disable-demuxer=mlp --disable-parser=mlp --disable-debug --disable-avdevice --disable-devices --disable-avfilter --disable-filters --disable-protocol=concat --disable-bsfs --disable-bzlib --disable-libvpx --disable-avresample --enable-bsf=vp9_superframe --disable-swresample --disable-iconv --disable-avisynth --disable-nvenc --disable-linux-perf --disable-securetransport --enable-libopenjpeg --enable-libmp3lame --enable-cross-compile --disable-programs --arch=x86_64 --target-os=darwin --disable-lzma --cpu=core2 --enable-pic --extra-ldflags=&#x27;-arch x86_64 -miphoneos-version-min=8.4 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -arch x86_64 -O3 -g -miphoneos-version-min=8.4 -arch x86_64 -miphoneos-version-min=8.4 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -arch x86_64 -O3 -g -miphoneos-version-min=8.4 -I/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64/include -g -O2 -I/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64/include&#x27; --enable-pthreads --nm= --ar=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --prefix=/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64 --enable-static --disable-shared&#xA;INFO:   avcodec     configuration: --extra-ldflags=&#x27;-arch x86_64 -v -Wl,-ios_simulator_version_min,8.4 -L/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64/lib -Wl,-ios_simulator_version_min,8.4&#x27; --cc=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --pkg-config=pkg-config --disable-doc --disable-encoder=vorbis --disable-decoder=opus --enable-libgsm --disable-decoder=mlp --disable-demuxer=mlp --disable-parser=mlp --disable-debug --disable-avdevice --disable-devices --disable-avfilter --disable-filters --disable-protocol=concat --disable-bsfs --disable-bzlib --disable-libvpx --disable-avresample --enable-bsf=vp9_superframe --disable-swresample --disable-iconv --disable-avisynth --disable-nvenc --disable-linux-perf --disable-securetransport --enable-libopenjpeg --enable-libmp3lame --enable-cross-compile --disable-programs --arch=x86_64 --target-os=darwin --disable-lzma --cpu=core2 --enable-pic --extra-ldflags=&#x27;-arch x86_64 -miphoneos-version-min=8.4 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -arch x86_64 -O3 -g -miphoneos-version-min=8.4 -arch x86_64 -miphoneos-version-min=8.4 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -arch x86_64 -O3 -g -miphoneos-version-min=8.4 -I/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64/include -g -O2 -I/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64/include&#x27; --enable-pthreads --nm= --ar=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --prefix=/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64 --enable-static --disable-shared&#xA;INFO:   avformat    configuration: --extra-ldflags=&#x27;-arch x86_64 -v -Wl,-ios_simulator_version_min,8.4 -L/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64/lib -Wl,-ios_simulator_version_min,8.4&#x27; --cc=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --pkg-config=pkg-config --disable-doc --disable-encoder=vorbis --disable-decoder=opus --enable-libgsm --disable-decoder=mlp --disable-demuxer=mlp --disable-parser=mlp --disable-debug --disable-avdevice --disable-devices --disable-avfilter --disable-filters --disable-protocol=concat --disable-bsfs --disable-bzlib --disable-libvpx --disable-avresample --enable-bsf=vp9_superframe --disable-swresample --disable-iconv --disable-avisynth --disable-nvenc --disable-linux-perf --disable-securetransport --enable-libopenjpeg --enable-libmp3lame --enable-cross-compile --disable-programs --arch=x86_64 --target-os=darwin --disable-lzma --cpu=core2 --enable-pic --extra-ldflags=&#x27;-arch x86_64 -miphoneos-version-min=8.4 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -arch x86_64 -O3 -g -miphoneos-version-min=8.4 -arch x86_64 -miphoneos-version-min=8.4 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -arch x86_64 -O3 -g -miphoneos-version-min=8.4 -I/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64/include -g -O2 -I/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64/include&#x27; --enable-pthreads --nm= --ar=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --prefix=/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64 --enable-static --disable-shared&#xA;INFO:   swscale     configuration: --extra-ldflags=&#x27;-arch x86_64 -v -Wl,-ios_simulator_version_min,8.4 -L/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64/lib -Wl,-ios_simulator_version_min,8.4&#x27; --cc=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --pkg-config=pkg-config --disable-doc --disable-encoder=vorbis --disable-decoder=opus --enable-libgsm --disable-decoder=mlp --disable-demuxer=mlp --disable-parser=mlp --disable-debug --disable-avdevice --disable-devices --disable-avfilter --disable-filters --disable-protocol=concat --disable-bsfs --disable-bzlib --disable-libvpx --disable-avresample --enable-bsf=vp9_superframe --disable-swresample --disable-iconv --disable-avisynth --disable-nvenc --disable-linux-perf --disable-securetransport --enable-libopenjpeg --enable-libmp3lame --enable-cross-compile --disable-programs --arch=x86_64 --target-os=darwin --disable-lzma --cpu=core2 --enable-pic --extra-ldflags=&#x27;-arch x86_64 -miphoneos-version-min=8.4 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -arch x86_64 -O3 -g -miphoneos-version-min=8.4 -arch x86_64 -miphoneos-version-min=8.4 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -arch x86_64 -O3 -g -miphoneos-version-min=8.4 -I/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64/include -g -O2 -I/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64/include&#x27; --enable-pthreads --nm= --ar=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --prefix=/Users/Martz/Projects/vlckit/libvlc/vlc/contrib/iPhone-x86_64-apple-darwin14-x86_64 --enable-static --disable-shared&#xA;INFO:   libavutil      56. 55.100 / 56.  5.100&#xA;INFO:   libavcodec     58. 96.100 / 58.  6.103&#xA;INFO:   libavformat    58. 48.100 / 58.  3.100&#xA;INFO:   libavdevice    58. 11.101 / 58. 11.101&#xA;INFO:   libavfilter     7. 87.100 /  7. 87.100&#xA;INFO:   libswscale      5.  8.100 /  5.  0.101&#xA;INFO:   libswresample   3.  8.100 /  3.  8.100&#xA;ERROR: Unrecognized option &#x27;segment_time&#x27;.&#xA;FATAL: Error splitting the argument list:&#xA;FATAL: Option not found&#xA;

    &#xA;

  • Transcoding with the GCP Transcoder API results in a time gap

    3 mars 2021, par banyan

    I've been trying GCP's Transcoder API and having trouble with the time randomly becoming shorter than specified in certain cases.

    &#xA;

    The specific cases are as follows :

    &#xA;

      &#xA;
    1. Specifying startTimeOffset and endTimeOffset (cut off 2 seconds before and after the video)
    2. &#xA;

    3. fMP4 is used as container
    4. &#xA;

    5. input video is mp4 with screen recording on iPad Pro
    6. &#xA;

    &#xA;

    For example, if I don't specify startTimeOffset and endTimeOffset, the time will not be shortened. Also, there is no problem when MPEG2-TS is specified for container. There may be a problem with the video itself, but I haven't found a clue how to set it up.

    &#xA;

    I'm not sure whether this is a problem with the Transcoder API or with me.

    &#xA;

    The test input video : https://gofile.io/d/DUT9rr

    &#xA;

    ❯ ffprobe input.mp4&#xA;ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers&#xA;  built with Apple clang version 12.0.0 (clang-1200.0.32.28)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_8 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;input.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 1&#xA;    compatible_brands: isommp41mp42&#xA;    creation_time   : 2021-02-26T15:08:58.000000Z&#xA;  Duration: 00:02:51.15, start: 0.000000, bitrate: 551 kb/s&#xA;    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 246 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-02-26T15:08:58.000000Z&#xA;      handler_name    : Core Media Audio&#xA;    Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709/bt709/iec61966-2-1), 1920x1342, 302 kb/s, 12.39 fps, 120 tbr, 600 tbn, 1200 tbc (default)&#xA;    Metadata:&#xA;      rotate          : 180&#xA;      creation_time   : 2021-02-26T15:08:58.000000Z&#xA;      handler_name    : Core Media Video&#xA;    Side data:&#xA;      displaymatrix: rotation of -180.00 degrees&#xA;

    &#xA;

    #!/bin/bash -eu&#xA;&#xA;cat > request.json &lt;&lt; EOF&#xA;{&#xA;  "config": {&#xA;    "inputs": [&#xA;      {&#xA;        key: "input0"&#xA;      }&#xA;    ],&#xA;    "editList": [&#xA;      {&#xA;        "key": "atom0",&#xA;        "inputs": [&#xA;          "input0"&#xA;        ],&#xA;        "startTimeOffset": "2s",&#xA;        "endTimeOffset": "169s",&#xA;      },&#xA;    ],&#xA;    "elementaryStreams": [&#xA;      {&#xA;        "videoStream": {&#xA;          "codec": "h265",&#xA;          "heightPixels": 480,&#xA;          "bitrateBps": 1200000,&#xA;          "rateControlMode": "vbr",&#xA;          "enableTwoPass": true,&#xA;          "frameRate": 30,&#xA;          "crfLevel": 31,&#xA;          "gopDuration": "3.0s",&#xA;        },&#xA;        "key": "h265-stream0"&#xA;      },&#xA;      {&#xA;        "videoStream": {&#xA;          "codec": "h265",&#xA;          "heightPixels": 720,&#xA;          "bitrateBps": 1550000,&#xA;          "rateControlMode": "vbr",&#xA;          "enableTwoPass": true,&#xA;          "frameRate": 30,&#xA;          "crfLevel": 31,&#xA;          "gopDuration": "3.0s",&#xA;        },&#xA;        "key": "h265-stream1"&#xA;      },&#xA;      {&#xA;        "videoStream": {&#xA;          "codec": "h265",&#xA;          "heightPixels": 1080,&#xA;          "bitrateBps": 2600000,&#xA;          "rateControlMode": "vbr",&#xA;          "enableTwoPass": true,&#xA;          "frameRate": 30,&#xA;          "crfLevel": 31,&#xA;          "gopDuration": "3.0s",&#xA;        },&#xA;        "key": "h265-stream2"&#xA;      },&#xA;      {&#xA;        "audioStream": {&#xA;          "codec": "aac",&#xA;          "bitrateBps": 64000,&#xA;          "channelCount": 2,&#xA;          "channelLayout": [&#xA;            "fl",&#xA;            "fr"&#xA;          ],&#xA;          "sampleRateHertz": 48000&#xA;        },&#xA;        "key": "audio-stream0"&#xA;      },&#xA;    ],&#xA;    "muxStreams": [&#xA;      {&#xA;        "key": "media-sd",&#xA;        "fileName": "media-sd.m4s",&#xA;        "container": "fmp4",&#xA;        "elementaryStreams": [&#xA;          "h265-stream0",&#xA;        ],&#xA;        "segmentSettings": {&#xA;          "individualSegments": true&#xA;        },&#xA;      },&#xA;      {&#xA;        "key": "media-hd",&#xA;        "fileName": "media-hd.m4s",&#xA;        "container": "fmp4",&#xA;        "elementaryStreams": [&#xA;          "h265-stream1",&#xA;        ],&#xA;        "segmentSettings": {&#xA;          "individualSegments": true&#xA;        },&#xA;      },&#xA;      {&#xA;        "key": "media-fhd",&#xA;        "fileName": "media-fhd.m4s",&#xA;        "container": "fmp4",&#xA;        "elementaryStreams": [&#xA;          "h265-stream2",&#xA;        ],&#xA;        "segmentSettings": {&#xA;          "individualSegments": true&#xA;        },&#xA;      },&#xA;      {&#xA;        "key": "audio-only",&#xA;        "fileName": "audio-only.m4s",&#xA;        "container": "fmp4",&#xA;        "elementaryStreams": [&#xA;          "audio-stream0"&#xA;        ],&#xA;        "segmentSettings": {&#xA;          "individualSegments": true&#xA;        },&#xA;      },&#xA;    ],&#xA;    "manifests": [&#xA;      {&#xA;        "fileName": "manifest-h265.mpd",&#xA;        "type": "DASH",&#xA;        "muxStreams": [&#xA;          "media-sd",&#xA;          "media-hd",&#xA;          "media-fhd",&#xA;          "audio-only",&#xA;        ]&#xA;      },&#xA;    ]&#xA;  }&#xA;}&#xA;EOF&#xA;&#xA;curl -X POST \&#xA;-H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \&#xA;-H "Content-Type: application/json; charset=utf-8" \&#xA;-d @request.json \&#xA;https://transcoder.googleapis.com/v1beta1/projects/MY_PROJECT/locations/asia-east1/jobTemplates?jobTemplateId=test-template&#xA;

    &#xA;

    #!/bin/bash -eu&#xA;&#xA;cat > request.json &lt;&lt; EOF&#xA;{&#xA;  "inputUri": "gs://my-bucket/input.mp4",&#xA;  "outputUri": "gs://my-bucket/output/",&#xA;  "templateId": "test-template"&#xA;}&#xA;EOF&#xA;&#xA;curl -X POST \&#xA;-H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \&#xA;-H "Content-Type: application/json; charset=utf-8" \&#xA;-d @request.json \&#xA;https://transcoder.googleapis.com/v1beta1/projects/MY_PROJECT/locations/asia-east1/jobs&#xA;

    &#xA;

    The following is a ffprobe of the resulting manifest file, which is 2 seconds shorter than specified. (expected : 00:02:47.00, actual : 00:02:45.00) In this case, it's a 2-second gap, but it can be 10 seconds or 30 seconds, and it varies from video to video.

    &#xA;

    ❯ ffprobe manifest-h265.mpd&#xA;ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers&#xA;  built with Apple clang version 12.0.0 (clang-1200.0.32.28)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_8 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Input #0, dash, from &#x27;manifest-h265.mpd&#x27;:&#xA;  Duration: 00:02:45.00, start: 0.000000, bitrate: 0 kb/s&#xA;  Program 0&#xA;    Stream #0:0: Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709/unknown/unknown), 686x480, 112 kb/s, 30 fps, 120 tbr, 10k tbn, 30 tbc&#xA;    Metadata:&#xA;      variant_bitrate : 113679&#xA;      id              : 113679&#xA;    Stream #0:1: Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709/unknown/unknown), 1030x720, 205 kb/s, 30 fps, 120 tbr, 10k tbn, 30 tbc&#xA;    Metadata:&#xA;      variant_bitrate : 189219&#xA;      id              : 189219&#xA;    Stream #0:2: Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709/unknown/unknown), 1544x1080, 384 kb/s, 30 fps, 120 tbr, 10k tbn, 30 tbc&#xA;    Metadata:&#xA;      variant_bitrate : 358043&#xA;      id              : 358043&#xA;    Stream #0:3: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 65 kb/s&#xA;    Metadata:&#xA;      variant_bitrate : 70245&#xA;      id              : 70245&#xA;

    &#xA;

    The following is the time as specified for h264 + MPEG2-TS + Apple HLS.

    &#xA;

    ❯ ffprobe manifest-h264.m3u8 | pbcopy&#xA;ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers&#xA;  built with Apple clang version 12.0.0 (clang-1200.0.32.28)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_8 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;[hls @ 0x7fe23100f200] Opening &#x27;h264-sd-ts.m3u8&#x27; for reading&#xA;[hls @ 0x7fe23100f200] Skip (&#x27;#EXT-X-VERSION:4&#x27;)&#xA;[hls @ 0x7fe23100f200] Opening &#x27;h264-hd-ts.m3u8&#x27; for reading&#xA;[hls @ 0x7fe23100f200] Skip (&#x27;#EXT-X-VERSION:4&#x27;)&#xA;[hls @ 0x7fe23100f200] Opening &#x27;h264-fhd-ts.m3u8&#x27; for reading&#xA;[hls @ 0x7fe23100f200] Skip (&#x27;#EXT-X-VERSION:4&#x27;)&#xA;[hls @ 0x7fe23100f200] Opening &#x27;h264-sd0000000000.ts&#x27; for reading&#xA;[hls @ 0x7fe23100f200] Opening &#x27;h264-hd0000000000.ts&#x27; for reading&#xA;[hls @ 0x7fe23100f200] Opening &#x27;h264-fhd0000000000.ts&#x27; for reading&#xA;Input #0, hls, from &#x27;manifest-h264.m3u8&#x27;:&#xA;  Duration: 00:02:47.00, start: 0.000000, bitrate: 0 kb/s&#xA;  Program 0&#xA;    Metadata:&#xA;      variant_bitrate : 511576&#xA;    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 686x480, 120 tbr, 90k tbn, 2000k tbc&#xA;    Metadata:&#xA;      variant_bitrate : 511576&#xA;    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp&#xA;    Metadata:&#xA;      variant_bitrate : 511576&#xA;  Program 1&#xA;    Metadata:&#xA;      variant_bitrate : 793711&#xA;    Stream #0:2: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1030x720, 120 tbr, 90k tbn, 2000k tbc&#xA;    Metadata:&#xA;      variant_bitrate : 793711&#xA;    Stream #0:3: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp&#xA;    Metadata:&#xA;      variant_bitrate : 793711&#xA;  Program 2&#xA;    Metadata:&#xA;      variant_bitrate : 1305288&#xA;    Stream #0:4: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1544x1080, 120 tbr, 90k tbn, 2000k tbc&#xA;    Metadata:&#xA;      variant_bitrate : 1305288&#xA;    Stream #0:5: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp&#xA;    Metadata:&#xA;      variant_bitrate : 1305288&#xA;

    &#xA;

  • FFMPEG muxed as a private data stream and may not be recognized upon reading

    4 mars 2021, par Jimmy

    I've came across a mkv with a codec of hevc , while trying to either convert it to m3u8 or mp4 I received this following message :

    &#xA;

    [mpegts @ 0x7f94de014600] Stream 1, codec flac, is muxed as a private data stream and may not be recognized upon reading.

    &#xA;

    Is there something wrong with my ffmpeg parameters ?

    &#xA;

    To m3u8 :&#xA;#1 :

    &#xA;

    ffmpeg -i aaa.mkv -s 1920x1080 -codec copy -bsf:v hevc_mp4toannexb -start_number 0 -hls_time 10 -segment_time 10 -hls_list_size 0 -f hls aaa.m3u8&#xA;

    &#xA;

    #2 :

    &#xA;

    ffmpeg -i aaa.mkv -s 1920x1080 -codec copy -c:v libx264 -bsf:v hevc_mp4toannexb -start_number 0 -hls_time 10 -segment_time 10 -hls_list_size 0 -f hls aaa.m3u8&#xA;

    &#xA;

    To mp4 :

    &#xA;

    #1 :

    &#xA;

    ffmpeg -i aaa.mkv -c copy ccc.mp4&#xA;

    &#xA;

    #2 :

    &#xA;

    ffmpeg -y -i aaa.mkv -codec copy -strict -2 ccc.mp4&#xA;

    &#xA;

    Edit :&#xA;FFMPEG dump :

    &#xA;

    ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with Apple clang version 12.0.0 (clang-1200.0.32.27)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_4 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Input #0, matroska,webm, from &#x27;aaa.mkv&#x27;:&#xA;  Metadata:&#xA;    encoder         : libebml v1.3.4 &#x2B; libmatroska v1.4.5&#xA;    creation_time   : 2016-12-20T17:13:09.000000Z&#xA;  Duration: 00:24:18.92, start: 0.000000, bitrate: 4395 kb/s&#xA;    Chapter #0:0: start 0.000000, end 96.096000&#xA;    Metadata:&#xA;      title           : CHAPTER00&#xA;    Chapter #0:1: start 96.096000, end 134.050000&#xA;    Metadata:&#xA;      title           : CHAPTER01&#xA;    Chapter #0:2: start 134.050000, end 224.099000&#xA;    Metadata:&#xA;      title           : CHAPTER02&#xA;    Chapter #0:3: start 224.099000, end 708.082000&#xA;    Metadata:&#xA;      title           : CHAPTER03&#xA;    Chapter #0:4: start 708.082000, end 1302.050000&#xA;    Metadata:&#xA;      title           : CHAPTER04&#xA;    Chapter #0:5: start 1302.050000, end 1392.015000&#xA;    Metadata:&#xA;      title           : CHAPTER05&#xA;    Chapter #0:6: start 1392.015000, end 1428.051000&#xA;    Metadata:&#xA;      title           : CHAPTER06&#xA;    Chapter #0:7: start 1428.051000, end 1458.920000&#xA;    Metadata:&#xA;      title           : CHAPTER07&#xA;    Stream #0:0(jpn): Video: hevc (Main 10), yuv420p10le(tv), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)&#xA;    Metadata:&#xA;      BPS             : 3671317&#xA;      BPS-eng         : 3671317&#xA;      DURATION        : 00:24:18.916000000&#xA;      DURATION-eng    : 00:24:18.916000000&#xA;      NUMBER_OF_FRAMES: 34979&#xA;      NUMBER_OF_FRAMES-eng: 34979&#xA;      NUMBER_OF_BYTES : 669518018&#xA;      NUMBER_OF_BYTES-eng: 669518018&#xA;      _STATISTICS_WRITING_APP: mkvmerge v9.4.2 (&#x27;So High&#x27;) 64bit&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v9.4.2 (&#x27;So High&#x27;) 64bit&#xA;      _STATISTICS_WRITING_DATE_UTC: 2016-12-20 17:13:09&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-20 17:13:09&#xA;      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;    Stream #0:1(jpn): Audio: flac, 48000 Hz, stereo, s16 (default)&#xA;    Metadata:&#xA;      BPS             : 722497&#xA;      BPS-eng         : 722497&#xA;      DURATION        : 00:24:18.920000000&#xA;      DURATION-eng    : 00:24:18.920000000&#xA;      NUMBER_OF_FRAMES: 17097&#xA;      NUMBER_OF_FRAMES-eng: 17097&#xA;      NUMBER_OF_BYTES : 131758259&#xA;      NUMBER_OF_BYTES-eng: 131758259&#xA;      _STATISTICS_WRITING_APP: mkvmerge v9.4.2 (&#x27;So High&#x27;) 64bit&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v9.4.2 (&#x27;So High&#x27;) 64bit&#xA;      _STATISTICS_WRITING_DATE_UTC: 2016-12-20 17:13:09&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-20 17:13:09&#xA;      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;Output #0, hls, to &#x27;aaa.m3u8&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.45.100&#xA;    Chapter #0:0: start 0.000000, end 96.096000&#xA;    Metadata:&#xA;      title           : CHAPTER00&#xA;    Chapter #0:1: start 96.096000, end 134.050000&#xA;    Metadata:&#xA;      title           : CHAPTER01&#xA;    Chapter #0:2: start 134.050000, end 224.099000&#xA;    Metadata:&#xA;      title           : CHAPTER02&#xA;    Chapter #0:3: start 224.099000, end 708.082000&#xA;    Metadata:&#xA;      title           : CHAPTER03&#xA;    Chapter #0:4: start 708.082000, end 1302.050000&#xA;    Metadata:&#xA;      title           : CHAPTER04&#xA;    Chapter #0:5: start 1302.050000, end 1392.015000&#xA;    Metadata:&#xA;      title           : CHAPTER05&#xA;    Chapter #0:6: start 1392.015000, end 1428.051000&#xA;    Metadata:&#xA;      title           : CHAPTER06&#xA;    Chapter #0:7: start 1428.051000, end 1458.920000&#xA;    Metadata:&#xA;      title           : CHAPTER07&#xA;    Stream #0:0(jpn): Video: hevc (Main 10), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc (default)&#xA;    Metadata:&#xA;      BPS             : 3671317&#xA;      BPS-eng         : 3671317&#xA;      DURATION        : 00:24:18.916000000&#xA;      DURATION-eng    : 00:24:18.916000000&#xA;      NUMBER_OF_FRAMES: 34979&#xA;      NUMBER_OF_FRAMES-eng: 34979&#xA;      NUMBER_OF_BYTES : 669518018&#xA;      NUMBER_OF_BYTES-eng: 669518018&#xA;      _STATISTICS_WRITING_APP: mkvmerge v9.4.2 (&#x27;So High&#x27;) 64bit&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v9.4.2 (&#x27;So High&#x27;) 64bit&#xA;      _STATISTICS_WRITING_DATE_UTC: 2016-12-20 17:13:09&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-20 17:13:09&#xA;      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;    Stream #0:1(jpn): Audio: flac, 48000 Hz, stereo, s16 (default)&#xA;    Metadata:&#xA;      BPS             : 722497&#xA;      BPS-eng         : 722497&#xA;      DURATION        : 00:24:18.920000000&#xA;      DURATION-eng    : 00:24:18.920000000&#xA;      NUMBER_OF_FRAMES: 17097&#xA;      NUMBER_OF_FRAMES-eng: 17097&#xA;      NUMBER_OF_BYTES : 131758259&#xA;      NUMBER_OF_BYTES-eng: 131758259&#xA;      _STATISTICS_WRITING_APP: mkvmerge v9.4.2 (&#x27;So High&#x27;) 64bit&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v9.4.2 (&#x27;So High&#x27;) 64bit&#xA;      _STATISTICS_WRITING_DATE_UTC: 2016-12-20 17:13:09&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-20 17:13:09&#xA;      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (copy)&#xA;  Stream #0:1 -> #0:1 (copy)&#xA;Press [q] to stop, [?] for help&#xA;[mpegts @ 0x7f8b8a020e00] Stream 1, codec flac, is muxed as a private data stream and may not be recognized upon reading.&#xA;

    &#xA;