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

Not Showing Urdu Text #950

Open
qasimfarooqideveloper opened this issue Mar 25, 2024 · 2 comments
Open

Not Showing Urdu Text #950

qasimfarooqideveloper opened this issue Mar 25, 2024 · 2 comments
Labels
android Affect Android platform library Affects the library question Further information is requested v6.0

Comments

@qasimfarooqideveloper
Copy link

qasimfarooqideveloper commented Mar 25, 2024

Description
Not Showing Urdu Text in the video using drawtext.

Expected behavior
text not shown in urdu , english text shows.

Current behavior
text not shown in urdu , english text shows.

To Reproduce
"-i $tempVidPath -vf drawtext=fontfile='$myFont':text='$text':fontcolor=white:fontsize=40:box=1:boxcolor=black@0.6:boxborderw=200:x=(w-text_w)/2:y=(h-text_h)/2 -c:a copy $outputVideoPath" //x=(w-text_w)/2:y=(h-text_h)/2

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot_1711452028

Logs
2024-03-25 20:16:17.239 8949-8980 ffmpeg-kit com.example.imagetovideodemo I ffmpeg version n6.0
2024-03-25 20:16:17.239 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Copyright (c) 2000-2023 the FFmpeg developers
2024-03-25 20:16:17.239 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.239 8949-8980 ffmpeg-kit com.example.imagetovideodemo I built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
2024-03-25 20:16:17.239 8949-8980 ffmpeg-kit com.example.imagetovideodemo I configuration: --cross-prefix=i686-linux-android- --sysroot=/Users/sue/Library/Android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/darwin-x86_64/sysroot --prefix=/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-x86/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --target-os=android --disable-neon --disable-asm --disable-inline-asm --ar=i686-linux-android-ar --cc=i686-linux-android24-clang --cxx=i686-linux-android24-clang++ --ranlib=i686-linux-android-ranlib --strip=i686-linux-android-strip --nm=i686-linux-android-nm --extra-libs='-L/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-x86/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --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-videotoolbox --disable-audiotoolbox --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-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libdav1d --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-libzimg --disable-openssl --enable-zlib --enable-mediacodec
2024-03-25 20:16:17.239 8949-8980 ffmpeg-kit com.example.imagetovideodemo I libavutil 58. 2.100 / 58. 2.100
2024-03-25 20:16:17.240 8949-8980 ffmpeg-kit com.example.imagetovideodemo I libavcodec 60. 3.100 / 60. 3.100
2024-03-25 20:16:17.240 8949-8980 ffmpeg-kit com.example.imagetovideodemo I libavformat 60. 3.100 / 60. 3.100
2024-03-25 20:16:17.240 8949-8980 ffmpeg-kit com.example.imagetovideodemo I libavdevice 60. 1.100 / 60. 1.100
2024-03-25 20:16:17.240 8949-8980 ffmpeg-kit com.example.imagetovideodemo I libavfilter 9. 3.100 / 9. 3.100
2024-03-25 20:16:17.240 8949-8980 ffmpeg-kit com.example.imagetovideodemo I libswscale 7. 1.100 / 7. 1.100
2024-03-25 20:16:17.240 8949-8980 ffmpeg-kit com.example.imagetovideodemo I libswresample 4. 10.100 / 4. 10.100
2024-03-25 20:16:17.243 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/com.example.imagetovideodemo/cache/Temp.mp4':
2024-03-25 20:16:17.243 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Metadata:
2024-03-25 20:16:17.243 8949-8980 ffmpeg-kit com.example.imagetovideodemo I major_brand :
2024-03-25 20:16:17.243 8949-8980 ffmpeg-kit com.example.imagetovideodemo I isom
2024-03-25 20:16:17.243 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.244 8949-8980 ffmpeg-kit com.example.imagetovideodemo I minor_version :
2024-03-25 20:16:17.244 8949-8980 ffmpeg-kit com.example.imagetovideodemo I 512
2024-03-25 20:16:17.244 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.244 8949-8980 ffmpeg-kit com.example.imagetovideodemo I compatible_brands:
2024-03-25 20:16:17.244 8949-8980 ffmpeg-kit com.example.imagetovideodemo I isomiso2mp41
2024-03-25 20:16:17.244 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.244 8949-8980 ffmpeg-kit com.example.imagetovideodemo I encoder :
2024-03-25 20:16:17.244 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Lavf60.3.100
2024-03-25 20:16:17.244 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.244 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Duration:
2024-03-25 20:16:17.244 8949-8980 ffmpeg-kit com.example.imagetovideodemo I 00:00:10.00
2024-03-25 20:16:17.244 8949-8980 ffmpeg-kit com.example.imagetovideodemo I , start:
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I 0.000000
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I , bitrate:
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I 516 kb/s
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Stream #0:0
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I [0x1]
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I (und)
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I : Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 640x960 [SAR 1:1 DAR 2:3], 514 kb/s
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I ,
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I 25 fps,
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I 25 tbr,
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I 12800 tbn
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I (default)
2024-03-25 20:16:17.245 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.246 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Metadata:
2024-03-25 20:16:17.246 8949-8980 ffmpeg-kit com.example.imagetovideodemo I handler_name :
2024-03-25 20:16:17.246 8949-8980 ffmpeg-kit com.example.imagetovideodemo I VideoHandler
2024-03-25 20:16:17.246 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.246 8949-8980 ffmpeg-kit com.example.imagetovideodemo I vendor_id :
2024-03-25 20:16:17.246 8949-8980 ffmpeg-kit com.example.imagetovideodemo I [0][0][0][0]
2024-03-25 20:16:17.246 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.246 8949-8980 ffmpeg-kit com.example.imagetovideodemo I encoder :
2024-03-25 20:16:17.246 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Lavc60.3.100 mpeg4
2024-03-25 20:16:17.248 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.248 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Stream mapping:
2024-03-25 20:16:17.248 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Stream #0:0 -> #0:0
2024-03-25 20:16:17.248 8949-8980 ffmpeg-kit com.example.imagetovideodemo I (mpeg4 (native) -> mpeg4 (native))
2024-03-25 20:16:17.248 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.248 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Press [q] to stop, [?] for help
2024-03-25 20:16:17.302 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Output #0, mp4, to '/storage/emulated/0/Android/data/com.example.imagetovideodemo/cache/output1.mp4':
2024-03-25 20:16:17.302 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Metadata:
2024-03-25 20:16:17.302 8949-8980 ffmpeg-kit com.example.imagetovideodemo I major_brand :
2024-03-25 20:16:17.302 8949-8980 ffmpeg-kit com.example.imagetovideodemo I isom
2024-03-25 20:16:17.302 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.302 8949-8980 ffmpeg-kit com.example.imagetovideodemo I minor_version :
2024-03-25 20:16:17.302 8949-8980 ffmpeg-kit com.example.imagetovideodemo I 512
2024-03-25 20:16:17.302 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.302 8949-8980 ffmpeg-kit com.example.imagetovideodemo I compatible_brands:
2024-03-25 20:16:17.302 8949-8980 ffmpeg-kit com.example.imagetovideodemo I isomiso2mp41
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I encoder :
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Lavf60.3.100
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Stream #0:0
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I (und)
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I : Video: mpeg4 (mp4v / 0x7634706D), yuv420p(progressive), 640x960 [SAR 1:1 DAR 2:3], q=2-31, 200 kb/s
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I ,
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I 25 fps,
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I 12800 tbn
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I (default)
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Metadata:
2024-03-25 20:16:17.303 8949-8980 ffmpeg-kit com.example.imagetovideodemo I handler_name :
2024-03-25 20:16:17.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I VideoHandler
2024-03-25 20:16:17.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I vendor_id :
2024-03-25 20:16:17.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I [0][0][0][0]
2024-03-25 20:16:17.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I encoder :
2024-03-25 20:16:17.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Lavc60.3.100 mpeg4
2024-03-25 20:16:17.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I Side data:
2024-03-25 20:16:17.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I cpb:
2024-03-25 20:16:17.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I bitrate max/min/avg: 0/0/200000 buffer size: 0
2024-03-25 20:16:17.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I vbv_delay: N/A
2024-03-25 20:16:17.305 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:17.326 8949-8980 ffmpeg-kit com.example.imagetovideodemo I frame= 0 fps=0.0 q=4.3 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
2024-03-25 20:16:17.777 8949-8980 ffmpeg-kit com.example.imagetovideodemo I frame= 37 fps=0.0 q=2.0 size= 0kB time=00:00:01.48 bitrate= 0.2kbits/s speed=2.84x
2024-03-25 20:16:18.278 8949-8980 ffmpeg-kit com.example.imagetovideodemo I frame= 78 fps= 76 q=2.0 size= 0kB time=00:00:03.12 bitrate= 0.1kbits/s speed=3.05x
2024-03-25 20:16:18.799 8949-8980 ffmpeg-kit com.example.imagetovideodemo I frame= 119 fps= 77 q=2.0 size= 256kB time=00:00:04.76 bitrate= 440.7kbits/s speed=3.08x
2024-03-25 20:16:19.304 8949-8980 ffmpeg-kit com.example.imagetovideodemo I frame= 160 fps= 78 q=3.8 size= 256kB time=00:00:06.40 bitrate= 327.7kbits/s speed=3.13x
2024-03-25 20:16:19.818 8949-8980 ffmpeg-kit com.example.imagetovideodemo I frame= 203 fps= 79 q=6.6 size= 512kB time=00:00:08.12 bitrate= 516.6kbits/s speed=3.17x
2024-03-25 20:16:20.323 8949-8980 ffmpeg-kit com.example.imagetovideodemo I frame= 244 fps= 80 q=21.6 size= 512kB time=00:00:09.76 bitrate= 429.8kbits/s speed=3.18x
2024-03-25 20:16:20.382 8949-8980 ffmpeg-kit com.example.imagetovideodemo I frame= 250 fps= 80 q=15.6 Lsize= 614kB time=00:00:09.96 bitrate= 505.1kbits/s speed=3.17x
2024-03-25 20:16:20.382 8949-8980 ffmpeg-kit com.example.imagetovideodemo I video:612kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead:
2024-03-25 20:16:20.382 8949-8980 ffmpeg-kit com.example.imagetovideodemo I 0.315059%
2024-03-25 20:16:20.382 8949-8980 ffmpeg-kit com.example.imagetovideodemo I
2024-03-25 20:16:20.396 8949-8949 Compatibil...geReporter com.example.imagetovideodemo D Compat change id reported: 147798919; UID 10122; state: ENABLED
2024-03-25 20:16:20.405 8949-8949 Choreographer com.example.imagetovideodemo I Skipped 770 frames! The application may be doing too much work on its main thread.
2024-03-25 20:16:20.462 8949-8970 OpenGLRenderer com.example.imagetovideodemo I Davey! duration=12890ms; Flags=0, IntendedVsync=10665426407849, Vsync=10678259740669, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10678261134600, AnimationStart=10678261187800, PerformTraversalsStart=10678270308800, DrawStart=10678275575700, SyncQueued=10678311943500, SyncStart=10678312142700, IssueDrawCommandsStart=10678312261300, SwapBuffers=10678315310800, FrameCompleted=10678317544600, DequeueBufferDuration=903900, QueueBufferDuration=484700, GpuCompleted=0,
2024-03-25 20:16:21.920 8949-8949 System.out com.example.imagetovideodemo I onPlayVideoButtonClick...
2024-03-25 20:16:22.054 8949-8949 MediaPlayerNative com.example.imagetovideodemo D getMetadata
2024-03-25 20:16:22.153 8949-8968 MediaPlayerNative com.example.imagetovideodemo W info/warning (3, 0)

Environment

  • Platform: `Android Studio'
  • Version: 6.0-2
  • Source branch: main
  • Android Studio version: Android Studio Hedgehog | 2023.1.1 Patch 2

Other
Add any other context about the problem here.

@AakashKedari
Copy link

how are you able to use drawtext filter. I am getting below error when I try to use it :
I/flutter ( 9104): [AVFilterGraph @ 0xb400007a3ba75720] No such filter: 'drawtext'
Please reply if you know how to use it.

@tanersener
Copy link
Collaborator

@qasimfarooqideveloper ffmpeg kit test repo includes Android test applications that can successfully burn Chinese and Arabic text. If they work, I don't see a reason why Urdu won't.

@AakashKedari See Tips #4 and #9 for drawtext.

@tanersener tanersener added question Further information is requested android Affect Android platform library Affects the library v6.0 labels Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Affect Android platform library Affects the library question Further information is requested v6.0
Projects
None yet
Development

No branches or pull requests

3 participants