Menu

[mpegts @ 0xb739d2e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 5263997382 >= 5263993782

derekzhuo
2015-06-12
2015-06-15
  • derekzhuo

    derekzhuo - 2015-06-12

    does anyone know how these happen, and how to solve this?

    which is caused by the api: av_interleaved_write_frame()

    many thanks.

     
  • Obucina

    Obucina - 2015-06-12

    I guess You are setting invalid values to the PTS fields of frames You want to mux. Find proper muxing example (I believe there is one in FFmpeg folder doc), and check how it is done. You need to take care of time base, and use it to calculate proper PTS values from Your frame rate, in a given time base (for TS it is always 1/90000).

     
  • derekzhuo

    derekzhuo - 2015-06-15

    Thanks, but it doesn't always happen, some input stream work fine, while some not, is there any chance that the input stream carry problems?

     
  • Obucina

    Obucina - 2015-06-15

    If You are just trying to remux some stream, and do not try to calculate PTS/DTS values, then probably stream contains values which FFmpeg consider as invalid.

     
  • Rajeswari

    Rajeswari - 2017-07-11

    Hi,
    I am facing error while building libraries.
    I have NOT applied any of my customizations in Android_configuration.mk and proceeded for build with "mm" command.

    SOURCE DOWNLOAD:
    Downloaded ffmpeg-HEAD-aa86ccc.android.tar.gz
    Extracted it and placed the source folder "ffmpeg-android" in "/android/external" folder.

    ANDROID TOOL CHAIN:
    The following are the highest versions of tool chains available in folder /android/ndk/toolchains -
    1.aarch64-linux-android-4.9
    2.aarch64-linux-android-clang3.5
    3.arm-linux-androideabi-4.9
    4.arm-linux-androideabi-clang3.5
    5.llvm-3.5
    6.mips64el-linux-android-4.9
    7.mips64el-linux-android-clang3.5
    8.mipsel-linux-android-4.9
    9.mipsel-linux-android-clang3.5
    10.x86_64-4.9
    11.x86_64-clang3.5
    12.x86-4.9
    13.x86-clang3.5

    The following is the highest version API level support -
    /android/prebuilts/ndk/android-ndk-r9/platforms/android-21

    ENVIRONMENT SETUP:
    The build/envsetup.sh environment is set.
    The target is set with lunch A1-userdebug
    The following the set environmet information :

    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=6.0
    TARGET_PRODUCT=A1
    TARGET_BUILD_VARIANT=userdebug
    TARGET_BUILD_TYPE=release
    TARGET_BUILD_APPS=
    TARGET_ARCH=arm64
    TARGET_ARCH_VARIANT=armv8-a
    TARGET_CPU_VARIANT=generic
    TARGET_2ND_ARCH=arm
    TARGET_2ND_ARCH_VARIANT=armv7-a-neon
    TARGET_2ND_CPU_VARIANT=cortex-a53
    HOST_ARCH=x86_64
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-3.13.0-105-generic-x86_64-with-Ubuntu-12.04-precise
    HOST_BUILD_TYPE=release
    OUT_DIR=out-A1

    BUILD:
    executed the command "mm" in folder ffmpeg-android.

    ERROR:
    The source files are built for libraries , but finally i am facing the below error -
    target SharedLib: libavutil-2.2.git (out-A1/target/product/A1/obj/SHARED_LIBRARIES/libavutil-2.2.git_intermediates/LINKED/libavutil-2.2.git.so)
    collect2: fatal error: cannot find 'ld'
    compilation terminated.

    Thanks,

     

Log in to post a comment.