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.
779 questions
0 votes
1 answer
81 views
How to import into Excel a UTF-8 encoded CSV file containing line breaks within fields?
Importing CSV files containing line breaks within fields is tricky and the usual import methods as described for Excel do not work. Only opening a file directly with "File -> Open..." ...
2 votes
1 answer
127 views
Why am I seeing an unexpected code page in PowerShell properties?
Not sure if that matters, but OS is Windows 11, 24H2 This is freshly started admin powershell window, "Current language for non-unicode programs" is set to "English (United Kingdom)&...
15 votes
1 answer
2k views
In UTF-8, why do two-byte codes range from U+0080 to U+07FF instead of U+0080 to U+087F
In UTF-8, two-byte codes are used to encode the code points from U+0080 to U+07FF (2¹¹ - 2⁷ code points) instead of U+0080 to U+087F (2¹¹ code points). I fail to see why the range of valid two-byte ...
0 votes
0 answers
56 views
jxs_encoder.exe from JPEG XS fails with "Unable to allocate encoding context" for lossless 4:2:0 10-bit YUV
I am trying to losslessly compress a raw 4:2:0 10-bit YUV file using the official JPEG XS test model encoder (jxs_encoder.exe), but it fails when lossless mode is enabled. My Environment Encoder: JPEG ...
0 votes
0 answers
122 views
Email sent from bash script badly encode accented chars
I want to send a mail from a bash script. I'm using the curl command to do that: #!/bin/bash curl --url 'smtp://ssl0.ovh.net:587' --ssl-reqd --mail-from '[email protected]' --mail-rcpt 'to@mydns....
1 vote
0 answers
68 views
Complex insertion of variable length silence in audio file with ffmpeg?
I have an audio form like this: Only one file it has about 50 audio parts of duration between 0.9 to 2 seconds, those audio waves separated by silence chunks of duration between 0.6 to 1 second ...
1 vote
0 answers
255 views
How to re-encode audio tracks within a multi-language video with FFmpeg?
I have a video with 4 language audio tracks that works nicely within the QuickTime player for 3 of the 4 audio tracks. I think the 4th audio track is encoded differently because the FFmpeg listing ...
0 votes
0 answers
69 views
Re-encode a video keeping the GOP structure of the original video
Is there a way to re-encode a video with ffmpeg keeping the GOP structure of the original file? That is, if a frame is IDR, I, B or P in the input file, keep the same type in the output file, even if ...
1 vote
1 answer
90 views
How to figure out terminal keys with telnet MUD?
I started trying out MUD's recently. Via the terminal on Mac, I had no issues. I then tried logging on via my Linux computer, in RXVT-unicode/Bash. $ echo $TERM rxvt-unicode-256color $ telnet aardwolf....
0 votes
0 answers
15 views
How to grep on accented vowels? [duplicate]
I have a logfile, written in French, containing the following information: Nouvelles données [Status : 32 I was looking for all possible values of the mentioned status, but I didn't find anything: ...
0 votes
2 answers
137 views
Why might Outlook be blocking/affecting the email open rate monitoring from Mailchimp? [closed]
Since December 2024 something is stopping us tracking the email open rate(s) in Outlook. I wonder if someone can give us a clue as to what is actually doing the tracking i.e. url/image. And what in ...
2 votes
1 answer
233 views
Can I make my FFmpeg encoding more efficient without sacrificing quality or file size?
I'm currently recording gameplay footage through OBS in a near-lossless format, which preserves quality nicely, but generates gigabytes of video. For distribution, I want to re-encode my video files ...
-1 votes
1 answer
119 views
What are Base64 strings?
I have a column in an SQL-Server table, containing information like the following: Data ...
0 votes
1 answer
79 views
AAC Encoder return same pts for different frame with different pts
I wrote a mp4 recorder, i used aac encoder for sound, the problem is I got this error when writing into mp4 file; """ [mp4 @ 000001d33e381dc0] Application provided invalid, non ...
0 votes
0 answers
154 views
MS Word's Interpretation of RTF Files
I have two 'identical' RTF files generated by the same third-party app in slightly different modes. A curious niggly little bug has emerged that I can't seem to find a reason for. The files both ...
3 votes
0 answers
229 views
Why File Size Increases When Converting MP4 to WebM
I'm trying to convert a MP4 file to WebM, using the following parameters: ./ffmpeg -y -hide_banner -nostats \ -i /usr/local/m2/static/lotteon-low-bitrate.mp4 \ -threads auto -f webm -acodec libopus -b:...
3 votes
1 answer
367 views
Dynamic resolution video, resolution won't be adjusted correctly after re-encode
I am recoding the live stream; many of them will adjust resolution because of PK. For example, the resolution is 720x1280 when solo; after starting PK, the resolution becomes 900x720; after PK ends ...
1 vote
1 answer
146 views
How to merge video stream from one file and audio streams from another one?
Situation: I did encoded a h.264 input_original.mkv file to h.265 output_hevc.mkv After long encoding process I realise there are wrong audio streams was choose. I need to get new output_hevc_2.mkv ...
2 votes
0 answers
2k views
ffmpeg -- copy attached cover image (cover.jpg) of video file during encode?
I am trying to encode a video with ffmpeg which has a cover file attached. This cover file should end up in the encoded video as well. I can do this with mkvextract attachments movie.mkv 1 && &...
1 vote
1 answer
511 views
FFmpeg Video Toolbox failing: The hardware encoder may be busy, or not supported
I'm trying to run this on an Mac with an Apple M1 chip: ffmpeg -i input.MP4 -c:v hevc_videotoolbox -b:v 2000000 -s 1280x720 output.mp4 And FFmpeg returning error: Stream mapping: Stream #0:0 -> #...
1 vote
1 answer
244 views
can't copy specific characters from a pdf. what is the reason and how do i diagnose?
The PDF is not protected It needs no password.I read it from Adobe reader flatpak in Ubuntu and the properties tab indicates no security and printing, copying and extraction are allowed. I tried ...
1 vote
0 answers
229 views
How can I detect black frames and add keyframes at the detected black frame in single FFmpeg process?
How can I detect black frames and add keyframes at the detected black frame in single FFmpeg process? I found this command via Google; it detects black frames. I want to combine the black frame ...
1 vote
1 answer
190 views
Can I fix this encoding issue with a copy and pasted .p12 Certificate?
Wondering if there is a work around, whether it be from advanced settings in Gmail or another text editor or command line fix for a pretty stupid issue. I hastily opened a .p12 Certificate in Notepad, ...
1 vote
0 answers
130 views
How to create URI to open hardcoded text/plain content in web browser?
First question, is it even possible to write a URI (presumably http://) that will make a browser display some plaintext content, where the content is hardcoded into the URI itself (aka not served by a ...
2 votes
2 answers
269 views
Mixed UTF-16BE strings with ANSI in content stream of a PDF page object
I am working on generation of PDF on the fly tool, with custom chosen local font. Embeeding the font is not a problem, and been proven that font been found w/o problem. However, the font is Chinese, ...
0 votes
1 answer
725 views
UTF-8 Decoders fail to decode the encoded strings
I have some encoded values values which I believe is UTF-8. Now I dont really know if it is UTF-8 or not because other online tool and steps to decode UTF-8 is not working, BUT an open source tool ...
5 votes
2 answers
19k views
How to convert UTF-8 to ANSI?
(Note that I posted a previous iteration of my question on Stack Overflow.) I am trying to change multiple files from UTF-8 to ANSI in Notepad. My goal is change them to ANSI like my course has ...
2 votes
1 answer
1k views
Why am I getting pixelated videos in FFmpeg when converting to a GIF?
I want to encode this WEBM video: https://buggem.github.io/connecting.webm I have been noticing the fact that FFmpeg has been played up when it comes to quality. I am doing WEBM to GIF, if that ...
1 vote
1 answer
3k 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. ...
1 vote
1 answer
154 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
0 answers
130 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
1 answer
57 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
437 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
7k 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
114 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
406 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
375 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
1k 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
617 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
496 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....
4 votes
1 answer
5k 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
88 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
352 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 ...
2 votes
1 answer
4k 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 -...
1 vote
0 answers
135 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
1 answer
1k 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
2k 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,...
1 vote
1 answer
1k 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
438 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
3k 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 ...