Open leonardcoutinho opened 1 year ago
I did an video of the process https://www.youtube.com/watch?v=sUqMf6FcSF8
@mungewell thanks for your tips of investigate backup.bin and
tested @leonardcoutinho 's solution out on my nex c3 and didn't work (got 'Error: unknown error' after trying bk r 0x01070087). was wondering if anyone had any ideas? thanks!
I can confirm this worked on my Sony Alpha NEX-5N.
Here is an easier guide in English (in case the video and post is hard to understand):
Make sure you go into your Sony NEX-5N menu and turn powersaving to "30mins" or so - as you don't want the camera to power off while doing this hack (there are ways to unlock this recording limit here: https://github.com/ma1co/OpenMemories-Tweak - not sure if it works with this hack you are reading now though)
if you are in Windows run the Zadig... At the top there is "Device / Options" click on Options choose "List All Devices" scroll down to find "NEX 5N" select this. Now just above the "Replace Driver Button" there is a small window that says "WinUSB Ver 6...." use the up/down arrows next to this to select Libusb-Win32 1.2.xx from the list (if you are in Win x64 I think you use Libusbk (3.1.0.0). Now press the "Replace Driver" button & wait.
When it's finished, open PowerShell (which is built into Windows - search PowerShell). Once opened you get a command prompt like in the video. Navigate to the folder where you saved "pmca-console-v0.18-win.exe" (How to navigate PowerShell use "cd.." to go back one folder and " cd\ " to go to root drive and "CD FOLDERNAME" to enter into a folder named "FOLDERNAME" assuming a folder named that is in the current DIR you are in. (here is a quick example - If you've saved the file in the folder named "Sony5N" on your C drive type " CD\ " to get to the root C now type "CD Sony5N" press enter.)
3.Once you are in the folder that contains "pmca-console-v0.18-win.exe" then type ".\pmca-console-v0.18-win serviceshell" do this twice until you see "found camera is in service mode" (be sure to include the " .\ " before the "pmca-console-v0.18-win serviceshell" )
4.Once Powershell is reporting Camera found in service mode type ".\pmca-console-v0.18-win updatershell" , once this starts Type "bk r 0x01070087" it should tell you the value is "03" now type "bk w 0x01070087 0a" (r=read address w=write address). If you see "Success" then:
5.type exit... the Camera should reboot. Once it has, disconnect it and navigate to the "Setup Menu" in here make sure to set "display wide" to "Fullscreen" now exit the menu. Now when you press the red record video button - the camera goes into "webcam mode"
Please note there is no "record to camera" when this is done. To get "record video to camera" back: You could repeat all of the above steps in PowerShell but replace the "bk w 0x01070087 0a" command with "bk w 0x01070087 03" Or remove the battery from the Camera, then put it back in. Power the camera on, navigate to the setup menu and find "file type" and select AVCHD or MP4. This will write a proper "value" back into the edited address, and the camera will function as it originally did.
I can confirm this worked on my Sony Alpha NEX-5N.
Here is an easier guide in English (in case the video and post is hard to understand):
- Make sure you go into your Sony NEX-5N menu and turn powersaving to "30mins" or so - as you don't want the camera to power off while doing this hack (there are ways to unlock this recording limit here: https://github.com/ma1co/OpenMemories-Tweak - not sure if it works with this hack you are reading now though)
- if you are in Windows run the Zadig... At the top there is "Device / Options" click on Options choose "List All Devices" scroll down to find "NEX 5N" select this. Now just above the "Replace Driver Button" there is a small window that says "WinUSB Ver 6...." use the up/down arrows next to this to select Libusb-Win32 1.2.xx from the list (if you are in Win x64 I think you use Libusbk (3.1.0.0). Now press the "Replace Driver" button & wait.
- When it's finished, open PowerShell (which is built into Windows - search PowerShell). Once opened you get a command prompt like in the video. Navigate to the folder where you saved "pmca-console-v0.18-win.exe" (How to navigate PowerShell use "cd.." to go back one folder and " cd\ " to go to root drive and "CD FOLDERNAME" to enter into a folder named "FOLDERNAME" assuming a folder named that is in the current DIR you are in. (here is a quick example - If you've saved the file in the folder named "Sony5N" on your C drive type " CD\ " to get to the root C now type "CD Sony5N" press enter.)
3.Once you are in the folder that contains "pmca-console-v0.18-win.exe" then type ".\pmca-console-v0.18-win serviceshell" do this twice until you see "found camera is in service mode" (be sure to include the " .\ " before the "pmca-console-v0.18-win serviceshell" )
4.Once Powershell is reporting Camera found in service mode type ".\pmca-console-v0.18-win updatershell" , once this starts Type "bk r 0x01070087" it should tell you the value is "03" now type "bk w 0x01070087 0a" (r=read address w=write address). If you see "Success" then:
5.type exit... the Camera should reboot. Once it has, disconnect it and navigate to the "Setup Menu" in here make sure to set "display wide" to "Fullscreen" now exit the menu. Now when you press the red record video button - the camera goes into "webcam mode"
- Be sure to run Zadig again - list all devices - locate and click on NEX 5N - now select "WinUSB...." and press the replace driver button.
Please note there is no "record to camera" when this is done. To get "record video to camera" back: Repeat all of the above steps in PowerShell but replace the "bk w 0x01070087 0a" command with "bk w 0x01070087 03"
@AstarOfDavid To get "record video to camera" back you can remove camera battery to shutdown, then insert again and power on, after this go on menu and change video record settings for other format and then change it to format you like, this will overwrite the 0a value without need to go in console.
Please note there is no "record to camera" when this is done. To get "record video to camera" back: You could repeat all of the above steps in PowerShell but replace the "bk w 0x01070087 0a" command with "bk w 0x01070087 03" Or remove the battery from the Camera, then put it back in. Power the camera on, navigate to the setup menu and select the video recording/encoding method. This will write a proper "value" back into the edited address.
Ok, I have updated the original post.
tried everything to the T that @AstarOfDavid put in his english guide with my nex c3, still got the error: unknown error after trying bk r 0x01070087. id assume that that earlier nex models or maybe just the 3rd gen run on different firmware than the 5 plus. i appreciate the translated guide though!
tried everything to the T that @AstarOfDavid put in his english guide with my nex c3, still got the error: unknown error after trying bk r 0x01070087. id assume that that earlier nex models or maybe just the 3rd gen run on different firmware than the 5 plus. i appreciate the translated guide though!
Does it show "camera is in service mode"? when you type ".\pmca-console-v0.18-win serviceshell" ?
I might add that I wrote a more detailed version of this guide here: https://www.reddit.com/r/SonyAlpha/comments/198p2pl/how_to_use_sony_nex_5n_as_a_webcam_with_no_hdmi/
tried everything to the T that @AstarOfDavid put in his english guide with my nex c3, still got the error: unknown error after trying bk r 0x01070087. id assume that that earlier nex models or maybe just the 3rd gen run on different firmware than the 5 plus. i appreciate the translated guide though!
You have to investigate what parameter your camera use for codec. I saw an guide somewhere here explain an method to do this, is not hard. Basically you have to save default camera settings file using pmca console, then change only change codec method and save again. Then compare the differences between files and test those parameters changing them in console and turn on camera to saw results. Its an trial and error method.
tried everything to the T that @AstarOfDavid put in his english guide with my nex c3, still got the error: unknown error after trying bk r 0x01070087. id assume that that earlier nex models or maybe just the 3rd gen run on different firmware than the 5 plus. i appreciate the translated guide though!
You have to investigate what parameter your camera use for codec. I saw an guide somewhere here explain an method to do this, is not hard. Basically you have to save default camera settings file using pmca console, then change only change codec method and save again. Then compare the differences between files and test those parameters changing them in console and turn on camera to saw results. Its an trial and error method.
Oh thanks for the update! I was going to suggest to other NEX model users that if "0a" does not work that they try any "wrong / missing" hex value here such as "00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F...." as you said it's a "trail and error method"
However other models might not have hardware registered at 0x01070087 so they would need to find the equivilant address for their hardware to trigger this same "hang" (What is this address 0x01070087 linked to exactly? The encoder? The Capture device? The CPU? A program?)
0x01070087 is for codec in 5n, I suspect is same key in all CXD4132 soc. Nex C3 is CXD4115 soc https://openmemories.readthedocs.io/devices.html.
There an thread about codec and bitrate key for other camera, but works for 5n https://github.com/ma1co/OpenMemories-Tweak/issues/411
@mungewell identified some of the keys, documented here: https://github.com/ma1co/fwtool.py/files/1503349/video_settings.zip https://github.com/ma1co/OpenMemories-Tweak/issues/238#issuecomment-351583384
I am using the NEX-5N... what do you mean by "after each write" write of what? 0a? Are you sure the camera is in "service mode" 1st?
From: popcorn dan @.***> Sent: January 25, 2024 9:52 PM To: ma1co/Sony-PMCA-RE Cc: AstarOfDavid; Mention Subject: Re: [ma1co/Sony-PMCA-RE] Tweak for clean hdmi on Nex 5n (And maybe other nex too) (Issue #448)
Sadly for NEX-5n it seems to reset the invalid value after each write back to 03. I can't figure out a way to make it keep 0a or any other value.
— Reply to this email directly, view it on GitHubhttps://github.com/ma1co/Sony-PMCA-RE/issues/448#issuecomment-1911438462, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFJ6OAYA3PQZASFXC7IOCKLYQMR7NAVCNFSM6AAAAAA5WIOTECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJRGQZTQNBWGI. You are receiving this because you were mentioned.Message ID: @.***>
Guys, I think, maybe is possible to put an script in camera system for when we select an codec?, for example an 480p codec which nobody uses, the script change value in 0x01070087. Anyone has an idea to do this?
I can confirm these steps worked on a Sony NEX-6 at least at first glance. I wasn't familiar with Zadig but was an easy download and worked well. I am using a Cam Link 4k and tested through OBS and Teams. The step by step instructions and the video were great. Thank you all!
@AstarOfDavid What is the HDMI out resolution in this case?
@AstarOfDavid What is the HDMI out resolution in this case?
I've written a much more detailed walkthrough here: https://www.reddit.com/r/SonyAlpha/comments/198p2pl/how_to_use_sony_nex_5n_as_a_webcam_with_no_hdmi/
It explains that the video output will be 720p until you press the RED RECORD video button, this is when the overlay disappears. And you will see the same source 1080p quality video feed that the internal codec would use to record from... but instead it is displayed via the HDMI port.
Anyone tried that? Its a camera with same soc https://kleo.hak.dog/sony-dsc-hx100v-clean-hdmi-capture
@AstarOfDavid Have no intention to flood in issue, but:
The setup menu is still there. So you can set the settings you like before entering "webcam mode" aka no overlay mode. "Webcam mode" functions the same as when you press record and it records internally - there for whatever settings you had set will be recorded. All this "webcam mode" is doing is "monitoring the recording feed" rather than "recording the feed" (so you see exactly what the "record to camera" would aka no overlay video at 1080p)
The lens I have has manual (aka by hand turning) focus/zoom. But the internal via setup menu "help focus" still seems to function.
I am not familiar with the PMCA software ( aka Play Memories Camera App)... I'll assume it has some feature to remote power the camera on via USB? If so then it might be possible to trigger the record function remotely - but again that is just a guess.
Hello @leonardcoutinho ,
https://github.com/ma1co/Sony-PMCA-RE/issues/493
Thank you, I followed your steps and managed to go this far with my NEX 3N! Any other ideas to get that thing solved?
I have no idea why you have this movie counter 😥 As you mentioned, Nex 5n/r and 6 don't have this problem. You are on latest firmware?
I'm working on updatershell of pmca and I found an bug on my 5n but is good thing. Maybe is an solution for clean hdmi.
I changed the codec key (id=0x01070087) from AVCHD, value 03, to XAVC, value 0a, but camera don't have this codec. The thing is, when I press the record button the screen was clean, only camera image, no overlay. Then I put hdmi cable and voila, clean hdmi nicely. Maybe this fix can be included in tweak options. To remove this hack is easy, only change video format to avchd again.
Hi Leo! Thanks for figuring this out, I just had a question, I notice with this tweak that the record setting changes to 1440x1080, does this actually result in that resolution? Or is the output 1920x1080?
Hi, as many others report, HDMI resolution is 1920x1080p60
Em sáb., 15 de jun. de 2024 20:21, Obamid45 @.***> escreveu:
I'm working on updatershell of pmca and I found an bug on my 5n but is good thing. Maybe is an solution for clean hdmi.
I changed the codec key (id=0x01070087) from AVCHD, value 03, to XAVC, value 0a, but camera don't have this codec. The thing is, when I press the record button the screen was clean, only camera image, no overlay. Then I put hdmi cable and voila, clean hdmi nicely. Maybe this fix can be included in tweak options. To remove this hack is easy, only change video format to avchd again.
Hi Leo! Thanks for figuring this out, I just had a question, I notice with this tweak that the record setting changes to 1440x1080, does this actually result in that resolution? Or is the output 1920x1080?
— Reply to this email directly, view it on GitHub https://github.com/ma1co/Sony-PMCA-RE/issues/448#issuecomment-2170968020, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGBQXPCWW5SZV5V2GZTVLQTZHTD7DAVCNFSM6AAAAAA5WIOTECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZQHE3DQMBSGA . You are receiving this because you were mentioned.Message ID: @.***>
Hi, as many others report, HDMI resolution is 1920x1080p60 Em sáb., 15 de jun. de 2024 20:21, Obamid45 @.***>
Unfortunately after I investigate more, it is 60fps but only 1440x1080, it would be nicer for have "60p 28m (ps)" - 1920x1080 60fps 28mbps this is more quality cause higher bit rate
I don't know why but when I try to select on "Record Setting" it says "cannot record to blu-ray/dvd disc at 60p 28m (ps)" Maybe it is because we are trying to use XAVC mode, so cant select 60p 28m (ps)?
it look like after using this tweak the camera think you have "MP4" in "File Format" because we choose unsupported XAVC, so fallback to MP4? MP4 Only working with VGA 3M or 1440x1080 12M. Maybe there is a way to force "Record Setting" to 60p 28M (PS) ?
If there is way we can force "Record Setting" To 60p 28M(PS) I We will get more quality cause higher bitrate, maybe we change some more values?
You can found these setting in "Image Size" at the bottom on NEX-5N. I will try and figure this out too
Obamid, this 1080p output IS in HDMI, not in file recording. It show 1440x1080 in menu but in HDMI is 1920x1080, at least I tested It in my capture card and give me an Full 16x9 image.
Em dom., 16 de jun. de 2024 00:22, Obamid45 @.***> escreveu:
Hi, as many others report, HDMI resolution is 1920x1080p60 Em sáb., 15 de jun. de 2024 20:21, Obamid45 @.***>
Unfortunately after I investigate more, it is 60fps but only 1440x1080, it would be nicer for have "60p 28m (ps)" - 1920x1080 60fps 28mbps this is more quality cause higher bit rate
I don't know why but when I try to select on "Record Setting" it says "cannot record to blu-ray/dvd disc at 60p 28m (ps)"
it look like after using this tweak the camera think you have "MP4" in "File Format" So it will only let you VGA 3M or 1440x1080 12M. Maybe there is a way to force "Record Setting" to 60p 28M (PS) ? It say camera on AVCHD
If there is way we can force "Record Setting" To 60p 28M(PS) I We will get more quality cause higher bitrate, maybe we change some more values?
You can found these setting in "Image Size" at the bottom on NEX-5N. I will try and figure this out too
— Reply to this email directly, view it on GitHub https://github.com/ma1co/Sony-PMCA-RE/issues/448#issuecomment-2171029181, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGBQXPCCRNL3NGI2EGPJEYDZHUAGVAVCNFSM6AAAAAA5WIOTECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZRGAZDSMJYGE . You are receiving this because you were mentioned.Message ID: @.***>
This is a camera hack used to make the camera like a "webcam" (to watch video from camera from the HDMI port without menus displayed over top of the image).
This mod is not intended to "record internally to camera" without menus BECAUSE the camera already does recording at 1920x1080 60fps internally to it's memory card without modifying it.
If you want the camera to display 1920 x 1080p on HDMI and ALSO still record 1920 x 1080p.... then you must modify it to use it as a "webcam" (according to these instructions listed in this post) then when you want to record at 1920x 1080p 60fps you must reset it back to normal. To do this : Remove camera battery to shutdown, then insert again and power on, after this go into the menu and change video recording settings "recording format" and then change it to format you want 1920x1080p 60fps, this will overwrite the "0a" value without need to go in console to modify the camera again. However once you do this to get "clean HDMI video" again you will have to remodify it again
From: Obamid45 @.***> Sent: June 15, 2024 10:22 PM To: ma1co/Sony-PMCA-RE Cc: Love_N_Thunder; Mention Subject: Re: [ma1co/Sony-PMCA-RE] Tweak for clean hdmi on Nex 5n (And maybe other nex too) (Issue #448)
Hi, as many others report, HDMI resolution is 1920x1080p60 Em sáb., 15 de jun. de 2024 20:21, Obamid45 @.***>
Unfortunately after I investigate more, it is 60fps but only 1440x1080, it would be nicer for have "60p 28m (ps)" - 1920x1080 60fps 28mbps this is more quality cause higher bit rate
I don't know why but when I try to select on "Record Setting" it says "cannot record to blu-ray/dvd disc at 60p 28m (ps)"
it look like after using this tweak the camera think you have "MP4" in "File Format" So it will only let you VGA 3M or 1440x1080 12M. Maybe there is a way to force "Record Setting" to 60p 28M (PS) ? It say camera on AVCHD
If there is way we can force "Record Setting" To 60p 28M(PS) I We will get more quality cause higher bitrate, maybe we change some more values?
You can found these setting in "Image Size" at the bottom on NEX-5N. I will try and figure this out too
— Reply to this email directly, view it on GitHubhttps://github.com/ma1co/Sony-PMCA-RE/issues/448#issuecomment-2171029181, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFJ6OAYGHVRWEAYL5C73DXTZHUAGVAVCNFSM6AAAAAA5WIOTECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZRGAZDSMJYGE. You are receiving this because you were mentioned.Message ID: @.***>
I can confirm this worked on my Sony Alpha NEX-5N.
Here is an easier guide in English (in case the video and post is hard to understand):
- Make sure you go into your Sony NEX-5N menu and turn powersaving to "30mins" or so - as you don't want the camera to power off while doing this hack (there are ways to unlock this recording limit here: https://github.com/ma1co/OpenMemories-Tweak - not sure if it works with this hack you are reading now though)
- if you are in Windows run the Zadig... At the top there is "Device / Options" click on Options choose "List All Devices" scroll down to find "NEX 5N" select this. Now just above the "Replace Driver Button" there is a small window that says "WinUSB Ver 6...." use the up/down arrows next to this to select Libusb-Win32 1.2.xx from the list (if you are in Win x64 I think you use Libusbk (3.1.0.0). Now press the "Replace Driver" button & wait.
- When it's finished, open PowerShell (which is built into Windows - search PowerShell). Once opened you get a command prompt like in the video. Navigate to the folder where you saved "pmca-console-v0.18-win.exe" (How to navigate PowerShell use "cd.." to go back one folder and " cd\ " to go to root drive and "CD FOLDERNAME" to enter into a folder named "FOLDERNAME" assuming a folder named that is in the current DIR you are in. (here is a quick example - If you've saved the file in the folder named "Sony5N" on your C drive type " CD\ " to get to the root C now type "CD Sony5N" press enter.)
3.Once you are in the folder that contains "pmca-console-v0.18-win.exe" then type ".\pmca-console-v0.18-win serviceshell" do this twice until you see "found camera is in service mode" (be sure to include the " .\ " before the "pmca-console-v0.18-win serviceshell" )
4.Once Powershell is reporting Camera found in service mode type ".\pmca-console-v0.18-win updatershell" , once this starts Type "bk r 0x01070087" it should tell you the value is "03" now type "bk w 0x01070087 0a" (r=read address w=write address). If you see "Success" then:
5.type exit... the Camera should reboot. Once it has, disconnect it and navigate to the "Setup Menu" in here make sure to set "display wide" to "Fullscreen" now exit the menu. Now when you press the red record video button - the camera goes into "webcam mode"
- Be sure to run Zadig again - list all devices - locate and click on NEX 5N - now select "WinUSB...." and press the replace driver button.
Please note there is no "record to camera" when this is done. To get "record video to camera" back: You could repeat all of the above steps in PowerShell but replace the "bk w 0x01070087 0a" command with "bk w 0x01070087 03" Or remove the battery from the Camera, then put it back in. Power the camera on, navigate to the setup menu and find "file type" and select AVCHD or MP4. This will write a proper "value" back into the edited address, and the camera will function as it originally did.
@AstarOfDavid Thanks for the detailed steps. I’m failing at step 4 with a Sony NEX-5R. Driver I can choose is ‘libusb-win32 (v1.4.0.0)’. After a minute or so of trying to install it says ‘the driver installation failed’…
is this something you could guide me on please?
Tails, try to install this apk on 5r, Its more pratical, just check how to install apk using pmca-console and adb, using -t parameter to install because is an test app https://github.com/GordianZ/OpenMemories-Tweak/releases
thanks, will try this. even when just connecting the camera though im getting quite a grainy playback - not sure even if i get clean hdmi out it’s going to work all that well :-(. not sure if i have a setting wrong somewhere in the camera or not but i would have thought just connecting the camera to the computer i’d get a very nice image...
thanks, will try this. even when just connecting the camera though im getting quite a grainy playback - not sure even if i get clean hdmi out it’s going to work all that well :-(. not sure if i have a setting wrong somewhere in the camera or not but i would have thought just connecting the camera to the computer i’d get a very nice image...
When it says "Clean HDMI" it means no menus overlayed on the HDMI output. This fix ONLY REMOVES the OVERLAY MENUS from the outputted HDMI.... AND THIS IS NOT a fix to "clean up the grainy-ness of the video/camera quality". If you find the picture is too grainy, try increasing the light on what your filming.
Hello all! As promised, here is the tutorial for this process in English. Again, thanks to @leonardcoutinho without whom this wouldn't be possible! https://www.youtube.com/watch?v=bKaOpOu3OOM
I'm working on updatershell of pmca and I found an bug on my 5n but is good thing. Maybe is an solution for clean hdmi.
I changed the codec key (id=0x01070087) from AVCHD, value 03, to XAVC, value 0a, but camera don't have this codec. The thing is, when I press the record button the screen was clean, only camera image, no overlay. Then I put hdmi cable and voila, clean hdmi nicely. Maybe this fix can be included in tweak options. To remove this hack is easy, only change video format to avchd again.