On Fri, Jul 5, 2024 at 2:09 AM Mark Filipak <markfilipak.i...@gmail.com> wrote:
> On 04/07/2024 17.12, Paul B Mahol wrote: > > Its in documentation: asetpts=N/SR/TB, assuming everything starts from 0, > > so add it after each atrim. > > For both video & audio, > time_base=1/90000 > start_pts=1048560 > > So, there are 'silent' audio samples starting with the first video frame. > I'm dropping 20.062 > seconds of video (i.e., 481 frames). I really don't know how I could > rewrite audio PTSes to make > that 20.062 seconds of audio to go away. I really think that's impossible. > They have to be dropped, > just as I am dropping the 481 video frames. > > Here's my trim commands for the first segment: > > > trim=start_frame=481:end_frame=134047,atrim=start_sample=962962:end_sample=268360093 > > Here's the interesting terminal output (slightly beautified): > > [Parsed_trim_1 @ 0000000000620040] > Media type mismatch between the 'Parsed_trim_1' filter output pad 0 > (video) and the > 'Parsed_atrim_2' filter input pad 0 (audio) > > [AVFilterGraph @ 000000000061c7c0] Error linking filters > > Failed to set value > 'split=2[i5][i6], > [i5]trim=start_frame=481:end_frame=134047, > atrim=start_sample=962962:end_sample=268360092[o5], > [i6]trim=start_frame=138745:end_frame=246719[o6], > [o5][o6]concat=n=2' > for option 'filter_complex': Invalid argument > Error parsing global options: Invalid argument > This is exact proof that your FFmpeg CLI skills are bellow flat absolute zero. I'm wasting my and everyone else time replying to your questions. > > > Following is the entire terminal output: > ffmpeg -i g:\00305+00306+00307+00308.m2ts -bsf:a > noise=drop='lt(pts\,1805580)' -filter_complex > "split=2[i5][i6],[i5]trim=start_frame=481:end_frame=134047,atrim=start_sample=962962:end_sample=268360092[o5],[i6]trim=start_frame=138745:end_frame=246719[o6],[o5][o6]concat=n=2," > > -c:v libx265 -x265-params crf=16 -c:a dts -strict -2 -sn > -start_at_zero e:\00305+00306+00307+00308.mp4 > ffmpeg version 2024-05-20-git-127ded5078-full_build-www.gyan.dev > Copyright (c) 2000-2024 the FFmpeg > developers > built with gcc 13.2.0 (Rev5, Built by MSYS2 project) > configuration: --enable-gpl --enable-version3 --enable-static > --disable-w32threads > --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls > --enable-libxml2 > --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib > --enable-librist > --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth > --enable-libbluray > --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption > --enable-libdav1d > --enable-libdavs2 --enable-libuavs3d --enable-libxevd --enable-libzvbi > --enable-librav1e > --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 > --enable-libxavs2 > --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl > --enable-libopenjpeg > --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r > --enable-libfreetype > --enable-libfribidi --enable-libharfbuzz --enable-liblensfun > --enable-libvidstab --enable-libvmaf > --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid > --enable-dxva2 --enable-d3d11va > --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec > --enable-nvenc --enable-vaapi > --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl > --enable-libcdio > --enable-libgme --enable-libmodplug --enable-libopenmpt > --enable-libopencore-amrwb > --enable-libmp3lame --enable-libshine --enable-libtheora > --enable-libtwolame --enable-libvo-amrwbenc > --enable-libcodec2 --enable-libilbc --enable-libgsm > --enable-libopencore-amrnb --enable-libopus > --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b > --enable-libflite > --enable-libmysofa --enable-librubberband --enable-libsoxr > --enable-chromaprint > libavutil 59. 19.100 / 59. 19.100 > libavcodec 61. 5.104 / 61. 5.104 > libavformat 61. 3.103 / 61. 3.103 > libavdevice 61. 2.100 / 61. 2.100 > libavfilter 10. 2.102 / 10. 2.102 > libswscale 8. 2.100 / 8. 2.100 > libswresample 5. 2.100 / 5. 2.100 > libpostproc 58. 2.100 / 58. 2.100 > [Parsed_trim_1 @ 0000000000620040] Media type mismatch between the > 'Parsed_trim_1' filter output pad > 0 (video) and the 'Parsed_atrim_2' filter input pad 0 (audio) > [AVFilterGraph @ 000000000061c7c0] Error linking filters > Failed to set value > > 'split=2[i5][i6],[i5]trim=start_frame=481:end_frame=134047,atrim=start_sample=962962:end_sample=268360092[o5],[i6]trim=start_frame=138745:end_frame= > 246719[o6],[o5][o6]concat=n=2,' for option 'filter_complex': Invalid > argument > Error parsing global options: Invalid argument > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".