User Tools

Site Tools


quick_command_list

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
quick_command_list [2018/10/06 06:21] – [FFMpeg Conversion of 4K] k2patelquick_command_list [2022/05/16 20:05] (current) – [remove comments and blank lines from output] k2patel
Line 333: Line 333:
 grep -v -e '^#\|^\W*$' grep -v -e '^#\|^\W*$'
 </code> </code>
 +OR 
 +<code bash> 
 +grep '^[[:blank:]]*[^[:blank:]#;]' $file 
 +</code>
  
 ==== Calculating Date ==== ==== Calculating Date ====
Line 468: Line 471:
 <code bash> <code bash>
 cat < /dev/tcp/k2patel.in/3306 cat < /dev/tcp/k2patel.in/3306
 +</code>
 +
 +==== Setting id tag on mp3 ====
 +Setting mp3 tag on multiple file based on filename as song name.\\
 +Same artist.
 +<code bash>
 +while read k2; do id3tag -a'xyz guru' -A'SuperSpeed' -s"${k2%%.*}" -y'2021' "${k2}" ; done < <(ls *.mp3)
 </code> </code>
  
Line 491: Line 501:
     -c:s copy \     -c:s copy \
     new_file.mp4     new_file.mp4
 +</code>
 +OR
 +<code bash>
 +ffmpeg -i old_file.mkv \
 +    -map 0:0 -map 0:1 -map 0:2 \
 +    -c:v copy \
 +    -c:a:0 ac3 \
 +    -c:s copy \
 +    -disposition:s:0 forced \
 +    new_file.mkv
 </code> </code>
  
quick_command_list.1538806892.txt.gz · Last modified: 2020/08/10 02:29 (external edit)