avconv

avconv - concat .mp4 without quality loss and huge file size

时光总嘲笑我的痴心妄想 提交于 2020-02-07 17:11:22
问题 I am testing out concating mp4 files together and have come across one way to do it that is working but is creating huge file sizes. my original videos are mp4 and I started out trying to convert them to mpeg after following other guides but found that mpeg would not convert as my file is 1fps and mpeg does not support that. media@v2:~/mp4_test$ avconv -i video1.mp4 video1.mpeg avconv version 9.16-6:9.16-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers built on Aug 10 2014 18:16

Converting DVD image with subtitles to MKV using avconv

笑着哭i 提交于 2019-12-31 10:18:10
问题 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

How to split a video that has weird keyframes “pkt_pts_time=N/A”?

风流意气都作罢 提交于 2019-12-25 00:14:58
问题 I can run a command like this on normal videos (h264 on mkv): avconv -i videofile.avi -c copy -flags +global_header -segment_time 60 -f segment "videofile-part."%03d".mp4" but on videos with this format and container (the ones I have at least) it will fail: MPEG-4 on a .avi file if I probe it I get key frames that are ignored by the splittter: ffprobe videofile.avi -show_entries frame=key_frame,pict_type,pkt_pts_time -select_streams v -of compact -v 0 | grep frame=1 (from this tip https:/

How to use multiple video filters in one avconv cli

别等时光非礼了梦想. 提交于 2019-12-24 02:09:36
问题 here is my cli: avconv -i /home/roroco/Downloads/test_rm_watermark.mp4 -ss 0 -t 30 -vf "delogo=x=1127:y=38:w=105:h=54:band=4" -vf "delogo=x=44:y=39:w=145:h=49:band=4" -c:v libx264 -an "/tmp/rm-watermark/test.mp4" -y I hope remove two watermarks in video, but my cli only remove delogo=x=44:y=39:w=145:h=49:band=4 , how to remove them in one cli 回答1: You have to chain the two filters: avconv -i /home/roroco/Downloads/test_rm_watermark.mp4 -ss 0 -t 30 -vf "delogo=x=1127:y=38:w=105:h=54:band=4

How to continuously extract video frames from streaming RTMP using avconv / ffmpeg?

大憨熊 提交于 2019-12-22 10:29:45
问题 We're dealing with streaming video on RTMP and my goal is to extract frames from the stream at a given interval, e.g. every 1 second. Currently I run a command in a loop, which takes a frame and exports it as base64 JPEG: avconv -i <URL> -y -f image2 -ss 3 -vcodec mjpeg -vframes 1 -s sqcif /dev/stdout 2>/dev/null | base64 -w 0 But each of these processes is long (takes a few seconds -- which adds even more delay on streaming video that's not real time already). I am wondering if there is a

librosa.load: file not found error on loading a file

試著忘記壹切 提交于 2019-12-18 09:42:00
问题 I am trying to use librosa to analyze .wav files. I started with creating a list which stores the names of all the .wav files it detected. data_dir = '/Users/raghav/Desktop/FSU/summer research' audio_file = glob(data_dir + '/*.wav') I can see the names of all the files in the list 'audio_file'. But when I load any of the audio file, it gives me file not found error. audio, sfreq = lr.load(audio_file[0]) error output: Traceback (most recent call last): File "read_audio.py", line 10, in <module

How to reduce CPU consumption by using avconv and pipe it to avplay?

十年热恋 提交于 2019-12-11 23:31:21
问题 See FINAL EDIT. I need to capture the second monitor and show in main display in a small window. I don't need quality, but performance. So, the (working) command to capture second monitor of 1280x1024 and show it in a 640x480 window at 15fps and horizonatally flipped, would be (from askUbuntu): avconv -f x11grab -r 15 -s 1280x1024 -i :0.1 -c:v mpeg4 \ -b:v 1000k -s 640x480 -vf "hflip" -f avi - | avplay -i - How to scale with "None" interpolation? I used "-c:v mpeg4" and "-b:v 1000k" to have a

Using avconv to get a single frame from h264 video at set time

笑着哭i 提交于 2019-12-10 14:55:44
问题 I want to use avconv to get a single image at a specified time out of a video file. I've read just enough about libav to think I know what I'm doing, but not enough to actually know. I've tried: avconv -ss 00:00:01.786 -r 25 -i input_video.h264 -frames 1 output_image.jpg as well as using t to avoid the 'frames' parameter: avconv -ss 00:00:01.786 -r 25 -i input_video.h264 -t 0.01 output_image.jpg and passing in seconds rather than using the hh:mm:ss.xxx format: avconv -ss 1.786 -r 25 -i input

Stop avconv Bash script on user input and continue loop

こ雲淡風輕ζ 提交于 2019-12-08 10:50:24
问题 Basically (hopefully) I want to record a video stream from a webcam and save it in a specific directory, then kill that when a user inputs some numbers. I'm not explaining this well so here's what I'm doing currently: #!/bin/bash while true do TIMESTAMP=$(date +"%Y.%m.%d_%H.%M") read -p "Enter your number here: " YOURNUMBER echo -e "Saving video stream:" mkdir /home/$USER/orders/$YOURNUMBER avconv -f video4linux2 -r 3 -fs 52428800 -i /dev/video0 /home/$USER/orders/$YOURNUMBER/$TIMESTAMP-

Mux a regular file into Mpeg TS

爷,独闯天下 提交于 2019-12-08 03:29:31
问题 im working in a file broadcasting method using mpeg2-ts and ISDB-T ( Integrated Services Digital Broadcasting - Terrestial), My problem is that im not being able to to put a file into the data stream, or as rawvideo, or anithing inside the mpeg-ts.... im using ffmpeg and avconv. Here is an example of a test: ffmpeg -f mpegts -i Myfile.tgz -probesize FILESIZE -mpegts_original_network_id 0x1 -mpegts_transport_stream_id 0x1 -mpegts_service_id 0x25 -mpegts_pmt_start_pid 0xbb9 -mpegts_start_pid