Opened 13 years ago

Last modified 10 years ago

#974 reopened enhancement

genpts not enabled automatically when remuxing from VOB to MOV

Reported by: dave rice Owned by:
Priority: minor Component: undetermined
Version: git-master Keywords:
Cc: peter@cordes.ca Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I'm trying to copy an mpeg2video stream from a VOB file into a QuickTime container. I'm using

ffmpeg -i VTS_01_1.VOB -vcodec copy -an VTS.mov

As the process runs I get many "[mov @ 0x7fa18d005800] pts has no value" messages. Then the resulting QuickTime file has playback issue where the frames are presented out of order making the moving image appear to stutter and jerk. Any advice on getting a proper playback. For this process I need to use QuickTime as my target container. Also I'm using copy because the source mpeg2 contains captioning data that I need to have represented in the output file.

ffmpeg -i VTS_01_1.VOB -vcodec copy -an VTS.mov
ffmpeg version N-33159-gf247f4c Copyright (c) 2000-2012 the FFmpeg developers
 built on Jan  9 2012 10:20:06 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
 configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid
 libavutil      51. 34.100 / 51. 34.100
 libavcodec     53. 54.100 / 53. 54.100
 libavformat    53. 29.100 / 53. 29.100
 libavdevice    53.  4.100 / 53.  4.100
 libavfilter     2. 58.100 /  2. 58.100
 libswscale      2.  1.100 /  2.  1.100
 libswresample   0.  6.100 /  0.  6.100
 libpostproc    51.  2.100 / 51.  2.100
[mpeg @ 0x7fa18c03d800] max_analyze_duration 5000000 reached at 5005000
Input #0, mpeg, from 'VTS_01_1.VOB':
 Duration: 26:30:43.71, start: 0.280633, bitrate: 78 kb/s
   Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 8503 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
   Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Output #0, mov, to 'VTS.mov':
 Metadata:
   encoder         : Lavf53.29.100
   Stream #0:0: Video: mpeg2video (m2v1 / 0x3176326D), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 8503 kb/s, 29.97 fps, 90k tbn, 90k tbc
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 271 times
pts has no value  0 q=-1.0 size=   15698kB time=00:00:31.43 bitrate=4091.4kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 333 times
pts has no value1899 q=-1.0 size=   37646kB time=00:01:13.27 bitrate=4208.9kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 470 times
pts has no value2392 q=-1.0 size=   68639kB time=00:02:12.26 bitrate=4251.2kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 387 times
pts has no value2506 q=-1.0 size=   94258kB time=00:03:01.04 bitrate=4265.0kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 387 times
pts has no value2555 q=-1.0 size=  119833kB time=00:03:49.76 bitrate=4272.6kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 308 times
pts has no value2404 q=-1.0 size=  140303kB time=00:04:28.73 bitrate=4276.9kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 341 times
pts has no value2385 q=-1.0 size=  162852kB time=00:05:11.71 bitrate=4279.9kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 404 times
pts has no value2441 q=-1.0 size=  189467kB time=00:06:02.32 bitrate=4283.7kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 279 times
pts has no value2387 q=-1.0 size=  207891kB time=00:06:37.46 bitrate=4284.8kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 342 times
pts has no value2372 q=-1.0 size=  230444kB time=00:07:20.40 bitrate=4286.5kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 293 times
pts has no value2357 q=-1.0 size=  249896kB time=00:07:57.44 bitrate=4287.7kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 267 times
pts has no value2327 q=-1.0 size=  267545kB time=00:08:31.04 bitrate=4288.7kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 329 times
pts has no value2334 q=-1.0 size=  289234kB time=00:09:12.38 bitrate=4289.4kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 366 times
pts has no value2348 q=-1.0 size=  313369kB time=00:09:58.36 bitrate=4290.2kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 326 times
pts has no value2340 q=-1.0 size=  334955kB time=00:10:39.43 bitrate=4291.2kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 324 times
pts has no value2342 q=-1.0 size=  356384kB time=00:11:20.27 bitrate=4291.6kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 258 times
pts has no value2300 q=-1.0 size=  373513kB time=00:11:52.84 bitrate=4292.4kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 97 times
pts has no value2219 q=-1.0 size=  380052kB time=00:12:05.32 bitrate=4292.4kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 106 times
pts has no value2135 q=-1.0 size=  387113kB time=00:12:18.77 bitrate=4292.6kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 293 times
pts has no value2139 q=-1.0 size=  406507kB time=00:12:55.74 bitrate=4292.8kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 374 times
pts has no value2161 q=-1.0 size=  431143kB time=00:13:42.65 bitrate=4293.3kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 620 times
pts has no value2266 q=-1.0 size=  472102kB time=00:15:00.59 bitrate=4294.3kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 606 times
pts has no value2358 q=-1.0 size=  512026kB time=00:16:16.64 bitrate=4294.8kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 527 times
pts has no value2418 q=-1.0 size=  546823kB time=00:17:22.90 bitrate=4295.3kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 591 times
pts has no value2493 q=-1.0 size=  585739kB time=00:18:37.04 bitrate=4295.6kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 637 times
pts has no value2574 q=-1.0 size=  627748kB time=00:19:57.02 bitrate=4296.1kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 627 times
pts has no value2648 q=-1.0 size=  669075kB time=00:21:15.70 bitrate=4296.5kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 632 times
pts has no value2719 q=-1.0 size=  710736kB time=00:22:35.08 bitrate=4296.7kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 605 times
pts has no value2777 q=-1.0 size=  750621kB time=00:23:51.02 bitrate=4297.0kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 606 times
pts has no value2832 q=-1.0 size=  790562kB time=00:25:07.10 bitrate=4297.2kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 605 times
pts has no value2883 q=-1.0 size=  830479kB time=00:26:23.14 bitrate=4297.3kbits/s    
[mov @ 0x7fa18d005800] pts has no value
   Last message repeated 584 times
