avconv

Bash script fails when running command with embedded quotes (source parameters)

孤街醉人 提交于 2019-12-06 15:03:08
问题 I'm using source to insert generated variables into a string from a file in order to execute that string from a bash script. I've echoed the generated string to compare to one that works from the command line and I can't seem to see any difference, but the bash command fails as it seems the supplied parameters are getting mixed up somewhere in the middle. I've escaped double quotes around the ice_name string, so it looks identical to the one that works when I echo it Do I need to escape other

Can I create a VFR video from timestamped images?

妖精的绣舞 提交于 2019-12-06 05:59:16
问题 First, I have almost zero experience in making videos from images. What I have is a set of BMP timestamped images from which I want to generate a video. Since the timestamps are not equally spaced, I cannot simply use software that create constant-frame-rate videos from images. A possible solution would be to create artificial images at fixed time intervals, but I prefer to leave that as a last resort if I fail to make a VFR video. Any suggestions on how to achieve what I want? 回答1: You can

Bash script fails when running command with embedded quotes (source parameters)

一个人想着一个人 提交于 2019-12-04 22:55:07
I'm using source to insert generated variables into a string from a file in order to execute that string from a bash script. I've echoed the generated string to compare to one that works from the command line and I can't seem to see any difference, but the bash command fails as it seems the supplied parameters are getting mixed up somewhere in the middle. I've escaped double quotes around the ice_name string, so it looks identical to the one that works when I echo it Do I need to escape other characters? It seems to be getting mixed up BEFORE the -ice_name parameter This is the command avconv

Create time lapse video from other video

不羁岁月 提交于 2019-12-03 17:09:13
问题 Using avconv (or even ffmpeg, so I can use as a reference), how can I create a time lapse video by taking only anchor/reference frames from another video? Most information I find is on how to create a time lapse video by combining images, and I'd like to do it by extracting frames from a video. Say, if a video is 30 seconds long at 30 FPS, I'd like to take 60 out of those 900 frames (900/60 = every 15 seconds) to produce a 2 second video. 回答1: To take every 15th frame, use ffmpeg -i in.mp4

Reduce HLS latency from +30 seconds

牧云@^-^@ 提交于 2019-12-03 06:23:27
问题 Ubuntu 12.04 nginx 1.2.4 avconv -version avconv version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers built on Feb 6 2014 20:56:59 with gcc 4.6.3 avconv 0.8.10-4:0.8.10-0ubuntu0.12.04.1 libavutil 51. 22. 2 / 51. 22. 2 libavcodec 53. 35. 0 / 53. 35. 0 libavformat 53. 21. 1 / 53. 21. 1 libavdevice 53. 2. 0 / 53. 2. 0 libavfilter 2. 15. 0 / 2. 15. 0 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 52. 0. 0 / 52. 0. 0 I'm using avconv and nginx to create an HLS stream but

avconv: make a video from a subset on images

让人想犯罪 __ 提交于 2019-12-03 04:42:58
问题 I am trying to make a bunch of png's into a video using avconv, the png's are numbered like filename_<number> so I usually just use the command: avconv -r 10 -i filename_%d.png -b:v 1000k test.mp4 I now want to make a video from a subset of the files filename_8 - filename_50 lets say, so I've copied these files into a new directory and tried the same command but now I get the error: filename_%d.png: No such file or directory I assume this is because the numbering doesn't start from 1? How can

How to merge videos by avconv?

牧云@^-^@ 提交于 2019-12-03 03:38:00
问题 I have several chunks in folder. 0001.mp4 0002.mp4 0003.mp4 ... 0112.mp4 I would like to merge them into full.mp4 I tried to use: avconv -f concat -i <(printf "file '%s'\n" /root/chunk/*.mp4) -y \ -c copy /root/test/full.mp4 Unknown input format: 'concat' avconv -f concat -i <(printf "%s|" /root/chunk/*.mp4) -y \ -c copy /root/test/full.mp4 Unknown input format: 'concat' avconv -i concat:`ls -ltr /root/chunk/*.mp4 | awk 'BEGIN {ORS="|"} { print $9 }'` \ -c:v copy -c:a copy /root/test/full.mp4

Reduce HLS latency from +30 seconds

元气小坏坏 提交于 2019-12-02 19:47:29
Ubuntu 12.04 nginx 1.2.4 avconv -version avconv version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers built on Feb 6 2014 20:56:59 with gcc 4.6.3 avconv 0.8.10-4:0.8.10-0ubuntu0.12.04.1 libavutil 51. 22. 2 / 51. 22. 2 libavcodec 53. 35. 0 / 53. 35. 0 libavformat 53. 21. 1 / 53. 21. 1 libavdevice 53. 2. 0 / 53. 2. 0 libavfilter 2. 15. 0 / 2. 15. 0 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 52. 0. 0 / 52. 0. 0 I'm using avconv and nginx to create an HLS stream but right now my latency is regularly well over 30 seconds. After much reading I am aware that HLS has

Converting DVD image with subtitles to MKV using avconv

扶醉桌前 提交于 2019-12-02 19:09:50
This is the procedure I know to convert a DVD image to another videoformat (v.g. MP4): concatenate the VTS_01_ n .VOB files inside VIDEO_TS folder (for n >= 0) into a single VOB file. use avconv or ffmpeg in order to convert that VOB into another format. So far so good, however now I want to convert the DVD image with the subtitles. As far as I know the MKV format supports subtitles, so it seems an obvious choice. Alternatively I might use any other format with hard subtitles (subtitles as part of the video image). However, the subtitle encoding in the DVD image is dvdsub and I get the

How to merge videos by avconv?

无人久伴 提交于 2019-12-02 17:17:29
I have several chunks in folder. 0001.mp4 0002.mp4 0003.mp4 ... 0112.mp4 I would like to merge them into full.mp4 I tried to use: avconv -f concat -i <(printf "file '%s'\n" /root/chunk/*.mp4) -y \ -c copy /root/test/full.mp4 Unknown input format: 'concat' avconv -f concat -i <(printf "%s|" /root/chunk/*.mp4) -y \ -c copy /root/test/full.mp4 Unknown input format: 'concat' avconv -i concat:`ls -ltr /root/chunk/*.mp4 | awk 'BEGIN {ORS="|"} { print $9 }'` \ -c:v copy -c:a copy /root/test/full.mp4 In last edition only one input file was catched to output. How to merge all chunks from folder into