Hi, please be patient: I'm a C*T! yes a *A*?(have you problem?)
please I wonder what's the commandline to get the umid code and put it on a specific enviroment variable, thanks
+ Reply to Thread
Results 1 to 9 of 9
-
-
[Attachment 45709 - Click to enlarge]
mmmm thank you, but in what way can I isolate the only "file_package_umid" result and put it on a .txt file? thanks -
Learn this and you will ascend from the rank of Supplicant Cat.
https://ss64.com/nt/for_cmd.html -
but it's a little compliCat for me. Is there a way to "print" the only umID string in a .txt file?
-
Code:
@set name=%1 @ffprobe -i %name% -show_entries "stream_tags:format_tags" -pretty -print_format csv -of csv > %name%.txt
-
Grep. Powershell.
Cat or no cat, you are no longer a baby needing it all spoonfed to you.
What you are trying to do incorporates powerful scripting but you don't appear to want to put any effort into learning to create it yourself.
Not sustainable, because sooner or later you will put off all the knowledgeable people who could help you.
Add to that the whole feline schtick, which gets old real fast.
Notice I have nearly completely ceased to offer suggestions anymore...
Scott -
Right on, Scott. I'm happy to help someone who desires to learn. Not interested in being exploited as free labor.
-
Code:
SetLocal EnableDelayedExpansion if exist TempFFprobeSuPC.txt del TempFFprobeSuPC.txt for %%f in ("%xdcamDriveLetter%:\clip\*.MXF") do ( if exist *.TMP del *.TMP if exist vartemp.txt del vartemp.txt if not exist "%%~nf.MXF" echo 1>vartemp.txt if not exist "%%~nf.MXF" echo copia in corso di "%%~nf.MXF" if not exist "%%~nf.MXF" copy /y "%%f" "%%~nf.TMP" if not exist "%%~nf.MXF" ren "%%~nf.TMP" "%%~nf.MXF" if exist "%%~nf.MXF" if not exist vartemp.txt echo sto trattando "%%~nf.MXF" if exist TempFFprobeSuXDCAM.txt del TempFFprobeSuXDCAM.txt if exist "%%~nf.MXF" if not exist vartemp.txt for /f "tokens=1,2 delims=^=" %%g in ('v:\automazioneclip\core\ffprobe64bit333.exe -hide_banner -loglevel fatal -pretty -select_streams v:0 -show_streams -show_entries stream^=codec_type^,r_frame_rate^,width^,height^,display_aspect_ratio^,duration_ts^,sample_aspect_ratio:stream_disposition^=:format_tags^=timecode^,company_name^,product_name^,product_version "%%~nf.MXF" 2^>^&1') DO ( if "%%~g"=="TAG:file_package_umid" echo %%~h>TempFFprobeSuPC.txt) if exist "%%~nf.MXF" if not exist vartemp.txt for /f "tokens=1,2 delims=^=" %%a in ('v:\automazioneclip\core\ffprobe64bit333.exe -hide_banner -loglevel fatal -pretty -select_streams v:0 -show_streams -show_entries stream^=codec_type^,r_frame_rate^,width^,height^,display_aspect_ratio^,duration_ts^,sample_aspect_ratio:stream_disposition^=:format_tags^=timecode^,company_name^,product_name^,product_version "%%f" 2^>^&1') DO ( if "%%~a"=="TAG:file_package_umid" echo %%~b>TempFFprobeSuXDCAM.txt) cls if exist "%%~nf.MXF" if not exist vartemp.txt for %%f in (*.mxf) do ( v:\automazioneclip\core\ffprobe64bit333.exe -select_streams v:0 -show_streams -show_entries stream=codec_type "%%f" 2>>TempFFprobeSuPC.txt ) cls if exist "%%~nf.MXF" if not exist vartemp.txt if exist TempFFprobeSuPC.txt for /f "tokens=1" %%a in (TempFFprobeSuXDCAM.txt) do ( >nul call findstr /m "%%a" TempFFprobeSuPC.txt if errorlevel 1 ( echo UMID_DIFFERENTE copy /y "%%f" "%%~nf.TMP" ren "%%~nf.TMP" "%%~nf_%date:~-10,2%%date:~-7,2%%date:~-4,4%ore%time:~0,2%%time:~3,2%_%time:~6,2%sec.MXF" ) else ( echo UMID_DUPLICATO ) )
Similar Threads
-
How to get the number of frames of a video file with ffprobe?
By marcorocchini in forum Newbie / General discussionsReplies: 36Last Post: 12th May 2019, 05:06 -
batch: how to get duration & number of frames of a wav file with ffprobe?
By marcorocchini in forum Newbie / General discussionsReplies: 20Last Post: 31st Oct 2014, 18:47 -
get colomatrix with FFPROBE
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 31st Aug 2014, 08:10 -
batch file ffmpeg ffprobe export media info to text file
By doomtomb in forum Newbie / General discussionsReplies: 1Last Post: 21st Jan 2014, 20:57 -
Video bit rate missing from FFProbe output
By rajivrp in forum Newbie / General discussionsReplies: 2Last Post: 30th Jul 2013, 09:53