Become a Site Supporter and Never see Ads again!

Author Topic: Split PolyWAV to Stereo Tracks with FFMPEG  (Read 473 times)

0 Members and 1 Guest are viewing this topic.

Offline voltronic

  • Trade Count: (40)
  • Needs to get out more...
  • *****
  • Posts: 4116
Split PolyWAV to Stereo Tracks with FFMPEG
« on: March 08, 2024, 07:51:43 PM »
I have finally found an easy solution to splitting polyphonic WAV files to stereo tracks without having to split to mono files and then recombine those to stereo.


1. Install FFMPEG.

2. Copy/move the WAV to the directory containing ffmpeg.exe, or copy ffmpeg.exe to the directory containing the WAV file.

3. Open a command prompt and navigate to the directory containing your WAV and FFMPEG.

4. Enter the appropriate command based on how many channels your PolyWAV contains, replacing [inputfilename] with the name of your WAV:


Code: [Select]
*FOR 8 CHANNELS*

ffmpeg -i inputfilename.wav -filter_complex "[0]pan=stereo|c0=c0|c1=c1[a]; [0]pan=stereo|c0=c2|c1=c3[b]; [0]pan=stereo|c0=c4|c1=c5[c]; [0]pan=stereo|c0=c6|c1=c7[d]" -map "[a]" 1_2.wav -map "[b]" 3_4.wav -map "[c]" 5_6.wav -map "[d]" 7_8.wav


*FOR 6 CHANNELS*

ffmpeg -i inputfilename.wav -filter_complex "[0]pan=stereo|c0=c0|c1=c1[a]; [0]pan=stereo|c0=c2|c1=c3[b]; [0]pan=stereo|c0=c4|c1=c5[c]" -map "[a]" 1_2.wav -map "[b]" 3_4.wav -map "[c]" 5_6.wav


*FOR 4 CHANNELS*

ffmpeg -i inputfilename.wav -filter_complex "[0]pan=stereo|c0=c0|c1=c1[a]; [0]pan=stereo|c0=c2|c1=c3[b]" -map "[a]" 1_2.wav -map "[b]" 3_4.wav


You can run the 8-channel command on a file containing fewer channels without problems. Just be aware you'll be left with silent stereo files for the channels that were not recorded.

I adapted this from one of the solutions found here. The other solutions listed there all returned errors, as did the syntax found in the official documentation.
I am hitting my head against the walls, but the walls are giving way.
- Gustav Mahler

Acoustic Recording Techniques
Team Classical
Team Line Audio
Team DPA

Offline voltronic

  • Trade Count: (40)
  • Needs to get out more...
  • *****
  • Posts: 4116
Re: Split PolyWAV to Stereo Tracks with FFMPEG
« Reply #1 on: March 08, 2024, 07:54:09 PM »
Next task is to verify that this works for 32-bit float files.
I am hitting my head against the walls, but the walls are giving way.
- Gustav Mahler

Acoustic Recording Techniques
Team Classical
Team Line Audio
Team DPA

Online aaronji

  • Site Supporter
  • Trade Count: (9)
  • Needs to get out more...
  • *
  • Posts: 3884
Re: Split PolyWAV to Stereo Tracks with FFMPEG
« Reply #2 on: March 09, 2024, 01:03:52 PM »
Why not use WaveAgent for 24-bit files?

Offline voltronic

  • Trade Count: (40)
  • Needs to get out more...
  • *****
  • Posts: 4116
Re: Split PolyWAV to Stereo Tracks with FFMPEG
« Reply #3 on: March 09, 2024, 01:44:52 PM »
Why not use WaveAgent for 24-bit files?

I was not able to get WaveAgent to export directly to stereo tracks. Fortunately a user on GS Remote just showed me what I was doing wrong. I will likely go back to using WaveAgent now... :facepalm:
I am hitting my head against the walls, but the walls are giving way.
- Gustav Mahler

Acoustic Recording Techniques
Team Classical
Team Line Audio
Team DPA

Online aaronji

  • Site Supporter
  • Trade Count: (9)
  • Needs to get out more...
  • *
  • Posts: 3884
