As of May 31, 2023, we have updated our Code of Conduct.

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
2 votes
1 answer
74 views

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

I am writing a batch script which pipes a program's output to a text file, the contents of that text file are then later meant to be read back into the script as a variable, which will be used for ...
bfh47's user avatar
  • 33
1 vote
1 answer
64 views

Open SSH character encoding issue

I have been asked to replace an old insecure version of FreeSSH with OpenSSH on a couple of our servers, and am now having a problem that appears to related to character encoding types. We have a ...
Richard King's user avatar
1 vote
0 answers
28 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
0 votes
0 answers
30 views

Curl allows application/x-www-form-urlencoded without actually encoding, is it valid?

curl -X POST [::1]:1024 -d 你好 allows to send non-ASCII without percent encoding, is it valid?
Flan1335's user avatar
8 votes
3 answers
840 views

fixing mis-encoded Chinese in file names

I'm saddled with a bunch of files whose names are garbled beyond recognition. Even though I more or less know what those names originally contained, fixing them by hand would involve a lot of hassle, ...
wildekat's user avatar
0 votes
0 answers
65 views

Ffmpeg: how to get information about rawvideo encoder

For example, when i type: ffmpeg -h encoder=ffv1 I have information about supported pixel formats: Supported pixel formats: yuv420p yuva420p yuva422p yuv444p (...) and settings: ffv1 encoder ...
Skyfall's user avatar
0 votes
1 answer
135 views

How to read Linux text files in Windows system?

For example, I run the top command and store it to a file in Linux, after that I open that file in Windows it contains some gibberish. Here is the file viewed in Notepad++: The option to convert to ...
TeaViris's user avatar
-2 votes
1 answer
85 views

CMD/Python: Guess your .docx or .txt file's encoding

Ok, I want to find out, what kind of files I have, for encoding. I tried to read the file with encoding='UTF-8' and it failed, which indicates that the document is not utf8-encoded. Of course, I could ...
Just Me's user avatar
  • 804
0 votes
0 answers
21 views

How to pass custom unicode characters to xrdb?

I use xrdb to set a the window title of my terminal (Zutty). I use the following line in the file ~/.config/X11/xresources (UTF-8 encoded): Zutty.title: 端末 Then I load it using xrdb -load ~/.config/...
ixolius's user avatar
  • 63
0 votes
1 answer
126 views

Is it possible to convert one channel of a stereo MP3 file losslessly to a mono MP3 file?

I recorded a mono microphone with an MP3 recorder which can only record stereo formats. Now I want to reduce the file size by removing the silent channel. Is there a lossless way to do this? This ...
Frank Breitling's user avatar
1 vote
1 answer
196 views

Can view/read a pdf content but can't extract text

I downloaded a PDF file that I can view, print, modify ... but can't do a simple text copy. From a brief search I could not find how this was achieved. I have tried with macOS preview app and chrome'...
enzo's user avatar
  • 153
0 votes
0 answers
92 views

How to consider crf, -maxrate and -bufsize of a lossless video for whatsapp status

I am using ffmpeg to encode my videos to upload them on Whatsapp status. This videos are <30 sec duration, and the output size should be in 10-14mb range. Suppose I have a video of size 50 MB with ...
Vivek Shaw's user avatar
0 votes
0 answers
152 views

How to re-encode audio of a video file - not touching video stream - ffmpeg

I have a video file but unfortunately the davinci resolve is not able to read audio I want to re-encode audio I think aac 192 or mp3 192 would be sufficient How can I re-encode only audio by using ...
Furkan Gözükara's user avatar
-1 votes
3 answers
75 views

Why most files like jpeg or pdf don't use just ASCII characters for encoding?

Whenever we try to open a JPEG or PDF file with any text editor we find strange symbols other than ASCII. Isn't ASCII most efficient because of less space consumption by limited number of possible ...
Pranjal Kumar's user avatar
0 votes
1 answer
63 views

What are the constraints for lacking encoder support in FFmpeg?

According to the documentation, there are several video and audio codecs with missing encoder support. Is this typically because: A) The encoder is copyright protected. B) The encoder implementation ...
Skretzo's user avatar
  • 11
0 votes
0 answers
64 views

What does FFMPEG preset use under the hood?

FFMPEG has presets ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow, placebo. I downloaded the source code. Did a grep -r "veryfast" .. Found ./libavcodec/qsvenc....
Nav's user avatar
  • 1,039
0 votes
0 answers
61 views

How to use ISO8859-9 encoding in terminal?

I maked a file containing "ırmak" with a text editor via encoding ISO8859-9. Then, I tried to print the content with "cat" command in the terminal. But I could not. I use the ...
user's user avatar
  • 1
