codingtips

Coding Tips

This works because the filename and data are stored separately. The filename can be unlinked, and the data will only be released once the file stream is closed. <verbatim> FILE *fd = fopen(“hidden.file”,“w”); unlink(“hidden.file”); fprintf(fd,“This is hidden information\n”); … fclose(fd); </verbatim>

<verbatim> % ffmpeg -loop_input -i image.jpg -r 29.97 -t 10 -qscale 2 video.mpg </verbatim> Where -t is the duration in seconds

<verbatim> % ffmpeg -i sound.mp3 -i video.avi final.avi </verbatim>

<verbatim> % ffmpeg -y -ss 1250 -t 81 -i input.dvr-ms -vcodec copy -acodec copy -f dvd out.mpg % ffmpeg -sameq -i out.mpg final.mp4 </verbatim> Where -ss is start time in seconds, -t is duration in seconds

<verbatim> % ffmpeg -i input_video.mkv -target ntsc-dvd -acodec mp2 -ab 192 -ac 2 -ar 48000 -b 4096 -r 29.97 -s 720×480 -vcodec mpeg2video -y output_video.mpg </verbatim>

  • codingtips.txt
  • Last modified: 2026/09/23 00:05
  • by 127.0.0.1