Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: FFmpeg: Video transformation/stabilization not working #17795

Closed
TDYK opened this issue Sep 10, 2023 · 2 comments
Closed

[Bug]: FFmpeg: Video transformation/stabilization not working #17795

TDYK opened this issue Sep 10, 2023 · 2 comments
Labels
bug report Something is not working properly upstream issue It is an upstream issue

Comments

@TDYK
Copy link

TDYK commented Sep 10, 2023

Problem description

[vid.stab - serialization @ 0x7feeb2a290] Cannot parse localmotion!
Last message repeated 20382490 times
[1]+ Stopped ffmpeg -y -i VID_20230910_135319.mp4 -vf vidstabtransform=input=./transforms.trf -vcodec libx264 -tune film -acodec copy -preset slow VID_20230910_135319_stable.mp4

What steps will reproduce the bug?

I use this script on my Debian to fix video from a phone without stabilization.

#!/data/data/com.termux/files/usr/bin/bash
path="/data/data/com.termux/files/usr/bin"
if [ -z "$1" ]
    then
        echo "Usage:" 
        echo  "stabilizator.sh filename.mp4"
        exit 0
fi

# two steps
$path/ffmpeg -y -i $1 \
      -vf vidstabdetect=stepsize=32:shakiness=10:accuracy=10:result=./transforms.trf -f null -

$path/ffmpeg -y -i $1 \
      -vf vidstabtransform=input=./transforms.trf:zoom=0:smoothing=10,unsharp=5:5:0.8:3:3:0.4 \
      -vcodec libx264  -tune film -acodec copy -preset slow  \
      ${1%.*}_stable.mp4
exit

The result Results in termux:

./stabil.sh VID_20230910_135319.mp4 
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
  built with Android (9352603, based on r450784d1) clang version 14.0.7 (https://android.googlesource.com/toolchain/llvm-project 4c603efb0cca074e9238af8b4106c30add4418f6)
  configuration: --arch=aarch64 --as=aarch64-linux-android-clang --cc=aarch64-linux-android-clang --cxx=aarch64-linux-android-clang++ --nm=llvm-nm --pkg-config=/home/builder/.termux-build/_cache/android-r25c-api-24-v2/bin/pkg-config --strip=llvm-strip --cross-prefix=aarch64-linux-android- --disable-indevs --disable-outdevs --enable-indev=lavfi --disable-static --disable-symver --enable-cross-compile --enable-gnutls --enable-gpl --enable-version3 --enable-jni --enable-lcms2 --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgme --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librav1e --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-mediacodec --enable-opencl --enable-shared --prefix=/data/data/com.termux/files/usr --target-os=android --extra-libs=-landroid-glob --disable-vulkan --enable-neon --disable-libfdk-aac
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'VID_20230910_135319.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2023-09-10T10:53:19.000000Z
    com.android.version: 10
  Duration: 00:00:03.03, start: 0.000000, bitrate: 13189 kb/s
  Stream #0:0[0x1](eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 1920x1080, 10887 kb/s, SAR 1:1 DAR 16:9, 28.80 fps, 29.33 tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2023-09-10T10:53:19.000000Z
      handler_name    : VideoHandle
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 194 kb/s (default)
    Metadata:
      creation_time   : 2023-09-10T10:53:19.000000Z
      handler_name    : SoundHandle
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> wrapped_avframe (native))
  Stream #0:1 -> #0:1 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[vidstabdetect @ 0x7fc790b7b0] Multithreading: use 6 threads
[vidstabdetect @ 0x7fc790b7b0] For high accuracy use lower stepsize  -- set to 6 nowFieldsize: 108, Maximal translation: 154 pixel
[vidstabdetect @ 0x7fc790b770] Number of used measurement fields: 52 out of 78
[vidstabdetect @ 0x7fc790b770] Fieldsize: 18, Maximal translation: 18 pixel
[vidstabdetect @ 0x7fc790b770] Number of used measurement fields: 952 out of 1428
[Parsed_vidstabdetect_0 @ 0x76dead2d00] Video stabilization settings (pass 1/2):
[Parsed_vidstabdetect_0 @ 0x76dead2d00]      shakiness = 10
[Parsed_vidstabdetect_0 @ 0x76dead2d00]       accuracy = 10
[Parsed_vidstabdetect_0 @ 0x76dead2d00]       stepsize = 6
[Parsed_vidstabdetect_0 @ 0x76dead2d00]    mincontrast = 0.250000
[Parsed_vidstabdetect_0 @ 0x76dead2d00]         tripod = 0
[Parsed_vidstabdetect_0 @ 0x76dead2d00]           show = 0
[Parsed_vidstabdetect_0 @ 0x76dead2d00]         result = ./transforms.trf
Output #0, null, to 'pipe:':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    com.android.version: 10
    encoder         : Lavf60.3.100
  Stream #0:0(eng): Video: wrapped_avframe, yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.33 fps, 29.33 tbn (default)
    Metadata:
      creation_time   : 2023-09-10T10:53:19.000000Z
      handler_name    : VideoHandle
      vendor_id       : [0][0][0][0]
      encoder         : Lavc60.3.100 wrapped_avframe
  Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2023-09-10T10:53:19.000000Z
      handler_name    : SoundHandle
      vendor_id       : [0][0][0][0]
      encoder         : Lavc60.3.100 pcm_s16le
