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

Combating videos not working. #29

Open
MohamedMohy9192 opened this issue Jan 18, 2022 · 9 comments
Open

Combating videos not working. #29

MohamedMohy9192 opened this issue Jan 18, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@MohamedMohy9192
Copy link

Combine videos not working.

catalog output

[Parsed_scale_0 @ 0xe25f1b60] Invalid size '0x0' [AVFilterGraph @ 0xe25f5140] Error initializing filter 'scale'[AVFilterGraph @ 0xe25f5140] with args '0x0'[AVFilterGraph @ 0xe25f5140] Error initializing complex filters. Invalid argument

Smartphone (please complete the following information):

  • Device: Pixil 2
  • OS: Android
  • Version 10
@shwetachauhan-simform shwetachauhan-simform added the bug Something isn't working label Feb 17, 2022
@MSajidJuneja
Copy link
Contributor

@MohamedMohy9192 can you please share your query?

@sathishcanine
Copy link

Same for me :

var filesNPath: ArrayList = ArrayList();

for (element in filePathsData) {
  val paths = Paths()
  paths.filePath = element
  paths.isImageFile = false
  filesNPath.add(paths)
}
var ffmpegQueryExtension : FFmpegQueryExtension = FFmpegQueryExtension();


val query = ffmpegQueryExtension.combineVideos(
  filesNPath,
  375,
  835,
  "/storage/emulated/0/Download/qqqqq.mp4"
)

@MSajidJuneja
Copy link
Contributor

@sathishcanine can you please post the full query here?

@sathishcanine
Copy link

sathishcanine commented Jun 30, 2022

fun appendVideo(filePaths: ArrayList )
{
var filesN: ArrayList = ArrayList();
var filesNPath: ArrayList = ArrayList();

for (element in filePaths) {
  val paths = Paths()
  paths.filePath = element
  paths.isImageFile = false
  filesNPath.add(paths)
}
var ffmpegQueryExtension : FFmpegQueryExtension = FFmpegQueryExtension();

val query = ffmpegQueryExtension.combineVideos(
  filesNPath,
  375,
  835,
  "/storage/emulated/0/Download/qqqqq.mp4"
)
CallBackOfQuery().callQuery(query, object : FFmpegCallBack {
  override fun process(logMessage: LogMessage) {

    Log.d(" ######  process ", " # MERGE_2 ###$logMessage")
  }

  override fun success() {
    Log.d(" ######  success "," # MERGE_2 ###")

  }

  override fun cancel() {
    Log.d(" ######  cancel "," # MERGE_2 ###" )

  }

  override fun failed() {
    Log.d(" ######  failed "," # MERGE_2 ###" )

  }
})

}

This is what am doing ..

Full query means ?

@MSajidJuneja
Copy link
Contributor

@sathishcanine you can debug to find your query on point "val query = ffmpegQueryExtension.combineVideos". Please post the query formed in debug log and also crash log for the issue you are facing.

@sathishcanine
Copy link

I didnot get the full query, But I got this

MERGE_2 ###LogMessage{executionId=0, level=AV_LOG_FATAL, text='Stream specifier ':a' in filtergraph description [0:v]scale=375x835,setdar=375/835[0v];[1:v]scale=375x835,setdar=375/835[1v];[0v][0:a][1v][1:a]concat=n=2:v=1:a=1 [v][a] matches no streams.

'}

2022-06-30 13:06:06.456 23065-23065/tv.glidr.app D/ ######  failed: # MERGE_2 ###
2022-06-30 13:06:06.463 23065-23065/tv.glidr.app I/mobile-ffmpeg: ffmpeg version v4.4-dev-416 Copyright (c) 2000-2020 the FFmpeg developers
built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)
configuration: --cross-prefix=i686-linux-android- --sysroot=/files/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-x86/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --cc=i686-linux-android24-clang --cxx=i686-linux-android24-clang++ --extra-libs='-L/home/taner/Projects/mobile-ffmpeg/prebuilt/android-x86/cpu-features/lib -lndk_compat' --target-os=android --disable-neon --disable-asm --disable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --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-static --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-libwavpack --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec
libavutil 56. 55.100 / 56. 55.100
libavcodec 58. 96.100 / 58. 96.100
libavformat 58. 48.100 / 58. 48.100
libavdevice 58. 11.101 / 58. 11.101
libavfilter 7. 87.100 / 7. 87.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Download/1656574561940.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2022-06-30T07:36:06.000000Z
com.android.version: 11
Duration: 00:00:03.15, start: 0.000000, bitrate: 1390 kb/s
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, GBR), 400x800, 1382 kb/s, SAR 1:1 DAR 1:2, 56.21 fps, 90k tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2022-06-30T07:36:06.000000Z
handler_name : VideoHandle
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Download/1656574561691.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2022-06-30T07:36:06.000000Z
com.android.version: 11
Duration: 00:00:03.17, start: 0.000000, bitrate: 2023 kb/s
Stream #1:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, GBR), 400x800, 2015 kb/s, SAR 1:1 DAR 1:2, 57.35 fps, 90k tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2022-06-30T07:36:06.000000Z
handler_name : VideoHandle
Input #2, lavfi, from 'anullsrc':
Duration: N/A, start: 0.000000, bitrate: 705 kb/s
Stream #2:0: Audio: pcm_u8, 44100 Hz, stereo, u8, 705 kb/s
Stream specifier ':a' in filtergraph description [0:v]scale=375x835,setdar=375/835[0v];[1:v]scale=375x835,setdar=375/835[1v];[0v][0:a][1v][1:a]concat=n=2:v=1:a=1 [v][a] matches no streams.

@sathishcanine
Copy link

sathishcanine commented Jun 30, 2022

Please help me to resolve this

@MSajidJuneja
Copy link
Contributor

@sathishcanine I cannot check for the issue without the query being formed. please debug and put breakpoint at "val query = ffmpegQueryExtension.combineVideos" and post the query you get in logs. It should be something like this "-f -lavfi -t ...etc"

@thankimanish
Copy link

query = {String[19]@6419} ["-i", "/storage/emulat...", "-i", "/storage/emulat...", "-f", +14 more]
0 = "-i"
1 = "/storage/emulated/0/FFMPEG/facebook_1665993233308.mp4"
2 = "-i"
3 = "/storage/emulated/0/VideoDownloader/Download/019LEGGl1LHm41w3QB7GIjdmXB7NJOuELGNn.mp4"
4 = "-f"
5 = "lavfi"
6 = "-t"
7 = "0.1"
8 = "-i"
9 = "anullsrc"
10 = "-filter_complex"
11 = "[0:v]scale=0x0,setdar=0/0[0v];[1:v]scale=0x0,setdar=0/0[1v];[0v][0:a][1v][1:a]concat=n=2:v=1:a=1 [v][a]"
12 = "-map"
13 = "[v]"
14 = "-map"
15 = "[a]"
16 = "-preset"
17 = "ultrafast"
18 = "/storage/emulated/0/Android/data/com.simform.videoimageeditor/files/Output/Output1678797424.mp4"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants