[FFmpeg-user] Can ffmpeg transcode from mp4(h264/aac) to tsparallel
Tony Song
ssaoying at gmail.com
Wed Sep 26 15:12:36 CEST 2012
I agree it using setpts to change the start time of ts file .
But it seems the setpts does not work fine.
ffmpeg -i /data/a.ts -ss 00:00:10.00 -t 00:00:10.00 -vf setpts=10+PTS -c
copy -f mpegts /data/b.ts
and the copyts option
ffmpeg -i /data/a.ts -ss 00:00:10.00 -t 00:00:10.00 -copyts -c copy -f
mpegts /data/b.ts
Nothing has changed with both of the above command line.
And it seems the copyts option does not change the pts of TP packet.
On Wed, Sep 26, 2012 at 5:47 PM, Steven Liu <lingjiujianke at gmail.com> wrote:
> Hi Roger Pack and Tony
>
> I've tried the setpts, but the start time is always wrong.
>
> command line :
> ffmpeg -ss 00:00:17.00 -t 00:00:34.00 -copyts -y -i Hotcha.mkv
> -strict -2 -stats -vcodec libx264 -time_base 17 -preset ultrafast
> -b:v 2000k -r 15 -acodec aac -ar 41000 -ab 128k -s 480x320 -f mpegts
> -vsync 1 -vf setpts=17.00+PTS -af asetpts=17.00+PTS -debug_ts -intra
> -g 1 b2.ts
>
> Input #0, mpegts, from 'b2.ts':
> Duration: 00:00:33.93, start: 1.400000, bitrate: 2102 kb/s
> Program 1
> Metadata:
> service_name : Service01
> service_provider: FFmpeg
> Stream #0:0[0x100]: Video: h264 (Constrained Baseline)
> ([27][0][0][0] / 0x001B), yuv420p, 480x320 [SAR 32:27 DAR 16:9], 15
> fps, 15 tbr, 90k tbn, 30 tbc
> Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 0 channels,
> s16
>
>
> Is there have some parameter wrong?
>
> 2012/9/26 Roger Pack <rogerdpack2 at gmail.com>:
> >> but i want the start time of ts file is the time of -ss,
> >> like this:
> >>
> >> Input #0, mpegts, from '/data/m3u8/ipad0_0.ts':
> >> Duration: 00:00:10.00, start: 10.000000, bitrate: 571 kb/s
> >
> > I presume you want to specify that the PTS times within the TS file
> > start at "10.0"?
> >
> > I believe there is a SETPTS filter that might help.
> > -r
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
--
laugh out loud.
More information about the ffmpeg-user
mailing list