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.
761
questions
1
vote
0
answers
35
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 ...
0
votes
0
answers
20
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
24
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
42
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 ...
0
votes
1
answer
42
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 ...
0
votes
1
answer
300
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 ...
1
vote
1
answer
48
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 ...
1
vote
1
answer
75
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
79
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
86
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
79
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
88
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
431
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
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&...
0
votes
0
answers
82
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
0
answers
104
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 ...
1
vote
1
answer
434
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
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 ...
1
vote
0
answers
44
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
45
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 ...
0
votes
1
answer
276
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 ...
2
votes
1
answer
644
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
0
answers
229
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
477
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
167
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....
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 ...
2
votes
1
answer
340
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 ...
0
votes
0
answers
121
views
Encoding a DVCPRO50
I'm attempting to encode a video into DVCPRO50 format.
I have found and read the documentation which suggests that FFmpeg should be capable of this, but I'm having trouble with the specific command ...
0
votes
1
answer
621
views
Wrong character encoding in ssh session – but not for all connectios
I have an odd issue when connecting to my (Ubuntu) server via SSH.
If I connect from my Gentoo box, all is fine. All Umlauts etc. work, I can type "ÄÖÜ" and so on.
If I do the same from my ...
0
votes
0
answers
137
views
Size difference of output files from FFMPEG and NVENC rendering
For this:
NVEncC64.exe --avhw -i "PATH\FILE (SRC).MP4" -c "av1" --cbr 1500 --audio-codec aac --audio-bitrate 64 -o "PATH\FILE (AV1).MP4"
I used the NVEncC (x64) -Encoder ...
1
vote
1
answer
368
views
How to tell Excel to change right encoding in opened file?
Can somebody tell me please how to tell Excel to set up right encoding for csv file? It seems it is not possible without any annoying steps. I would like to see something like Libre office or Open ...
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 ...
1
vote
1
answer
583
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 ...
1
vote
1
answer
116
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 ...
0
votes
0
answers
291
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?
9
votes
3
answers
2k
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, ...
0
votes
0
answers
253
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 ...
0
votes
1
answer
731
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 ...
-2
votes
1
answer
515
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 ...
0
votes
1
answer
325
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 ...
1
vote
2
answers
627
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'...
0
votes
0
answers
249
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 ...
-1
votes
3
answers
408
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 ...
0
votes
1
answer
93
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 ...
0
votes
0
answers
194
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 ...
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 ...
1
vote
0
answers
110
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.
...
0
votes
0
answers
83
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 ...
1
vote
1
answer
569
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 ...
0
votes
2
answers
546
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 ...