|
|
|
10-05-2020, 03:26 PM
|
#1
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 10,079
|
Video Render Hang Forever (crash) if hardware/project samplerate mismatch (FIXED)
Hi,
v6.14, Winx64,
I finally found why my REAPER hang forever when rendering video (any format).
I tried different things (color space, video preference, with or without video processor etc) but this is where I end my bug hunting:
In fact, if there is a mismatch between Hardware samplerate (96000 in my case) and Project sample rate (it was 44100), rendering video will hang forever and you will have to kill the app manually.
It breaks everytime.
quick fix: just changing project sample rate to hardware 96000 (in my case)
(note: render was 48000)
Thanks for your support !
|
|
|
10-10-2020, 08:42 AM
|
#2
|
Human being with feelings
Join Date: Dec 2016
Posts: 46
|
+1
Simply bumping this bug, I had the same issue and it was absolutely frustrating to deal with.
As soon as I changed the sample rate of my device, the issue disappeared.
|
|
|
02-05-2021, 08:59 AM
|
#3
|
Human being with feelings
Join Date: Dec 2014
Posts: 639
|
Hi folks,
Same problem here with reaper 6.21 up-to-date. I'm trying to render an MKV video from OBS.
As already mentioned, I encounter issues while rendering at a different sample rate in earlier reaper versions, but it doesn't seem to be the problem actually.
I have 2 track, a video track and an audio track. No additional plugins, I just edit some passages to be shorter.
render options :
-FFMPEG 4.2.2
-H 264 100%
-AAC 320kbps
I've also tried
-FFMPEG 4.2.2
-MKV
-MJPEG
-MP3
I've also make the try with lastest FFMPEG build ( https://github.com/BtbN/FFmpeg-Builds/releases) and Reaper is still hanging
Last edited by daeavelwyn; 02-05-2021 at 09:06 AM.
|
|
|
02-05-2021, 10:02 AM
|
#4
|
Human being with feelings
Join Date: Dec 2014
Posts: 639
|
Hi folks,
I've made futher tests and get a reproductible issue. If I use Time Selection to render AND make a time selection, it hangs.
If I use Time Selection BUT doesn't select anything, it works.
Here is a gif to illustrate : https://imgur.com/0ngVsVy
|
|
|
02-06-2021, 10:18 AM
|
#5
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,998
|
Hmm, I can't duplicate this. What video decode mode is being used for the file in the project? If you remove all video items from the project (e.g. only use video processors, or have it be completely blank), does it still hang?
Can you provide a .rpp and reaper.ini and the exact versions of ffmpeg (and/or VLC) used?
|
|
|
02-06-2021, 12:09 PM
|
#6
|
Human being with feelings
Join Date: Dec 2014
Posts: 639
|
Hi Justin,
Here is a (almost) short video to show what's happening :
http://public.harann-university.org/...6_19-05-12.mkv
I can make render without items on my timeline so: - With an empty item in audio track and nothing in video track but the video processor (item fades and apply FX) => it hangs
- Disabling video processor on video tracks => it works
Other stuff you asked :
Let me know if you want more tests/infos
regards
|
|
|
02-06-2021, 03:14 PM
|
#7
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,998
|
Thanks -- using your inis and REAPER x64 6.23 on Win10 everything works. I'm using probably a newer ffmpeg 4.3.1 from https://github.com/BtbN/FFmpeg-Builds/releases (58.91.100)... Maybe it's specific to the media in your project?
When it hangs, can you create a dump file? Go to task manager, right click reaper, "create dump image".. then zip and post that file somewhere, and email a link to support at cockos dot com? Thanks!
|
|
|
02-06-2021, 06:13 PM
|
#8
|
Human being with feelings
Join Date: Dec 2014
Posts: 639
|
Hi Justin,
Arf, the weird thing is about the fact crashes happen randomly (or at least seem to be randomly...)
here are 2 dump files from 2 crashes. I've tried your FFMPEG version but it doesn't solve the problem : http://public.harann-university.org/Temp.zip
I also suspect an external program to cause the crash but I've tried to closed every programs I could close.
I just can figure why sometimes it crashes and sometimes not :-/
If you want me to make futher tests let me know
regards
|
|
|
02-06-2021, 06:51 PM
|
#9
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,998
|
Thanks! I think if you remove the Sonarworks Reference VST it might work as a workaround.
Edit: should be fixed in the next pre-release build (tomorrow)!
Last edited by Justin; 02-06-2021 at 07:14 PM.
|
|
|
02-06-2021, 07:23 PM
|
#10
|
Human being with feelings
Join Date: Dec 2014
Posts: 639
|
SOLVED
Woo...thanks so much it was that !! :-D
I'd never thought my monitor fx chain could be used in the render process.
How do you debug this ? Any special program you use to read dmp files ?
regards
Last edited by daeavelwyn; 02-06-2021 at 07:25 PM.
Reason: SOLVED
|
|
|
02-06-2021, 09:57 PM
|
#11
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,998
|
You can load the .dmp files into MS Visual Studio and debug the process... and then find the deadlock, see what thread has what mutex locked, etc. It's our bug -- the mutex locking order of the video writer was causing the issue, but only if a certain notification was sent from the monitoring FX in the main thread (which sonarworks was sending)... anyway
|
|
|
02-08-2021, 03:21 AM
|
#12
|
Human being with feelings
Join Date: Dec 2014
Posts: 639
|
Ok, thanks for the detailed explanation, I will give a try to this method next time I will run into troubles with Reaper.
|
|
|
02-08-2021, 08:01 AM
|
#13
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,998
|
It's probably more useful for us than you (we have the debug info and stuff)...
Anyway the latest +dev build should fix the underlying issue if you'd like to test that!
|
|
|
02-08-2021, 05:43 PM
|
#14
|
Human being with feelings
Join Date: Dec 2014
Posts: 639
|
Hi Justin,
Another screencast and DMP file here : http://public.harann-university.org/...ender-isue.zip
So it "almost" works, but got in trouble with render audio to the finel mp4. Everything is showed in the video.
Thanks for investigating on my trouble
|
|
|
02-09-2021, 07:16 PM
|
#15
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,998
|
OK, so just to confirm:
- there is a brief "hang" but it comes back after 5-10 seconds? Is that what the .dmp file is? Does it still hang temporarily if you remove SonarWorks from your monitoring FX?
- you're not getting audio in your render? What version of ffmpeg are you using?
|
|
|
02-14-2021, 07:21 AM
|
#17
|
Human being with feelings
Join Date: May 2014
Location: Toulouse, France
Posts: 111
|
Hello Justin,
would you please have a look to this thread, wich might be related ?
https://forum.cockos.com/showthread.php?t=231154
It seems to me ETA infinity occurs less often with reaper623+dev0212_x86_64, but it is not completely solved. I have one of my test projects where its hangs for 20 seconds then renders normally. It might ne interesting for you to try GRMTools's dev' test plugin ? I am willing to test more if it helps.
Thank you.
Nicolas
Last edited by -nicolas-; 02-14-2021 at 08:05 AM.
|
|
|
03-08-2021, 10:53 AM
|
#19
|
Human being with feelings
Join Date: Dec 2014
Posts: 639
|
SOLVED
Hi folks,
Ok, so I'm now using Reaper 6.25 and ffmpeg 4.3.1 from this post : https://forum.cockos.com/showthread.php?t=243052
and it's now working... I don't know why but it works...if it can helps someone else...
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:51 AM.
|