0 votes
0 answers
536 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 ...
Beevo's user avatar
  • 1
1 vote
0 answers
48 views

Is there some way to losslessly "cut off" from the beginning and/or end in an .mp4 file?

First of all, yes, I know that .mp4 videos are lossy. Many of them contain annoying unwanted stuff in the beginning or end, which I neither want to see nor want to take up storage space on my disks. ...
Burleigh's user avatar
0 votes
0 answers
44 views

How to convert a group of videos to 320x240 with letterboxing in ffmpeg with varying dimensions?

I have a directory with around 660 videos in it. I have written a PowerShell script to loop over the files in the directory - but I am stuck at the conversion piece with ffmpeg. The most recent ...
Barry Chapman's user avatar
1 vote
1 answer
119 views

Convert Korean files that are showing up incorrectly to utf-8 - character shows Çѱ¹Ÿî

I was just about to ask this after a long time of searching so decided to answer my own question... I downloaded Korean subtitles in an .smi file that was in zip archive. When I extracted it, the ...
iateadonut's user avatar
0 votes
2 answers
196 views

Restoring corrupted UTF-8 files

After my PC broke down I managed to make a backup of the relevant files before reinstalling Windows. Now that I'm restoring those files and setting the system up I noticed that some of the files got ...
wileecoyote's user avatar
0 votes
1 answer
74 views

Open .mp4 files in Adobe Media Encoder through a batch file

I would like to create a .bat or PowerShell script that loads all the .mp4 files from the folder where the script is in Adobe Media Encoder, the aim is to facilitate the day-to-day workflow. I built ...
Tyrone Hirt's user avatar
2 votes
0 answers
829 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
5 votes
1 answer
2k views

How do I recover my text file after changing the encoding a few times in Notepad++?

I had a formatting problem in my text files. I assume it was Windows-1252 initially. Then I tried to reformat the file to another encoding format using Notepad++, did it a couple of times, and got a ...
serenetree249's user avatar
2 votes
0 answers
80 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
0 votes
0 answers
162 views

FFmpeg libx264 encoder emits first key frame with invalid header

