-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Output file has only audio no video in ios, Working fine on Android. #528
Comments
I have compare logs on android and ios and I have noticed that Stream #0:0 and Stream #1:0 is different. IOS:
Android:
|
Input files used are not the same. Therefore output files produced are not the same. Moreover, commands don't specify any format, codec options for the output files. So, So, my suggestion is to produce files with the same audio/video formats first. This is the video and audio format of the file created on Android.
And this is the file created on iOS.
|
@tanersener I tried with provide same video input file to android and ios. Still the output is same (Not Working). Can you tell what other values or parameters I have to add in the command to set the format and codecs. I am confused on where to put codecs or parameters and what values should I put. Thanks for your help. |
Well, how about asking google about it? |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description
I am using ffmpeg_kit_flutter in my application. I am trying to add background music, text and gif on a video input. When I am creating the video from android it is working fine on android as well as ios, But when I am trying to create the output from ios it's not working on both platforms. I also notice that the video created from ios does not works on chrome browser, It is only showing audio in chrome
Expected behavior
The video generated from ios should be similar to android, because the commands are same and parameters are same as well.
Current behavior
Right now the video generated from ios does not work on ios and chrome, But it works on android platform. I am using flutter default video player to see the videos.
To Reproduce
You can try to run the command on ios and android to get logs.
Screenshots
No Screenshots, But attached the logs and video below.
Logs
ios-logs.txt
android-logs.txt
Environment
Platform:
Android
/Flutter
/iOS
/Version:
v4.5.1-LTS
Flutter Version:
3.0.5
Other
Command which I am executing in android.
-i /data/user/0/com.consultingwhiz.sparksfly/cache/REC5962783986141428937.mp4 -i /data/user/0/com.consultingwhiz.sparksfly/cache/file_01.mp3 -stream_loop 2 -i /data/user/0/com.consultingwhiz.sparksfly/cache/gif_file.gif -filter_complex [0:v][2:v]overlay=(main_w-overlay_w) - 20:(main_h-overlay_h) - 20,drawtext=text=Discuss what you are looking for in a partner?:x=(w-text_w)/2:y=(h-text_h)-20:fontsize=24:fontcolor=white:fontfile=/data/user/0/com.consultingwhiz.sparksfly/cache/fonts.ttf;[0:a][1:a]amerge=inputs=2[a] -map 0:v -map [a] -q:v 4 -q:a 4 /data/user/0/com.consultingwhiz.sparksfly/cache/21843.mp4
Command which I am executing in IOS.
-i /var/mobile/Containers/Data/Application/619FAB12-A4F8-459D-A9F4-32D500390E03/Documents/camera/videos/REC_65A89F93-D78C-4924-A228-FC3E6E439CE5.mp4 -i /var/mobile/Containers/Data/Application/619FAB12-A4F8-459D-A9F4-32D500390E03/Library/Caches/file_01.mp3 -stream_loop 2 -i /var/mobile/Containers/Data/Application/619FAB12-A4F8-459D-A9F4-32D500390E03/Library/Caches/gif_file.gif -filter_complex [0:v][2:v]overlay=(main_w-overlay_w) - 20:(main_h-overlay_h) - 20,drawtext=text=Discuss what you are looking for in a partner?:x=(w-text_w)/2:y=(h-text_h)-20:fontsize=24:fontcolor=white:fontfile=/var/mobile/Containers/Data/Application/619FAB12-A4F8-459D-A9F4-32D500390E03/Library/Caches/fonts.ttf;[0:a][1:a]amerge=inputs=2[a] -map 0:v -map [a] -q:v 4 -q:a 4 /var/mobile/Containers/Data/Application/619FAB12-A4F8-459D-A9F4-32D500390E03/Library/Caches/16428.mp4
ios-logs.txt
android-logs.txt
1660058726363954.mp4
The text was updated successfully, but these errors were encountered: