[FFmpeg-user] [EXTERNAL] Re: attempting to extract srt from mpg

Leo Butler leo.butler81 at googlemail.com
Fri Oct 22 21:00:59 EEST 2021


"Shupert, Jim via ffmpeg-user" <ffmpeg-user at ffmpeg.org> writes:

> command-line copying 
>> seems
> to
>> have omitted stuff.
>
> If I understand correctly, your command line uses the Libavfilter input virtual device and a multimedia source.
>
> If the success of that command line depends on either, please clarify how in concept? I am unfamiliar with both and struggling to understand their contribution.
>
>
> If it helps .....
> Here is a complete and uncut
>
>
> ffmpeg -f lavfi -i 'movie=mtp_1.mpg[out0+subcc]'  -map s mtp_mpg_j.srt
> ffmpeg version N-99707-g2b702015d8 Copyright (c) 2000-2020 the FFmpeg developers
>   built with gcc 9.3-win32 (GCC) 20200320

The usual recommendation here is to install the latest version of
ffmpeg. But, see below, too.

>   configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --enable-shared --disable-static --disable-debug --enable-iconv --enable-zlib --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf --enable-vulkan --enable-libvorbis --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --enable-libglslang --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --e
>  nable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp
>   libavutil      56. 60.100 / 56. 60.100
>   libavcodec     58.111.101 / 58.111.101
>   libavformat    58. 62.100 / 58. 62.100
>   libavdevice    58. 11.102 / 58. 11.102
>   libavfilter     7. 88.100 /  7. 88.100
>   libswscale      5.  8.100 /  5.  8.100
>   libswresample   3.  8.100 /  3.  8.100
>   libpostproc    55.  8.100 / 55.  8.100
> [lavfi @ 00000214a34fddc0] No such filter: 'movie=mtp_1.mpg[out0+subcc]'
> 'movie=mtp_1.mpg[out0+subcc]': Invalid argument

Hmmm. That message looks suspicious because it should not include the
single quotes. I wonder if the issue is shell quoting? Perhaps you
should try replacing single quotes (') with double (") or none at all. I
am ignorant of 99.9% of windows-related stuff, but it looks to me like
your shell is passing the single quotes onto to ffmpeg, which is
choking.

Leo


More information about the ffmpeg-user mailing list