[FFmpeg-devel] ffmpeg transcode from mkv to ts in parallel mode problem

Steven Liu lingjiujianke at gmail.com
Wed Oct 10 04:12:24 CEST 2012


Hi Andrey,

            I have tried the -copyts and -mpegts_copyts option before
i send new mail here.
            But I'm not sure that is a bug or need send a new feature here.
            Perhaps i can get help this list.

            maybe some operation have modify the pts, e.g.
transcode_init avformat_write_header?

2012/10/9 Andrey Utkin <andrey.krieger.utkin at gmail.com>:
> 2012/10/9 Steven Liu <lingjiujianke at gmail.com>:
>> Hi All,
>>
>>          My testing environment is bellow:
>>
>>          host1: 192.168.0.101
>>          host2: 192.168.0.102
>>
>>          host1 transcode test.mkv from 00:00:00.00 to 00:00:10.00
>>          host2 transcode test.mkv from 00:00:10.00 to 00:00:00.00
>>
>>          I have try use command on host2  bellow:
>>            ffmpeg -v debug -y -i kaka.mkv -strict -2 -ss 00:00:10.00
>> -t 00:00:10.00 -vcodec copy -acodec aac  -v debug -vf setpts=PTS+10/TS
>> -af asetpts=PTS+10/TS -f mpegts  -bsf h264_mp4toannexb b.ts
>>
>>          When i use ffmpeg -i to see the info ,it's wrong, always from
>> 0s, message bellow:
>>
>>         ffmpeg version N-45185-gb49d94e Copyright (c) 2000-2012 the
>> FFmpeg developers
>>   built on Oct  9 2012 21:18:01 with gcc 4.4.5 (GCC) 20110214 (Red Hat 4.4.5-6)
>>   configuration: --enable-libx264 --enable-gpl --disable-yasm
>> --libdir=/usr/local/lib --enable-debug --enable-debug=3
>> --enable-avfilter
>>   libavutil      51. 74.100 / 51. 74.100
>>   libavcodec     54. 65.100 / 54. 65.100
>>   libavformat    54. 30.100 / 54. 30.100
>>   libavdevice    54.  3.100 / 54.  3.100
>>   libavfilter     3. 19.102 /  3. 19.102
>>   libswscale      2.  1.101 /  2.  1.101
>>   libswresample   0. 16.100 /  0. 16.100
>>   libpostproc    52.  1.100 / 52.  1.100
>> Input #0, mpegts, from 'b.ts':
>>   Duration: 00:00:10.14, start: 1.399878, bitrate: 14175 kb/s
>>   Program 1
>>     Metadata:
>>       service_name    : Service01
>>       service_provider: FFmpeg
>>     Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
>> yuv420p, 1920x796, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
>>     Stream #0:1[0x101](eng): Audio: aac ([15][0][0][0] / 0x000F),
>> 48000 Hz, 5.1, s16, 79 kb/s
>>
>>
>>
>>
>> perhaps the PTS or PCR is wrong, but how to modify the PTS or PCR
>>
>>
>> I Just want to try the function look like -f segment  parallel on
>> different computer
>
> Wrong maillist, this should be discussed in ffmpeg-user.
>
> As a suggestion, try options -copyts and -mpegts_copyts
> But actually i am not always able to preserve timestamps offset i want
> to, with ffmpeg utility... If you have no success, try making up
> simple application linked with libavformat. You can discuss it in
> libav-user maillist.
>
> --
> Andrey Utkin
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


More information about the ffmpeg-devel mailing list