pocarist / ffmbc

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

Cannot use big-endian audio for DV output #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
If I attempt to create DV25 output with big-endian audio, ffmbc claims I have 
the wrong inputs.  See command line and output below.

What is the expected output? What do you see instead?
I was hoping to get a DV25 file with big-endian audio.  As far as I understand 
this is allowed by the standard and indeed may even be required by the Avid 
application I'm using.  If I instead of pcm_s16be use pcm_s16le everything 
works as expected.

What version of the product are you using? On what operating system?
FFmbc version 0.7-rc4
Copyright (c) 2008-2011 Baptiste Coudurier and the FFmpeg developers
built on Nov 22 2011 14:53:17 with gcc 4.4.3
configuration: --enable-gpl
libavutil    51. 11. 0 / 51. 11. 0
libavcodec   53.  9. 0 / 53.  9. 0
libavformat  53.  6. 0 / 53.  6. 0
libavdevice  53.  2. 0 / 53.  2. 0
libavfilter   2. 27. 3 /  2. 27. 3
libswscale    2.  0. 0 /  2.  0. 0
libpostproc  51.  2. 0 / 51.  2. 0

running on 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 -y -i elephants_dream_1080p24.y4m -i ED-CM-St-16bit.flac -r 25  -vf 
"crop=1440:1080" -target dvcam -acodec pcm_s16be DV_pal_2ch_16bit.dv 
FFmbc version 0.7-rc4
Copyright (c) 2008-2011 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-St-16bit.flac':
  Duration: 00:10:58.32, start: 0.000000, bitrate: 718 kb/s
    Stream #1.0(und): Audio: flac, 48000 Hz, stereo, s16
[crop @ 0x24710e0] w:1920 h:1080 -> w:1440 h:1080
Auto-rescaling to dvcam resolution
[scale @ 0x2471aa0] w:1440 h:1080 fmt:yuv420p -> w:720 h:576 fmt:yuv420p 
flags:0x4
[dv @ 0x2465d60] Can't initialize DV format!
Make sure that you supply exactly two streams:
     video: 25fps or 29.97fps, audio: 2ch/48kHz/PCM
     (50Mbps allows an optional second audio stream)
Could not write header for output file #0

- Upload your sample somewhere and supply url

Inputs at http://media.xiph.org/video/derf/y4m/elephants_dream_1080p24.y4m and 
http://media.xiph.org/ED/ED-CM-St-16bit.flac

Original issue reported on code.google.com by k...@vizrt.com on 6 Dec 2011 at 12:08

GoogleCodeExporter commented 9 years ago
DV doesn't support big endian audio.

Original comment by baptiste...@gmail.com on 6 Dec 2011 at 9:40

GoogleCodeExporter commented 9 years ago
In that case I think ffmbc should say that - the error message is quite 
misleading.

Original comment by k...@vizrt.com on 7 Dec 2011 at 8:26

GoogleCodeExporter commented 9 years ago
May I ask why you are trying to override the -target dvcam ? It's there on 
purpose, to avoid people making these mistakes.

Original comment by baptiste...@gmail.com on 7 Dec 2011 at 8:39

GoogleCodeExporter commented 9 years ago
Well, since it seems Avid Pro Tools insists on DV with big-endian audio, I 
thought I'd better prepare a couple of test files with different settings to 
confirm this.

Original comment by k...@vizrt.com on 7 Dec 2011 at 9:14

GoogleCodeExporter commented 9 years ago
Ah, well in fact it seems that DV is big endian but the muxer converted from 
little endian to big internally.
I changed that for the rc5 so dv muxer will now expect big endian.
I changed the error message to explicitly says big endian as well.

Original comment by baptiste...@gmail.com on 7 Dec 2011 at 10:11