A következő címkéjű bejegyzések mutatása: terminal. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: terminal. Összes bejegyzés megjelenítése

2021. február 23.

How to split a video without rerendering it

To slice out a part of a video file, we can use this ffmpeg command:

ffmpeg -ss <position> -i input.mp4 -c copy -t <duration> output.mp4

-c copy Copy is a special value for the codec option on the output to indicate that the stream is not to be re-encoded.

-ss <position> When used as an input option (before -i), seeks in this input file to position. Note that in most formats it is not possible to seek exactly, so ffmpeg will seek to the closest seek point before position. When doing stream copy or when -noaccurate_seek is used, this extra segment between the seek point and position will be preserved.

-t <duration> When used as an output option (before an output url), stop writing the output after its duration reaches duration.

position/duration can be in either the [-][HH:]MM:SS[.m...] or the [-]S+[.m...][s|ms|us] format

2014. május 21.

Mplayer music playback with playlist

the command to use:
$ mplayer -playlist playlist.txt 

to make a playlist:
1. go to the directory that contains the files you want to make a playlist of.
2.
$ find . -type f -name "*.mp3" | sort > directory_playlist.txt
3. edit txt file so it has the full path (not necessary)

to do the same with a one-line command (if you do not need to edit the playlist):
$ mplayer -playlist <(find /directory/of/your/music/ -name "*.mp3" -type f | sort)

hit enter for the next track
cit crtl+c to break playback

A couple of useful commands with or within mplayer:
-shuffle : shuffle playlist
-loop : play the playlist repeatedly (can be combined with -loop)

2013. június 26.

Nautilus Open-in-terminal

Beside of using Nautilus script to open a specific nautilus folder in terminal,
it is possible to use the nautilus-open-terminal software.

Download it with
sudo apt-get install nautilus-open-terminal
Then restart nautilus with logging out and in again, or with
nautilus -q
This should do the trick.
&& Have fun using it!