![]() # count the dirs, add two, then you're good. # this might be able to be super short with sed and complex one-liner, # my music folders, remote is the source, local the target dirįor i in $(find $remote -type f -iname '*.flac' ) # file, during runtime collisions should not become an issueĪnd the worker script like this: #!/bin/bash # not all 4 processes will want to start with the same # sleeping time can be shorter, this is just so, that ![]() My script to spin up the 4 instances, one for each core, is like this: #!/bin/bash I am open for any suggestions from your side, but so far it works for me. I am by no means a bash hacker, but I managed it, as my first bash script with the given demands, and maybe someone will benefit. My first runs were with the ffmpeg bin and the exact same options. Just replace the command avconv with ffmpeg. Oh, and yes, I see, I didn't use ffmpeg in that case, because my OSMC didn't provide packages for ffmpeg, only avconv, but since you're already here, I guess you know, it's "basically" the same - at least for the most important part. "best_effort_timestamp_time": "14.000000",įurther inspecting the frames reveals that:Īn inspection of the original trailer.mp4 shows that there are no frames between 13.96 and 14, nor are there frames between 14.96 and 15.I took everything I found here (and maybe on some other sites) and created a small tool to not only create mp3s of flacs recursively, but also preserve relative paths to create them elsewhere with multithread support. Inspecting bun.mp4, I see a keyframe at 14, as I expect: "media_type": "video", This works, and the resulting file plays without a visible hitch, however, when I inspect the frames of the final output file to see if my keyframe is at the place where I expect it to be, I see that the keyframe is actually at 14.022 instead of 14. ![]() ![]() ffmpeg -f concat -i concat.txt -c copy trailer-keyframed.mp4 ffmpeg -ss 16 -i trailer.mp4 -copyts -c copy third-bun.mp4ĥ. ffmpeg -ss 14 -i trailer.mp4 -to 15 -video_track_timescale 90000 -copyts bun.mp4ģ. ffmpeg -i trailer.mp4 -to 13.92 -copyts -c copy first-bun.mp4Ģ. I'm doing this to add a keyframe at 00:00:14.0000 1. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |