Changes between Initial Version and Version 1 of Ticket #403, comment 7


Ignore:
Timestamp:
Sep 3, 2012, 3:51:43 AM (8 years ago)
Author:
buhman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #403, comment 7

    initial v1  
    55When I try to encode normally, I end up with the video being twice as long as the audio (and the video is clearly half as fast as it is when played back directly by ffplay/mplayer).
    66
    7     {{{
    8     $ ffmpeg -i CAPTURE-HD-RM164_2012-08-20_13_21_28.ts -an -vcodec mpeg2video -q 0 video.mpg
    9     ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
    10       built on Jun  9 2012 13:50:13 with gcc 4.7.0 20120505 (prerelease)
    11       configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-libv4l2 --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug --disable-static
    12       libavutil      51. 54.100 / 51. 54.100
    13       libavcodec     54. 23.100 / 54. 23.100
    14       libavformat    54.  6.100 / 54.  6.100
    15       libavdevice    54.  0.100 / 54.  0.100
    16       libavfilter     2. 77.100 /  2. 77.100
    17       libswscale      2.  1.100 /  2.  1.100
    18       libswresample   0. 15.100 /  0. 15.100
    19       libpostproc    52.  0.100 / 52.  0.100
    20     [mpegts @ 0x1f98100] max_analyze_duration 5000000 reached at 5013333
    21     [mpegts @ 0x1f98100] Could not find codec parameters (Unknown: none ([6][0][0][0] / 0x0006))
    22     [NULL @ 0x1f9d220] start time is not set in estimate_timings_from_pts
    23     Input #0, mpegts, from 'CAPTURE-HD-RM164_2012-08-20_13_21_28.ts':
    24       Duration: 01:30:00.57, start: 599.983333, bitrate: 2280 kb/s
    25       Program 1
    26         Stream #0:0[0x1011]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    27         Stream #0:1[0x1012]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16, 92 kb/s
    28         Stream #0:2[0x1013]: Unknown: none ([6][0][0][0] / 0x0006)
    29     [buffer @ 0x1f9ee60] w:1280 h:720 pixfmt:yuv420p tb:1/90000 sar:1/1 sws_param:flags=2
    30     [buffersink @ 0x1f9f3a0] No opaque field provided
    31     [mpeg @ 0x1f9dcc0] VBV buffer size not set, muxing may fail
    32     Output #0, mpeg, to 'video.mpg':
    33       Metadata:
    34         encoder         : Lavf54.6.100
    35         Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
    36     Stream mapping:
    37       Stream #0:0 -> #0:0 (h264 -> mpeg2video)
    38     Press [q] to stop, [?] for help
    39     frame=341675 fps=225 q=0.0 Lsize= 5726054kB time=03:10:00.52 bitrate=4114.5kbits/s dup=179827 drop=0   
    40     video:5699735kB audio:0kB global headers:0kB muxing overhead 0.461751%
    41     $ ffmpeg -i CAPTURE-HD-RM164_2012-08-20_13_21_28.ts -vn -acodec pcm_s16le -q 0 audio.wav
    42     ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
    43       built on Jun  9 2012 13:50:13 with gcc 4.7.0 20120505 (prerelease)
    44       configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-libv4l2 --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug --disable-static
    45       libavutil      51. 54.100 / 51. 54.100
    46       libavcodec     54. 23.100 / 54. 23.100
    47       libavformat    54.  6.100 / 54.  6.100
    48       libavdevice    54.  0.100 / 54.  0.100
    49       libavfilter     2. 77.100 /  2. 77.100
    50       libswscale      2.  1.100 /  2.  1.100
    51       libswresample   0. 15.100 /  0. 15.100
    52       libpostproc    52.  0.100 / 52.  0.100
    53     [mpegts @ 0xa28100] max_analyze_duration 5000000 reached at 5013333
    54     [mpegts @ 0xa28100] Could not find codec parameters (Unknown: none ([6][0][0][0] / 0x0006))
    55     [NULL @ 0xa2d220] start time is not set in estimate_timings_from_pts
    56     Input #0, mpegts, from 'CAPTURE-HD-RM164_2012-08-20_13_21_28.ts':
    57       Duration: 01:30:00.57, start: 599.983333, bitrate: 2280 kb/s
    58       Program 1
    59         Stream #0:0[0x1011]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    60         Stream #0:1[0x1012]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16, 92 kb/s
    61         Stream #0:2[0x1013]: Unknown: none ([6][0][0][0] / 0x0006)
    62     Output #0, wav, to 'audio.wav':
    63       Metadata:
    64         encoder         : Lavf54.6.100
    65         Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
    66     Stream mapping:
    67       Stream #0:1 -> #0:0 (aac -> pcm_s16le)
    68     Press [q] to stop, [?] for help
    69     size= 1012612kB time=01:30:00.59 bitrate=1536.0kbits/s   
    70     video:0kB audio:1012612kB global headers:0kB muxing overhead 0.000004%
    71     }}}
     7
     8{{{
     9$ ffmpeg -i CAPTURE-HD-RM164_2012-08-20_13_21_28.ts -an -vcodec mpeg2video -q 0 video.mpg
     10ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
     11  built on Jun  9 2012 13:50:13 with gcc 4.7.0 20120505 (prerelease)
     12  configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-libv4l2 --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug --disable-static
     13  libavutil      51. 54.100 / 51. 54.100
     14  libavcodec     54. 23.100 / 54. 23.100
     15  libavformat    54.  6.100 / 54.  6.100
     16  libavdevice    54.  0.100 / 54.  0.100
     17  libavfilter     2. 77.100 /  2. 77.100
     18  libswscale      2.  1.100 /  2.  1.100
     19  libswresample   0. 15.100 /  0. 15.100
     20  libpostproc    52.  0.100 / 52.  0.100
     21[mpegts @ 0x1f98100] max_analyze_duration 5000000 reached at 5013333
     22[mpegts @ 0x1f98100] Could not find codec parameters (Unknown: none ([6][0][0][0] / 0x0006))
     23[NULL @ 0x1f9d220] start time is not set in estimate_timings_from_pts
     24Input #0, mpegts, from 'CAPTURE-HD-RM164_2012-08-20_13_21_28.ts':
     25  Duration: 01:30:00.57, start: 599.983333, bitrate: 2280 kb/s
     26  Program 1
     27    Stream #0:0[0x1011]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
     28    Stream #0:1[0x1012]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16, 92 kb/s
     29    Stream #0:2[0x1013]: Unknown: none ([6][0][0][0] / 0x0006)
     30[buffer @ 0x1f9ee60] w:1280 h:720 pixfmt:yuv420p tb:1/90000 sar:1/1 sws_param:flags=2
     31[buffersink @ 0x1f9f3a0] No opaque field provided
     32[mpeg @ 0x1f9dcc0] VBV buffer size not set, muxing may fail
     33Output #0, mpeg, to 'video.mpg':
     34  Metadata:
     35    encoder         : Lavf54.6.100
     36    Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
     37Stream mapping:
     38  Stream #0:0 -> #0:0 (h264 -> mpeg2video)
     39Press [q] to stop, [?] for help
     40frame=341675 fps=225 q=0.0 Lsize= 5726054kB time=03:10:00.52 bitrate=4114.5kbits/s dup=179827 drop=0   
     41video:5699735kB audio:0kB global headers:0kB muxing overhead 0.461751%
     42$ ffmpeg -i CAPTURE-HD-RM164_2012-08-20_13_21_28.ts -vn -acodec pcm_s16le -q 0 audio.wav
     43ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
     44  built on Jun  9 2012 13:50:13 with gcc 4.7.0 20120505 (prerelease)
     45  configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-libv4l2 --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug --disable-static
     46  libavutil      51. 54.100 / 51. 54.100
     47  libavcodec     54. 23.100 / 54. 23.100
     48  libavformat    54.  6.100 / 54.  6.100
     49  libavdevice    54.  0.100 / 54.  0.100
     50  libavfilter     2. 77.100 /  2. 77.100
     51  libswscale      2.  1.100 /  2.  1.100
     52  libswresample   0. 15.100 /  0. 15.100
     53  libpostproc    52.  0.100 / 52.  0.100
     54[mpegts @ 0xa28100] max_analyze_duration 5000000 reached at 5013333
     55[mpegts @ 0xa28100] Could not find codec parameters (Unknown: none ([6][0][0][0] / 0x0006))
     56[NULL @ 0xa2d220] start time is not set in estimate_timings_from_pts
     57Input #0, mpegts, from 'CAPTURE-HD-RM164_2012-08-20_13_21_28.ts':
     58  Duration: 01:30:00.57, start: 599.983333, bitrate: 2280 kb/s
     59  Program 1
     60    Stream #0:0[0x1011]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
     61    Stream #0:1[0x1012]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16, 92 kb/s
     62    Stream #0:2[0x1013]: Unknown: none ([6][0][0][0] / 0x0006)
     63Output #0, wav, to 'audio.wav':
     64  Metadata:
     65    encoder         : Lavf54.6.100
     66    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
     67Stream mapping:
     68  Stream #0:1 -> #0:0 (aac -> pcm_s16le)
     69Press [q] to stop, [?] for help
     70size= 1012612kB time=01:30:00.59 bitrate=1536.0kbits/s   
     71video:0kB audio:1012612kB global headers:0kB muxing overhead 0.000004%
     72}}}
     73
     74When I try to modify the input framerate:
     75
     76{{{
     77$ ffmpeg -r 59.94 -i CAPTURE-HD-RM164_2012-08-20_13_21_28.ts foo.mpg
     78ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
     79  built on Jun  9 2012 13:50:13 with gcc 4.7.0 20120505 (prerelease)
     80  configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-libv4l2 --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug --disable-static
     81  libavutil      51. 54.100 / 51. 54.100
     82  libavcodec     54. 23.100 / 54. 23.100
     83  libavformat    54.  6.100 / 54.  6.100
     84  libavdevice    54.  0.100 / 54.  0.100
     85  libavfilter     2. 77.100 /  2. 77.100
     86  libswscale      2.  1.100 /  2.  1.100
     87  libswresample   0. 15.100 /  0. 15.100
     88  libpostproc    52.  0.100 / 52.  0.100
     89Option framerate not found.
     90}}}