jslhs / ffmbc

Automatically exported from code.google.com/p/ffmbc
0 stars 0 forks source link

Fail to generate DVCProHD in MXF #92

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Command line as below.

What is the expected output? What do you see instead?
I expected to be able to write a DVCProHD-coded file in MXF wrapper.

I'm not quite sure what ffmbc is unhappy with, is it the video or audio tracks? 
 (I find the error output from ffmpeg/ffmbc to be quite unhelpful in general.)

What version of the product are you using? On what operating system?
FFmbc version 0.7-rc7
Ubuntu 10.04 LTS

Please provide any additional information below:

- Full commandline run (with -v 3) and everything the program printed
without
the repeating parts.
ffmbc -v 3 -i elephants_dream_1080p24.y4m  -i ED-CM-5.1-DVD-C.flac  -i 
ED-CM-5.1-DVD-L.flac  -i ED-CM-5.1-DVD-R.flac  -i ED-CM-5.1-DVD-LS.flac  -i 
ED-CM-5.1-DVD-RS.flac  -i ED-CM-5.1-DVD-LFE.flac -r 59.94 -target dvcprohd 
DVCPro100_720p5994_4ch_16bit.mxf -map_audio_channel 1:0:0:0:1:0 -newaudio 
-map_audio_channel 2:0:0:0:2:0 -newaudio -map_audio_channel 3:0:0:0:3:0 
-newaudio -map_audio_channel 4:0:0:0:4:0
FFmbc version 0.7-rc7
Copyright (c) 2008-2012 Baptiste Coudurier and the FFmpeg developers
Input #0, yuv4mpegpipe, from 'elephants_dream_1080p24.y4m':
  Duration: 00:10:53.79, start: 0.000000, bitrate: 597197 kb/s
    Stream #0.0(und): Video: rawvideo, yuv420p, 1920x1080p, PAR 1:1 DAR 16:9, 24.00 fps
Input #1, flac, from 'ED-CM-5.1-DVD-C.flac':
  Duration: 00:10:58.08, start: 0.000000, bitrate: 629 kb/s
    Stream #1.0(und): Audio: flac, 48000 Hz, mono, s32
Input #2, flac, from 'ED-CM-5.1-DVD-L.flac':
  Duration: 00:10:58.08, start: 0.000000, bitrate: 711 kb/s
    Stream #2.0(und): Audio: flac, 48000 Hz, mono, s32
Input #3, flac, from 'ED-CM-5.1-DVD-R.flac':
  Duration: 00:10:58.08, start: 0.000000, bitrate: 708 kb/s
    Stream #3.0(und): Audio: flac, 48000 Hz, mono, s32
Input #4, flac, from 'ED-CM-5.1-DVD-LS.flac':
  Duration: 00:10:58.08, start: 0.000000, bitrate: 497 kb/s
    Stream #4.0(und): Audio: flac, 48000 Hz, mono, s32
Input #5, flac, from 'ED-CM-5.1-DVD-RS.flac':
  Duration: 00:10:58.08, start: 0.000000, bitrate: 490 kb/s
    Stream #5.0(und): Audio: flac, 48000 Hz, mono, s32
Input #6, flac, from 'ED-CM-5.1-DVD-LFE.flac':
  Duration: 00:10:58.08, start: 0.000000, bitrate: 159 kb/s
    Stream #6.0(und): Audio: flac, 48000 Hz, mono, s32
[scale @ 0x2a65b40] w:1920 h:1080 fmt:yuv420p -> w:1920 h:1080 fmt:yuv422p 
flags:0x4
Auto-rescaling to dvcprohd resolution
[scale @ 0x29f9ec0] w:1920 h:1080 fmt:yuv420p -> w:960 h:720 fmt:yuv422p 
flags:0x4
Incompatible sample format 's32' for codec 'pcm_s16be', auto-selecting format 
's16'
Incompatible sample format 's32' for codec 'pcm_s16le', auto-selecting format 
's16'
    Last message repeated 2 times
[mxf @ 0x29f4540] track 1: could not find essence container ul, codec not 
currently supported in container
Could not write header for output file #0

- Upload your sample somewhere and supply url
http://media.xiph.org/video/derf/y4m/elephants_dream_1080p24.y4m
http://media.xiph.org/ED/

Original issue reported on code.google.com by k...@vizrt.com on 28 Mar 2012 at 5:03

