Questions tagged [video]

related or about the video issues, the range varies from playing a video file, the formats, tools to work with it in *nix operatin systems up to issues surrounding it in specific environment (ie. console, framebuffer, X11 ...)

Video is an electronic medium for the recording, copying and broadcasting of moving visual images.
Video tag related or about the video issues, the range varies from playing a video file, the formats, tools to work with it in *nix operatin systems and the handling of a video file by *nix operation system up to issues surrounding it in specific environment (ie. console, framebuffer, X11 ...)

650 questions
825
votes
12 answers

How can I reduce a video's size with ffmpeg?

How can I use ffmpeg to reduce the size of a video by lowering the quality (as minimally as possible, naturally, because I need it to run on a mobile device that doesn't have much available space)? I forgot to mention that when the video can use…
xralf
  • 16,149
  • 29
  • 101
  • 149
182
votes
5 answers

How to do I convert an animated gif to an mp4 or mv4 on the command line?

What command would I use to convert an mp4 or mv4 video file to an animated gif, and vice versa. That is, convert a animated gif to a mp4 or mv4.
stinkypyper
119
votes
4 answers

Watch YouTube videos in terminal

I'm looking for a way to watch YouTube videos in terminal (not in a browser or another window, but right there, in any bash session). Is there a simple way to do this? I imagine something like this: $ youtube I already know how to…
Ionică Bizău
  • 3,371
  • 10
  • 30
  • 49
84
votes
5 answers

Merge two video clips into one, placing them next to each other

I have two video clips. Both are 640x480 and last 10 minutes. One contains background audio, the other one a singing actor. I would like to create a single 10 minute video clip measuring 1280x480 (in other words, I want to place the videos next to…
user
  • 915
  • 7
  • 27
  • 38
65
votes
7 answers

GIF screencasting; the UNIX way

To take a static screenshot of a selected part of my screen, I often use scrot with -s shot.png. This is great for adding illustrations to StackExchange posts. I even found this script to automatically upload such a screenshot to Imgur.com and put a…
63
votes
3 answers

Re-encoding video library in x265 (HEVC) with no quality loss

I am trying to convert my video library to HEVC format to gain space. I ran the following command on all of the video files in my library: #!/bin/bash for i in *.mp4; do #Output new files by prepending "X265" to the names avconv -i "$i"…
shivams
  • 4,505
  • 3
  • 19
  • 36
50
votes
10 answers

Get total duration of video files in a directory

I have a list of .ts files: out1.ts ... out749.ts out8159.ts out8818.ts How can I get the total duration (running time) of all these files?
k961
  • 735
  • 2
  • 8
  • 10
49
votes
3 answers

Get metadata from a video in the terminal

I am writing a bash script that I want to echo out metadata (length, resolution etc.) of a set of videos (mp4) into a file. Is there a simple way to get this information from an MP4 file?
Questionmark
  • 3,885
  • 8
  • 37
  • 57
43
votes
4 answers

Convert OGV video to GIF animation?

I created OGV videos with the gtk-recordmydesktop screencasting program, trying to tackle this problem here with bruteforce over X. I can view the videos with VLC. Now, the task is to find some ways to convert OGV videos into GIF animations so I can…
user2362
43
votes
7 answers

How do I watch my webcams feed on Linux?

In Windows I can open "My Computer" and click on the "Webcam" icon to get a feed from my webcam. I can also take snapshots of that feed. Can I do the same in Ubuntu? Without installing any extra applications like Photo Booth.
fox
  • 996
  • 2
  • 8
  • 11
38
votes
10 answers

Streaming to an Apple TV (3) from Linux

Alright, here is the setup: One apple tv 3 in the living room, connected to the network (wired). One pc running Linux (Arch Linux x64, AMD), containing all music, movies and series (wired). Now I know that the atv can stream music and stuff shared…
MaienM
  • 725
  • 1
  • 6
  • 9
37
votes
6 answers

Can I pipe /dev/video over ssh

I have two computers, a desktop in my office ( with a webcam attached ) and a laptop somewhere else on the network. Usually I take a look at my office through my webcam by running ssh Office -Y "mplayer tv://device=/dev/video0" from my laptop. I…
Stefan
  • 24,830
  • 40
  • 98
  • 126
37
votes
4 answers

How to set the resolution in text consoles (troubleshoot when any `vga=...` fails)

It is a common way to set the resolution of a text consoles (that are usually available by Ctrl-Alt-F1 thru Ctrl-Alt-F6) by using a vga=... kernel parameter. I'm using Ubuntu 10.04 Lucid, output of uname -a is: Linux 2.6.32-33-generic #70-Ubuntu…
mbaitoff
  • 4,911
  • 8
  • 28
  • 32
33
votes
2 answers

Multiple /dev/video for one physical device

First some specs: my computer is an HP EliteBook 8460p. It comes with an integrated Chicony HP HD webcam. My issue is that a lot of applications (well, at least Skype and guvcview) are displaying multiple lines for the same webcam; indeed, if I do…
kagmole
  • 453
  • 1
  • 4
  • 9
29
votes
4 answers

How to extract images from video file?

I mean, how to generate images files from a video like screenshots.
remas sido
  • 721
  • 2
  • 7
  • 6
1
2 3
43 44