VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. 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
    Quote Quote  
  2. Image
    [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
    Quote Quote  
  3. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    Learn this and you will ascend from the rank of Supplicant Cat.

    https://ss64.com/nt/for_cmd.html
    Quote Quote  
  4. but it's a little compliCat for me. Is there a way to "print" the only umID string in a .txt file?
    Quote Quote  
  5. Code:
    @set name=%1
    
    @ffprobe -i %name% -show_entries "stream_tags:format_tags" -pretty -print_format csv -of csv > %name%.txt
    Remain processing (UMID extraction) must be done by additional tool (don't how to select only particular tag on ffmpeg - perhaps this is possible or not)
    Quote Quote  
  6. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    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
    Quote Quote  
  7. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    Right on, Scott. I'm happy to help someone who desires to learn. Not interested in being exploited as free labor.
    Quote Quote  
  8. 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
      )
    )
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!