[FFmpeg-user] Trimmed video won't import into Final Cut Pro X but original will (is it possible to specify BDAV video format?)

Simon Daniels simondaniels23 at gmail.com
Tue Aug 28 21:03:04 CEST 2012


I have an AVC file (https://dl.dropbox.com/u/88585236/00013.MTS) that I'd
like to trim with ffmpeg and then import into Final Cut Pro X. The original
file imports fine but my trimmed file (
https://dl.dropbox.com/u/28441949/trimmed%20sample.MTS) is refused by FCPX.

FCPX is picky with it's supported
formats<https://discussions.apple.com/thread/1940335?start=0&tstart=0>.
The only thing I can think of is the original video is in a BDAV Blu-ray
Video format and the trimmed clip is in MPEG-TS format. Is there any way to
specify the BDAV format on output?

Any suggestions? Thanks!



This is my ffmpeg command:
Users-MacBook-Pro:ffmpeg-0.11.1-mac user$ *./ffmpeg -ss 00:00:20 -t
00:00:15 -i /Users/user/Documents/00013.MTS -vcodec copy -acodec copy
"output.MTS"*
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Aug 23 2012 10:11:06 with llvm_gcc 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2336.1.00)
  configuration: --enable-static --disable-shared --enable-gpl
--enable-nonfree --enable-libx264 --disable-outdev=sdl
--enable-runtime-cpudetect --disable-bzlib --disable-libfreetype
--disable-libopenjpeg --enable-zlib --arch=x86_64
--sysroot=/Developer/SDKs/MacOSX10.7.sdk --extra-cflags='-isysroot
/Developer/SDKs/MacOSX10.7.sdk'
  libavutil      51. 54.100 / 51. 54.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.100 / 54.  6.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mpegts, from '/Users/user/Documents/00013.MTS':
  Duration: 00:11:26.68, start: 1.000033, bitrate: 22294 kb/s
  Program 1
    Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p,
1920x1080 [SAR 1:1 DAR 16:9], 59.96 fps, 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
s16, 256 kb/s
[mpegts @ 0x7f90db028400] muxrate VBR, pcr every 2 pkts, sdt every 200,
pat/pmt every 40 pkts
Output #0, mpegts, to 'output.MTS':
  Metadata:
    encoder         : Lavf54.6.100
    Stream #0:0: Video: h264 (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR
1:1 DAR 16:9], q=2-31, 59.96 fps, 90k tbn, 29.97 tbc
    Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  246 fps=0.0 q=-1.0 size=   10184kB time=00:00:03.64
bitrate=22860.9kbits/sframe=  502 fps=474 q=-1.0 size=   22062kB
time=00:00:07.90 bitrate=22861.5kbits/sframe=  704 fps=434 q=-1.0 size=
31586kB time=00:00:11.29 bitrate=22904.1kbits/sframe=  874 fps=403 q=-1.0
size=   39987kB time=00:00:14.17 bitrate=23105.3kbits/sframe=  898 fps=394
q=-1.0 Lsize=   42727kB time=00:00:15.00 bitrate=23320.4kbits/s
video:39012kB audio:485kB global headers:0kB muxing overhead 8.179082%


*Here's the MediaInfo output of the original video:*

General

ID                                       : 0 (0x0)

Complete name                            : ...\00013.MTS

Format                                   : BDAV

Format/Info                              : Blu-ray Video

File size                                : 1.78 GiB

Duration                                 : 11mn 26s

Overall bit rate mode                    : Variable

Overall bit rate                         : 22.3 Mbps

Maximum Overall bit rate                 : 24.0 Mbps



Video

ID                                       : 4113 (0x1011)

Menu ID                                  : 1 (0x1)

Format                                   : AVC

Format/Info                              : Advanced Video Codec

Format profile                           : High at L4.0

Format settings, CABAC                   : Yes

Format settings, ReFrames                : 2 frames

Format settings, GOP                     : M=2, N=15

Codec ID                                 : 27

Duration                                 : 11mn 26s

Bit rate mode                            : Variable

Bit rate                                 : 21.1 Mbps

Maximum bit rate                         : 22.0 Mbps

Width                                    : 1 920 pixels

Height                                   : 1 080 pixels

Display aspect ratio                     : 16:9

Frame rate                               : 29.970 fps

Color space                              : YUV

Chroma subsampling                       : 4:2:0

Bit depth                                : 8 bits

Scan type                                : Interlaced

Scan order                               : Top Field First

Bits/(Pixel*Frame)                       : 0.340

Stream size                              : 1.69 GiB (95%)



Audio

ID                                       : 4352 (0x1100)

Menu ID                                  : 1 (0x1)

Format                                   : AC-3

Format/Info                              : Audio Coding 3

Mode extension                           : CM (complete main)

Format settings, Endianness              : Big

Codec ID                                 : 129

Duration                                 : 11mn 26s

Bit rate mode                            : Constant

Bit rate                                 : 256 Kbps

Channel(s)                               : 2 channels

Channel positions                        : Front: L R

Sampling rate                            : 48.0 KHz

Bit depth                                : 16 bits

Compression mode                         : Lossy

Delay relative to video                  : -67ms

Stream size                              : 21.0 MiB (1%)


*Here's the MediaInfo output of the trimmed video:*

General

ID                                       : 1 (0x1)

Complete name                            : D:\Dropbox\Public\trimmed
sample.MTS

Format                                   : MPEG-TS

File size                                : 41.7 MiB

Duration                                 : 14s 948ms

Overall bit rate mode                    : Variable

Overall bit rate                         : 23.3 Mbps



Video

ID                                       : 256 (0x100)

Menu ID                                  : 1 (0x1)

Format                                   : AVC

Format/Info                              : Advanced Video Codec

Format profile                           : High at L4.0

Format settings, CABAC                   : Yes

Format settings, ReFrames                : 2 frames

Format settings, GOP                     : M=2, N=15

Codec ID                                 : 27

Duration                                 : 14s 948ms

Bit rate mode                            : Variable

Bit rate                                 : 22.0 Mbps

Width                                    : 1 920 pixels

Height                                   : 1 080 pixels

Display aspect ratio                     : 16:9

Frame rate                               : 29.970 fps

Color space                              : YUV

Chroma subsampling                       : 4:2:0

Bit depth                                : 8 bits

Scan type                                : Interlaced

Scan order                               : Top Field First

Bits/(Pixel*Frame)                       : 0.354

Stream size                              : 39.1 MiB (94%)



Audio

ID                                       : 257 (0x101)

Menu ID                                  : 1 (0x1)

Format                                   : AC-3

Format/Info                              : Audio Coding 3

Mode extension                           : CM (complete main)

Format settings, Endianness              : Big

Codec ID                                 : 129

Duration                                 : 15s 520ms

Bit rate mode                            : Constant

Bit rate                                 : 256 Kbps

Channel(s)                               : 2 channels

Channel positions                        : Front: L R

Sampling rate                            : 48.0 KHz

Bit depth                                : 16 bits

Compression mode                         : Lossy

Delay relative to video                  : -631ms

Stream size                              : 485 KiB (1%)



Menu

ID                                       : 4096 (0x1000)

Menu ID                                  : 1 (0x1)

Duration                                 : 14s 948ms

List                                     : 256 (0x100) (AVC) / 257 (0x101)
(AC-3)

Service name                             : Service01

Service provider                         : FFmpeg

Service type                             : digital television


More information about the ffmpeg-user mailing list