[FFmpeg-user] Need to convert .m4e to .ts

Jason Reeves jhr at unitedentropy.com
Thu Aug 18 20:16:16 EEST 2016


Hello,

I hope the folks on this list can help.

I have this file that I need to convert into an mpeg transport stream --

$ avprobe video-MP4V-ES-1-00000-00060.m4e
avprobe version 9.18-6:9.18-0ubuntu0.14.04.1+fdkaac, Copyright (c)
2007-2014 the Libav developers
  built on Apr 10 2015 23:18:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[m4v @ 0x790200] max_analyze_duration reached
[m4v @ 0x790200] Estimating duration from bitrate, this may be inaccurate
Input #0, m4v, from 'video-MP4V-ES-1-00000-00060.m4e':
  Duration: N/A, bitrate: N/A
    Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 640x480
[PAR 1:1 DAR 4:3], 25 fps, 25 tbr, 25 tbn, 1k tbc
# avprobe output

I have tried the following:

$ ffmpeg -i video-MP4V-ES-1-00000-00060.m4e -codec copy -f mpegts video.ts
$ ffmpeg -i video-MP4V-ES-1-00000-00060.m4e -copyts -f mpegts video.ts
$ ffmpeg -i video-MP4V-ES-1-00000-00060.m4e -vcodec copy -acodec copy -f
mpegts video.ts
$ ffmpeg -i video-MP4V-ES-1-00000-00060.m4e  -f mpegts video.ts

All of these produce a TS file, and all of these play in VLC to some
extent, but the timestamps are messed up and trick play functionality is
broken as a result.

Can you guys tell me what I'm doing wrong?  Thanks!

--Jason


More information about the ffmpeg-user mailing list