New submission from Lou <[email protected]>:
lavf: use a new ffio_wfourcc macro instead of put_tag() where possible
commit 324429309ee3090b4a08b04ab50be76751a16dbd
$ ffmpeg -loglevel 99 -v 9 -i ~/vbox/IronMan.mkv -vcodec copy -acodec copy \
-metadata title="title" -metadata author="author" -metadata \
comment="comment" -metadata date="2001" -y out2.mp4
FFmpeg version git-N-27785-g3244293, Copyright (c) 2000-2011 the FFmpeg
developers
built on Mar 3 2011 15:53:53 with gcc 4.4.5
configuration: --enable-gpl
libavutil 50. 39. 0 / 50. 39. 0
libavcodec 52.113. 1 / 52.113. 1
libavformat 52.102. 0 / 52.102. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1. 76. 0 / 1. 76. 0
libswscale 0. 12. 0 / 0. 12. 0
[NULL @ 0x294d690] Probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
[h264 @ 0x2951490] no picture
Last message repeated 1 times
[matroska,webm @ 0x294d690] All info found
[matroska,webm @ 0x294d690] Estimating duration from bitrate, this may be
inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 47.95
(10000000/208541) -> 24.00 (24/1)
Input #0, matroska,webm, from '/home/lou/vbox/IronMan.mkv':
Duration: 00:01:48.50, start: 0.000000, bitrate: N/A
Stream #0.0, 23, 1/1000: Video: h264 (High), yuv420p, 1280x720,
208541/10000000, PAR 115:87 DAR 1840:783, 23.98 fps, 24 tbr, 1k tbn, 47.95 tbc
(default)
Stream #0.1, 48, 1/1000: Audio: aac, 48000 Hz, stereo, s16 (default)
Output #0, mp4, to 'out2.mp4':
Metadata:
title : title
author : author
comment : comment
date : 2001
encoder : Lavf52.102.0
Stream #0.0, 0, 1/5000000: Video: ![0][0][0] / 0x0021, yuv420p, 1280x720
[PAR 115:87 DAR 1840:783], 208541/5000000, q=2-31, 5000k tbn, 23.98 tbc
(default)
Stream #0.1, 0, 1/48000: Audio: aac, 48000 Hz, stereo (default)
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 2600 fps= 0 q=-1.0 Lsize= 54894kB time=108.36 bitrate=4150.0kbits/s
video:53138kB audio:1654kB global headers:0kB muxing overhead 0.187934%
------------------------------------
$ ffmpeg -i out2.mp4
FFmpeg version git-N-27785-g3244293, Copyright (c) 2000-2011 the FFmpeg
developers
built on Mar 3 2011 15:53:53 with gcc 4.4.5
configuration: --enable-gpl
libavutil 50. 39. 0 / 50. 39. 0
libavcodec 52.113. 1 / 52.113. 1
libavformat 52.102. 0 / 52.102. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1. 76. 0 / 1. 76. 0
libswscale 0. 12. 0 / 0. 12. 0
Seems stream 0 codec frame rate differs from container frame rate: 47.95
(10000000/208541) -> 23.98 (10000000/417082)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out2.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
Duration: 00:01:48.50, start: 0.000000, bitrate: 4144 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1280x720, 4014 kb/s, PAR
1691:1280 DAR 1691:720, 23.98 fps, 23.98 tbr, 5000k tbn, 47.95 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 124 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
At least one output file must be specified
------------------------------------
This is a regression. Output from previous commit works as expected:
$ ffmpeg -i out1.mp4
FFmpeg version git-N-27785-g3244293, Copyright (c) 2000-2011 the FFmpeg
developers
built on Mar 3 2011 15:53:53 with gcc 4.4.5
configuration: --enable-gpl
libavutil 50. 39. 0 / 50. 39. 0
libavcodec 52.113. 1 / 52.113. 1
libavformat 52.102. 0 / 52.102. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1. 76. 0 / 1. 76. 0
libswscale 0. 12. 0 / 0. 12. 0
Seems stream 0 codec frame rate differs from container frame rate: 47.95
(10000000/208541) -> 23.98 (10000000/417082)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
title : title
date : 2001
encoder : Lavf52.102.0
comment : comment
Duration: 00:01:48.50, start: 0.000000, bitrate: 4144 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1280x720, 4014 kb/s, PAR
1691:1280 DAR 1691:720, 23.98 fps, 23.98 tbr, 5000k tbn, 47.95 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 124 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
At least one output file must be specified
----------
messages: 13795
nosy: FakeOutdoorsman
priority: normal
status: new
substatus: new
title: commit 3244293 breaks metadata in mp4 output
type: bug
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2638>
________________________________________________