[FFmpeg-trac] #3655(undetermined:new): splitting a file with -f segment options causes all per stream metadata to be lost

FFmpeg trac at avcodec.org
Tue May 20 20:30:59 CEST 2014


#3655: splitting a file with -f segment options causes all per stream metadata to
be lost
-------------------------------------+-------------------------------------
             Reporter:  duggaraju    |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by duggaraju):

 ffmpeg -i r.mp4 -map 0 -c copy -f segment output%d.mp4
 ffmpeg version N-60386-g9c978f2 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Feb  5 2014 22:08:32 with gcc 4.8.2 (GCC)
   configuration: --disable-static --enable-shared --enable-gpl --enable-
 version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-
 fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass
 --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm
 --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
 libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-
 libxavs --enable-libxvid --enable-zlib
   libavutil      52. 63.100 / 52. 63.100
   libavcodec     55. 49.101 / 55. 49.101
   libavformat    55. 30.100 / 55. 30.100
   libavdevice    55.  7.100 / 55.  7.100
   libavfilter     4.  1.102 /  4.  1.102
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'r.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     title           : BBC Motion Gallery
     artist          : BBC Motion Gallery
     encoder         : Lavf55.30.100
     comment         : http://www.bbcmotiongallery.com/
     copyright       : ©2005 BBC
   Duration: 00:00:03.54, start: 0.000000, bitrate: 3142 kb/s
     Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 1920x1080, 3045 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
     Metadata:
       rotate          : 90
       handler_name    : VideoHandler
     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
 fltp, 127 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 Output #0, segment, to 'output%d.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     title           : BBC Motion Gallery
     artist          : BBC Motion Gallery
     copyright       : ©2005 BBC
     comment         : http://www.bbcmotiongallery.com/
     encoder         : Lavf55.30.100
     Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080,
 q=2-31, 3045 kb/s, 24 fps, 90k tbn, 24 tbc (default)
     Metadata:
       rotate          : 90
       handler_name    : VideoHandler
     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
 127 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame=   84 fps=0.0 q=-1.0 Lsize=N/A time=00:00:03.52 bitrate=N/A

 video:1301kB audio:55kB subtitle:0 data:0 global headers:0kB muxing
 overhead -100.001584%

 ffprobe -show_streams -i output0.mp4
 [STREAM]
 index=0
 codec_name=h264
 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
 profile=High
 codec_type=video
 codec_time_base=1/48
 codec_tag_string=avc1
 codec_tag=0x31637661
 width=1920
 height=1080
 has_b_frames=2
 sample_aspect_ratio=0:1
 display_aspect_ratio=0:1
 pix_fmt=yuv420p
 level=40
 timecode=N/A
 id=N/A
 r_frame_rate=24/1
 avg_frame_rate=24/1
 time_base=1/12288
 start_pts=1020
 start_time=0.083008
 duration_ts=38912
 duration=3.166667
 bit_rate=2653013
 nb_frames=76
 nb_read_frames=N/A
 nb_read_packets=N/A
 DISPOSITION:default=1
 DISPOSITION:dub=0
 DISPOSITION:original=0
 DISPOSITION:comment=0
 DISPOSITION:lyrics=0
 DISPOSITION:karaoke=0
 DISPOSITION:forced=0
 DISPOSITION:hearing_impaired=0
 DISPOSITION:visual_impaired=0
 DISPOSITION:clean_effects=0
 DISPOSITION:attached_pic=0
 TAG:language=und
 TAG:handler_name=VideoHandler
 [/STREAM]
 [STREAM]
 index=1
 codec_name=aac
 codec_long_name=AAC (Advanced Audio Coding)
 profile=unknown
 codec_type=audio
 codec_time_base=1/48000
 codec_tag_string=mp4a
 codec_tag=0x6134706d
 sample_fmt=fltp
 sample_rate=48000
 channels=2
 channel_layout=stereo
 bits_per_sample=0
 id=N/A
 r_frame_rate=0/0
 avg_frame_rate=0/0
 time_base=1/48000
 start_pts=2400
 start_time=0.050000
 duration_ts=150528
 duration=3.136000
 bit_rate=129798
 nb_frames=147
 nb_read_frames=N/A
 nb_read_packets=N/A
 DISPOSITION:default=1
 DISPOSITION:dub=0
 DISPOSITION:original=0
 DISPOSITION:comment=0
 DISPOSITION:lyrics=0
 DISPOSITION:karaoke=0
 DISPOSITION:forced=0
 DISPOSITION:hearing_impaired=0
 DISPOSITION:visual_impaired=0
 DISPOSITION:clean_effects=0
 DISPOSITION:attached_pic=0
 TAG:language=und
 TAG:handler_name=SoundHandler
 [/STREAM]


 Notice that the rotation metadata is lost after segmenting.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3655#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list