VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. Hi c**s

    please consider my commandline:

    Code:
    ffmbc.exe -i test.avi -i test.wav -tff -target xdcamhd422 -an output.mxf -acodec pcm_s24le -ar 48000 -newaudio -map_audio_channel 1:0:0:0:1:0 -acodec pcm_s24le -ar 48000 -newaudio  -map_audio_channel 1:0:1:0:2:0 -acodec pcm_s24le -ar 480000
    In this way I create a .mxf that have in the channel audio 1 the R channel of the test.wav input file, and in channel audio 2 the L channel of the test.wav input file.

    Now I would like to add another test2add.wav file to add in channel 3 and 4 of the output.mxf file created with ffmbc

    PLEASE CAN ANYONE HELP A CAT ? THANKS! AND HAPPY NEW YEAR
    Quote Quote  
  2. Mr. c**t, you can do it with ffmpeg -filter_complex "[1:a][2:a]amerge".
    This means you would have to do whatever you need to do in ffmbc (is that even a thing any more?)
    then post-process with ffmpeg. ffmbc don't do amerge.

    Here's a working command line (batch version, with line breaks)
    Code:
    ffmpeg ^
    -an -i "video.mp4" ^
    -vn -i "audio1.wav" ^
    -vn -i "audio2.ac3" ^
    -map 0:0 -map 1:0 -map 2:0 ^
    -filter_complex "[1:a][2:a]amerge" ^
    -channel_layout quad ^
    -c:v copy -c:a pcm_s16le ^
    "mergetest.mov"
    Naturally, you need to set -channel_layout to whatever is appropriate.
    Quote Quote  
  3. I know but ffmpeg give output files that cannot back into the camera (I have a Sony PDW-F800 camcorder) or in the appropriate xdcam deck (pdw-HD1500) but ffmbc can do it using the version 0.7.4: so ffmpeg can produce a file that seems identical to the ffmbc one but that is not playable in xdcam deck. If you want play .mxf files in xdcam deck you are forced to using ffmbc 07.4
    Quote Quote  
  4. OK, you can merge your audio channels in ffmpeg, then do final mux in ffmbc - right?
    Quote Quote  
  5. mmmmmmmmm maybe yes maybe



    the xdcamhd422 .mxf structure is like this:

    General
    Complete name : V:\TeatroRomano\video\C0001.MXF
    Format : MXF
    Commercial name : XDCAM HD422
    Format version : 1.2
    Format profile : OP-1a
    Format settings : Closed / Complete
    File size : 37.1 MiB
    Duration : 5 s 160 ms
    Overall bit rate : 60.3 Mb/s
    Encoded date : 2016-12-29 22:53:32.000
    Writing application : SONY Opt 1.22

    Video
    ID : 2
    Format : MPEG Video
    Commercial name : XDCAM HD422
    Format version : Version 2
    Format profile : 4:2:2@High
    Format settings, BVOP : Yes
    Format settings, Matrix : Custom
    Format settings, GOP : M=3, N=12
    Format settings, picture structure : Frame
    Format settings, wrapping mode : Frame
    Codec ID : 0D01030102046001-0401020201040300
    Duration : 5 s 160 ms
    Bit rate mode : Constant
    Bit rate : 50.0 Mb/s
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate : 25.000 FPS
    Standard : Component
    Color space : YUV
    Chroma subsampling : 4:2:2
    Bit depth : 8 bits
    Scan type : Interlaced
    Scan order : Top Field First
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.965
    Stream size : 30.8 MiB (83%)
    Color primaries : BT.709
    Transfer characteristics : BT.709
    Matrix coefficients : BT.709

    Audio #1
    ID : 3
    Format : PCM
    Format settings, Endianness : Little
    Format settings, wrapping mode : Frame (AES)
    Codec ID : 0D01030102060300
    Duration : 5 s 160 ms
    Bit rate mode : Constant
    Bit rate : 1 152 kb/s
    Channel(s) : 1 channel
    Sampling rate : 48.0 kHz
    Frame rate : 25.000 FPS (1920 spf)
    Bit depth : 24 bits
    Stream size : 726 KiB (2%)
    Locked : Yes

    Audio #2
    ID : 4
    Format : PCM
    Format settings, Endianness : Little
    Format settings, wrapping mode : Frame (AES)
    Codec ID : 0D01030102060300
    Duration : 5 s 160 ms
    Bit rate mode : Constant
    Bit rate : 1 152 kb/s
    Channel(s) : 1 channel
    Sampling rate : 48.0 kHz
    Frame rate : 25.000 FPS (1920 spf)
    Bit depth : 24 bits
    Stream size : 726 KiB (2%)
    Locked : Yes

    Audio #3
    ID : 5
    Format : PCM
    Format settings, Endianness : Little
    Format settings, wrapping mode : Frame (AES)
    Codec ID : 0D01030102060300
    Duration : 5 s 160 ms
    Bit rate mode : Constant
    Bit rate : 1 152 kb/s
    Channel(s) : 1 channel
    Sampling rate : 48.0 kHz
    Frame rate : 25.000 FPS (1920 spf)
    Bit depth : 24 bits
    Stream size : 726 KiB (2%)
    Locked : Yes

    Audio #4
    ID : 6
    Format : PCM
    Format settings, Endianness : Little
    Format settings, wrapping mode : Frame (AES)
    Codec ID : 0D01030102060300
    Duration : 5 s 160 ms
    Bit rate mode : Constant
    Bit rate : 1 152 kb/s
    Channel(s) : 1 channel
    Sampling rate : 48.0 kHz
    Frame rate : 25.000 FPS (1920 spf)
    Bit depth : 24 bits
    Stream size : 726 KiB (2%)
    Locked : Yes

    Audio #5
    ID : 7
    Format : PCM
    Format settings, Endianness : Little
    Format settings, wrapping mode : Frame (AES)
    Codec ID : 0D01030102060300
    Duration : 5 s 160 ms
    Bit rate mode : Constant
    Bit rate : 1 152 kb/s
    Channel(s) : 1 channel
    Sampling rate : 48.0 kHz
    Frame rate : 25.000 FPS (1920 spf)
    Bit depth : 24 bits
    Stream size : 726 KiB (2%)
    Locked : Yes

    Audio #6
    ID : 8
    Format : PCM
    Format settings, Endianness : Little
    Format settings, wrapping mode : Frame (AES)
    Codec ID : 0D01030102060300
    Duration : 5 s 160 ms
    Bit rate mode : Constant
    Bit rate : 1 152 kb/s
    Channel(s) : 1 channel
    Sampling rate : 48.0 kHz
    Frame rate : 25.000 FPS (1920 spf)
    Bit depth : 24 bits
    Stream size : 726 KiB (2%)
    Locked : Yes

    Audio #7
    ID : 9
    Format : PCM
    Format settings, Endianness : Little
    Format settings, wrapping mode : Frame (AES)
    Codec ID : 0D01030102060300
    Duration : 5 s 160 ms
    Bit rate mode : Constant
    Bit rate : 1 152 kb/s
    Channel(s) : 1 channel
    Sampling rate : 48.0 kHz
    Frame rate : 25.000 FPS (1920 spf)
    Bit depth : 24 bits
    Stream size : 726 KiB (2%)
    Locked : Yes

    Audio #8
    ID : 10
    Format : PCM
    Format settings, Endianness : Little
    Format settings, wrapping mode : Frame (AES)
    Codec ID : 0D01030102060300
    Duration : 5 s 160 ms
    Bit rate mode : Constant
    Bit rate : 1 152 kb/s
    Channel(s) : 1 channel
    Sampling rate : 48.0 kHz
    Frame rate : 25.000 FPS (1920 spf)
    Bit depth : 24 bits
    Stream size : 726 KiB (2%)
    Locked : Yes

    Other #1
    ID : 1-Material
    Type : Time code
    Format : MXF TC
    Time code of first frame : 00:00:00:00
    Time code settings : Material Package
    Time code, striped : Yes

    Other #2
    ID : 1-Source
    Type : Time code
    Format : MXF TC
    Time code of first frame : 00:00:00:00
    Time code settings : Source Package
    Time code, striped : Yes

    Other #3
    Type : Time code
    Format : SMPTE TC
    Muxing mode : SDTI
    Time code of first frame : 00:00:00:00
    Last edited by marcorocchini; 2nd Jan 2017 at 02:57.
    Quote Quote  
  6. Individual mono streams eh... OK, channelsplit seems to work here:
    Code:
    ffmpeg ^
    -vn -i "stereo1.wav" ^
    -vn -i "stereo2.ac3" ^
    -filter_complex:0 "channelsplit=channel_layout=stereo" ^
    -filter_complex:1 "channelsplit=channel_layout=stereo" ^
    -channel_layout:0 mono ^
    -channel_layout:1 mono ^
    -channel_layout:2 mono ^
    -channel_layout:3 mono ^
    -c:a pcm_s16le ^
    "splittest.mov"
    Quote Quote  
  7. thanks, but ffmpeg don't generate MXF playable in Sony decks
    Quote Quote  
  8. Originally Posted by marcorocchini View Post
    thanks, but ffmpeg don't generate MXF playable in Sony decks
    you can pipe from ffmpeg to ffmbc ...
    Quote Quote  
  9. Originally Posted by pandy View Post
    Originally Posted by marcorocchini View Post
    thanks, but ffmpeg don't generate MXF playable in Sony decks
    you can pipe from ffmpeg to ffmbc ...

    mmmmm c*t*

    Code:
    ffmbc074.exe -y -i %4 -i tempAudio_PAIR1_ForFFmbc.wav -tff -target xdcamhd422 -an "%DestFolder%/%~n1_%panState%HDlinerare_xPDWF800.mxf" -acodec pcm_s24le -ar 48000 -newaudio -map_audio_channel 1:0:0:0:1:0 -acodec pcm_s24le -ar 48000 -newaudio -map_audio_channel 1:0:1:0:2:0 -acodec pcm_s24le -ar 48000
    I need to "integrate" a sort of (with your modified as say in the other post):

    Code:
    ffmpeg.exe -y -i input.avi -vf yadif=1:tff,scale=1920:1080,unsharp=luma_msize_x=3:luma_msize_y=3:luma_amount=0.8,colormatrix=bt601:bt709,interlace -sws_flags lanczos+accurate_rnd -an -pix_fmt yuv422p -c:v rawvideo -f rawvideo |
    so that

    Code:
    ffmpeg.exe -y -i input.avi -vf yadif=1:tff,scale=1920:1080,unsharp=luma_msize_x=3:luma_msize_y=3:luma_amount=0.8,colormatrix=bt601:bt709,interlace -sws_flags lanczos+accurate_rnd -an -pix_fmt yuv422p -c:v rawvideo -f rawvideo | ffmbc074.exe -y -i - -i tempAudio_PAIR1_ForFFmbc.wav -tff -target xdcamhd422 -an "%DestFolder%/%~n1_%panState%HDlinerare_xPDWF800.mxf" -acodec pcm_s24le -ar 48000 -newaudio -map_audio_channel 1:0:0:0:1:0 -acodec pcm_s24le -ar 48000 -newaudio -map_audio_channel 1:0:1:0:2:0 -acodec pcm_s24le -ar 48000
    but it don't work
    Quote Quote  



Similar Threads