Ticket #974 (closed defect: invalid)

Opened 16 months ago

Last modified 9 months ago

pts issues when copying mpeg2video from VOB to QuickTime

Reported by: dericed Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: 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

MPEG2.VOB Download (2.2 MB) - added by dericed 16 months ago.
source file (copied from source with -ss 123 -t 4 ... -map 0 -c copy)
MPEG2.mov Download (2.2 MB) - added by dericed 16 months ago.
the output with playback issues

Change History

Changed 16 months ago by dericed

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

Changed 16 months ago by dericed

the output with playback issues

comment:1 Changed 16 months ago by dericed

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 Changed 16 months ago by dericed

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

comment:3 Changed 9 months ago by michael

  • Status changed from new to closed
  • Resolution set to invalid

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

Note: See TracTickets for help on using tickets.