Skip to main content

Questions tagged [video-encoding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
80 views

How to limit FFmpeg bitrate while recording an RTSP stream with codec copy?

I am trying to record a short video from an RTSP stream using FFmpeg.  And I am facing the following problem: the video size is too large.  Using the command ffmpeg -i file.mp4, I've come to the ...
bram's user avatar
  • 1
0 votes
0 answers
281 views

Change the fingerprint of a video file with ffmpeg without re encoding it

I am searching for a way to edit a video file to not have the same fingerprint anymore. It should not have a high CPU impact and all the tracks of the original file should be copied (so it needs map 0)...
Leon D's user avatar
  • 136
1 vote
1 answer
170 views

How to recover VOB video files in camcoder dvd with udf filesystem which appears empty but it's not

I recently discovered some old double-sided mini dvd-rw disks (2.8GB) which were used for recording video with a Sony DCR-DVD201E handycam. Both sides already had content but they were unfinalized so ...
Kostas Filios's user avatar
3 votes
1 answer
2k views

How to merge multiple mp4 files as chapters in a final mp4?

I have folder with files named like 0001.mp4, 0002.mp4, ... I want to merge all these files to a combined.mp4, and I want it to have an internal chapter marks. It is convenient when playing for ...
Ashark's user avatar
  • 979
1 vote
1 answer
1k views

Firefox, Chromium on Debian: WebRTC H.264 is not supported

While trying to stream online with my friends, I had an issue where everyone else's computer can watch the stream but mine, and even my android device can watch it. I found this test page from GitHub ...
Samuel Hunter's user avatar
2 votes
0 answers
796 views

add/edit custom metadata fields to video files without remuxing?

TL;DR - Looking for a way to edit/add CUSTOM metadata fields to video files without remuxing. I have some media files that I add custom metadata fields to (mostly mkv files downloaded with yt-dlp but ...
zpangwin's user avatar
  • 891
0 votes
1 answer
867 views

ffmpeg re-encoding to h625 with video of Sea Water doubles file size

I know... there are a lot of questions out there already about reducing the file size with ffmpeg. But, here's why my question is a bit different, it addresses having difficult content. I think ...
John Tweed's user avatar
0 votes
1 answer
191 views

Can "v4l2loopback" be installed/compiled for FreeBSD 13.1?

Wondering if anyone was able to compile v4l2loopback for FreeBSD 13.1 If so what are the steps. I need it for FFMPEG to convert a live USB cam MJPEG video stream from yuv422 to yuv420 on the fly and ...
Max Dax's user avatar
  • 61
0 votes
1 answer
983 views

Speed up video by ffmpeg did not reduce file size

I'm following Speeding up playback speed https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video However, when I speed up my playback speed by 1.5, I'd anticipate a reduce of ...
xpt's user avatar
  • 1,644
0 votes
1 answer
220 views

Find large video files inside sub folders and compress them inside the folder

I want to find all the video files larger than some specific size and compress them and save them in the same directory where it present.
Ujjwal Thakur's user avatar
3 votes
2 answers
18k views

Ffmpeg libx265 vs hevc_nvenc

I have an Nvidia graphics card, and am using the proprietary drivers. I looked into the ffmpeg H265 encoders available to me, and found hevc_nvenc. Using hevc_nvenc does in fact use the GPU to encode ...
TheOmegaCarrot's user avatar
0 votes
0 answers
232 views

What's the smallest lossless video codec supported by ffmpeg?

I recorded some 2k 60fps videos with libx264rgb losslessly using the ultrafast preset. They are about 3GB/min. Re-encoding libx264rgb with the veryslow preset only reduces it to 1.6GB/min. Is there a ...
LostXOR's user avatar
  • 225
0 votes
1 answer
358 views

ffmpeg recording slows down when audio inputs are added

I'm trying to record my screen, my mic, and my game audio with ffmpeg. This command records only my screen. ffmpeg \ -video_size 2560x1440 \ -framerate 60 \ -f x11grab -i :0 \ -map 0 \ -c:a copy \ -c:...
LostXOR's user avatar
  • 225
0 votes
3 answers
1k views

Hardware accelerated lossless recording on a 6700 XT using ffmpeg

I'm trying to record my screen losslessly (or at near lossless quality) with hardware acceleration on a 6700 XT with ffmpeg. I'm running Linux Mint with the 5.14.14-051414-generic kernel. I've tried: ...
LostXOR's user avatar
  • 225
2 votes
1 answer
1k views

Can I use V4L2 to read a h264 video file input stream instead of a camera stream?

I'm trying to find a small clear example of using V4L2 in c or c++ for how to read directly from a h264 video file on disk. Alternatively how I can pass a parsed full frame h264 chunk/packet to a open ...
RedMarsBlueMoon's user avatar
1 vote
1 answer
1k views

Capturing all frames with VLC scene-filter

I'm attempting to use VLC's scene-filter to extract all frames from an mp4 video. The video in question runs at 25fps, and is precisely 38s long. In the command line, I ran with options: --video-...
10GeV's user avatar
  • 141
2 votes
1 answer
4k views

how to download partial content from remote video url in nodejs?

I have the following code to download a specific part (range) of a video using nodejs http.get(), const fileUrl = 'https://www.example.com/path/to/video.mp4' const fs = require('fs') const http = ...
ali hadi's user avatar
2 votes
1 answer
119 views

Why are my colors separated/shifted when using obs/v4l2sink/v4l2loopback?

Im using OBS with v4l2sink and v4l2loopback to edit my video for a remote trainig. The preview in obs looks fine, but the video has some serious color shifts in any tool I try to display the ...
hd42's user avatar
  • 121
2 votes
1 answer
2k views

Stream Intel RealSense camera to network using Raspberry Pi 4 with FFMpeg

Good day all So I have trying to stream my Intel Realsense D435 camera to my local network. After reading up on many different sites, tutorials, etc I figured out the following: What can I do with ...
CybeX's user avatar
  • 306
0 votes
1 answer
1k views

Cut dvbsub from MPEG-TS with ffmpeg

I have a bunch of MPEG-TS files, originally created by a hardware TV-recorder. ffprobe lists their content like so: Input #0, mpegts, from 'recording.ts': Duration: 02:14:57.67, start: 87544.254878,...
XZS's user avatar
  • 1,448
1 vote
0 answers
1k views

Command line VOB to AVI/MP4 with good quality and deinterlace

I have some VOB files, grabbed from DVDs. I need to make AVI/MP4 files for uploading online. The original resolution is 720p and I want 720p, but need to scale as the pixels are not square (720x480 to ...
Mikhail Ramendik's user avatar
0 votes
1 answer
288 views

Does ffmpeg support dropping chroma information when encoding dynamic scenes?

Video encoders use a lot of techniques to fit the bitrate restrictions. With high compression level even the simple MJPEG compression may partially or totally discard the chroma information. I wonder ...
bodqhrohro's user avatar
-2 votes
1 answer
2k views

Using ffmpeg to Compressed a Two Frame Video

I'm trying to use Ubuntu Linux 19.04 to convert an OpenShot video into a more efficient file-size. The video only contains two still images, and 20 minutes of audio, but for each file-type I save-as, ...
Lonnie Best's user avatar
  • 5,175
7 votes
2 answers
7k views

Trans-coding hevc / x265 video file using VLC and viewing it on a chromecast

I've been successful at getting VLC to stream a x264 encoded file from a network file share to an old chromecast (which mine doesn't support hevc / x265 directly) using the commands below. vlc -vv --...
Rick T's user avatar
  • 357
14 votes
1 answer
41k views

How to significantly lower a video file size with ffmpeg without quality loss?

I see there are videos on youtube with 1080p resolution that are more than 10 minutes long and only 50-60 mb in size. I have a video only 3 minutes long and only 720p resolution but unable to bring ...
Sanchit's user avatar
  • 141
3 votes
1 answer
1k views

IMX6 ADV7180 : no /dev/media0

I am using kernel 4.14.24 from kernel.org on a KARO-TX6Q and an ADV7182 on a custom board. With the kernel 4.1.15 from KARO git, I used the adv7180_tvin driver modified to work with adv7182. This ...
rBeal's user avatar
  • 61
0 votes
1 answer
47 views

Random lines during screen recording playback

Every time I record or screencast my desktop, once I play it back I get random lines appearing now and then, no matter what media player I use. They're either black or they show fragments of my ...
Saverio Failoni's user avatar
0 votes
1 answer
188 views

Accelerating Video Conversion

I like to compress large video files before storing them to hard disk. In Fedora-29-bash, I currently use the following ffmpeg command for re-encoding; it balances compression with quality: ffmpeg -...
user2661923's user avatar
0 votes
1 answer
328 views

Cannot send desktop capture to ffserver?

I am simply trying to send a ffmpeg stream consisting of a desktop capture to a local ffserver: # ffserver >/dev/null 2>&1 & # ffmpeg -video_size 1600x900 -framerate 25 -f x11grab -i :...
user123456's user avatar
  • 5,078
1 vote
1 answer
6k views

Stream/broadcast live video to local network (without VLC)

I am trying to make a perfect mobile webcam fitting my needs with the RPI and camera module I have here already. I run Arch both on the RPI and on the Laptop I intend as the "client". I have the cam ...
Peter Nerlich's user avatar
1 vote
0 answers
386 views

trim video files via audio track information

Is there a way to pass a folder of .mp4 files and trim them by audio track? Say the first 20 seconds has no loud audio and the last 20 seconds has no loud audio, is there a way to remove the first and ...
Alexander Mills's user avatar
1 vote
1 answer
1k views

Split 4 Track WAV file into 2 stereo WAV files

The audio recorder my friend has can record 4 tracks at the same time, but unfortunately i records into a 4-track WAV file. The problem i have is that the DAW i use only accepts mono or stereo WAV ...
kroe's user avatar
  • 111
0 votes
0 answers
219 views

h.264 video codec in konqueror

Visiting the page https://www.youtube.com/html5 from within konqueror I saw that the H.264 video codec is not supported. My question is: Is it possible to enable it for konqueror in any way? I'm ...
GSi's user avatar
  • 131
0 votes
1 answer
2k views

H.264/MPEG-4 from PNG frames: how to, and how to tune compression

I often create digital animations by preparing all the frames in .png format (with minimal compression), that I need to convert to video format for upload to websites such as reddit, instagram, gfycat....
Nicola Sap's user avatar
1 vote
0 answers
284 views

Patching fourcc code INZI

I am using Ubuntu 16.04 64 bit to try to capture RGB and Depth images from a Realsense SR300 depth camera. I have installed the appropriate SDK etc, and the camera is being recognised and producing ...
James's user avatar
  • 303
1 vote
1 answer
313 views

Create CBR TS file from MXF file

I am looking for a way to create CBR TS file from a high bitrate MXF input file. I have tried to use ffmpeg, but apparently it doesn't do a good job of creating CBR output file so right now I am a bit ...
Georgi Stoyanov's user avatar
0 votes
0 answers
308 views

Convert corrupted VideoCD for uploading to YouTube

I have some home videos on VideoCDs and I would like to transfer to YouTube so I can share them with family. I backed up the CD images on my drive with dd and playing back those images with mplayer ...
Bogdan's user avatar
  • 976
3 votes
1 answer
1k views

Hardware accelerated h.264 transcoding on i.MX6

Preface: I have a lot of .mts video recordings (mainly 576 to 720 lines) I need to cut and transcode to lower bitrate h.264. Nowadays I do this on with an all-in-one tool on my 2009 Core2Duo MacBook, ...
Philippos's user avatar
  • 13.5k
2 votes
1 answer
2k views

Find all videos by codec (and not by container formats or MIME type)

How can I get the list of all my videos with the used video codec? I found some intersting commands like mediainfo, ffmpeg or exiftool but they giving a lot of informations only by one video. The ...
Klemart3D's user avatar
8 votes
1 answer
2k views

Handbrake new VP9 codec is grayed out

Handbrake new VP9 codec is grayed out and could not be used. I installed Linux Mint fresh from ppa repo that is referenced on their homepage. libav and the vpx-tools are installed. What have I ...
zanglerecke's user avatar
2 votes
1 answer
2k views

Adjusting keyframe rate ffmpeg/v4l2 Logitech C920 to YouTube Live

I am trying to stream video from a Logitech c920 to YouTube live via ffmpeg. I have a setup that works in Twitch, but YouTube rejects the stream with the message: Please use a keyframe frequency ...
Dan's user avatar
  • 21
3 votes
1 answer
2k views

CUDA Context for NVENC not found after system suspend

Context I recently updated my nVidia drivers to 375.26 and recompiled FFmpeg N-83180-gcf3affa and OBS 17.0.2-5-g43e4a2e (sorry if these numbers don't mean anything, I'm not quite sure what version ...
user avatar
1 vote
1 answer
848 views

FFMPEG glue MPEG TS

I have movie split in many parts with duration 10-30 seconds. All movies are MPEG TS files. I want to merge them. I try to make following: ffmpeg -f concat -i join.txt OUTPUT.TS and ffmpeg -i "...
Grous's user avatar
  • 13
0 votes
1 answer
6k views

"MPEG-1/2 does not support 3/1 fps" when sending webcam to ffserver

I am unable to send a stream to my ffserver. I started the server with ffserver -f /etc/ffserver.conf & where ffserver.conf has not been modified. I tried sending a webcam stream with ffmpeg -...
user123456's user avatar
  • 5,078
1 vote
1 answer
5k views

What is the format name to have a MP4 video as output in ffmpeg?

The following command ffmpeg -f alsa -ac 2 -i plughw:0,0 -f video4linux2 -s vga -i /dev/video0 -f ogg - > video.mp4 Does not produce a .mp4 video. I want to replace -f ogg with -f <mp4 ...
 j1088099.mvrht.com.'s user avatar
5 votes
1 answer
2k 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
2 votes
0 answers
334 views

Encoder to msrle format with FFMPEG

I need to create some files for an old windows API, for a video playback. The native windows files which works with this old API have the format of MSRLE. They are used as small animations during copy,...
piotao's user avatar
  • 121
2 votes
1 answer
852 views

Handbrake on Debian not aware of x265 despite installed

I am about to convert a lot of old MKV files encoded with x264, which at the moment are un-downloadable, to more efficient HEVC (x265, H.265) format, using HandBrake software. My system being Debian ...
Vlastimil Burián's user avatar
1 vote
1 answer
841 views

Add filters to ffmpeg presets

I would like to add filter parameters under ffmpeg preset (e.g. -spre directive). Suppose a simple test.ffpreset under ~/.ffmpeg like this: vcodec=h264 bitrate=1200 acodec=copy How do we add hqdn3d=...
Emilio Lazo's user avatar
0 votes
1 answer
730 views

ffmpeg bash script segment template

I was trying to control ffmpeg file segment function through a bash script to cut a large movie file into smaller pieces. I took a look at the documentation here but this doesn't really cover what I ...
user1610950's user avatar