I am using these setting in encoder: AVCodecID id = AV_CODEC_ID_H264; int width = 1280; int height = 720; int fps = 30; const AVCodec *codec = avcodec_find_encoder(id); if (codec == NULL) { LOG(...
Gaurav Kumar's user avatar
0 votes
0 answers
18 views

MS Word encoding (after conversion)

I have a couple of MS Word docs I want to clean up but don't know what all the encoding means. I'm wondering if there's a list somewhere so I don't have to copy and paste every example. Here's some of ...
wazz's user avatar
  • 111
1 vote
0 answers
179 views

Character encoding problems after downloading from Filezilla

I have been using FileZilla for a while and I realized that when I download files from the server using FTP it encodes/changes some files making them useless to upload to a new server. I tried forcing ...
Valentin Teruggi's user avatar
0 votes
0 answers
193 views

How to do HEVC transcoding from USB webcam using Intel HD Graphics 4600 GPU?

I am trying to use hardware acceleration using Intel GPU. Trying to do so basic testing and it seems ffmpeg does not allow hardware acceleration to take place even though supported. Not sure what the ...
Max Dax's user avatar
  • 39
0 votes
0 answers
40 views

How to add two video filters in one command line which has transcoding done by two GPUs?

I have two video filters: -vf "hwdownload, drawtext=fontfile=/usr/share/fonts/TTF/Verdana.ttf:text='Hello World', format=nv12, hwupload" and -vf "select='gt(scene,0.04)'" -vsync ...
Max Dax's user avatar
  • 39
0 votes
1 answer
51 views

How does thetext decoder knows which text encoder is used to encode?

When I create a text file on Windows operating system using Notepad and hit save, I get to choose the text encoding. Suppose I saved this file using UTF-16 LE encoding and later sent this file to a ...
shubham's user avatar
  • 101
1 vote
2 answers
354 views

French accent characters issue when redirecting output in a Batch script

I am using Windows 7 Pro SP1 x64 French. Console (cmd.exe) : > chcp Page de codes active : 850 > net start MyService Le service ne répond pas à la fonction de maintenance. Vous obtiendrez une ...
geek175's user avatar
  • 131
0 votes
0 answers
90 views

ffmpeg dont stop output on input finish

I need help with behavior that is incomprehensible to me. Ubuntu 20 system, compiled ffmpeg by Nvidia's GIT for CUDA support. At the start of the conversion ffmpeg continues to write output ...
Windstyle's user avatar
1 vote
0 answers
40 views

How to export mestimate filter motion vectors into a separate file with ffmpeg binary?

So mestimate filter can be used to compute the motion vectors in a video. They can also be displayed. Is there a way to export them into a separate file using the ffmpeg binary? I would love to have ...
Hitokage's user avatar
  • 111
0 votes
0 answers
43 views

Strange encoding in applications

Encoding issues I am running a software on windows machine which contains text in Macedonian language, however the text is quite strange as in the image. I've set default application language to ...
iftwMZ's user avatar
  • 1
0 votes
1 answer
1k views

Encoding HEVC to HEVC to reduce file size

I'm trying to re-encode an HEVC/x265 file yet I'm getting an error. I used these commands and it's not working D:\FFmpeg\bin>ffmpeg -i output2.mkv -c:v libx265 -preset slow -b:v 3000k -x265-params ...
Kyle's user avatar
  • 1
0 votes
1 answer
436 views

Does FTP server supports UTF-16 encoding?

I am checking my application for different encoding techniques. In one such use case related to the FTP server, I do not see anything related to UTF-16. This means I can able login to the FTP server ...
sreenath konanki's user avatar
1 vote
2 answers
377 views

PuTTY 'use font encoding' meaning

Could someone tell me what 'Use font encoding' exactly means? I haven't been able to find any documentation about it. (( Just FYI Actually my problem is: Terminal: Putty // Remote Character Set // UTF-...
jreinap's user avatar
  • 11
0 votes
1 answer
644 views

Constrained CRF vs ABR with VBV-constrained bitrate for VoD

In this post slhck mentions that for VoD (not to be confused with live streaming) one should use one of the two methods for compression: Capped CRF ABR with VBV-constrained bitrate I feel pretty ...
Arete's user avatar
  • 1,281
4 votes
2 answers
4k views

Force ffmpeg to produce constant frame rate

Why does ffmpeg produce variable frame rate output? I have an input file, that when I run it through MediaInfo it tells me it's a constant frame rate video: Video ID ...
dropbear's user avatar
  • 143
0 votes
1 answer
2k 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 ...
Deex's user avatar
  • 175
0 votes
0 answers
1k views

Ffmpeg GPU encoding not speeding up processing

ffmpeg -framerate 29.97 -hwaccel cuda -start_number 200000 -i %06d.tif -c:v libx264 -preset veryslow -tune film -profile:v high -pix_fmt yuv420p -level 4.1 -crf 17 -r 29.97 -threads 2 -frames:v 5000 ...
madderek's user avatar
2 votes
1 answer
1k views

FFmpeg won't encode at Main10@L5.1

I've been messing around with Topaz's Video AI enhancer, and I've been trying to encode the png files the AI outputs via FFMpeg. It works fine so far, aside from that the exports I'm getting are ...
Reubenno's user avatar
1 vote
0 answers
220 views

Cannot start livestream on youtube even though ffmpeg seems to work?

I am a novice on ffpmeg and trying to go for a livestream youtube radio via azuracast. I have created an instance on oracle cloud and installed azuracast there. I can listen to the songs I uploaded in ...
mlee_jordan's user avatar
0 votes
1 answer
889 views

How to convert this file into PNG

I have a file with no extension (as far as I can tell) that consists of special symbols. (File: https://drive.google.com/file/d/1h9MuUDfDtGEneEzZMNKLKWwY7JjZlBTS/view?usp=sharing) Here're a couple of ...
awayneff's user avatar
0 votes
1 answer
1k views

Question marks appear even when opening the file in correct encoded format

I have been looking around on StackOverflow and here in the hopes of finding out as to why certain characters turn into question marks. To be more precise: It is often letter such as é and ó etc. I ...
I try so hard but I cry harder's user avatar
0 votes
2 answers
453 views

Trouble with perl and UTF-8

If I interpret documentation ci=orrectly, perl --CSD is suppose to ensure that input and output, processed or commands, are using UTF-8 encoding. But if I replace two hyphens -- with an em-dash — (U+...
WGroleau's user avatar
  • 715
0 votes
0 answers
652 views

FFmpeg: What are the h264_vaapi and hevc_vaapi encoders? How do they work? Do they just use the Video Coding Engine / Encoding ASIC on AMD GPUs?

The last part especially is what I'm wondering. How exactly does VAAPI work? Does it just use the the way that NVENC or h264_amf and hevc_amf works? Would it be possible to use the main GPU cores on ...
Oneechan69's user avatar
0 votes
1 answer
687 views

FFProbe output timebase only

When running ffprobe, it displays a lot more data than I need. I've already included the -hide_banner flag and its helped clean it up, but more specifically I only need the tbn Is there a way to limit ...
Video Guy's user avatar

1
2 3 4 5
15