![]() ![]() (I'm not sure why you don't want the first chapter. Select the objects/chapters labeled as "Video": ffprobe | xidel -se "$json/(chapters)()" You can just pipe it to xidel: ffprobe -v quiet -print_format json -show_chapters -loglevel error "01x01.mp4" | xidel -se "$json" This could probably be done entirely with ffmpeg, but without the source video I can't say for sure.Īnyway, let me offer you a very elegant solution for the splitting procedure with the help of xidel.įirst of all, you don't have to save ffprobe's output to a JSON-file. ![]() ![]() If I understand correctly, you want to remove the " Advertisement"-chapters. That would probably work but I would like to not change filenames if I can help it. I guess I could run a batch before hand replacing all spaces with underscores. This works amazing I just need to figure out how to use files with spaces and I'm all set. Mkvmerge doesn't even try to run when I have it in here and I still need to cut 7 seconds off the end and 12 seconds off the front of it once it is all one file again.Īny help would be appreciated, I know it's a lot but I seem to have hit a roadblock or just sleep deprived at this point. I also tried using the start_time so I didn't have to do extra calculations but jq didn't like that either. chapters.start ^"%temp%\VBS.vbs" echo Set fso = CreateObject("Scripting.FileSystemObject") : Wscript.echo (%*)įor /f "delims=" %%a in ('cscript /nologo "%temp%\VBS.vbs"') do set "val=%%a" REM CODE BELOW SETS VARIABLES FROM EACH SPECIFIC JSONįOR /F "delims=" %%i in ('jq. REM CODE BELOW CREATES JSON FILES FOR ALL MP4 FILES WITHIN THE SAME DIRECTORYįfprobe -v quiet -print_format json -show_chapters -loglevel error "01x01.mp4" > "01x01.json" Code is below but be gentle it is my first try. So I made a batch script originally with the ability to relatively precision trim a video into chapters without having to run by keyframes, but the code looks horrible and I can't get it to loop through all mp4 files nor get mkvmerge to append the files after splitting them. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |