ffmpeg demux into audio and video resets PTS
|Reported by:||Mukund Manikarnike||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
I am demuxing TS segments into audio and video as follows.
ffmpeg -y -i input.ts -vcodec copy -an output_video.ts
ffmpeg -y -i input.ts -acodec copy -vn output_audio.aac
input.ts are as shown below. I was able to inspect these values using
ffprobe -show_streams -print_format json input.ts
Inspecting output video
The output .ts has some default
start_time values as shown below. These were also obtained using the same
ffprobe command as indicated above.
Inspecting output audio
ffprobe command on
output_audio.aac shows that the output aac has invalid
codec_tag_string as shown below. The
start_time are not present in the
"codec_tag_string": "", (should have been )
"codec_tag": "0x0000", (should have been 0xf000)
- Wondering if this difference in the
- If it is expected, what can I do to ensure that the all of these parameters get retained on the output?
- If it is not expected, is there some more information I can share to track this down?
There were other outputs that I found inconsistent in the
ffprobe command for the
duration etc.. I shared what I thought are most valuable at this point. If required I can share complete outputs from all of the above executions.
ffmpeg version used: