Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Attempting to parse an m3u8 file in FFmpeg with mismatched extensions and formats
2 juin, par Daniel MeloAs I attempt to parse an m3u8 file thats being downloaded over the air, it utilizes "html" as an extension to represent the ts video slices. Even with the command being written as follows:
ffmpeg -allowed_extensions ALL -i https://.../master.m3u8 -codec copy ./out.mkv
It still produces the following error:
detected format mpegts extension none mismatches allowed extensions in url (...)/page-0.html
Could there be a way to ignore this format and extension mismatch?
-
App Store Submission Fails Due to Unsupported Architectures and Invalid Segment Alignment [closed]
2 juin, par Ahsanur RahmanI’m using ffmpegkit in my iOS app, but when I submit the app to the App Store, I get these errors:
Validation failed
Unsupported Architectures. The executable for MyApp.app/Frameworks/ffmpegkit.framework contains unsupported architectures '[x86_64]'. (ID: 3e35bca7-7b8f-4c2b-bfb2-a27c8ad70c45)Validation failed
Unsupported Architectures. The executable for MyApp.app/Frameworks/libavcodec.framework contains unsupported architectures '[x86_64]'. (ID: fd864260-dae3-4816-bdf3-ca7389374242)Validation failed
Unsupported Architectures. The executable for MyApp.app/Frameworks/libavdevice.framework contains unsupported architectures '[x86_64]'. (ID: fd743847-5d46-4679-8193-51db9445fde1)Validation failed
Unsupported Architectures. The executable for MyApp.app/Frameworks/libavfilter.framework contains unsupported architectures '[x86_64]'. (ID: 54492aff-601e-471a-aef7-25f0549a6364)Validation failed
Unsupported Architectures. The executable for MyApp.app/Frameworks/libavformat.framework contains unsupported architectures '[x86_64]'. (ID: 37bcd80d-7b17-4f95-a20f-577dbb29fc36)Validation failed
Unsupported Architectures. The executable for MyApp.app/Frameworks/libavutil.framework contains unsupported architectures '[x86_64]'. (ID: ead0bd08-84e6-475e-9ce3-9e1c012bafa5)Validation failed
Unsupported Architectures. The executable for MyApp.app/Frameworks/libswresample.framework contains unsupported architectures '[x86_64]'. (ID: fe647420-760c-4404-a039-30c102d7d313)Validation failed
Unsupported Architectures. The executable for MyApp.app/Frameworks/libswscale.framework contains unsupported architectures '[x86_64]'. (ID: 7c8946d8-d75f-455c-b6fd-1bd555abb99f)Validation failed
Invalid Segment Alignment. The app binary at 'MyApp.app/Frameworks/ffmpegkit.framework/ffmpegkit' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version. (ID: 8603e3f0-0235-4f3c-a87f-c263945a11d9)Validation failed
Invalid Segment Alignment. The app binary at 'MyApp.app/Frameworks/libavcodec.framework/libavcodec' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version. (ID: f10b4561-0a9c-4aa6-969a-9d3a892be9ec)Validation failed
Invalid Segment Alignment. The app binary at 'MyApp.app/Frameworks/libavdevice.framework/libavdevice' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version. (ID: 2e6d495a-9131-43da-b6a8-8c23b8d10415)Validation failed
Invalid Segment Alignment. The app binary at 'MyApp.app/Frameworks/libavfilter.framework/libavfilter' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version. (ID: 40016424-045d-470f-b40a-fba391de2c98)Validation failed
Invalid Segment Alignment. The app binary at 'MyApp.app/Frameworks/libavformat.framework/libavformat' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version. (ID: f8cc4367-25bb-4932-bd03-af6729fe7587)Validation failed
Invalid Segment Alignment. The app binary at 'MyApp.app/Frameworks/libavutil.framework/libavutil' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version. (ID: 495572f9-2dcb-472b-97ea-d16ba6e239a9)Validation failed
Invalid Segment Alignment. The app binary at 'MyApp.app/Frameworks/libswresample.framework/libswresample' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version. (ID: 5722d5f0-0f81-422f-8389-e744c73cfd67)Validation failed
Invalid Segment Alignment. The app binary at 'MyApp.app/Frameworks/libswscale.framework/libswscale' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version. (ID: 1e4bf706-5e56-423d-b600-a8298eff698f)Validation failed
The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker. (ID: 8695bbb6-991f-46cd-9b70-bd86dcef4212)I add the below code in a runscript:
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}" find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK do FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable)" EXTRACT_ARCHS=$(lipo -info "$FRAMEWORK_EXECUTABLE_PATH" | rev | cut -d ':' -f1 | rev) ARCHS_TO_REMOVE="" for ARCH in $EXTRACT_ARCHS; do if [ "$ARCH" != "arm64" ]; then ARCHS_TO_REMOVE="$ARCHS_TO_REMOVE -remove $ARCH" fi done if [ ! -z "$ARCHS_TO_REMOVE" ]; then lipo $ARCHS_TO_REMOVE "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH" || exit 1 fi done
I have already tried some suggestion from online but nothing worked.
-
FFmpeg video from image plus audio length issue
1er juin, par blackbraynI'm having issues regarding the output video length when using the following code which seems to work for everybody else.
On a input mp3 of 04:56 I get a 05:09, the last part is only the image, no sound, for a longer mp3 input file I get more silent video at the end.
I'm using the "-shortest" option just before the output file as an argument , as suggested in other threads around stackoverflow/superuser.
ffmpeg -loop 1 -i image.jpg -i audio.mp3 -c:v libx264 -tune stillimage -c:a aac -strict experimental -b:a 192k -shortest out.mp4
I already changed the input file type - wav , and the image - png, jpg, same silent "overhead" at the end of the video.
-
How to Ensure UTF-8 Kurdish (Sorani) Subtitles Render Correctly in FFmpeg ? [closed]
30 mai, par Kurdi BashurI’m trying to burn or embed Kurdish (Sorani, ckb) subtitles into an MP4 video using FFmpeg, but the text (e.g., characters like ێ, ڵ, ڵا) sometimes appears garbled or incorrect. I want to ensure proper UTF-8 encoding for the subtitles. Here’s what I’ve tried:
ffmpeg -i input.mp4 -vf "subtitles=subtitles.srt:force_style='Fontname=Noto Sans Arabic,Fontsize=24'" -c:v libx264 -c:a aac output.mp4 How can I ensure FFmpeg correctly handles UTF-8 Kurdish subtitles? Should I use -sub_charenc for UTF-8 files, or is it only for non-UTF-8 (e.g., Windows-1256)? Are there specific force_style parameters or filters (e.g., libass) needed for Kurdish RTL text? Could the issue be font-related, despite using Noto Sans Arabic?
-
Using FFMPEG : How to do a Scene Change Detection ? with timecode ?
30 mai, par MozartBased on this article it seems that it is possible to use FFMPEG to detect scene change in videos: http://www.luckydinosaur.com/u/ffmpeg-scene-change-detector
Now I have a video that displays a book text and when the text (word or sentence) is spoken it gets highlighted. Something like this audio book: https://youtu.be/lA7L6ZNVKjc
I need to know the timestamp when the text gets highlighted (hence scene change), this will allow me to add timestamp tags on my youtube video, so it becomes easier for listeners to navigate through the audiobook.
What is the magic command line that would do this?
Thank you very much!