frame=   87 fps=7.7 q=-0.0 Lsize=N/A time=00:00:03.00 bitrate=N/A speed=0.265x    
video:41kB audio:568kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
  built with Android (9352603, based on r450784d1) clang version 14.0.7 (https://android.googlesource.com/toolchain/llvm-project 4c603efb0cca074e9238af8b4106c30add4418f6)
  configuration: --arch=aarch64 --as=aarch64-linux-android-clang --cc=aarch64-linux-android-clang --cxx=aarch64-linux-android-clang++ --nm=llvm-nm --pkg-config=/home/builder/.termux-build/_cache/android-r25c-api-24-v2/bin/pkg-config --strip=llvm-strip --cross-prefix=aarch64-linux-android- --disable-indevs --disable-outdevs --enable-indev=lavfi --disable-static --disable-symver --enable-cross-compile --enable-gnutls --enable-gpl --enable-version3 --enable-jni --enable-lcms2 --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgme --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librav1e --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-mediacodec --enable-opencl --enable-shared --prefix=/data/data/com.termux/files/usr --target-os=android --extra-libs=-landroid-glob --disable-vulkan --enable-neon --disable-libfdk-aac
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'VID_20230910_135319.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2023-09-10T10:53:19.000000Z
    com.android.version: 10
  Duration: 00:00:03.03, start: 0.000000, bitrate: 13189 kb/s
  Stream #0:0[0x1](eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 1920x1080, 10887 kb/s, SAR 1:1 DAR 16:9, 28.80 fps, 29.33 tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2023-09-10T10:53:19.000000Z
      handler_name    : VideoHandle
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 194 kb/s (default)
    Metadata:
      creation_time   : 2023-09-10T10:53:19.000000Z
      handler_name    : SoundHandle
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[Parsed_vidstabtransform_0 @ 0x7945ad27c0] Video transformation/stabilization settings (pass 2/2):
[Parsed_vidstabtransform_0 @ 0x7945ad27c0]     input     = ./transforms.trf
[Parsed_vidstabtransform_0 @ 0x7945ad27c0]     smoothing = 10
[Parsed_vidstabtransform_0 @ 0x7945ad27c0]     optalgo   = gauss
[Parsed_vidstabtransform_0 @ 0x7945ad27c0]     maxshift  = -1
[Parsed_vidstabtransform_0 @ 0x7945ad27c0]     maxangle  = -1.000000
[Parsed_vidstabtransform_0 @ 0x7945ad27c0]     crop      = Keep
[Parsed_vidstabtransform_0 @ 0x7945ad27c0]     relative  = True
[Parsed_vidstabtransform_0 @ 0x7945ad27c0]     invert    = False
[Parsed_vidstabtransform_0 @ 0x7945ad27c0]     zoom      = 0.000000
[Parsed_vidstabtransform_0 @ 0x7945ad27c0]     optzoom   = Static (1)
[Parsed_vidstabtransform_0 @ 0x7945ad27c0]     interpol  = Bi-Linear (2)
[vid.stab - serialization @ 0x7fcd8eaae0] Cannot parse localmotion!
^Z  Last message repeated 842018 times
[1]+  Stopped                 ./stabil.sh VID_20230910_135319.mp4

What is the expected behavior?

It should be:

+ /usr/bin/ffmpeg -y -i VID_20230910_135319.mp4 -vf vidstabtransform=input=./transforms.trf:zoom=0:smoothing=10,unsharp=5:5:0.8:3:3:0.4 -vcodec libx264 -tune film -acodec copy -preset slow VID_20230910_135319_stable.mp4
ffmpeg version 6.0-5+b1 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13 (Debian 13.2.0-2)
  configuration: --prefix=/usr --extra-version=5+b1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'VID_20230910_135319.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2023-09-10T10:53:19.000000Z
    com.android.version: 10
  Duration: 00:00:03.03, start: 0.000000, bitrate: 13189 kb/s
  Stream #0:0[0x1](eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 1920x1080, 10887 kb/s, SAR 1:1 DAR 16:9, 28.80 fps, 29.33 tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2023-09-10T10:53:19.000000Z
      handler_name    : VideoHandle
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 194 kb/s (default)
    Metadata:
      creation_time   : 2023-09-10T10:53:19.000000Z
      handler_name    : SoundHandle
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[Parsed_vidstabtransform_0 @ 0x55d742dc9d80] Video transformation/stabilization settings (pass 2/2):
[Parsed_vidstabtransform_0 @ 0x55d742dc9d80]     input     = ./transforms.trf
[Parsed_vidstabtransform_0 @ 0x55d742dc9d80]     smoothing = 10
[Parsed_vidstabtransform_0 @ 0x55d742dc9d80]     optalgo   = gauss
[Parsed_vidstabtransform_0 @ 0x55d742dc9d80]     maxshift  = -1
[Parsed_vidstabtransform_0 @ 0x55d742dc9d80]     maxangle  = -1.000000
[Parsed_vidstabtransform_0 @ 0x55d742dc9d80]     crop      = Keep
[Parsed_vidstabtransform_0 @ 0x55d742dc9d80]     relative  = True
[Parsed_vidstabtransform_0 @ 0x55d742dc9d80]     invert    = False
[Parsed_vidstabtransform_0 @ 0x55d742dc9d80]     zoom      = 0.000000
[Parsed_vidstabtransform_0 @ 0x55d742dc9d80]     optzoom   = Static (1)
[Parsed_vidstabtransform_0 @ 0x55d742dc9d80]     interpol  = Bi-Linear (2)
[vidstabtransform @ 0x7fff951b5498] Final zoom: 5.393719
[libx264 @ 0x55d742d960c0] using SAR=1/1
[libx264 @ 0x55d742d960c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0x55d742d960c0] profile High, level 5.0, 4:2:0, 8-bit
[libx264 @ 0x55d742d960c0] 264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:-1:-1 analyse=0x3:0x113 me=hex subme=8 psy=1 psy_rd=1.00:0.15 mixed_ref=1 me_range=16 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'VID_20230910_135319_stable.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    com.android.version: 10
    encoder         : Lavf60.3.100
  Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.33 fps, 11264 tbn (default)
    Metadata:
      creation_time   : 2023-09-10T10:53:19.000000Z
      handler_name    : VideoHandle
      vendor_id       : [0][0][0][0]
      encoder         : Lavc60.3.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 194 kb/s (default)
    Metadata:
      creation_time   : 2023-09-10T10:53:19.000000Z
      handler_name    : SoundHandle
      vendor_id       : [0][0][0][0]
frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:01.02 bitrate=   0.4kbits/sframe=    0 fps=0.0 q=0.0 size=       0kB time=00:00:01.02 bitrate=   0.4kbits/sframe=    0 fps=0.0 q=0.0 size=       0kB time=00:00:02.02 bitrate=   0.2kbits/sframe=    0 fps=0.0 q=0.0 size=       0kB time=00:00:02.02 bitrate=   0.2kbits/sframe=    0 fps=0.0 q=0.0 size=       0kB time=00:00:02.04 bitrate=   0.2kbits/sframe=    1 fps=0.4 q=29.0 size=       0kB time=00:00:03.00 bitrate=   0.1kbits/frame=   10 fps=3.0 q=29.0 size=       0kB time=00:00:03.00 bitrate=   0.1kbits/frame=   19 fps=4.9 q=29.0 size=     256kB time=00:00:03.00 bitrate= 697.3kbits/frame=   89 fps= 14 q=-1.0 Lsize=    2113kB time=00:00:03.00 bitrate=5754.6kbits/s dup=2 drop=0 speed=0.468x    
video:2037kB audio:72kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.212910%
[libx264 @ 0x55d742d960c0] frame I:1     Avg QP:22.60  size: 61612
[libx264 @ 0x55d742d960c0] frame P:23    Avg QP:24.12  size: 47377
[libx264 @ 0x55d742d960c0] frame B:65    Avg QP:26.45  size: 14363
[libx264 @ 0x55d742d960c0] consecutive B-frames:  1.1%  4.5%  0.0% 94.4%
[libx264 @ 0x55d742d960c0] mb I  I16..4: 19.1% 72.0%  8.9%
[libx264 @ 0x55d742d960c0] mb P  I16..4: 11.0% 17.9%  2.0%  P16..4: 43.7% 11.8%  4.3%  0.0%  0.0%    skip: 9.4%
[libx264 @ 0x55d742d960c0] mb B  I16..4:  1.1%  0.9%  0.0%  B16..8: 45.0%  6.1%  0.9%  direct: 3.7%  skip:42.3%  L0:45.3% L1:47.3% BI: 7.4%
[libx264 @ 0x55d742d960c0] 8x8 transform intra:57.4% inter:67.1%
[libx264 @ 0x55d742d960c0] direct mvs  spatial:89.2% temporal:10.8%
[libx264 @ 0x55d742d960c0] coded y,uvDC,uvAC intra: 30.7% 28.9% 4.5% inter: 11.9% 14.6% 0.1%
[libx264 @ 0x55d742d960c0] i16 v,h,dc,p: 39% 25%  9% 27%
[libx264 @ 0x55d742d960c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19%  9% 23%  6%  9%  9%  8%  9%  8%
[libx264 @ 0x55d742d960c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 16% 10%  7% 10%  9% 10%  8%  9%
[libx264 @ 0x55d742d960c0] i8c dc,h,v,p: 56% 21% 16%  6%
[libx264 @ 0x55d742d960c0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x55d742d960c0] ref P L0: 54.9% 14.8% 20.2%  5.4%  4.8%
[libx264 @ 0x55d742d960c0] ref B L0: 88.3%  8.6%  2.4%  0.7%
[libx264 @ 0x55d742d960c0] ref B L1: 98.2%  1.8%
[libx264 @ 0x55d742d960c0] kb/s:5497.14
+ exit

System information

termux-info:

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=11379
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main stable main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
# root-repo (sources.list.d/root.list)
deb https://packages-cf.termux.dev/apt/termux-root root stable
Updatable packages:
All packages up to date
termux-tools version:
1.39.0
Android version:
10
Kernel build information:
Linux localhost 4.14.116 #1 SMP PREEMPT Tue Sep 27 11:20:03 CST 2022 aarch64 Android
Device manufacturer:
HUAWEI
Device model:
JNY-LX1
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=22811
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://ftp.fau.de/termux/termux-main stable main
# root-repo (sources.list.d/root.list)
deb https://ftp.fau.de/termux/termux-root root stable
Updatable packages:
command-not-found/stable 2.3.0-1 aarch64 [upgradable from: 2.3.0]
termux-tools version:
1.39.0
Android version:
13
Kernel build information:
Linux localhost 4.19.157-perf-gd26cd08114e0 #1 SMP PREEMPT Mon Apr 10 04:31:50 UTC 2023 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
2112123AG
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
com.termux.boot versionCode:7
ffmpeg/stable,now 6.0-6 aarch64 [installed]
libvidstab/stable,now 1.1.1 aarch64 [installed,automatic]
@TDYK TDYK added bug report Something is not working properly untriaged labels Sep 10, 2023
@truboxl truboxl added upstream issue It is an upstream issue and removed untriaged labels Nov 25, 2023
@truboxl
Copy link
Contributor

truboxl commented Nov 25, 2023

Upstream issue: georgmartius/vid.stab#104

@truboxl
Copy link
Contributor

truboxl commented Nov 26, 2023

FFmpeg/FFmpeg@2b300eb

Now that ffmpeg and libvidstab defaults to problematic binary file format, my suggestion is to add fileformat=1 to force saving as old text file format.

Eg: change from
-vf vidstabdetect=stepsize=32:shakiness=10:accuracy=10:result=./transforms.trf
to
-vf vidstabdetect=fileformat=1:stepsize=32:shakiness=10:accuracy=10:result=./transforms.txt

Though I still see some errors from using old file format. Likely reproducible once Debian also upgrades to latest version.

Closing as I don't think we want to patch and deviate from upstream. You may add your concern over at upstream issue above.

@truboxl truboxl closed this as completed Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly upstream issue It is an upstream issue
Projects
None yet
Development

No branches or pull requests

2 participants