GoogleCodeExporter commented 8 years ago
Humm yes that's a bug, in the mean time you can specify -acodec pcm_s16le 
before the output file.

Original comment by baptiste...@gmail.com on 28 Mar 2012 at 10:38

GoogleCodeExporter commented 8 years ago
There are some further problems as well, I don't manage to create progressive 
output.  For the same input files as above (and note that the input is 
progressive), I run the following command:

ffmbc -t 2 -v 3 -ss 60 -i elephants_dream_1080p24.y4m  -ss 60 -i 
ED-CM-5.1-DVD-C.flac  -ss 60 -i ED-CM-5.1-DVD-L.flac -ss 60  -i 
ED-CM-5.1-DVD-R.flac -ss 60 -i ED-CM-5.1-DVD-LS.flac -ss 60 -i 
ED-CM-5.1-DVD-RS.flac -ss 60 -i ED-CM-5.1-DVD-LFE.flac -s 960x720 -r 50 -target 
dvcprohd -acodec pcm_s16le DVCPro100_720p50_4ch_16bit.mxf -map_audio_channel 
1:0:0:0:1:0 -newaudio -map_audio_channel 2:0:0:0:2:0 -newaudio 
-map_audio_channel 3:0:0:0:3:0 -newaudio -map_audio_channel 4:0:0:0:4:0
FFmbc version 0.7-rc7
Copyright (c) 2008-2012 Baptiste Coudurier and the FFmpeg developers
Input #0, yuv4mpegpipe, from 'elephants_dream_1080p24.y4m':
  Duration: 00:10:53.79, start: 0.000000, bitrate: 597197 kb/s
    Stream #0.0(und): Video: rawvideo, yuv420p, 1920x1080p, PAR 1:1 DAR 16:9, 24.00 fps
Input #1, flac, from 'ED-CM-5.1-DVD-C.flac':
  Duration: 00:10:58.08, start: 0.000000, bitrate: 629 kb/s
    Stream #1.0(und): Audio: flac, 48000 Hz, mono, s32
Input #2, flac, from 'ED-CM-5.1-DVD-L.flac':
  Duration: 00:10:58.08, start: 0.000000, bitrate: 711 kb/s
    Stream #2.0(und): Audio: flac, 48000 Hz, mono, s32
Input #3, flac, from 'ED-CM-5.1-DVD-R.flac':
  Duration: 00:10:58.08, start: 0.000000, bitrate: 708 kb/s
    Stream #3.0(und): Audio: flac, 48000 Hz, mono, s32
Input #4, flac, from 'ED-CM-5.1-DVD-LS.flac':
  Duration: 00:10:58.08, start: 0.000000, bitrate: 497 kb/s
    Stream #4.0(und): Audio: flac, 48000 Hz, mono, s32
Input #5, flac, from 'ED-CM-5.1-DVD-RS.flac':
  Duration: 00:10:58.08, start: 0.000000, bitrate: 490 kb/s
    Stream #5.0(und): Audio: flac, 48000 Hz, mono, s32
Input #6, flac, from 'ED-CM-5.1-DVD-LFE.flac':
  Duration: 00:10:58.08, start: 0.000000, bitrate: 159 kb/s
    Stream #6.0(und): Audio: flac, 48000 Hz, mono, s32
[scale @ 0x142efc0] w:1920 h:1080 fmt:yuv420p -> w:960 h:720 fmt:yuv422p 
flags:0x4
Incompatible sample format 's32' for codec 'pcm_s16le', auto-selecting format 
's16'
    Last message repeated 3 times
Output #0, mxf, to 'DVCPro100_720p50_4ch_16bit.mxf':
  Metadata:
    encoder: FFmbc 0.7
    Stream #0.0(und): Video: dvvideo, yuv422p, 960x720p [PAR 4:3 DAR 16:9], 96000 kb/s, 50.00 fps
    Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
    Stream #0.2(und): Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
    Stream #0.3(und): Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
    Stream #0.4(und): Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #1.0 -> #0.1 [channel: 0 -> 0]
  Stream #2.0 -> #0.2 [channel: 0 -> 0]
  Stream #3.0 -> #0.3 [channel: 0 -> 0]
  Stream #4.0 -> #0.4 [channel: 0 -> 0]
