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.

236 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
351 views

Can I tinker with the encoding when using pdftotext to convert PDF to text?

Sometimes when I do pdftotext it results in perfect text. I assume this is because the actual unicode text data is embedded directly in the PDF itself, and simply read out. But other times (around ...
Lance's user avatar
  • 377
5 votes
0 answers
903 views

Can't extract file with non-ascii name from zip archive

I am using Linux Slackware 14, downloaded a zip archive with a file, containing Russian characters in it's name. Now when I try to unzip it in console, it prints an error and doesn't unzip: bash-4.2$ ...
user4035's user avatar
  • 893
5 votes
1 answer
2k views

Set filename character encoding in Putty's PSFTP

I am using PuTTY's command line utility psftp.exe to transfer files between a UTF8-configured linux server and a MS Windows PC. File names containing non ASCII characters (e.g., Japanese kana) are ...
lacton's user avatar
  • 51
4 votes
2 answers
2k views

How to set the default encoding to Unicode?

How do I set the default encoding in Firefox/Iceweasel to Unicode (instead of Western)? I'm particularly interested in the default encoding for *.txt files. Firefox/Iceweasel seems to always choose ...
kjo's user avatar
  • 1,241
4 votes
2 answers
387 views

What's wrong with `(add-to-list 'process-coding-system-alist '("zsh" . utf-8))`?

In Emacs, I routinely use an inferior shell, invoked with M-x shell. I often need to specifically set its coding system, which I do with C-x RET p followed by utf-8 (twice). I want to do this once ...
kjo's user avatar
  • 1,241
4 votes
1 answer
517 views

What is the best method for ripping DVD to stream to Xbox 360?

What is the best method to rip/encode a standard definition DVD, to be streamed to a Xbox360 from a Vista Media Center pc (preferably using free software). I’ve found tons of tutorials on the web ...
dan9298's user avatar
  • 61
3 votes
0 answers
105 views

Is it possible to encode a video with a solid color background using h.265 so that the background color remains stable?

I'm trying to incorporate a video into a web page, where the video has a solid color background that matches the background color of the page, as well as a small animated character moving around ...
Bri Bri's user avatar
  • 846
3 votes
0 answers
303 views

What do I have to do in CMD.EXE and/or PowerShell to specify a file (-o) with umlaut-characters when decrypting a file with gpg?

In cmd.exe and PowerShell, I am able to encrypt a file into a file whose filename contains umlaut-characters: gpg -c --batch --yes --passphrase "one two three" -o bärlauch.gpg data.txt ...
René Nyffenegger's user avatar
3 votes
0 answers
671 views

A less cumbersome way to specify encoding when opening encoded text files

In order to open an encoded text file with the correct encoding in OO Writer, the user goes through File>Open, then selects 'Text Encoded' from a long list of file types, which causes a dialog to pop ...
Basel Shishani's user avatar
3 votes
1 answer
5k views

Subtitle encoding issue with mkvtoolnix

I've attached a few subtitles to a MKV with mkvtoolnix, but it appears that after muxing, the character encoding is messed up. The input subtitles were UTF-8 encoded. I don't know what's the character ...
mella's user avatar
  • 31
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....
user avatar
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 ...
user2286759's user avatar
2 votes
0 answers
2k views

How can I smooth/deblock a video file with FFMPEG?

I am not interested in upscaling my video file, but am instead interested in just encoding it to smooth out the pixelation of my files. My files are from a T2i DSLR and I'd just like to smooth out the ...
Zachary Goodwin's user avatar
2 votes
0 answers
134 views

Not able to copy Korean characters from PDF file using Acrobat Reader

I decided to study Korean and I found a book that I want to copy some vocabulary from, the problem is when I paste the copied text, it turns into gibberish characters. Any idea how to solve this? I ...
Wax's user avatar
  • 121
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 ...
user79's user avatar
  • 56
2 votes
0 answers
12k views

What is the difference between Lavf58.29.100 and Lavc58.134.100 eac3 encoding using H265 in ffmpeg?

What is the difference between Lavf58.29.100 and Lavc58.134.100 eac3 encoding using H265 in ffmpeg? I created a mkv file using ffmpeg and handbrake software but both using different encoding, ...
kup's user avatar
  • 121
2 votes
1 answer
2k views

FFmpeg errors "encoding frame failed" and "Can't encode audio frame" when attempting to export from Audacity

Attempting to use Audacity to export any type of audio file that is dependent on FFmpeg (AAC, Opus, etc.) fails with two successive dialog boxes: FFmpeg: ERROR - encoding frame failed FFmpeg: ERROR -...
DeltaT's user avatar
  • 21
2 votes
0 answers
878 views

Maximum possible bitrate for HEVC videos with hardware encoding in Premiere Pro

I am trying to export a series of images as a 4K HEVC video (it is a long series) and I am using Premier Pro 2020 to do it. I found I can switch to High tier and this allows me to go over 25Mbit ...
miran80's user avatar
  • 237
2 votes
0 answers
105 views

Is there a way to reduce the size of a video file to a specific size?

I'm trying to get a video file to be a specific number of bytes. Basically, I will have a video X of duration/fps/compression ratio x, which I will want to change the size of to be the exact same size ...
Spencer Szeto's user avatar
2 votes
1 answer
258 views

How to send an e‑mail to an address with Latin9/iso‑8859‑15 characters inside the username part of the address?

As part of finding a job, I need to send an e‑mail to an address which contains latin letters with accents inside the username. I know this is not standard, but they did it and there’s less than 1000 ...
user2284570's user avatar
  • 1,823
2 votes
0 answers
357 views

How can I reload an Excel spreadsheet using a different encoding?

Someone shared an Excel file with me (.xlsx, not .csv). Looking at the data in Excel it's obvious that the file is encoded using UTF-8, but Excel is interpreting the data as Windows 1252 encoded text. ...
Michiel van Oosterhout's user avatar
2 votes
0 answers
424 views

Execute sh file with Russian or Chines Chars - Saved as UTF-8 or Unicode

I have a file which has some russian chars in. Below is the content of by sh file. #!/bin/sh sed -i "s/\bVAR1\b/Привет, как ты/g" file1.txt When i save this file i had to save this as UTF-8 or ...
Venkatesan Sundar's user avatar
2 votes
0 answers
765 views

how to prevent creating of menu/chapter?

I'm using this simple command for re-encoding my audio tracks ffmpeg.exe -i "SOURCE.mp4" -acodec pcm_f32le -f wav - | neroAacEnc.exe -ignorelength -q 1 -cbr 80000 -lc -if - -of "out.aac" and I ...
gamer0's user avatar
  • 945
2 votes
0 answers
2k views

FFmpeg darkening video

I'm trying to switch my encoding setup from Mac to Windows. As part of that, I'm trying to get FFmpeg working as my ProRes encoder. I'm converting from 10-bit uncompressed to ProRes 422 HQ. When I ...
Muindor's user avatar
  • 21
2 votes
0 answers
127 views

Open & save files with specific extension always with encoding OEM 850?

How can I force Notepad++ to always open and save my *.cmd files with encoding OEM 850? I'm using a german Windows and I like to use vowels in my batch file explanations. To see them correctly, I ...
PeterCo's user avatar
  • 229
2 votes
0 answers
11k views

FFmpeg encoding only works when I specify input format (-f h264)

I've got a video from NVR in .avi container. I'm trying to re-encode it using libx264, but it only works if I specify input format to be h264. Here is the output of both calls. Without -f h264: ...
DanceDance's user avatar
2 votes
0 answers
10k views

Saving a CSV in Excel in UTF-8 encoding

I make a .csv file in Notepad++ with one character: á I clicked "Encode in UTF-8" and saved the file as test.csv. Then I opened up the file in Excel and saw the output: á The UTF-8 code ...
user752294's user avatar
2 votes
0 answers
976 views

Git smudge and clean filters

I have some files in a git repository which are unicode tab-separated value files. I know that these files are either UTF-8 or UTF-16 encoded at generation-time. For my Windows workstation, where I ...
Anaphory's user avatar
  • 163
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 ...
Donna A's user avatar
  • 21
2 votes
0 answers
509 views

FFMPEG / x264: Single pass: how do you raise start time bitrates?

When using single-pass mode with a VBV size specified, libx264 will initially "sandbag" the bitrate, presumably due to lack of evidence (or perhaps even a bug). (This is an ironic followup to this ...
Mark Gerolimatos's user avatar
2 votes
0 answers
752 views

Does h.264 levels affect the quality of the output?

According to Wikipedia, the example for high resolution of level 4.0 is 2048x1024@30fps. But the resolution of the video ready to encode is 1280x960, which is about level 3.2. Is it better to set the ...
Happy Face's user avatar
2 votes
0 answers
459 views

Gibberish text copied from PDF

I have a PDF converted/exported from Pages.app. When I copy text (English) from PDF and paste it in email/text editor/or Illustrator etc. the text appear to be gibberish (squares with cross and random ...
KMC's user avatar
  • 1,989
2 votes
0 answers
234 views

Opening a "Unicode little endian without BOM" file from the command line with WinMerge?

I have a pair of "Unicode little endian without BOM" text files that I would like to diff each another via the command line. Unfortunately when I open them using the commandline in Winmerge they come ...
leeand00's user avatar
  • 22.4k
2 votes
0 answers
1k views

Filename encoding for Windows and Linux

My laptop has dual boot systems, one is Windows 7, another is Arch Linux, they share a disk. And I downloaded some files into the shared disk in Arch Linux, whose filenames contain Chinese, Korean and ...
宇宙人's user avatar
  • 157
2 votes
0 answers
1k views

File names garbled in rar archive, possibly double utf8 encoded? Can't figure out how to reverse

I'm trying to restore the uploads folder of a wordpress installation. The folder went through some combination of ftp or sftp transfer and got compressed by rar. (I don't know the exact process, it ...
proto-n's user avatar
  • 121
2 votes
0 answers
787 views

tmux shows weirdly encoded history on OSX

If I do the "history" command in tmux, I get a really weird result. Anyone got a hint on what to do to get normal output? The output looks like this: 477 ◆┬▒⎺▒└☃◆ 478 c▒├ ◆┬▒⎺▒└☃◆ 479 ec▒⎺...
Reefersleep's user avatar
2 votes
0 answers
421 views

How is web form content encoded in Safari's cache?

A friend of mine just accidentally navigated off a web page where she entered a rather lengthy text into a web form. When navigating back to the page, the text was lost. (Spoiler: The page had an ...
schluchc's user avatar
  • 442
2 votes
1 answer
2k views

How to multiplex two videos with ffmpeg

I'm converting videos using the -s option for multiple resulutions and I want to include a short intro at the begining of the video. but for some reason it skips the second -i so i'm only getting the ...
user2783132's user avatar
  • 1,837
2 votes
0 answers
1k views

How can I use a password with special characters in desktop programs?

At the moment I am concerned about the security of my Facebook account. I have taken advantage of Facebook's ability to accept very long passwords with special characters, and created a password that ...
Guest's user avatar
  • 21
2 votes
1 answer
111 views

Change text encoding into Filelocator Pro?

I'm having problems viewing Cyrillic characters in FileLocator Pro. There isn't a language menu option in the program's settings. Is there a solution?
user143822's user avatar
2 votes
1 answer
2k views

Converting Filename Encoding

my operating system is Arch Linux. I am trying to extract a .zip archive that contains CJK characters in its filenames. It was most likely created on a Windows machine. I tried the unzip utility and ...
kaykun's user avatar
  • 163
2 votes
2 answers
52 views

Rendering videos slower

I've got some movies which should be used for tutorial aspects. Problem: the shown stuff is too fast, I need to slow down the movies. Does anyone know a tool / programm which can do this? The movies ...
onigunn's user avatar
  • 121
2 votes
1 answer
11k views

Convert ANSI text file(s) to UTF8 on Windows command line

I would like to convert (an) ANSI-encoded text file(s) (Win 1252) to UTF8 without BOM, ideally via a command-line call. My use-case: I export .tex files from Stata which I want to compile with ...
dpprdan's user avatar
  • 121
1 vote
1 answer
24 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. ...
peppy's user avatar
  • 11
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 ...
revsuine's user avatar
1 vote
0 answers
46 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&...
Dima Chubarov's user avatar
1 vote
1 answer
476 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 -...
Patrick Hydar's user avatar
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 ...
user112346's user avatar
1 vote
0 answers
496 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 ...
jallen's user avatar
  • 11
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 ...
Cygon's user avatar
  • 379

1
2 3 4 5