Questions tagged [encoding]

The fine art of converting letters into numbers. ASCII, ISO Latin-1, Unicode, EBCDIC… There are dozens of currently used encodings and converting between them is now a witch craft.

Filter by
Sorted by
Tagged with
1 vote
1 answer
34 views

Want to understand encoding with Opus for maximum audio quality in FFmpeg. Bitrate stuck at 96kbps?

I'm sort of new to FFmpeg, but I got much of the basics down. I am trying to understand how to encode audio with Opus. My knowledge is a bit weak when it comes to audio, bitrates, sample rate and Hz. ...
26 votes
3 answers
60k views

Which resize algorithm to choose for videos?

I'm using VirtualDub for encoding with those settings. However I record my stuff in 1920x1080 and resize it down to 1280x720. Now the question: which algorithm should I choose when making a balanced ...
426 votes
19 answers
675k views

How to encode base64 via command line in macOS/OS X?

Is there a terminal command in macOS/OS X which will base64 encode a file or stdin?
1 vote
1 answer
51 views

What's a good way to encode a file name for caching a video thumbnail?

I'm writing a previewer script for lf using chafa to display preview images as sixels. I'm writing the part of the script for previewing videos, and decided to just display the first frame of the ...
1 vote
1 answer
49 views

Correct way to encode mixed width text in Unicode?

From what I read, the fullwidth glyphs in Unicode are provided solely for backward compatibility and lossless roundtrip with legacy standards such as Shift-JIS. The rationale seems to be that Unicode ...
0 votes
0 answers
24 views

Encoding issues over SSH characters shown as ~@~X in vim

I am having issues when viewing a file through SSH I have 2 computers connected to each other myServer 'myHost' , sharing over 'SSH' a session. On myServer I have got a log from wget which originates ...
0 votes
0 answers
26 views

Thunderbird Rendering UTF-8 Emails Incorrectly

I imported all of my Outlook emails into Thunderbird. Since then, I've noticed that many of the emails render incorrectly - for example - reason appears as reason�. Inspecting the source, these issues ...
0 votes
1 answer
43 views

Firefox versus Opera

I am using Linux Mint 21.2 Cinnamon and have a question about browsers URL encoding. When I navigate using Firefox 123.0 (64-bit) and go to a page having "special characters" and I copy the ...
3 votes
2 answers
5k views

Error encoding with ffmpeg: “[NULL @ 0x16a4010]error, non monotone timestamps”

I kept having trouble encode videos. I can encode the video to MPG but the size is 10+x bigger (no joke). So I thought I'd do something simple. Strip the sound, copy the video like this: ffmpeg -i 5....
0 votes
1 answer
391 views

Constructing encoding statements using ffmpeg QSV and Intel ARC card

I purchased an Intel ARC A770 with the intent to test hardware encoding with AV1 and HEVC under Linux. Being newer to ffmpeg, I need help constructing ffmpeg statements to engage the Intel QSV ...
0 votes
1 answer
10k views

Internet Explorer 11 not displaying UTF-8 encoded pages correctly

