[FFmpeg-trac] #5673(avformat:new): Wrong creation_time
FFmpeg
trac at avcodec.org
Wed Aug 17 22:38:55 EEST 2016
#5673: Wrong creation_time
-------------------------------------+-------------------------------------
Reporter: cehoyos | Owner:
Type: defect | Status: new
Priority: important | Component: avformat
Version: git-master | Resolution:
Keywords: mov | Blocked By:
regression | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Description changed by cehoyos:
Old description:
> http://thread.gmane.org/gmane.comp.video.ffmpeg.user/63017
> Setting creation_time sets an incorrect time in mov since
> 5f64f3d8cf06631541a4abb1e9a0a4bf4b8e6e0f
> {{{
> $ ffmpeg -f s16le -i /dev/zero -t 1 -acodec copy -metadata
> "creation_time=2010-03-20 21:34:56" out.mov
> ffmpeg version N-80780-gd693392 Copyright (c) 2000-2016 the FFmpeg
> developers
> built with gcc 4.7 (SUSE Linux)
> configuration: --enable-gpl
> libavutil 55. 27.100 / 55. 27.100
> libavcodec 57. 48.101 / 57. 48.101
> libavformat 57. 40.101 / 57. 40.101
> libavdevice 57. 0.102 / 57. 0.102
> libavfilter 6. 46.102 / 6. 46.102
> libswscale 4. 1.100 / 4. 1.100
> libswresample 2. 1.100 / 2. 1.100
> libpostproc 54. 0.100 / 54. 0.100
> Guessed Channel Layout for Input Stream #0.0 : mono
> Input #0, s16le, from '/dev/zero':
> Duration: N/A, bitrate: 705 kb/s
> Stream #0:0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
> [mov @ 0x37f7dc0] Using AVStream.codec to pass codec parameters to muxers
> is deprecated, use AVStream.codecpar instead.
> Output #0, mov, to 'out.mov':
> Metadata:
> creation_time : 2010-03-20 21:34:56
> encoder : Lavf57.40.101
> Stream #0:0: Audio: pcm_s16le (sowt / 0x74776F73), 44100 Hz, mono,
> 705 kb/s
> Stream mapping:
> Stream #0:0 -> #0:0 (copy)
> Press [q] to stop, [?] for help
> size= 89kB time=00:00:01.02 bitrate= 711.0kbits/s speed=3.76e+03x
> video:0kB audio:88kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: 0.761275%
> }}}
> {{{
> $ ffmpeg -i out.mov
> ffmpeg version N-80780-gd693392 Copyright (c) 2000-2016 the FFmpeg
> developers
> built with gcc 4.7 (SUSE Linux)
> configuration: --enable-gpl
> libavutil 55. 27.100 / 55. 27.100
> libavcodec 57. 48.101 / 57. 48.101
> libavformat 57. 40.101 / 57. 40.101
> libavdevice 57. 0.102 / 57. 0.102
> libavfilter 6. 46.102 / 6. 46.102
> libswscale 4. 1.100 / 4. 1.100
> libswresample 2. 1.100 / 2. 1.100
> libpostproc 54. 0.100 / 54. 0.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mov':
> Metadata:
> major_brand : qt
> minor_version : 512
> compatible_brands: qt
> creation_time : 2010-03-20 20:34:56
> encoder : Lavf57.40.101
> Duration: 00:00:01.02, start: 0.000000, bitrate: 710 kb/s
> Stream #0:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 44100 Hz,
> mono, s16, 705 kb/s (default)
> Metadata:
> creation_time : 2010-03-20 20:34:56
> handler_name : DataHandler
> At least one output file must be specified
> }}}
> Also reproducible with other containers.
New description:
http://ffmpeg.org/pipermail/ffmpeg-user/2016-June/032575.html
Setting creation_time sets an incorrect time in mov since
5f64f3d8cf06631541a4abb1e9a0a4bf4b8e6e0f
{{{
$ ffmpeg -f s16le -i /dev/zero -t 1 -acodec copy -metadata
"creation_time=2010-03-20 21:34:56" out.mov
ffmpeg version N-80780-gd693392 Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl
libavutil 55. 27.100 / 55. 27.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 40.101 / 57. 40.101
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 46.102 / 6. 46.102
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, s16le, from '/dev/zero':
Duration: N/A, bitrate: 705 kb/s
Stream #0:0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
[mov @ 0x37f7dc0] Using AVStream.codec to pass codec parameters to muxers
is deprecated, use AVStream.codecpar instead.
Output #0, mov, to 'out.mov':
Metadata:
creation_time : 2010-03-20 21:34:56
encoder : Lavf57.40.101
Stream #0:0: Audio: pcm_s16le (sowt / 0x74776F73), 44100 Hz, mono, 705
kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size= 89kB time=00:00:01.02 bitrate= 711.0kbits/s speed=3.76e+03x
video:0kB audio:88kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.761275%
}}}
{{{
$ ffmpeg -i out.mov
ffmpeg version N-80780-gd693392 Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl
libavutil 55. 27.100 / 55. 27.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 40.101 / 57. 40.101
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 46.102 / 6. 46.102
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
creation_time : 2010-03-20 20:34:56
encoder : Lavf57.40.101
Duration: 00:00:01.02, start: 0.000000, bitrate: 710 kb/s
Stream #0:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 44100 Hz,
mono, s16, 705 kb/s (default)
Metadata:
creation_time : 2010-03-20 20:34:56
handler_name : DataHandler
At least one output file must be specified
}}}
Also reproducible with other containers.
--
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5673#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list