frame=49520 fps=2936 q=-1.0 Lsize=  861587kB time=00:27:32.25 bitrate=4271.8kbits/s    
video:861328kB audio:0kB global headers:0kB muxing overhead 0.030140%

Attachments (2)

MPEG2.VOB (2.2 MB ) - added by dave rice 13 years ago.
source file (copied from source with -ss 123 -t 4 ... -map 0 -c copy)
MPEG2.mov (2.2 MB ) - added by dave rice 13 years ago.
the output with playback issues

Change History (9)

by dave rice, 13 years ago

Attachment: MPEG2.VOB added

source file (copied from source with -ss 123 -t 4 ... -map 0 -c copy)

by dave rice, 13 years ago

Attachment: MPEG2.mov added

the output with playback issues

comment:1 by dave rice, 13 years ago

Here is the ffmpeg output from the sample attached:

ffmpeg started on 2012-02-03 at 10:11:14
Report written to "ffmpeg-20120203-101114.log"
Command line:
ffmpeg -report -i MPEG2.VOB -c:v copy -n:a MPEG2.mov
ffmpeg version N-34051-gaf0f8c0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb  2 2012 13:51:38 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libfreetype --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass
  libavutil      51. 37.100 / 51. 37.100
  libavcodec     54.  0.102 / 54.  0.102
  libavformat    54.  0.100 / 54.  0.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg @ 0x7fd70904b400] Format mpeg probed with size=8192 and score=52
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2500
[mpeg @ 0x7fd70904b400] Probe with size=2011, packets=1 detected mpegvideo with score=25
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2499
[mpeg @ 0x7fd70904b400] Probe with size=4035, packets=2 detected mpegvideo with score=25
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2498
[mpeg @ 0x7fd70904b400] Probe with size=6059, packets=3 detected mpegvideo with score=25
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2497
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2496
[mpeg @ 0x7fd70904b400] Probe with size=10107, packets=5 detected mpegvideo with score=25
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2495
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2494
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2493
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2492
[mpeg @ 0x7fd70904b400] Probe with size=18203, packets=9 detected mpegvideo with score=25
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2491
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2490
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2489
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2488
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2487
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2486
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2485
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2484
[mpeg @ 0x7fd70904b400] Probe with size=34395, packets=17 detected mpegvideo with score=25
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2483
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2482
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2481
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2480
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2479
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2478
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2477
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2476
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2475
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2474
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2473
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2472
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2471
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2470
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2469
[mpeg @ 0x7fd70904b400] probing stream 0 pp:2468
[mpeg @ 0x7fd70904b400] Probe with size=66774, packets=33 detected mpegvideo with score=51
[mpeg @ 0x7fd70904b400] probed stream 0
[ac3 @ 0x7fd709055000] Unsupported bit depth: 0
[mpeg2video @ 0x7fd709053a00] Unsupported bit depth: 0
Input #0, mpeg, from 'MPEG2.VOB':
  Duration: 00:00:04.18, start: 0.872000, bitrate: 4494 kb/s
    Stream #0:0[0x1e0], 122, 1/90000: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 8503 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80], 129, 1/90000: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