Re: Split PolyWAV to Stereo Tracks with FFMPEG
« Reply #4 on: March 09, 2024, 01:50:51 PM »
Ha, ha! It is really simple, but not clearly documented. Another nice feature is that you can drop multiple files into WaveAgent (if there were auto-splits or different sets/bands or whatever) and do the same split on all simultaneously.

Offline goodcooker

  • Trade Count: (43)
  • Needs to get out more...
  • *****
  • Posts: 4668
  • Gender: Male
  • goes to 11
Re: Split PolyWAV to Stereo Tracks with FFMPEG
« Reply #5 on: March 09, 2024, 02:08:48 PM »


Reaper will also explode Poly files. I started with Wave Agent but kinda got used to Reaper already so I'll probably stick with it.
Line Audio CM3/OM1 || MBHO KA500 hyper>PFA|| ADK A51 type IV || AKG C522XY
Oade Warm Mod and Presence+ Mod UA5s || Aerco MP2(needs help) || Neve Portico 5012 || Apogee MMP
SD Mixpre6 || Oade Concert Mod DR100mkii

pocket sized - CA11 cards > SP SB10 > Sony PCM A10

http://www.archive.org/bookmarks/goodcooker

"Are you the Zman?" - fan at Panic 10-08-10 Kansas City
"I don't know who left this perfectly good inflatable wook doll here, but if I'm blowing her up, I'm keeping her." -  hoppedup

Offline Gordon

  • Trade Count: (22)
  • Needs to get out more...
  • *****
  • Posts: 11785
  • Gender: Male
    • my list
Re: Split PolyWAV to Stereo Tracks with FFMPEG
« Reply #6 on: March 09, 2024, 03:03:29 PM »
iZotope RX makes it real easy as well!
Microtech Gefell M20 or M21 > Nbob actives > Naiant PFA > Sound Devices MixPre-6 II @ 32/48

https://archive.org/details/fav-gordonlw

https://archive.org/details/teamdirtysouth

Offline voltronic

  • Trade Count: (40)
  • Needs to get out more...
  • *****
  • Posts: 4116
Re: Split PolyWAV to Stereo Tracks with FFMPEG
« Reply #7 on: March 09, 2024, 03:26:05 PM »
iZotope RX makes it real easy as well!

Only if you have Advanced. I have standard, and it only supports mono or stereo files.
I am hitting my head against the walls, but the walls are giving way.
- Gustav Mahler

Acoustic Recording Techniques
Team Classical
Team Line Audio
Team DPA

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 698
  • Gender: Male
    • Gidluck Mastering
Re: Split PolyWAV to Stereo Tracks with FFMPEG
« Reply #8 on: April 01, 2024, 02:36:29 PM »
ffmpeg is awesome for lots of stuff. I primarily use it to cut/extract snippets from original (long run) mp4 video files.

Really quick for repeated tasks once you get the syntax figured out.

Gordon
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline kliked

  • Trade Count: (1)
  • Taperssection Regular
  • **
  • Posts: 105
Re: Split PolyWAV to Stereo Tracks with FFMPEG
« Reply #9 on: April 02, 2024, 11:08:07 AM »
Why not use WaveAgent for 24-bit files?

I was not able to get WaveAgent to export directly to stereo tracks. Fortunately a user on GS Remote just showed me what I was doing wrong. I will likely go back to using WaveAgent now... :facepalm:

Care to share?

Offline voltronic

  • Trade Count: (40)
  • Needs to get out more...
  • *****
  • Posts: 4116
Re: Split PolyWAV to Stereo Tracks with FFMPEG
« Reply #10 on: April 02, 2024, 12:13:17 PM »
In the split / combine window, clear the default selections. Then select the first two tracks in column 1, the next two tracks in column 2, etc.
I am hitting my head against the walls, but the walls are giving way.
- Gustav Mahler

Acoustic Recording Techniques
Team Classical
Team Line Audio
Team DPA

 

RSS | Mobile
Page created in 0.069 seconds with 35 queries.
© 2002-2024 Taperssection.com
Powered by SMF