Press [q] to stop, [?] for help
*** 1 dup!
*** 1 dup!
*** 1 dup!
*** 1 dup!
frame=    9 fps= 29 q=0.0 size=    2187kB time=00:00:00.18 
bitrate=99528.0kbits/*** 1 dup!0:03.11 dup=4 drop=0
[cut]
frame=  101 fps= 26 q=0.0 Lsize=   24552kB time=00:00:02.01 
bitrate=99765.0kbits/s dup=52 drop=0               
video:23672kB audio:756kB global headers:0kB muxing overhead 0.506274%

This results in a file that mediainfo claims is interlaced and in NTSC 
format(!):

mediainfo DVCPro100_720p50_4ch_16bit.mxf General
Complete name                            : DVCPro100_720p50_4ch_16bit.mxf
Format                                   : MXF
Commercial name                          : DVCPRO HD
Format profile                           : OP-1a
Format settings                          : Closed / Complete
File size                                : 24.0 MiB
Duration                                 : 2s 20ms
Overall bit rate                         : 99.6 Mbps
Encoded date                             : 2012-04-04 13:56:03.000
Writing application                      : FFmbc OP1a Muxer 53.6.0
Writing library                          : FFmbc OP1a Muxer 53.6.0

Video
ID                                       : 2
Format                                   : DV
Commercial name                          : DVCPRO HD
Format_Settings_Wrapping                 : Frame
Duration                                 : 2s 20ms
Bit rate                                 : 92.5 Mbps
Width                                    : 1 280 pixels
Original width                           : 960 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 50.000 fps
Original frame rate                      : 29.970 fps
Standard                                 : NTSC
Color space                              : YUV
Bit depth                                : 10 bits
Scan type                                : Interlaced
Scan order                               : Bottom Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 2.008
Stream size                              : 22.3 MiB (93%)
Delay_SDTI                               : 0

Audio #1
ID                                       : 3
Format                                   : PCM
Format settings, Endianness              : Little
Format_Settings_Wrapping                 : Frame (AES)
Duration                                 : 2s 20ms
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 189 KiB (1%)
Delay_SDTI                               : 0

Audio #2
ID                                       : 4
Format                                   : PCM
Format settings, Endianness              : Little
Format_Settings_Wrapping                 : Frame (AES)
Duration                                 : 2s 20ms
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 189 KiB (1%)
Delay_SDTI                               : 0

Audio #3
ID                                       : 5
Format                                   : PCM
Format settings, Endianness              : Little
Format_Settings_Wrapping                 : Frame (AES)
Duration                                 : 2s 20ms
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 189 KiB (1%)
Delay_SDTI                               : 0

Audio #4
ID                                       : 6
Format                                   : PCM
Format settings, Endianness              : Little
Format_Settings_Wrapping                 : Frame (AES)
Duration                                 : 2s 20ms
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 189 KiB (1%)
Delay_SDTI                               : 0

Is there any magic option I have to give to get progressive output?

Original comment by k...@vizrt.com on 4 Apr 2012 at 2:01

GoogleCodeExporter commented 8 years ago
I don't know how media info decides wether it's interlaced or not.
The MXF is marked as progressive, maybe mediainfo assumes DV is interlaced.
Regarding NTSC that's a bug that will be fixed in the next rc.

Original comment by baptiste...@gmail.com on 5 Apr 2012 at 6:26

GoogleCodeExporter commented 8 years ago
I have uploaded a DV file that mediainfo does recognise as progressive, perhaps 
you can see if it has some magic bit set somewhere: 
https://docs.google.com/open?id=0B_yEa7GRZhUHRE5Va0dvTWFSazZVWV9DdS03MlB2dw

Original comment by k...@vizrt.com on 5 Apr 2012 at 7:25

GoogleCodeExporter commented 8 years ago
does this bug if fixed (dvcprodhd in mxf)?

Original comment by marccoll...@gmail.com on 17 Aug 2012 at 7:25

GoogleCodeExporter commented 8 years ago
Say again?  

Original comment by k...@vizrt.com on 17 Aug 2012 at 7:38

GoogleCodeExporter commented 8 years ago
Should be fixed in rc8

Original comment by baptiste...@gmail.com on 13 Mar 2013 at 11:00

GoogleCodeExporter commented 8 years ago
Yep, works nicely now, thank you!

Original comment by k...@vizrt.com on 19 Mar 2013 at 4:10