[ac3 @ 0x7fd709055000] Unsupported bit depth: 0
Output #0, mov, to 'MPEG2.mov':
  Metadata:
    encoder         : Lavf54.0.100
    Stream #0:0, 0, 1/90000: Video: mpeg2video (m2v1 / 0x3176326D), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 8503 kb/s, 29.97 fps, 90k tbn, 90k tbc
    Stream #0:1, 0, 1/48000: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (ac3 -> libfaac)
Press [q] to stop, [?] for help
[ac3 @ 0x7fd709055000] frame sync error
Error while decoding stream #0:1
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
[mov @ 0x7fd709054000] pts has no value
frame=  122 fps=  0 q=-1.0 Lsize=    2239kB time=00:00:04.11 bitrate=4454.7kbits/s    
video:2169kB audio:65kB global headers:0kB muxing overhead 0.225001%

comment:2 by dave rice, 13 years ago

The playback issue seems similar to what was reported in http://ffmpeg.org/trac/ffmpeg/ticket/502.

comment:3 by Michael Niedermayer, 12 years ago

Resolution: invalid
Status: newclosed

you need -fflags +genpts before the input file.
I havnt tried playing the result in QT but in ffplay it looked ok
If it doesnt work in QT please reopen the ticket

comment:4 by Peter Cordes, 10 years ago

Is there any way +genpts could be enabled by default when it's needed? Maybe with message about it at the default loglevel.

IDK if there's ever a downside to using it that would make it dangerous to enable automatically.

Users do run into this problem and then need to find this; see http://video.stackexchange.com/questions/14747/how-to-do-mpeg-mpg-to-mov-lossless-convertion for example.

comment:5 by Peter Cordes, 10 years ago

Cc: peter@cordes.ca added
Priority: normalminor
Resolution: invalid
Status: closedreopened
Summary: pts issues when copying mpeg2video from VOB to QuickTimegenpts not enabled automatically when remuxing from VOB to MOV
Type: defectenhancement

comment:6 by David Favor, 10 years ago

Adding -fflags +genpts in front of -i infile seems to have no effect. Same global container diagnostics generated...

[mp4 @ 0x7f816d81dc00] Codec for stream 0 does not use global headers but container format requires global headers
[mp4 @ 0x7f816d81dc00] Codec for stream 1 does not use global headers but container format requires global headers
[mp4 @ 0x7f816d81dc00] track 1: codec frame size is not set

Same messages with or without +genpts.

Also container is munged either way.

Example of full run.

