The XML exported file is in mono #856
Unanswered
Rafa-Segovia
asked this question in
4. Bugs
Replies: 2 comments
-
|
From what I can see on the generated XML, it should be imported in stereo. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thank you so much for that detailed information. I'll give that a try!
…On Mon, Dec 1, 2025, 04:43 Cfomodz ***@***.***> wrote:
The Premiere export format (FCP7 XML) *hardcodes stereo configuration* in
the XML output:
# From premiere_write_audio function (line 185-189)let track = newElement("track")
track.attrs = {
"currentExplodedTrackIndex": $channelcount,
"totalExplodedTrackCount": "2", # Hardcoded stereo
"premiereTrackType": "Stereo" # Hardcoded stereo
}.toXmlAttributes
This means:
1. *The XML file IS correctly marked as stereo* - as you observed in
your XML inspection
2. The problem likely stems from a mismatch between:
- The actual audio channel configuration in your source video
- How Premiere Pro interprets the exploded track structure
Technical Details
The export process creates *exploded tracks* for Premiere:
- For each audio layer, it creates 2 tracks (left/right channels)
- Each track is marked with currentExplodedTrackIndex (0 or 1)
- totalExplodedTrackCount is set to 2
- premiereTrackType is set to "Stereo"
However, the code references the actual channel count from the source
media:
# From media.nim - AudioStream objectAudioStream* = object
channels*: cint # Actual channel count from source
layout*: string
Potential Issues & Solutions Issue 1: Source Audio is Mono
If your source video has mono audio (1 channel), the XML will still claim
stereo configuration, causing a mismatch.
*Solution:*
# First, check your video's audio configuration
ffprobe -v error -select_streams a:0 -show_entries stream=channels,channel_layout -of default=noprint_wrappers=1 video.mp4
# If mono (1 channel), convert to stereo before processing
ffmpeg -i video.mp4 -ac 2 video_stereo.mp4
auto-editor "video_stereo.mp4" --export premiere --margin 0.1sec
Issue 2: Premiere Pro Version Compatibility
Different Premiere Pro versions may interpret FCP7 XML differently,
especially the exploded track structure.
*Solution:*
Try the DaVinci Resolve export format instead, which uses a different
audio handling approach:
auto-editor "video.mp4" --export resolve --margin 0.1sec
The Resolve format (resolve_write_audio function) doesn't use exploded
tracks and may import more reliably.
Issue 3: Multiple Audio Streams
If your source has multiple audio streams or unusual layouts, the
hardcoded stereo assumption may fail.
*Solution:*
# Check audio stream configuration
ffprobe -v error -show_streams -select_streams a video.mp4
# Select specific audio stream if multiple exist
ffmpeg -i video.mp4 -map 0:v:0 -map 0:a:0 -c copy video_single_audio.mp4
auto-editor "video_single_audio.mp4" --export premiere --margin 0.1sec
Workarounds Workaround 1: Manual XML Modification
If you're comfortable editing XML, you can try modifying the channel
configuration after export, though this is not recommended for most users.
Workaround 2: Use Resolve Export + Transcode
# Export for DaVinci Resolve instead
auto-editor "video.mp4" --export resolve --margin 0.1sec
# Import XML into DaVinci Resolve# Export timeline from Resolve in Premiere format
Workaround 3: Re-link Audio in Premiere
After importing the XML:
1. Right-click the audio clips in the timeline
2. Select "Audio Channels..."
3. Manually configure the channel layout
4. Or replace/re-link the audio
Recommended Action Steps
1.
*Verify your source audio configuration:*
ffprobe -v error -select_streams a:0 -show_entries stream=channels,channel_layout -of default=noprint_wrappers=1 video.mp4
2.
*If mono (1 channel), convert to stereo:*
ffmpeg -i video.mp4 -c:v copy -ac 2 video_stereo.mp4
auto-editor "video_stereo.mp4" --export premiere --margin 0.1sec
3.
*If already stereo, try Resolve export:*
auto-editor "video.mp4" --export resolve --margin 0.1sec
—
Reply to this email directly, view it on GitHub
<#856 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGOBVYC3VNAGBXQ7QKEOAZT37O2PHAVCNFSM6AAAAACKRMLJ3CVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMJSGAYDIMI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I remove silences with autoeditor and generate an XML file to edit in Premiere, the sequence is in mono.
How do I fix this?
I use this simple command
auto-editor "video.mp4" --export premiere --margin 0.1sec
Beta Was this translation helpful? Give feedback.
All reactions