GNU/Linux


Creating ISO and Burning CD or DVD using Command Line tools 1

Creating an ISO image

The command called genisoimage can make an .ISO image to be burned or mounted.

genisoimage -r -J -o image.iso ./directory;

The -r and -J ensure long file names work for Unix (using Rock Ridge) and Windows (using Joliet extensions) respectively.
The -o parameter defines the name of the iso image file to be created (here we used image.iso).
The last parameter (./directory) defines the directory from which the command will copy its files for the image.

Checking CD Images Before Burning

It’s possible to check CD images before burning. The easiest way is to simply double-click on it from the file browser, which will view the image with the Archive Manager.

If you have sudo access, you can also mount the image, and explore its contents using the following commands:

sudo modprobe loop;
sudo mount -t iso9660 -o ro,loop=/dev/loop0 image.iso /media/cdrom;

Remember to unmount an image after checking:

sudo umount /media/cdrom;

Burning a CD on the Command Line with wodim

To burn a data CD (using image prepared earlier), first see where the CD/DVD writer is located using the following command:

wodim --devices;
$ wodim --devices wodim: Overview of accessible drives (1 found) : 
-------------------------------------------------------------------------
  0  dev='/dev/scd0'     rwrw-- : 'LITE-ON' 'DVDRW SOHW-1633S' 
-------------------------------------------------------------------------

After finding the info from the device scanning results, take the appropriate target.
This is important if there is more than one device on the system.

In this case /dev/cdrw and /dev/dvdrw both point to /dev/scd0.

$ ls -l /dev/cdrw
 lrwxrwxrwx 1 root root 4 2009-01-26 21:56 /dev/cdrw -> scd0
$ ls -l /dev/dvdrw
 lrwxrwxrwx 1 root root 4 2009-01-26 21:56 /dev/dvdrw -> scd0

Then we can proceed to burn the ISO as follows:

# To burn a data CD
wodim dev=/dev/sr0 -v -data image.iso;
# To burn an audio cd from wav files:
wodim dev=/dev/sr0 -v -audio [wav files...]

Replace /dev/sr0 as needed if this is not your CD/DVD-Writer, the parameter -v (verbose) lets you track the recording progress.


RIP tux.crystalxp.net – Second Part 4

Below you will find some images we were able to salvage from https://tux.crystalxp.net/, it was a great repository of Tux creations. Let’s hope it will be restored eventually.

For more images of Tux please visit the following links (we had to split them to multiple pages to avoid having your browser getting stuck):

  1. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net
  2. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-second-part
  3. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-third-part
  4. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-fourth-part
  5. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-fifth-part
  6. https://bytefreaks.net/uncategorized/rip-tux-crystalxp-net-sixth-part
  7. https://bytefreaks.net/uncategorized/rip-tux-crystalxp-net-seventh-part
  8. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-eigth-part
  9. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-ninth-part
  10. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-tenth-part
  11. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-eleventh-part
  12. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-twelfth-part
  13. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-thirdtenth-part
  14. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-fourteenth-part
  15. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-fifteenth-part
  16. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-sixteenth-part
  17. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-seventeenth-part
  18. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-eighteenth-part
  19. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-nineteenth-part
  20. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-twentieth-part

License: GNU LGPL


RIP tux.crystalxp.net 7

Below you will find some images we were able to salvage from https://tux.crystalxp.net/, it was a great repository of Tux creations. Let’s hope it will be restored eventually.

For more images of Tux please visit the following links (we had to split them to multiple pages to avoid having your browser getting stuck):

  1. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net
  2. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-second-part
  3. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-third-part
  4. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-fourth-part
  5. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-fifth-part
  6. https://bytefreaks.net/uncategorized/rip-tux-crystalxp-net-sixth-part
  7. https://bytefreaks.net/uncategorized/rip-tux-crystalxp-net-seventh-part
  8. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-eigth-part
  9. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-ninth-part
  10. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-tenth-part
  11. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-eleventh-part
  12. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-twelfth-part
  13. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-thirdtenth-part
  14. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-fourteenth-part
  15. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-fifteenth-part
  16. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-sixteenth-part
  17. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-seventeenth-part
  18. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-eighteenth-part
  19. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-nineteenth-part
  20. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-twentieth-part

License: GNU LGPL


Cut a video based on start and end time using FFmpeg

You probably don’t have a keyframe at the specified second mark if you can’t cut a video at a particular moment.
Non-keyframes need all of the data beginning with the previous keyframe because they encode variations from other frames.

Using an edit list, it is possible to cut at a non-keyframe with the mp4 container without re-encoding.
In other words, if the closest keyframe before 3s is at 0s, the video will be copied starting at 0s, and FFmpeg will use an edit list to tell the player to begin playing 3 seconds in.

If you’re using the latest version of FFmpeg from git master, it’ll use an edit list when you run it with the command you give.
If this does not work for you, it is you are likely using an older version of FFmpeg or that your player does not support edit lists.
Some players can disregard the edit list and play the entire file from beginning to end, regardless of the edit list.

If you want to cut specifically at a non-keyframe and have it play at the desired point on a player that doesn’t support edit lists, or if you want to make sure the cut section isn’t in the output file (for example, if it includes sensitive information), you can do so by re-encoding so that a keyframe is present at the desired start time.
If you don’t mention copy, re-encoding is the norm.
Consider the following scenario:

ffmpeg -i input.mp4 -ss 00:00:07 -t 00:00:18 -async 1 output.mp4
  • The -t option defines a length rather than an end time.
  • The command above will encode 18 seconds of video beginning at 7 seconds.
  • Use -t 8 to start at 7 seconds and end at 15 seconds.
  • If you’re using a recent version of FFmpeg, you can also use -to instead of -t in the above command to make it end at the required time.