imac> ffmpeg -fflags +genpts -i clip.mts -c:v copy -c:a copy clip.mp4
ffmpeg version 2.6.2-2015-04-14-71443-g4ba662b Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
  configuration: --cc=/usr/bin/clang --prefix=/david-favor/osx-10.9.5 --mandir=/david-favor/osx-10.9.5/share/man --enable-gpl --enable-yasm --arch=x86_64 --enable-version3 --enable-pthreads --enable-shared --disable-static --disable-debug --extra-cflags='-pipe -I/david-favor/osx-10.9.5/include -I/opt/local/include -I/usr/local/include -I/usr/include' --extra-ldflags='-Wl,-rpath,/david-favor/osx-10.9.5/lib -Wl,-rpath,/opt/local/lib -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/lib -L/david-favor/osx-10.9.5/lib -L/opt/local/lib -L/usr/local/lib -L/usr/lib' --enable-ffplay --enable-ffprobe --enable-ffserver --enable-indev=qtkit --enable-indev=avfoundation --enable-runtime-cpudetect --enable-nonfree --enable-zlib --enable-bzlib --enable-openssl --enable-gnutls --enable-swscale --enable-avfilter --enable-avresample --enable-postproc --enable-vda --enable-libfribidi --enable-libmp3lame --enable-libfaac --enable-libfdk_aac --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libopus --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libbluray --enable-libx264 --enable-libx265 --enable-postproc --enable-frei0r --enable-libopencv --enable-libopencore-amrnb --enable-fontconfig --enable-libfreetype --enable-libmodplug --enable-libass
  libavutil      54. 22.101 / 54. 22.101
  libavcodec     56. 34.100 / 56. 34.100
  libavformat    56. 30.100 / 56. 30.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 14.100 /  5. 14.100
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpegts, from 'clip.mts':
  Duration: 00:01:00.03, start: 1.433367, bitrate: 24821 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 256 kb/s
File 'clip.mp4' already exists. Overwrite ? [y/N] y
[mp4 @ 0x7f983382a400] Codec for stream 0 does not use global headers but container format requires global headers
[mp4 @ 0x7f983382a400] Codec for stream 1 does not use global headers but container format requires global headers
[mp4 @ 0x7f983382a400] track 1: codec frame size is not set
Output #0, mp4, to 'clip.mp4':
  Metadata:
    encoder         : Lavf56.30.100
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x7f983382a400] pts has no value
    Last message repeated 427 times
[mp4 @ 0x7f983382a400] pts has no value9kB time=00:00:14.27 bitrate=22970.8kbits/s    
    Last message repeated 327 times
[mp4 @ 0x7f983382a400] pts has no value72kB time=00:00:25.21 bitrate=22959.6kbits/s    
    Last message repeated 317 times
[mp4 @ 0x7f983382a400] pts has no value59kB time=00:00:35.84 bitrate=22962.1kbits/s    
    Last message repeated 316 times
[mp4 @ 0x7f983382a400] pts has no value67kB time=00:00:46.40 bitrate=22963.6kbits/s    
    Last message repeated 317 times
[mp4 @ 0x7f983382a400] pts has no value73kB time=00:00:57.02 bitrate=22952.8kbits/s    
    Last message repeated 88 times
[mp4 @ 0x7f983382a400] pts has no value
frame= 3599 fps=1336 q=-1.0 Lsize=  168254kB time=00:01:00.00 bitrate=22972.3kbits/s    
video:166308kB audio:1875kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.042559%
imac> avinfo clip.*
clip.mp4
   length: 00:01:00.04, start: 0.000000, bitrate: 22955 kb/s
   stream: #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 22690 kb/s, 59.94 fps, 59.94 tbr, 90k tbn, 59.94 tbc (default)
   stream: #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 256 kb/s (default)
clip.mts
   length: 00:01:00.03, start: 1.433367, bitrate: 24821 kb/s
   stream: #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
   stream: #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 256 kb/s

Notice fps + tbr are different between source + target footage, which creates smooth playback with -c:a copy + jittery playback anytime audio is transcoded.

in reply to:  6 comment:7 by Carl Eugen Hoyos, 10 years ago

Replying to dfavor:

Adding -fflags +genpts in front of -i infile seems to have no effect.

This is not true for the sample attached to this ticket.
(The ticket does in no way claim that the option has an effect for every possible input file.)

Note: See TracTickets for help on using tickets.