[FFmpeg-user] ffmpeg demux into audio and video resets start_pts and start_time

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Jul 30 23:31:27 EEST 2018

2018-07-30 20:10 GMT+02:00 Mukund Manikarnike <mukunm at gmail.com>:

> ffmpeg -y -i input.ts -acodec copy -vn output_audio.aac


> *Inspecting output audio*
> The same `ffprobe` command on `output_audio.aac` shows that the output aac
> has invalid `codec_tag` and `codec_tag_string` as shown below. The
> `start_pts` and `start_time` are not present in the `output_audio.aac`.

The "aac" (adts) container doesn't know about codec_tags, so the codec
tag will always get lost on stream copying to this formats.

Regarding the starting time stamp you may be searching for "-copyts".

Carl Eugen

More information about the ffmpeg-user mailing list