Menu
Forums
New posts
Search forums
What's new
New posts
New media
New media comments
New profile posts
Latest activity
Media
New media
New comments
Search media
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
Search
Search titles only
By:
Search titles only
By:
New posts
Search forums
Search
Search titles only
By:
Search titles only
By:
Menu
Welcome DJI Spark Pilot!
Jump in and join our free Spark community today!
Sign up
Forums
Photos & Videos
Editing Software & Help
Can you please share best practices handling these video files?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="forczekattila" data-source="post: 20725" data-attributes="member: 3965"><p>Looks like nobody listens, but anyway, here I share my result with the community: </p><p>The below script does the job. It is renaming to datetime, merging audio and video, makes an audio-only file, and a downsized version for sharing. </p><p>So I can save it in a process.bat file, and schedule it on my NAS to work on this nightly. </p><p>I am happy with the result, let me know if you like it.</p><p></p><p>FOR /R "N:\DonGo\100MEDIA\" %%Z IN (*.MP4) DO @( FOR /F "Tokens=1-6 delims=:-\/. " %%A IN ("%%~tZ") DO @(</p><p> copy "%%~dpnxZ" "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Original.mp4"</p><p> move "%%~dpnxZ" "N:\DonGo\Processed"</p><p>))</p><p>FOR /R "N:\DonGo\DJI_RECORD\" %%Z IN (*.MP4) DO @( FOR /F "Tokens=1-6 delims=:-\/. " %%A IN ("%%~tZ") DO @(</p><p> copy "%%~dpnxZ" "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Cache.mp4"</p><p> move "%%~dpnxZ" "N:\DonGo\Processed"</p><p>))</p><p>FOR /R "N:\DonGo\Processing\" %%Z IN (*_Original.MP4) DO @( FOR /F "Tokens=1-6 delims=:-\/. " %%A IN ("%%~tZ") DO @(</p><p> N:\DonGo\ffmpeg -i "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Original.mp4" -itsoffset 1.0 -i "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Cache.mp4" -c:v copy -c:a aac -strict experimental "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_AV1080.mp4"</p><p> N:\DonGo\ffmpeg -i "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Cache.mp4" -vn -ar 44100 -ac 2 -ab 192k -f mp3 "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Audio.mp3"</p><p> N:\DonGo\ffmpeg -i "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_AV1080.mp4" -vf scale=1280:720 "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_AV720.mp4"</p><p> move "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Original.mp4" "N:\DonGo\Processed"</p><p> move "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Cache.mp4" "N:\DonGo\Processed"</p><p> move "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_AV1080.mp4" "N:\DonGo\Processed"</p><p> move "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_AV720.mp4" "N:\DonGo\Processed"</p><p> move "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Audio.mp3" "N:\DonGo\Processed"</p><p>))</p></blockquote><p></p>
[QUOTE="forczekattila, post: 20725, member: 3965"] Looks like nobody listens, but anyway, here I share my result with the community: The below script does the job. It is renaming to datetime, merging audio and video, makes an audio-only file, and a downsized version for sharing. So I can save it in a process.bat file, and schedule it on my NAS to work on this nightly. I am happy with the result, let me know if you like it. FOR /R "N:\DonGo\100MEDIA\" %%Z IN (*.MP4) DO @( FOR /F "Tokens=1-6 delims=:-\/. " %%A IN ("%%~tZ") DO @( copy "%%~dpnxZ" "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Original.mp4" move "%%~dpnxZ" "N:\DonGo\Processed" )) FOR /R "N:\DonGo\DJI_RECORD\" %%Z IN (*.MP4) DO @( FOR /F "Tokens=1-6 delims=:-\/. " %%A IN ("%%~tZ") DO @( copy "%%~dpnxZ" "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Cache.mp4" move "%%~dpnxZ" "N:\DonGo\Processed" )) FOR /R "N:\DonGo\Processing\" %%Z IN (*_Original.MP4) DO @( FOR /F "Tokens=1-6 delims=:-\/. " %%A IN ("%%~tZ") DO @( N:\DonGo\ffmpeg -i "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Original.mp4" -itsoffset 1.0 -i "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Cache.mp4" -c:v copy -c:a aac -strict experimental "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_AV1080.mp4" N:\DonGo\ffmpeg -i "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Cache.mp4" -vn -ar 44100 -ac 2 -ab 192k -f mp3 "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Audio.mp3" N:\DonGo\ffmpeg -i "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_AV1080.mp4" -vf scale=1280:720 "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_AV720.mp4" move "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Original.mp4" "N:\DonGo\Processed" move "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Cache.mp4" "N:\DonGo\Processed" move "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_AV1080.mp4" "N:\DonGo\Processed" move "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_AV720.mp4" "N:\DonGo\Processed" move "N:\DonGo\Processing\%%~A%%~B%%~C_%%~D%%~E_Audio.mp3" "N:\DonGo\Processed" )) [/QUOTE]
Verification
Post reply
Forums
Photos & Videos
Editing Software & Help
Can you please share best practices handling these video files?