我希望通过在不丢失质量的情况下指定其PID并在结果文件中使用相同的编解码器(输出文件是MPEG)来提取传输流文件(.ts)中某个程序的音频和视频.
这对FFmpeg 来说甚至可能吗?如果是这样,我该怎么办?
到目前为止,我已经来到这个命令:
ffmpeg -i tsfile.ts -vcodec copy -acodec copy -q:v 1 output.mpg
Run Code Online (Sandbox Code Playgroud)
编辑:请注意,文件output.mpg已创建.该文件包含视频,但未附加音频(没有声音).此外,我无法指定要提取的程序PID.
编辑2:这是ffmpeg -i tsfile.ts的输出
ffmpeg version N-47062-g26c531c Copyright (c) 2000-2012 the FFmpeg developers
built on Nov 25 2012 12:21:26 with gcc 4.7.2 (GCC)
libavutil 52. 9.100 / 52. 9.100
libavcodec 54. 77.100 / 54. 77.100
libavformat 54. 37.100 / 54. 37.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 23.102 / 3. 23.102
libswscale 2. 1.102 …Run Code Online (Sandbox Code Playgroud) 如何编写一个代码段来评估泛型并相应地创建(或不创建)属性?
例子 :
if G_MY_GENERIC then
attribute my_attribute_typ : string;
attribute my_attribute_typ of signal_having_an_attr : signal is "value";
else
--nothing is created
end if;
Run Code Online (Sandbox Code Playgroud)