Once you download it, the program itself is located in MultipleAviConvDatePreserve\bin\Release\MultipleAviConvDatePreserve.exeĪnd you can use it with any converter that allows command-line (such as handbrake). $file='E:\Downloads\test\OldTime-record.ps1'Īnother solution for Windows I just found for those who don't want to have to deal with a ton of scripting: To fix it, just delete all lines starting from the second occurrence of $file = New-Object string. It just append the new records at the end. $file='E:\Downloads\test\1'įollowing is what happen if you run SaveTime.ps1 by accident. Following shows what it look like if you open it in notepad. This file hold file name and creation time records. Set-ItemProperty -Path $($file) -Name CreationTimeUTC -Value $($time) This script will read OldTime-record.ps1 and change file creation time accordingly. Run this script in PowerShell after video conversion. Save following script as OldTime.ps1 in your video directory. Write-output "`$file`=`'$($file.fullname)`'" > OldTime-record.ps1 Write-output "`$time = New-Object string` $($unt)" > OldTime-record.ps1 Write-output "`$file = New-Object string` $($unt)" > OldTime-record.ps1 I added an example of this situation at the end. Just use notepad to remove the extra lines. So no worry if you run it by accident and losing your original time-stamp. It will only append to the end if the file already exist. The script WILL NOT OVERWRITE OldTime-record.ps1. The script will create OldTime-record.ps1 in the same directory. Run this script in PowerShell before your video conversion. Save following script as SaveTime.ps1 in your video directory. Open PowerShell and cd to your video directory.ps1 is PowerShell script extension. Put following 2 scripts in your video directory. You have to do following for the first time before you can run any script(you only have to do it once) Set-ExecutionPolicy RemoteSigned (Start->All Programs->Accessories->Windows PowerShell). PowerShell come with Windows 7, no download needed. For example according to the PKT_PTS the start and stop frames are 16 which are signaled over SCTE-35 but the actual frames are 1500 2400 when I look only on the extracted frames.Copy your video directory to a new directory, then follow instruction below. On top of that, I was checking the SCTE-35 and there I had an offset with 150 frames between the insert intervals. While when I execute the ffprobe command: $ ffprobe -i input.ts -show_frames -select_streams v:0 -print_format flat | grep pkt_pts=Īnd I need to find out the pkt_pts timestamp on the extracted files possibly with only one command. This is the command I am using: ffmpeg -hide_banner -i input.ts -vf showinfo -vsync 0 -start_number 0 fr%05d.jpg &> log.txt The problem is that when I am using -vf showinfo option it shows me a restamped PTS. I have an input MPEG-2 TS file and I prefer to use some open source tool like ffmpeg or something similar. I want to extract the video frames and get the PTS timestamp for each one of them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |