Tag Info

New answers tagged

2

I like using an easy to use unix command line bash script called VCS - Video Contact Sheet. Their official page: http://p.outlyer.net/vcs/ Its a lot easier to use even easier than a GUI ''It is a bash script meant to create video contact sheets (previews) aka thumbnails or previews of videos. Any video supported by mplayer and ffmpeg can be used by this ...


3

You can use the following command for f in ./*.flv; do ffmpeg -i "$f" -vf scale=320:-1 "${f%.*}.gif" done This iterates over all files ending with .flv in the current directory, processing them and changing the extension to .gif. Note that the file names must not contain spaces for this to work. Alternatively, on a GNU system, you can use find . ...


0

Use the software kino. Start it, then press capture -> capture.


0

Yes, you can get raw video using different library like v4l2. For more help v4l2 help. I hope this helps you.


1

I had the same problem. Very hard sometimes with the nVidia cards to get the resolution right by futzing directly with xorg so I like to use arandr for this kind of thing. (This is one of the few times that I find the GUI stuff better then the command line approach.) pkg_info tells us about arandr: # pkg_info -d arandr Information for ...


0

For single user use, you can write a nemo action in: $HOME/.local/share/nemo/actions/ For all users use: /usr/share/nemo/actions/ The file has to preserve the file ending *.nemo_action. Something like: [Nemo Action] Name=mp42m4a Comment=Convert mp4/flv to m4a Exec=gnome-terminal -x sh -c "ffmpeg -i %F -vn -acodec copy audio.m4a" Icon-Name= ...


3

Streamlining @jmunsch's answer, and using the paste I just learned from @slm's answer, you could end up with something like this: for i in *.ts; do LC_ALL=C ffmpeg -i "$i" 2>&1 | \ awk -F: '/Duration:/{print $2*3600+$3*60+$4}'; done | paste -sd+ | bc Just like jmunsch did, I'm using ffmpeg to print the duration, ignoring the error about a missing ...


14

I have no .ts here but this works for .mp4. Use ffprobe (part of ffmpeg) to get the time in seconds, e.g: ffprobe -v quiet -of csv=p=0 -show_entries format=duration Inception.mp4 275.690000 so for all .mp4 files in the current dir: find . -maxdepth 1 -iname '*.mp4' -exec ffprobe -v quiet -of csv=p=0 -show_entries format=duration {} \; 149.233333 ...


3

I'm not familiar with the .ts extension, but assuming they're some type of video file you can use ffmpeg to identify the duration of a file like so: $ ffmpeg -i some.mp4 2>&1 | grep Dura Duration: 00:23:17.01, start: 0.000000, bitrate: 504 kb/s We can then split this output up, selecting just the duration time. $ ffmpeg -i some.mp4 2>&1 | ...


4

This uses ffmpeg and prints the time out in total seconds: times=() for f in *.ts; do _t=$(ffmpeg -i "$f" 2>&1 | grep "Duration" | grep -o " [0-9:.]*, " | head -n1 | tr ',' ' ' | awk -F: '{ print ($1 * 3600) + ($2 * 60) + $3 }') times+=("$_t") done echo "${times[@]}" | sed 's/ /+/g' | bc Explanation: for f in *.ts; do iterates each of the ...


0

$ find -iname '*.ts' -print0 |\ xargs -0 mplayer -vo dummy -ao dummy -identify 2>/dev/null |\ perl -nle '/ID_LENGTH=([0-9\.]+)/ && ($t += $1) && printf "%02d:%02d:%02d:%02d\n",$t/86400,$t/3600%24,$t/60%60,$t%60' Be sure that you have MPlayer installed.


1

ffmpeg -i video.mp4 -vn -acodec copy audio.aac Here’s a short explanation on what every parameter does: -i “input file” -vn “skip the video part” -acodec copy "copy audio stream".


0

I think if you parse ffmpeg output you could achieve this in part, but beware the labyrinthe documentation on how to encode for best results. It's a little tricky. Perhaps an alternate approach is to find a common standard whose parameters can be set one, and leave your transcoder job running on all A, B, etc.


0

No It is not possible to have all the parameters same as B. We need to compromise or adjust some attribute of the Video A, so that the other attribute of the video A matches with the video B. Hope this helps!



Top 50 recent answers are included