jslhs / ffmbc

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

Fail to generate DVCPro50 in MOV #94

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 DVCPro50 media wrapped in QuickTime.  The error 
message suggests that ffmbc attempts to write the audio as aac instead of 
pcm_s16le, but, as seen below, not even adding "-strict experimental" seems to 
help.  (Or, possibly, the argument should have been added at some other 
position, but I'm not sure where - I've tried a few likely positions.)

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

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 29.97 -target dvcpro50 
-strict experimental -acodec pcm_s16le DVCPro50_NTSC_4ch_16bit.mov 
-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 @ 0x19ed0e0] w:1920 h:1080 fmt:yuv420p -> w:1920 h:1080 fmt:yuv422p 
flags:0x4
Auto-rescaling to dvcpro50 resolution
[scale @ 0x19ecfe0] w:1920 h:1080 fmt:yuv420p -> w:720 h:480 fmt:yuv422p 
flags:0x4
Incompatible sample format 's32' for codec 'pcm_s16le', auto-selecting format 
's16'
Incompatible sample format 's32' for codec 'aac', auto-selecting format 's16'
    Last message repeated 2 times
encoder 'aac' is experimental and might produce bad results.
Add '-strict experimental' if you want to use it.

- 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 29 Mar 2012 at 11:45

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Oh, now I figured out where to put the argument, it's supposed to be:
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 29.97 -target dvcpro50 
DVCPro50_NTSC_4ch_16bit.mov -strict experimental -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

However, it seems I get different codecs in different audio channels in this 
way.  Note also that the audio tracks end up five seconds longer than the video 
(which has the expected length):
mediainfo DVCPro50_NTSC_4ch_16bit.mov 
General
Complete name                            : DVCPro50_NTSC_4ch_16bit.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt  
File size                                : 4.45 GiB
Duration                                 : 10mn 58s
Overall bit rate mode                    : Variable
Overall bit rate                         : 58.1 Mbps
Encoded date                             : UTC 2012-03-29 11:44:45
Tagged date                              : UTC 2012-03-29 11:44:45
Writing application                      : FFmbc 0.7

Video
ID                                       : 1
Format                                   : DV
Codec ID                                 : dv5n
Duration                                 : 10mn 53s
Bit rate mode                            : Constant
Bit rate                                 : 24.4 Mbps
Encoded bit rate                         : 28.8 Mbps
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
Original display aspect ratio            : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 fps
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Bottom Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 2.357
Stream size                              : 1.86 GiB (42%)
Encoded stream size                      : 4.38 GiB (98%)
Language                                 : English
Encoded date                             : UTC 2012-03-29 11:44:45
Tagged date                              : UTC 2012-03-29 11:44:45

Audio #1
ID                                       : 2
Format                                   : PCM
Format settings, Endianness              : Big
Format settings, Sign                    : Signed
Codec ID                                 : twos
Duration                                 : 10mn 58s
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 60.2 MiB (1%)
Language                                 : English
Encoded date                             : UTC 2012-03-29 11:44:45
Tagged date                              : UTC 2012-03-29 11:44:45

Audio #2
ID                                       : 3
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 10mn 58s
Bit rate mode                            : Constant
Bit rate                                 : 64.5 Kbps
Channel(s)                               : 1 channel
Channel positions                        : Front: C
Sampling rate                            : 48.0 KHz

Audio #3
ID                                       : 4
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 10mn 58s
Bit rate mode                            : Constant
Bit rate                                 : 66.2 Kbps
Channel(s)                               : 1 channel
Channel positions                        : Front: C
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 5.09 MiB (0%)
Language                                 : English
Encoded date                             : UTC 2012-03-29 11:44:45
Tagged date                              : UTC 2012-03-29 11:44:45

Audio #4
ID                                       : 5
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 10mn 58s
Bit rate mode                            : Variable
Bit rate                                 : 61.9 Kbps
Maximum bit rate                         : 64.0 Kbps
Channel(s)                               : 1 channel
Channel positions                        : Front: C
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 4.86 MiB (0%)
Language                                 : English
Encoded date                             : UTC 2012-03-29 11:44:45
Tagged date                              : UTC 2012-03-29 11:44:45

Original comment by k...@vizrt.com on 29 Mar 2012 at 1:10

GoogleCodeExporter commented 8 years ago
Repeat the audio codec before -newaudio, otherwise it will choose the format 
default which for .mov is aac. I should maybe change this behaviour.
About the length, the .flac file is just longer and shown in the Duration field

Original comment by baptiste...@gmail.com on 29 Mar 2012 at 8:30