Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
FFMPEG progress CANNOT LINK EXECUTABLE ... ffmpeg : has text relocations
7 mai 2018, par lavanya veluI want to cut and merge the videos.I used FFMPEG. I have implemented this library https://github.com/WritingMinds/ffmpeg-android-java.
When i tested in android 8.0(Oreao) version. I got this issue " CANNOT LINK EXECUTABLE ... ffmpeg: has text relocations". I found they opened issue for that...https://github.com/WritingMinds/ffmpeg-android-java/issues/141...is that any library that support all devices.
Please anyone help me.
-
extract audio using ffmpeg and save wav files
7 mai 2018, par jameshwart lopezffmpeg has a way to extract video images using the following command
ffmpeg -i "video.avi" -vf fps=30 "images/frame_%09d.png" -hide_banner
Is there a way in ffmpeg to extract or cut audios into smaller chunks the same way that is done on the above command but the difference is it will create an audio file not an image file.
I tried the following but it only creates a wav file.
ffmpeg -i "video.avi" -vf fps=30 "images/frame_%09d.wav" -hide_banner
-
ffmpeg : unable to encrypt video(mp4) file with segmentation(multiple BYTERANGE) to HLS stream
6 mai 2018, par premI am trying to convert mp4 file to m3u8 file with encryption and multiple BYTERANGE by using following command
"/usr/local/Cellar/ffmpeg/3.4.2/bin/ffmpeg -i %s -c:v libx264 -crf 23 -vprofile baseline -vlevel 3.1 -b:v 1200K -preset slow -vf scale=1280:720 -c:a aac -ar 44100 -ac 2 -b:a 96k -hls_time 10 -hls_key_info_file %s -hls_list_size 0 -f hls -threads 0 %s "
but its not working.
-
How to count arrays in FOR loops using a variable as index ?
6 mai 2018, par HASJOkay. I got rid of most of the useless code and have been tinkering with it here and there trying to find what is the problem and I think I finally found it:
Windows' Batch can't edit variables that will be expanded if those are inside a
FOR
loop.Ex:
set /a x=1 Powershell Get-Clipboard> %temp%\ffmpeglist.txt setlocal enableExtensions enableDelayedExpansion for /F "delims=| tokens=*" %%A in (%temp%\ffmpeglist.txt) do ( set input[!x!]=%%A call echo !input[%x%]! set /a x += 1 ) endlocal
Expected behavior:
g:\videos\youtube1.mp4 g:\videos\youtube2.mp4 g:\videos\youtube3.mp4 g:\videos\youtube4.mp4 g:\videos\youtube5.mp4
What I get:
g:\videos\youtube1.mp4 g:\videos\youtube1.mp4 g:\videos\youtube1.mp4 g:\videos\youtube1.mp4 g:\videos\youtube1.mp4
No matter what I do,
set /a x+= 1
will not change the value ofx
.Are there solutions? I'm open to anything.
-
Changing video frame rate and keeping duration intact
6 mai 2018, par IdanI am trying to segment a video file, transcode each of the segments and then stitch them all back to one. The process is working but I have noticed that the final file has a different duration than the original one. Probably because I am transcoding to a fixed frame rate which is different from the source frame rate.
To segment the video I use:
ffmpeg -y -i video_only.mp4 -c copy -flags -global_header -segment_time 50 -break_non_keyframes 0 -reset_timestamps 0 \ -segment_list file_segs.list -segment_format mp4 -segment_list_type ffconcat -write_empty_segments 0 \ -f segment file_seg-%d.mp4
Then, each segment is transcoded with this command:
ffmpeg -y -i $f -vcodec libx264 -vsync 1 -crf 18 -vf "fps=30" -pix_fmt yuv420p -preset:v fast -profile:v main -level:v 4.1 transcoded/$f
And finally, concat:
ffmpeg -y -f concat -i file_segs.list -c:v copy -c:a copy -movflags +faststart video_final.mp4
I've tried using "-r 30" instead on the filter (-vf), the same result. As this is a part of a transcoding system I prefer not to check for the input file fps before transcoding as it can be anything - variable fps too (which is not so easy to detect)
Is there any way I can keep the duration intact while changing the frame rate in this type of transcoding flow?