Rank: Member
Groups: Registered
Joined: 1/8/2019(UTC) Posts: 15 Location: dallas tx Thanks: 1 times
|
I just upgraded my laptop with Windows 10 and my old recording format of MPEG2 has gone away, but according to forums, I should use FFMPEG with the MPEG2 Codec. That works but when recording to a flashdrive, VMix creates a text file in addition to the MPEG-2 file. Because I record many small videos at a time, I go back to the flashdrive after each video and rename it. But now I must delete all the text files. I have tried the MP4 format and it also creates a text file. WMV does not create a text file but I have concerns that a WMV file will not play on most DVD players. Is there a way to record on the FFMPEG without creating a text file?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,216 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: susie lavender I just upgraded my laptop with Windows 10 and my old recording format of MPEG2 has gone away, but according to forums, I should use FFMPEG with the MPEG2 Codec. That works but when recording to a flashdrive, VMix creates a text file in addition to the MPEG-2 file. Because I record many small videos at a time, I go back to the flashdrive after each video and rename it. But now I must delete all the text files. I have tried the MP4 format and it also creates a text file. WMV does not create a text file but I have concerns that a WMV file will not play on most DVD players. Is there a way to record on the FFMPEG without creating a text file? Those are log files If you add a datetime (standard setting) you will not have to rename them each time you stop a recording to avoid overwriting You can just delete the logfiles automatically by triggering a script to do so when you stop recording
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/24/2021(UTC) Posts: 508 Location: athens Thanks: 123 times Was thanked: 71 time(s) in 67 post(s)
|
Originally Posted by: doggy Originally Posted by: susie lavender I just upgraded my laptop with Windows 10 and my old recording format of MPEG2 has gone away, but according to forums, I should use FFMPEG with the MPEG2 Codec. That works but when recording to a flashdrive, VMix creates a text file in addition to the MPEG-2 file. Because I record many small videos at a time, I go back to the flashdrive after each video and rename it. But now I must delete all the text files. I have tried the MP4 format and it also creates a text file. WMV does not create a text file but I have concerns that a WMV file will not play on most DVD players. Is there a way to record on the FFMPEG without creating a text file? Those are log files If you add a datetime (standard setting) you will not have to rename them each time you stop a recording to avoid overwriting You can just delete the logfiles automatically by triggering a script to do so when you stop recording Right and for future reference if someone needs this kind of script can do like this Code:
Dim myFile As String
'set your recording folder
Dim mydir as string = "C:\capture"
'set the extension of files you want to delete
For Each myFile In Directory.GetFiles(mydir, "*.log")
File.Delete(myFile)
Next
|
|
|
|
Rank: Member
Groups: Registered
Joined: 1/8/2019(UTC) Posts: 15 Location: dallas tx Thanks: 1 times
|
Thank you so much for your help. I am not tech saavy and I had never heard of scripting but I have tried to input the info you suggested but with no luck. I go to Settings and click Scripting and I have input probably 20 different formulas but all receive error messages. I have never done a formula and I am way over my head. If you have time, can you give me an acceptable script to use? I record to E drive and need to delete all .ts files. I apologize for needing additional help.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/24/2021(UTC) Posts: 508 Location: athens Thanks: 123 times Was thanked: 71 time(s) in 67 post(s)
|
Originally Posted by: susie lavender Thank you so much for your help. I am not tech saavy and I had never heard of scripting but I have tried to input the info you suggested but with no luck. I go to Settings and click Scripting and I have input probably 20 different formulas but all receive error messages. I have never done a formula and I am way over my head. If you have time, can you give me an acceptable script to use? I record to E drive and need to delete all .ts files. I apologize for needing additional help. Are you sure you want to delete .ts files? Because ts files is your recorded files and not the log of these files. If you see beside your recorded file (the one with bigger size and that it plays) a file for example "capture - 04 January 2023 - 09-47-25 AM.ts" with some kb of size this file is not a .ts file. Is .log file and if you go in windows explorer -->view-->check filename extensions you will see that the small size file named for example "capture - 04 January 2023 - 09-47-25 AM.ts" will now show to you as "capture - 04 January 2023 - 09-47-25 AM.ts.log" so you need to delete these log files and not the .ts file that contains your records Now for the script you go to vmix-->settings-->scripting and you copy-paste the code below. In the third line it says Dim mydir as string = "C:\capture" so you have to change this to your folder for example E:\myrecords and save it. Then you save the script and assign it to a shortcut and you`re ready Code:
Dim myFile As String
'set your recording folder
Dim mydir as string = "C:\capture"
'set the extension of files you want to delete
For Each myFile In Directory.GetFiles(mydir, "*.log")
File.Delete(myFile)
Next
|
|
|
|
Rank: Member
Groups: Registered
Joined: 1/8/2019(UTC) Posts: 15 Location: dallas tx Thanks: 1 times
|
Thank you again - I have input the following in scripting and received an error message
Dim myFile As String 'set your recording folder Dim mydir as string = "C:\capture" 'set the extension of files you want to delete For Each myFile In Directory.GetFiles(mydir, "*.log") File.Delete(myFile) Next
I changed line 3 to E and still received an error.
I also cannot paste anything on the scripting page - I am not allowed to right click so I have to type in the info. I will keep trying but I may need to just delete each of the txt files in the future.
I give the flashdrive immediately to my bosses after recording about 100 small videos of about 3 minutes each and the bosses must be able to navigate to the specific video they need. Having a txt file in addition to the MPEG2.ts files will only confuse everyone. I am willing to compensate someone who can help me achieve this. Again, I did not have this problem for the last 7 years with FFMEG in VMix in Windows 7 until I upgraded to Windows 10 now. I am very frustrated.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/24/2021(UTC) Posts: 508 Location: athens Thanks: 123 times Was thanked: 71 time(s) in 67 post(s)
|
Copy the script, go inside script page and use ctrl + v from keyboard to paste it and not need typing The other way not scripting is before you get in the Flash disk to your bosses go to USB flash disk right click in empty space sort files by type and delete all .txt files. But no need for this because script should work ok. I was not using vmix with w7 so in w10 i work like this and no problem Also what is the error message you receive?
|
|
|
|
Rank: Member
Groups: Registered
Joined: 1/8/2019(UTC) Posts: 15 Location: dallas tx Thanks: 1 times
|
You have been very helpful and generous with your responses. I hope that you can tell me one more thing - It appears that when I record on the MP4 format, no txt file is created (just like the FFMPEG2 on Windows 7). Are you aware of any reason why I could not use MP4 for recording and bypass the scripting altogether? Is the recording quality as good and does MP4 recording require more disk space? Thank you.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/24/2021(UTC) Posts: 508 Location: athens Thanks: 123 times Was thanked: 71 time(s) in 67 post(s)
|
Try and see what fits you better. Also search differences between mp4 and mpeg2. Mp4 is more compressed file compared to mpeg2
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close