Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 07-17-2020, 04:44 AM   #1
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default [v6.33] - 4 channel video files are imported with incorrect channel ordering

Issue: 4 channel video files (.mov at least) that have been rendered by Reaper have their channel ordering inverted when imported. The result is that channels 3+4 are inverted, this issue does not occur when importing the file into VLC or SoundForge for example.

Repro Steps:

Reaper v6.12c/x64, Windows 10.

1. Render a 4 channel video as per the export config below:



2. Note that channel ordering is correct at time of export:



3. Locate rendered video file in file explorer and drag and drop into the same project. Note channel ordering in item has channels 3+4 swapped:



This channel swapping behaviour does not apply when rendering to a standard .wav for example, so it appears specific to video files. I am unsure if this applies to settings beyond what is displayed above.

An example test video file is attached as a .zip

Thanks in advance!
Attached Images
File Type: png 4ch_video_on_import.png (10.4 KB, 503 views)
File Type: png 4ch_Video_Export_Config.png (33.2 KB, 461 views)
File Type: png 4ch_Video_Export_Success.png (30.7 KB, 456 views)
Attached Files
File Type: zip Test4chVideo.zip (216.5 KB, 178 views)

Last edited by hscottaudio; 07-27-2021 at 01:00 AM. Reason: Updated version number in title
hscottaudio is offline   Reply With Quote
Old 08-03-2020, 02:57 AM   #2
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Bumping thread as this issue is still present in v6.13.
hscottaudio is offline   Reply With Quote
Old 09-30-2020, 06:55 AM   #3
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Bumping thread as this issue is still present in v6.14
hscottaudio is offline   Reply With Quote
Old 09-30-2020, 08:14 AM   #4
blumpy
Human being with feelings
 
blumpy's Avatar
 
Join Date: Sep 2016
Posts: 507
Default

Well that's not good.

Is this occurring with interleaved audio as well or is it only video encoding?
blumpy is offline   Reply With Quote
Old 09-30-2020, 09:27 AM   #5
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Quote:
Originally Posted by blumpy View Post
Well that's not good.

Is this occurring with interleaved audio as well or is it only video encoding?
Appears to just be video, at least in the configuration I specified above.

Rendering to wav and then importing does not cause the same behaviour with channel ordering.
hscottaudio is offline   Reply With Quote
Old 09-30-2020, 09:35 AM   #6
blumpy
Human being with feelings
 
blumpy's Avatar
 
Join Date: Sep 2016
Posts: 507
Default Maybe it’s ffmpeg

When I get back to the studio I’ll try to same test. I’m thinking it’s likely a codec issue. Is it only ffmeg? What version of ffmeg are you running?
blumpy is offline   Reply With Quote
Old 10-01-2020, 05:39 AM   #7
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Quote:
Originally Posted by blumpy View Post
When I get back to the studio I’ll try to same test. I’m thinking it’s likely a codec issue. Is it only ffmeg? What version of ffmeg are you running?
Great, thanks Blumpy.

Currently running:

ffmpeg/libav DLL decoder v57.107.100
hscottaudio is offline   Reply With Quote
Old 10-01-2020, 05:43 AM   #8
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Also, just to re-iterate.