Some pages in IE 11, that seem to be UTF-8, are not displaying correctly. The same page displays correctly in Mozilla Firefox. I first noticed this in Amazon.com on the Orders page (pretty much any of ...
0 votes
1 answer
52 views

Complex ffmpeg multi-encode/streamcopy/muxing scenario: is this actually doable?

I'm trying to do multiple muxing/re-encode/copy operations on an input video with ffmpeg and have run into roadblocks with the methods I've tried; before I continue testing, I want to confirm whether ...
2 votes
1 answer
5k views

How to encode to HEVC using ffmpeg with VAAPI in order to get good video quality? (at reasonable bitrates)

I want to encode many of my H264 videos to H265 video with reduced resolution (480p or something in this case, at most 720p) so they don't take too much space on the disk. I've been trying to use ...
5 votes
3 answers
33k views

AAC Sample Rate and Bit Rate for High Quality Audio?

What are the AAC Sample Rate and Bit Rate settings to set in order to encode an audio track with a quality comparable to MP3 320kbps? I need to backup a DVD movie, the default settings for AAC are ...
2 votes
1 answer
5k views

How can I extract an RAR whose file names are non-Unicode in Linux?

I have an RAR archive whose file names are in GB2312 rather than Unicode. So after I extracted it, there were many "invalid encoding" warnings. It's said that the official utilities can handle the ...
1 vote
1 answer
78 views

FFmpeg - Use same encoded audio for multiple outputs

I have an input file that I am encoding with multiple output resolutions. I want to use the exact same audio encoding parameters for each output video file (-c:a aac -b:a 64k -ac 1). For a performance ...
2 votes
1 answer
87 views

VIM uses wrong encoding - but only in status messages

I ran into a strange issue with my ArchLinux setup. Vim uses correct encoding for reading/displaying files but these status messages (which displays the current mode or reports back when the buffer is ...
0 votes
0 answers
102 views

How to convert in ffmpeg at a constant bitrate?

I recently began encoding some of my videos, but can't seem to make ffmpeg encode at a constant bitrate as all my videos turn out to have variable bitrates. I have tried multiple commands, but nothing ...
0 votes
1 answer
95 views

FFmpeg: How to encoding h264 mkv files in h265 mkv and keep the 2 subtitles streams?

I've lots of mkv files in h264 format with 2 languages of subtitle, and I'm trying to convert them in h265 (with cuda) and keep the 2 subtitles streams. I've tried that: ffmpeg -i "xxx.mkv" -...
0 votes
0 answers
96 views

FFMPEG encode interlaced frames

I try to encode incoming frames using FFMPEG to h264 and write it to an SD card. I get the raw frames as memory buffers from hardware and then use the FFMPEG C API to encode those. Encoding is running....
3 votes
1 answer
494 views

How to identify a file encoding?

I'm trying to figure out the encoding of a text file. I did try a lot of the common ones (with Notepad++), but I've failed so far. A few hints: The file was originally an Eudora mbx file, with mostly ...
1 vote
0 answers
47 views

Strange encoding of non-latin characters in Microsoft Word metadata embedded in a PDF file

I have a PDF file created from a Microsoft Word document that contains a block: 20 0 obj << /Author ( 52 &>;AB>9) /Producer (Microsoft: Print To PDF) /Title (Microsoft Word - ^T>:C&...
0 votes
0 answers
85 views

How to force Windows file explorer to display files that have invalid names?

I was searching journals on a research topic. I eventually got to some old exotic site containing a zip file which according to the description contained multiple documents. However when I unzipped it ...
0 votes
1 answer
4k views

Intel Quicksync vs Nvidia CUDA in ffmpeg - how big is the encoding quality difference?

I'm just asking this out of pure curiosity. I use FFMPEG a lot. Sometimes, I just opt to use the good old CPU encoding and decoding, because of how effectively it preserves the original video quality, ...
2 votes
1 answer
18k views

Default character encoding for Excel Text Wizard?

A large part of my job is to run an SQL query, save the results as a UFT-8 encoded csv file then import it into Excel for further manipulation and distribution. When I import the csv file into Excel ...
0 votes
1 answer
3k views

Lightweight codec for streaming 1080p 60 FPS in real time

Specifying Problem I want to stream my desktop to another computer over 1Gbps Ethernet with following requirements: Resolution: 1920 x 1080 FPS: 60 Input Data: raw 24bit true color (3Gbps) Max ...
0 votes
0 answers
106 views

Opus codec bitrate scalability

On the website of the Opus code, there is an example demonstrating bitrate scalability. This example is intended to "demonstrates what happens when gradually varying the bitrate". This ...
2 votes
1 answer
2k views

Is it okay to re-encode videos from traditional lossless codec to modern lossless codec to save space and preserve quality?

Lossless video codec means almost zero information loss. After some internet search I found that there are some traditional opensource lossless codec like huffyuv, lagarith, utvideo and ffv1, which ...
1 vote
1 answer
487 views

ffmpeg video encoding has no audio

When I convert any video in ffmpeg - e.g. mp4 to mkv, mkv to mkv - I lose audio for some reason here are the parameters I originally used: ffmpeg -i input.mkv -vf scale=640x480 -vcodec libx264 -...
0 votes
2 answers
5k views

Premiere Pro Hardware vs Software Encoding - Quality results

While exporting a Video in Adobe Premiere Pro, there is the option to export a Video with Software or Hardware Accelerated encoder. After i searched a bit about this topic i found that it is pretty ...
0 votes
0 answers
16 views

Backup/restore currently open Windows Explorer windows - with national character encoding and supporting tabs

The extended script provided in this thread Backup/restore currently open Windows Explorer windows does not seem to support filenames with national characters like "æøåäöü" ect. The ...
6 votes
4 answers
7k views

Convert UTF-16 LE to UTF-8 in windows via command line

(question re-written to be more useful) I have a batch script which will interact with command line programs, take their output, and then perform decisions based on that output. One of the programs I ...
8 votes
4 answers
21k views

File encoding not preserved after saving in Notepad++

I'm using Notepad++ for editing my PHP scripts. However, I found a strange problem: when changing the encoding from ANSI to UTF-8 (without BOM), saving, closing, re-loading – then checking encoding: ...
42 votes
15 answers
70k views

How to decompress a ZIP file with specified file/directory name character encoding?

I got ZIP file(s), which contains files, which filenames are in some encoding. Let's say I know encoding of those filenames, but I still dont know how to properly decompress them. Here is example ...
65 votes
14 answers
123k views

Batch convert encoding in files

How can I batch-convert files in a directory for their encoding (e.g. ANSI → UTF-8) with a command or tool? For single files, an editor helps, but how can I do the mass files job?
6 votes
4 answers
61k views

convert file type to utf-8 on unix - iconv is failing [duplicate]

Possible Duplicates: Batch-convert files for encoding or line ending under Windows How can I convert multiple files to UTF-8 encoding using *nix command line tools? I've got a php file on my ...
1 vote
1 answer
123 views

Why does my SVT-HEVC-encoded video run out of sync?

I'm trying to transcode a video (with audio) to HEVC using Intel's SVT-HEVC encoder. The video's audio tracks are in sync before transcoding. Both ffprobe and mediainfo agree that the input video is ...
1 vote
0 answers
45 views

Spliting video with ffmpeg producing wrong durations

I'm currently using a framework where I have to split a video (originally encoded with HEVC video and AAC audio) in multiple parts to process them separately. Then the final result is obtained by ...
0 votes
0 answers
48 views

Encoding MKV File Without Changing Header Information

I captured a video using a Kinect Azure SDK device. This captured video (.mkv container) has three tracks: Color, Depth and IR. I extracted the Color track using MKVToolNIX. I could playback this RGB ...
18 votes
1 answer
41k views

Excel save behaviour of CSV file with UTF8 encoding vs UTF8-Bom encoding

My original csv files are encoded with UTF8-BOM, this is so Excel can recognise the Unicode charcters (If its just encoded with UTF8 then Excel does not recognise the unicode characters). My issue ...
5 votes
3 answers
15k views

How to convert videos to AV1 lossless using FFmpeg?

I have a set of AVI videos (lossless video streams; no audio) and my goal is to convert them to AV1 lossless using FFmpeg. FFmpeg (with librav1e, libaom-av1 and libsvtav1 included) runs fine on my ...
1 vote
1 answer
615 views

Converting VP9 webm to VP8

I wonder how can I convert VP9 webm to VP8 with FFmpeg or Matroska (matroska would be better) without changing any kind of setting? I just want the output to be exactly same as the input but as VP8 ...
2 votes
1 answer
694 views

ffmpeg nvenc throws an error after I modified an x264 command

I'm trying to convert this command to work on nvenc hvec video encoder to just make it faster and utilize my 3060: ffmpeg -i video.mkv -i logo.png -filter_complex "[1]format=rgba,...
0 votes
1 answer
308 views

ffmpeg and QSV works on three PCs, but not the fourth

As the title suggests, I've used ffmpeg with x264_qsv hardware acceleration on two Windows 7 systems and one Windows 10 system successfully. I have now tried to set it up on a fourth system which is ...
0 votes
0 answers
239 views

How to fix "Could not find tag for codec timed_id3 in stream #0"?

ffmpeg gives me the following error for some videos. Could not find tag for codec timed_id3 in stream #0, codec not currently supported in container Could not write header for output file #0 (...
1 vote
0 answers
497 views

Struggling to get h.264 encoding working for RDP with NVIDIA A2

I have a server VM where I have enabled the three group policies: Use hardware graphics adapters for all Remote Desktop Services sessions Prioritize H.264/AVC 444 graphics mode for Remote Desktop ...
0 votes
0 answers
176 views

Rotation metadata not changing when encoding with ffmpeg

[UPD: Checking metadata with exiftool -rotation] Been struggling for a few days, here is the setup: ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate="-90" output.mp4 changes the output....
0 votes
1 answer
2k views

Scale_Cuda or Scale_npp no such filter found error

I, I have been trying to use hardware transcoding using nvidia GPU, everything works fine but when I use scale filters such as scale_cuda or scale_npp, I get an error no such filter. I have tried ...
2 votes
1 answer
352 views

PDF displayed with the right encoding but selectable and searchable with a wrong one

I have a PDF in Russian. It displays alright and is selectable and searchable, but the text is in Russian ASCII. As a result, when I copy or search the text, I get characters like àèçéîö, which means ...
22 votes
7 answers
51k views

What is a good way to batch re-encode mp3 files from a higher bitrate to a lower bitrate in Windows?

I have a few thousand MP3 files and they are all of mixed bitrate. I would like to run a program that can batch encode them all to 128 kbps. Are there any decent and free solutions for this for ...

1
2 3 4 5
16