User Tools

Site Tools


processors:encoder_custom_ffmpeg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
processors:encoder_custom_ffmpeg [2022/11/15 07:19] – [Purpose] emcodemprocessors:encoder_custom_ffmpeg [2022/11/15 07:21] (current) emcodem
Line 8: Line 8:
  
 Usually we engineer ffmpeg commandline processing in a windows cmd.exe box. The final result of such an experiment leads for example to this commandline: Usually we engineer ffmpeg commandline processing in a windows cmd.exe box. The final result of such an experiment leads for example to this commandline:
-C:\ffmpeg\ffmpeg.exe -i "C:\test\myfile.mp4" -codec copy -map 0 "C:\temp\myoutput.mp4"+<code>C:\ffmpeg\ffmpeg.exe -i "C:\test\myfile.mp4" -codec copy -map 0 "C:\temp\myoutput.mp4"</code>
  
 In order to automate this commandline, we could now use either a commandline processor in ffastrans, we just need to change it to something like this: In order to automate this commandline, we could now use either a commandline processor in ffastrans, we just need to change it to something like this:
-"%s_ffmpeg%" -i "%s_source%" -codec copy -map 0 "%s_source%_transcoded.mp4"+<code>"%s_ffmpeg%" -i "%s_source%" -codec copy -map 0 "%s_source%_transcoded.mp4"</code>
  
 Also, if the job goes on with the transcoded file, in the commandline processor we would check the "set s_source" to: "%s_source%_transcoded.mp4" Also, if the job goes on with the transcoded file, in the commandline processor we would check the "set s_source" to: "%s_source%_transcoded.mp4"
  
 Now, in a Custom ffmpeg processor, we would insert only this portion (and check that the codec text inputs are empty): Now, in a Custom ffmpeg processor, we would insert only this portion (and check that the codec text inputs are empty):
--codec copy -map 0+<code>-codec copy -map 0</code>
  
 Custom ffmpeg processor would automatically insert before -codec:  Custom ffmpeg processor would automatically insert before -codec: 
-"%s_ffmpeg%" -i "%s_source%"+<code>"%s_ffmpeg%" -i "%s_source%"</code>
  
 and after -map 0 it would insert some output filename that goes into the current working directory of the FFAStrans job.  and after -map 0 it would insert some output filename that goes into the current working directory of the FFAStrans job. 
processors/encoder_custom_ffmpeg.1668496781.txt.gz · Last modified: 2022/11/15 07:19 by emcodem

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki