Questions tagged [avconv]

Questions about using avconv, a video and audio converter.

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

Why does avconv bit rate lowering take ages, and cause fan to work overtime?

Summary: I've read that the way to reduce the size of mp4 files is by lowering the video bit rate. So I'm using avconv to do this. The following is the command I'm using: avconv -i input-file.mp4 -b:...
dave99's user avatar
  • 1
1 vote
0 answers
50 views

Automating finding optimal parameters for re-encoding random video files with ffmpeg / avcov

I've done a bit of re-encoding of video with ffmpeg, mainly aimed at recompressing videos from assorted sources (youtube, twitch, tiktok, etc) to reduce file size with acceptable (subjective) amounts ...
GDorn's user avatar
  • 111
0 votes
1 answer
282 views

How to convert PPM to MP4 with avconv

I'm trying to convert a PPM video file to an MP4 video file using avconv. I tried this: avconv -r 1 -i Hole0.0001.mp4.ppm -r 24 Hole.mp4 avconv version 12.3, Copyright (c) 2000-2018 the Libav ...
Suntory's user avatar
  • 101
0 votes
1 answer
36 views

Avconv only converts 3 seconds of audio instead of the entire 30 minutes

this is my code dir=Desktop/mp3convert #I left out the whole t find "${dir:-.}" -name "*.mp3" -exec avconv -i {} -b 64k -ar 44100 -ac 1 {} \;
Tim Sutyak's user avatar
3 votes
2 answers
1k views

How to transition smoothly and repeatedly between two videos using command line tools?

I want to output a video using two videos as input, where these two videos fade (or dissolve) into each other in a smooth and repetitive manner, every second or so. I'm assuming a combination of ...
Lichtung's user avatar
0 votes
0 answers
758 views

using ffmpeg instead of avconv

i have 2 bash scripts wich i am trying to use which require avconv when i run the scripts i get the error bash: avconv: command not found but since i dont know where to find avconv in either pacman ...
harry mckay's user avatar
1 vote
0 answers
721 views

how to fix or change a mp4 video timestamps (frame rate) based on available frames?

I have a video file that was created as x264, 26 fps, 20MB. command used to convert avconv -i infile.mp4 -c:v libx265 -c:a libmp3lame outfile.mp4 After converting it to x265 HEVC it gets wrong ...
Aquarius Power's user avatar
3 votes
1 answer
12k views

How to download the highest quality .mp3 with youtube-dl on Sierra?

I'm trying to use youtube-dl to download the highest quality .mp3 files from youtube videos. I've installed youtube-dl and ffmpeg and downloaded libav. I found this command: youtube-dl -f bestaudio ...
Harrison's user avatar
5 votes
2 answers
3k views

trim and fade in/out video and audio with avconv (or different tool)

I'm using avconv for trimming and converting videos. Let's say I want to drop the first 7 and last 2.5 seconds of the video stream and one audio stream of an one-hour mts file: avconv -i input.mts -...
Philippos's user avatar
  • 13.4k
1 vote
1 answer
486 views

Incorrect scene change detection with avconv

According to this article I used successfully the command $ ffmpeg -vf "select='eq(pict_type,I)'" -i somevideo.mp4 -vsync 0 -f image2 /tmp/thumbnails-%02d.jpg I tried the second command: $ ffmpeg -...
xralf's user avatar
  • 16k
1 vote
0 answers
241 views

avconv / ffmpeg threading not working

Am I doing something wrong or is the threading option in "avconv" broken? I tried the "-threads" option with H264 and mpeg2video and regardless of what value I give it (0 to 4) there is no difference ...
user83311's user avatar
0 votes
0 answers
82 views

What's wrong with this Nautilus script?

I'm trying to write a simple Nautilus script that lets me select a media file, right-click to get Nautilus script menu, and convert it into an mp3 using avconv name=$...
interstar's user avatar
  • 1,057
5 votes
1 answer
1k views

Don't wait for audio stream with ffmpeg/avconv using named pipes

I have two named pipes, audio_conv and video, for s16le and h264 streams, respectively. I want to convert them to webm format on fly. Data to these pipes proceeds from my application, that parses ...
FunkyCat's user avatar
  • 171
1 vote
1 answer
656 views

How do I use ffmpeg or avconv to create a file from a raw source

I'm trying to make a video recorder, to capture video of my partners seizures for her doctor. Because they're unpredictable, the system needs to be recording constantly, saving as 15 minute clips for ...
ShatPank's user avatar
1 vote
0 answers
350 views

Record fullscreen program with avconv/ffmpeg?

I'm trying to record a fullscreen program (snes9x) with avconv, aka ffmpeg. I have avconv set up to use my whole screen, but it doesn't capture snes9x when I run it. #!/bin/bash avconv \ -f ...
RalphORama's user avatar
3 votes
1 answer
2k views

Convert .264 to .mp4 using avconv

I have a video file (with no audio stream) taken from a Lorex CCTV DVR. The video file has a suffix of ".264" which I assume means its format is raw h264. I cannot play this video on certain ...
EricVonB's user avatar
  • 131
6 votes
1 answer
1k views

correctly splitting an avi file

I'm trying to split an avi file as follows. avconv -i file.avi -vcodec copy -acodec copy -ss 0 -t 10 out.avi and this works (It creates a chunk with first 10 seconds of the video). The problem is ...
xralf's user avatar
  • 16k
1 vote
2 answers
1k views

avconv commandline for downsampling HD video to SD

I'm trying to downsample a HD video recorded by TVheadend to SD size using the following command: avconv -i infile.ts -map 0:v -map 0:a:0 -map 0:a:1 -c copy -c:v mpeg2video -r 25 -qscale:v 2 -s:v ...
Daniel Alder's user avatar
1 vote
1 answer
576 views

Why libav-tools packet not contains avserver on Debian 8

Why libav-tools packet not contains avserver on Debian 8? I installed libav-tools using this command: apt-get install libav-tools avconv is avaliable after installation process, but avserver not. ...
Nik's user avatar
  • 113
2 votes
1 answer
1k views

avconv "Error while opening encoder for output stream" for subtitles?

I'm trying to convert a video changing the audio codec from aac to ac3_fixed: avconv -i input.mkv -c:v copy -c:a ac3_fixed output.mkv However this commands aborts after showing the following output: ...
Damian Nadales's user avatar
1 vote
1 answer
88 views

How do I convert a batch of avis into mp4s?

I have several avi files in the one directory that I would like to convert to mp4s using avconv. Now I know the basic procedure of how to do this, manually, for each avi, namely (where $@ are the ...
Josh Pinto's user avatar
  • 3,493
63 votes
3 answers
146k views

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 ...
shivams's user avatar
  • 4,525
1 vote
1 answer
133 views

Custom action calling avconv in Thunar and Dolphin

I like to use a command like avconv -i %f -map 0:1 -c:a copy %f.m4a in the custom actions of Thunar or Dolphin to extract audio from mp4 and flv without transcoding. But that will output a name ...
user avatar
1 vote
0 answers
1k views

avconv: remove audio stream, keep audio and video synchronized

I have an AVI file with one video and three audio streams. I would like to discard two of the audio streams, keeping only one. I tried to do so using avconv (v11.3-6): avconv -i in.avi -map 0:0 -map ...
A. Donda's user avatar
  • 238
2 votes
0 answers
228 views

Record video from camera and get frame number on demand

I'm using avconv at the moment to store the input of my camera as an video. This works fine. Now i'm asking myself if it is possible to get the current frame number at a particular time of the video ...
Akkusativobjekt's user avatar
1 vote
1 answer
657 views

Unable to output to TCP through avconv

I'm trying to use avconv to read a video from disk and output it over a socket, using: avconv -i video.mp4 tcp://127.0.0.1:5005 I get the error "Unable to find a suitable output format for 'tcp://...
user109526's user avatar
1 vote
1 answer
505 views

Avconv creates 0 byte outputfile after applying frame rate reduction

I installed avconv because I am too stupid to install ffmpeg, now I realized I am even more stupid. I tried to reduce the framrate from 30 fps to 24 fps following a very straigtforward tutorial: # ...
Abdul Al Hazred's user avatar
1 vote
0 answers
164 views

extracting codec information from rpt stream

I got a list of rtp streams in a list, those are tv channels from my internet provider. I would like to get information about the codec and get the channel names instead of ip addresses, precisely ...
euri10's user avatar
  • 151
0 votes
1 answer
1k views

Error while making movie from png's with avconv or ffmpeg

I want to create a movie from a bunch of png's by using the command: avconv -i pics/*.png out.mp4 or ffmpeg -r 1/1 -start_number 1 -i pics/*.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 ...
Guiste's user avatar
  • 103
13 votes
7 answers
38k views

FFMPEG - Interpolate frames or add motion blur

I just watched the trailer for the hobbit, and a trailer for the avengers which both feature an increased framerate. A lot of the comments state that this isn't "true" 60fps since it was not shot at ...
Programster's user avatar
  • 2,177
8 votes
3 answers
3k views

Convert video to exactly the same format as another video

Suppose I have two video files A and B. Now I want to convert A to the same format (i.e. same container, same audio and video codec), same bitrate, size etc. as B. Is there a way to do this ...
student's user avatar
  • 18.1k
1 vote
1 answer
2k views

Convert video changing only bitrate

I have a mediaplayer program which lags playing one specific file. My assumption is that it is because of too high video bitrate (41.3 Mbps) and too slow CPU (it is embedded system). So, I want to be ...
JIghtuse's user avatar
  • 121
1 vote
0 answers
590 views

Avconv Error when trying to save an updating snapshot of an IP-camera stream

I'm trying to save an updating image of my camera stream on my Desktop. avconv -i rtsp://admin:[email protected]/h264 -f image2 -r 1 /home/nuc/Images/img.jpg Protocol avconv version 9.16-6:9.16-...
empedokles's user avatar
4 votes
0 answers
5k views

How to record v4l webcam with ffmpeg? Cannot find a proper format for codec 'none'

Goal is to capture video from my old usb webcam (device 0733:0430). Trying to save video gives this error. (I've tried both ffmpeg and avconv.) Command ffmpeg -f v4l2 -i /dev/video2 -s 160x120 tmp....
Rucent88's user avatar
  • 1,870
4 votes
3 answers
6k views

Slow down mp3 audio

I love VLC's option of slowing down audio playback. Now I want to take my mp3-files to a portable player and play them there. Unfortunately the player does not have a slow down option. How can I ...
Ole Tange's user avatar
  • 34.8k
2 votes
2 answers
3k views

Cutting an AV file (MP4)

I have tried using openshot, pitivi, kdenlive, videolan to cut an audio/video file but they all seem to freeze. So I am now trying to use the following command: avconv -i input.MP4 -vcodec copy -...
oshirowanen's user avatar
  • 2,581
5 votes
2 answers
5k views

Is there any equivalent to the atempo ffmpeg audio filter but for avconv to speed up video & audio?

As noted here, we could speedup audio with ffmpeg using: $ ffmpeg -i input.mkv -filter:a "atempo=2.0" -vn output.mkv But on Ubuntu, ffmpeg is replaced by avconv, and the atempo filter is not ...
gongzhitaao's user avatar
1 vote
0 answers
1k views

avconv stops streaming after some time

I am using raspberry-pi board and a usb camera attached with it. i use avconv tool to capture live video from camera and streaming it on network using rtp protocol. My command on server(raspberry-pi ...
Dhrumil Doshi's user avatar
3 votes
0 answers
1k views

avconv: converting raw mjpeg video to a viewable format

I'm using a Beaglebone Black (BBB) with a USB Webcam attached to it. The BBB is running the latest Angstrom release. At the moment, it is proving difficult for me to convert video that I capture to ...
Nick Williams's user avatar
1 vote
0 answers
207 views

How can I add a still image inside a video with avconv or opensource software

I would like to add a still image inside a h264 video following an in and out point in time. I would like to use only opensource/free Linux/Debian packages. I tried a lot of things with avconv like ...
HugoZandel's user avatar
2 votes
0 answers
2k views

avconv error: av_interleaved_write_frame

I use avconv to cut a video and to remove subtitles. Depending on the length of the output video, I get a success or and error. The input video has the following information: avconv -i video.mkv ...
GreatGasby's user avatar
2 votes
0 answers
232 views

Jitter while screen recording with avconv

I've figured out how to record decent quality with avconv now, the problem that remains which I also have experienced with ffmpeg and recordmydesktop is that my desktop background keeps flickering ...
Jonathan M. Hethey's user avatar
12 votes
1 answer
12k views

How do I `avconv` every m4a in a dir to mp3s?

So I'm trying to convert lots of m4as to mp3s, and I think the best way to do that is using avconv. The problem is, I can't seem to find any solid examples on how to use avconv. Looking at the man ...
evamvid's user avatar
  • 688
1 vote
0 answers
40 views

Can't stream both audio sources, only mic works

Why does the following code not stream both audio sources? #!/bin/bash INRES="1920x1080" OUTRES="1280x720" FPS="20" QUAL="medium" STREAM_KEY=$(cat ~/.twitch_key) avconv -g 0 \ -f x11grab -s $INRES ...
Michaeljwjr's user avatar
0 votes
0 answers
1k views

How to convert a video file from mp4 to mp2

I have been searching a lot and I can't find a solution. How do you convert a video from MPEG-4 to MPEG-2? That shouldn't be too hard. But the avconv man pages don't give enough info to do this ...
Mr Lister's user avatar
  • 360
9 votes
2 answers
19k views

Interactively concatenate video files

How to concatenate (join) multiple MP4 video files into one file interactively? There are a lot of programs that do this for two files from the command line. For instance: ffmpeg avconv MP4Box ...
Slyx's user avatar
  • 3,845
2 votes
1 answer
7k views

Compare video and image (percentage of differences)

I was wondering if it's possible to get the percentage of difference between a video and an static image using avconv (from libav) I have a surveillance camera constantly providing an RTSP video feed....
Savir's user avatar
  • 1,231
3 votes
1 answer
6k views

Convert images into avi with Raspberry Pi

I'm following this page: Creating Timelapse Videos With The Raspberry Pi Camera. But every time I try to make the video, I get this error: original: https://i.stack.imgur.com/ApIJ0.png ...
Coolcrab's user avatar
  • 133
4 votes
3 answers
2k views

avconv creates creates files whose duration is incorrect

I am attempting to create a variable rate mp3 from a flac using the following command: avconv -i t.flac -id3v2_version 3 -vn -acodec libmp3lame -aq 0 t.mp3 avconv and mediainfo both list the ...
William Everett's user avatar
2 votes
1 answer
3k views

how to use avconv to record streaming audio (how to define sources)?

I have never used avconv before. I've been reading the manual and asking questions on various forums and IRC for the last couple weeks but I have not found an answer yet. (This question is one part of ...
MountainX's user avatar
  • 17.5k