

Also, I am unable to specify the program PID to extract.Įdit 2: Here's the output of ffmpeg -i tsfile.ts ffmpeg version N-47062-g26c531c Copyright (c) 2000-2012 the FFmpeg developers The file contains the video but the audio isn't attached (no sound).

So far, I've come to this command: ffmpeg -i tsfile.ts -vcodec copy -acodec copy -q:v 1 output.mpgĮdit: Note that the file output.mpg is created. Is that even possible with FFmpeg? If so, how can I do it? I wish to extract the audio and video of a certain program in a transport stream file (.ts) by specifying its PID without losing quality and using the same codec in the resulting file (the output file is a MPEG).