If you import the video into any other software (I've tried Vegas, and SoundForge), the channel ordering is correct.
hscottaudio is offline   Reply With Quote
Old 11-06-2020, 04:39 PM   #9
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default Bug also present in 6.15

Reporting that bug is still present in 6.15
hscottaudio is offline   Reply With Quote
Old 12-31-2020, 03:36 AM   #10
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Bumping - Issue still present in v6.19 Windows 10
hscottaudio is offline   Reply With Quote
Old 03-23-2021, 10:47 AM   #11
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Issue still occurs in v6.25
hscottaudio is offline   Reply With Quote
Old 03-23-2021, 10:49 AM   #12
vectorwarrior
Human being with feelings
 
vectorwarrior's Avatar
 
Join Date: Aug 2014
Posts: 179
Default

Confirming that it's an issue for me too. This is causing us some issues as we can't trust the reliability of Reapers channel configuration. Would be great to get this fixed.
vectorwarrior is offline   Reply With Quote
Old 04-01-2021, 07:05 AM   #13
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Still occurs on Windows 64bit v6.26
hscottaudio is offline   Reply With Quote
Old 04-14-2021, 01:56 AM   #14
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Issue still occurs on Windows 64bit v6.27
hscottaudio is offline   Reply With Quote
Old 06-02-2021, 07:10 AM   #15
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Issue still present in 6.29
hscottaudio is offline   Reply With Quote
Old 06-02-2021, 09:01 AM   #16
airon
Human being with feelings
 
airon's Avatar
 
Join Date: Aug 2006
Location: Berlin
Posts: 11,817
Default

The test file shows up with channels 3 and 4 swapped in Reaper 6.29 x64 Windows 10 x64. I even tried converting it to an MKV with Mkvtoolnix. Same thing, so this might be a VLC/FFMPEG thing.

DaVinci Resolve 17.2 imports this test file correctly.
__________________
Using Latch Preview (Video) - Faderport 16 setup for CSI 1.1 , CSI 3.10
Website
"My ego comes pre-shrunk" - Randy Thom
airon is offline   Reply With Quote
Old 06-16-2021, 03:09 AM   #17
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Quote:
Originally Posted by airon View Post
The test file shows up with channels 3 and 4 swapped in Reaper 6.29 x64 Windows 10 x64. I even tried converting it to an MKV with Mkvtoolnix. Same thing, so this might be a VLC/FFMPEG thing.

DaVinci Resolve 17.2 imports this test file correctly.
If it's possible it's a VLC thing, it's worth noting the standalone VLC player will play this back with the correct channel ordering.

So far I have only ever managed to repro this inside of Reaper....
hscottaudio is offline   Reply With Quote
Old 07-05-2021, 02:18 AM   #18
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Issue still occurs in v6.30 Windows 10 64-bit
hscottaudio is offline   Reply With Quote
Old 07-07-2021, 04:04 AM   #19
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Issue still occurs in v6.31 Windows 10 64-bit
hscottaudio is offline   Reply With Quote
Old 07-12-2021, 05:40 AM   #20
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Issue still occurs in v6.32 Windows 10 64-bit
hscottaudio is offline   Reply With Quote
Old 07-27-2021, 01:01 AM   #21
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Issue still occurs in v6.33 Windows 10 64-bit
hscottaudio is offline   Reply With Quote
Old 07-27-2021, 07:49 AM   #22
blumpy
Human being with feelings
 
blumpy's Avatar
 
Join Date: Sep 2016
Posts: 507
Default

I don’t think this is reaper. I think it’s the codec. What version of FFMEG are you running?
blumpy is offline   Reply With Quote
Old 07-27-2021, 07:56 AM   #23
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Quote:
Originally Posted by blumpy View Post
I don’t think this is reaper. I think it’s the codec. What version of FFMEG are you running?
Here's the output of show "available decoder information" from preferneces:

Code:
Using output: DirectShow EVR
Current video frame: 1920x1080 'YV12' #1948

Available decoder information:

========== VLC ==========
VLC v3.0.x
Loaded from: C:\Program Files\VideoLAN\VLC

========== ffmpeg/libav ==========
ffmpeg/libav DLL decoder v57.107.100

Loaded from: D:\_Reaper\Plugins\avcodec-57.dll
ffmpeg/libav configuration:
  --disable-static
  --enable-shared
  --enable-gpl
  --enable-version3
  --enable-sdl2
  --enable-bzlib
  --enable-fontconfig
  --enable-gnutls
  --enable-iconv
  --enable-libass
  --enable-libbluray
  --enable-libfreetype
  --enable-libmp3lame
  --enable-libopenjpeg
  --enable-libopus
  --enable-libshine
  --enable-libsnappy
  --enable-libsoxr
  --enable-libtheora
  --enable-libtwolame
  --enable-libvpx
  --enable-libwavpack
  --enable-libwebp
  --enable-libx264
  --enable-libx265
  --enable-libxml2
  --enable-libzimg
  --enable-lzma
  --enable-zlib
  --enable-gmp
  --enable-libvidstab
  --enable-libvorbis
  --enable-cuda
  --enable-cuvid
  --enable-d3d11va
  --enable-nvenc
  --enable-dxva2
  --enable-avisynth
  --enable-libmfx

ffmpeg/libav search path:
  %PATH%
  D:\_Reaper
  D:\_Reaper\UserPlugins\64
  D:\_Reaper\UserPlugins
  D:\_Reaper\Plugins

========== DirectShow ==========
DirectShow available
hscottaudio is offline   Reply With Quote
Old 07-27-2021, 07:57 AM   #24
blumpy
Human being with feelings
 
blumpy's Avatar
 
Join Date: Sep 2016
Posts: 507
Default

It’s not the decoder. It’s likely ffmpeg the encoder.
blumpy is offline   Reply With Quote
Old 07-27-2021, 08:15 AM   #25
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Quote:
Originally Posted by blumpy View Post
It’s not the decoder. It’s likely ffmpeg the encoder.
If that were true, would you not expect to see the same result when playing the same encoded file back in other video software?

From what I have seen this is not the case, only Reaper seems to order the channels inccorectly.
hscottaudio is offline   Reply With Quote
Old 07-27-2021, 08:21 AM   #26
blumpy
Human being with feelings
 
blumpy's Avatar
 
Join Date: Sep 2016
Posts: 507
Default

So VLC stand-alone plays it back correct, but VLC doesn’t play it back correct in reaper?
blumpy is offline   Reply With Quote
Old 07-27-2021, 08:23 AM   #27
blumpy
Human being with feelings
 
blumpy's Avatar
 
Join Date: Sep 2016
Posts: 507
Default

Also, what happens when you switch playback to ffmpeg inside of reaper?
blumpy is offline   Reply With Quote
Old 07-27-2021, 08:44 AM   #28
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Quote:
Originally Posted by blumpy View Post
So VLC stand-alone plays it back correct, but VLC doesn’t play it back correct in reaper?
Correct.

Quote:
Originally Posted by blumpy View Post
Also, what happens when you switch playback to ffmpeg inside of reaper?
The plot thickens.....

Switching to ffmpeg and rebooting Reaper results in the channel ordering to playback correctly.

Interestingly the peaks, however, continue to display the channel ordering incorrectly. (although that could be a cache thing?)

Switching back to VLC and then rebooting Reaper causes the channel ordering to playback incorrectly again.

EDIT: The peaks issue was indeed cache-related, rebuilding whilst using ffmpeg orders the peak channels correctly.
hscottaudio is offline   Reply With Quote
Old 10-13-2021, 07:05 AM   #29
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

So the question now is whether this is a Reaper bug or a VLC bug.

The standalone VLC player does not exhibit this behaviour, so could it be the way Reaper is coded to use the VLC decoder?

OR... should I report this to VLC as a bug?
hscottaudio is offline   Reply With Quote
Old 10-13-2021, 07:34 AM   #30
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,721
Default

This is a reaper bug and not a VLC bug... I need to figure out the cause of it, it's complicated, and fixing it would cause existing projects that use VLC as decoders to change... so maybe just live with it for now?
Justin is online now   Reply With Quote
Old 10-13-2021, 08:52 AM   #31
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

Quote:
Originally Posted by Justin View Post
This is a reaper bug and not a VLC bug... I need to figure out the cause of it, it's complicated, and fixing it would cause existing projects that use VLC as decoders to change... so maybe just live with it for now?
Ok understood, thanks for the response
hscottaudio is offline   Reply With Quote
Old 02-15-2024, 05:26 AM   #32
chirick86
Human being with feelings
 
Join Date: May 2022
Posts: 3
Default

Waiting this bug fix for a couple of years.
Any update?
chirick86 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:21 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.