Questions tagged [lossless]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
949 views

Using ffmpeg + MPDecimate to get rid of exact duplicate frames (i.e. losslessly)

According to the documentation, mpdecimate will "Drop frames that do not differ greatly from the previous frame in order to reduce frame rate." I would like to be able to remove only exact ...
user avatar
0 votes
1 answer
56 views

Losslessly compressing screenrecording of video chat [duplicate]

I have a screenrecording of a video chat I had and the filesize is massive because the screen recording itself was done at 59.93 fps. However, I think the video chat was something like 15-30 fps. Plus ...
user avatar
0 votes
0 answers
140 views

Difficulties Using FFmpeg to Take Lossless Excerpt from .mpg to .mp4

I want output.mp4 to contain a lossless copy of video starting at 00:00:39 and ending at 00:01:29 in input.mpg. I tried this (using Windows 10): ffmpeg -ss 00:00:39 -i input.mpg -to 00:01:29 -c:v copy ...
user avatar
4 votes
2 answers
4k 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 ...
user avatar
13 votes
1 answer
3k views

Is it possible to change orientation of JPG image without rotating it (and thus losing information)?

As JPG is a lossy compression, every re-encoding losses quality. Thus, 90/180/270 degree rotation is a lossy operation as well. Is it possible to change orientation of JPG photo by changing some of ...
user avatar
  • 6,721
3 votes
1 answer
8k views

What is the different of h264 and libx264

I notice there is argument available for --enable-encoder=h264,libx264 suppose I am converting the video looselessly Which one default ffmpeg will use? h264 or libx264? And how about the quality ...
user avatar
1 vote
0 answers
262 views

In ffmpeg truehd encoder, can you mark L and R as LT and RT (Dolby Surround)

When encoding a stereo audio stream with the ffmpeg ac3 encoder, you can specify that the L/R channels are Dolby-Surround (Pro-Logic) LT/RT channels, using the -dsur_mode 2 flag. Is there a way to do ...
user avatar
  • 111
1 vote
0 answers
145 views

How to Get Video Lossless Rotation When Re-encoding Using FFmpeg?

I'm looking for how to rotate a video without losing any quality when re-encoding. I currently use ffmpeg -i "inputvideo" -crf 0 -vf transpose=2 -acodec copy "outputvideo". Although -crf 0 should ...
user avatar
1 vote
1 answer
82 views

What file format to use for photos? I will edit them. Then I will add text and make a PDF

I want to shoot a few photos using the smartphone. I will receive JPEG files. Next step I will move this photos to desktop computer (Windows 10 Home 64-bit). Now I want to edit this photos: some of ...
user avatar
  • 35
2 votes
1 answer
385 views

How to merge three mp4 files with same encoding/codex by Avidemux using command line?

Assume that one has three mp4 files with the same encoding/codex, say file1.mp4, file2.mp4, file3.mp4. How can one merge these files into a single mp4 file, using command line by avidemux?
user avatar
  • 353
2 votes
1 answer
3k views

Huge file size difference between lossless HEVC and FFV1

I made a music video with a still image (input.jpg ≈ 1 MB) and a music (input.wav ≈ 20 MB) using FFmpeg. Why do I get such a huge difference in file size between the video generated with the lossless ...
user avatar
  • 123
2 votes
1 answer
770 views

How to remux/combine two MP4 files losslessly: One has video I want and the other has matching audio I want [duplicate]

I’d like to know if there's a way to remux/combine two MP4 video files. They both have the exact same frame count. One is 1080p with no sound, the other is 720p with sound. I’d like to permanently ...
user avatar
3 votes
1 answer
3k views

Lossless Video Codec supporting Alpha Channels

Suppose I have a sequence of PNG image files which may or may not contain an alpha channel (assume those that do have an alpha channel actually utilize it). While PNG files themselves have their own ...
user avatar
  • 916
3 votes
0 answers
238 views

libx265 -crf transparency

I would like to know (even if it is subjective opinion) what is considered "transparency" when encoding with libx265. In other words, what value do I need to put after "-crf" to get a video that has ...
user avatar
  • 51
13 votes
1 answer
15k views

Producing lossless video from set of .png images using ffmpeg

I have a set of .png images that I would like to animate into a movie using ffmpeg on macOS, but when I look at the video produced the quality is always compressed and the resulting video has ...
user avatar
  • 233
0 votes
1 answer
192 views

Is the operating system playing lossless audio?

Considering we have a lossless audio player, and a lossless audio recorder both of which are digital (meaning the audio does not ever go through an analog cable) we should be able to play back the ...
user avatar
0 votes
1 answer
310 views

Is it possible for ffmpeg to select audio channels without reencoding

I use this command to try and downmix an audio file without re-encoding but the channel selection is not done : $ time ffmpeg -i input.aac -c:a copy -map_channel 0.0.0 -map_channel 0.0.0 output.aac -...
user avatar
  • 1,245
1 vote
0 answers
960 views

Lossless H.264 MOV cannot be opened with Quicktime

I believe that this question is not the same as Lossless H.264 MP4 file created from images cannot be played in QuickTime because that question, and its answer, pertains to converting a series of PNG ...
user avatar
0 votes
1 answer
319 views

Variable framerate lossless video from yuv422 images

I've been pulling my hair lately with FFmpeg commandline. Be aware that I am not an FFmpeg expert. Here is my problem: I have a bunch of YUV422 images as such: image0.yuv image1.yuv .. image450.yuv ...
user avatar
1 vote
0 answers
2k views

Edit MP4 Hex data to vertically or horizontally flip video in a lossless manner

I am trying to do something similar to the questions here and here, but with a small difference. I am trying to flip the video along the Y or X axes instead of doing a rotation. The solution in those ...
user avatar
0 votes
1 answer
350 views

Is there a way to tell ffmpeg "encode file A with format settings of file B?"

I know I could use ffprobe and then parse the text file to get the codec info of file B, but is there a simpler way? Goal: I want to append a few seconds of silence to hundreds of audio files (who ...
user avatar
0 votes
0 answers
93 views

FFmpeg losslessly deconstruct video then losslessly re-encode

I need to dump all the frames losslessly from a h.265 mkv video, along with the audio track in FLAC 24bit (initially it was encoded from the source in FLAC 24bit). I then need to edit some frames and ...
user avatar
3 votes
1 answer
2k views

Is TIFF with JPEG compression lossy?

Preview on the Mac can save a file to TIFF, but with JPEG compression: Is this lossy? I'm confused because TIFF is usually lossless, but JPEG is lossy. Maybe it is lossy, since the file size is 4MB ...
user avatar
0 votes
1 answer
302 views

Does editing a lossy format without converting to another format file hurt quality?

I've heard that converting a file from one lossy format to another one further reduces quality. That makes sense! But what happens if I edit a lossy file and export using the same file format, does ...
user avatar
1 vote
1 answer
2k views

lossless video using FFmpeg ffv1 on jpeg images is not compressed but expanded

Is it possible for FFmpeg / ffv1.3 / mkv to create a lossless video is not larger than the sum of its parts (and if so, how) and if not, what is a good alternative to come close on size? The video ...
user avatar
2 votes
2 answers
310 views

Do lossless audio files keep original quality when played (or only when converted back)?

I see a "lossless format" like FLAC defined often as one in which there is no loss of quality compared to the source file from which it was converted. But does that mean that the original quality is (...
user avatar
1 vote
1 answer
736 views

FFMpeg image sequence to video using VP9 encoder

I'm trying to transcode mp4 to webm format in a lossless way. I tried two ways to do that. For that purpose, I extracted mp4 video to image sequences (png). Then, I converted image sequence(without ...
user avatar
  • 113
14 votes
2 answers
7k views

"Losslessly" trim an MP3 file [duplicate]

I have got an mp3 file, let's say it is 25 minutes long. I understand that any software is capable of extracting the first 20 minutes of the file as a new MP3 file. However, I would like to find a ...
user avatar
  • 479
5 votes
1 answer
30k views

How do I reinstall Windows 10, keeping existing apps and files?

After running a checkdisk and rebooting to repair files, Windows 10 now boots to a black screen with no mouse cursor. (Specifically, I restarted to perform a checkdisk, which completes to 100%, the ...
user avatar
  • 281
1 vote
3 answers
4k views

FFMPEG: convert MP4 to same MP4 (in a different container) and add Subtitles

The main reason for this post is that I have movie.mp4 that I have downloaded an SRT for. When I manually add the SRT VLC uses its settings to change the font/size etc of the SRT. But if I Embed the ...
user avatar
4 votes
1 answer
7k views

How to correctly use x265 lossless parameter with avconv

x265 has a lossless mode which is used for ultra-high bitrates with zero loss of quality. I tried using this mode with avconv as follows: avconv -i input.mp4 -c:v libx265 -x265-params lossless -c:a ...
user avatar
  • 1,683
2 votes
1 answer
3k views

How do I use OptiPNG on Windows to get a lossless file?

I simply what to use OptiPNG on Windows to create lossless versions of a folder full of PNGs file. Is the following command sufficient? optipng *.png I've seen things about using the o7 option as ...
user avatar
3 votes
2 answers
4k views

How to know the compression level of a PNG file and whether it is lossy?

Can I know whether a PNG file was compressed and how (at least, whether it was a lossless compression) in Windows? When I open the standard file properties dialog from the Windows Explorer, I see no ...
user avatar
  • 1,155
1 vote
1 answer
2k views

Best way to convert BMP to PNG while maintaining quality?

Is this possible convert BMP to PNG while maintaining quality? I am trying to reduce the size of some albums that are in BMP, but still maintain the lossless quality. Just tried XnConvert and setting ...
user avatar
2 votes
1 answer
130 views

Slight file content difference due to LZW compression

In order to test if LZW compression is truly lossless I did the following: I created a master uncompressed TIFF file. Created an LZW compressed version of it Saved that compressed TIFF back into an ...
user avatar
3 votes
0 answers
12k views

FFMPEG Lossless Video Output Options

I am looking for lossless video output options from FFMPEG that can be viewed without any special codecs or special players such as VLC. I want a basic use to be able to open up the video with a ...
user avatar
13 votes
1 answer
929 views

Will editing an MP3 harm the quality?

I recently recorded something in MP3 — I should have done FLAC, but it’s way too late — and I wanted to edit those soundtracks from 5 minutes to about 2 minutes each. I edit in Audacity. Will loading ...
user avatar
14 votes
2 answers
4k views

lossless concatenation of ogg vorbis files

I have a couple of ogg vorbis files, all encoded with the exact same properties that I want to concatenate into a single file. I know that the ogg vorbis format supports plain concatenation of ...
user avatar
  • 737
-1 votes
1 answer
5k views

Best audio converter for flac to alac? [closed]

I just got a new phone with a lot more space. This means I can put my lossless audio on... trouble is, iTunes doesn't support flac.... There is alac, but I have yet to find a quality converter to ...
user avatar
  • 13
0 votes
1 answer
2k views

Improve ffmpeg command for MKV to MP4 for iPad?

I have many MKVs made from DVDs and BRs by MakeMKV that I converting to MP4 so I can play/stream on my iPad Air. I now use this command for converting my MKVs to MP4: ffmpeg -i input.mkv -strict ...
user avatar
  • 103
10 votes
2 answers
49k views

How to convert MKV videos to lossless MP4 videos that are compatible with iOS devices on Windows?

I’m new to FFmpeg (Windows), and need some help. I want to convert my MKVs to MP4 with as little loss in quality as possible. The MKVs are made with MakeMKV and contain among others DTS soundtrack. ...
user avatar
  • 103
0 votes
1 answer
1k views

Convert shn to flac with one command in CLI?

Everywhere I've googled they always convert shn to wav, and then to flac. It's really uncomfortable. How can I convert shn to flac withing one line?
user avatar
  • 3,197
3 votes
2 answers
7k views

Converting RGB images into lossless video with avconv / ffmpeg

I am trying to convert a series of PNG24 images containing a screen animation to a lossless video, so that every pixel is reproduced exactly as it was in the original. But avconv (and ffmpeg) both ...
user avatar
  • 51
35 votes
6 answers
141k views

What is the difference between WAV and FLAC?

My understanding is that the WAV and FLAC formats are containers for lossless audio. I have seen the FLAC format as being perhaps better because it is able to losslessly compress audio from say a WAV ...
user avatar
  • 1
4 votes
3 answers
3k views

How to apply audio track to a mute h264/mp4-video losslessly?

I have a MP4/h.264-video with no sound. With ffmpeg or similar, how can I apply an audio track to that MP4-file without degrading the quality of the video (i.e. without recoding the video-track)? I'd ...
user avatar
  • 826
7 votes
1 answer
1k views

How do I achieve lossless JPEG joining without truncation of partial MCUs?

I am working on a project for which I need to join thousands of JPEG images losslessly (I'm not talking about the Lossless JPEG/JPEG 2000/JPEG-LS formats here). Aforementioned images have varying ...
user avatar
  • 54.9k
4 votes
2 answers
442 views

What are the basic components of an "audiophile" PC? [closed]

For the purpose of listening to lossless files (i.e., FLAC), is it simply a high quality sound card + high quality speaker?
user avatar
  • 5,257
12 votes
2 answers
6k views

Understanding conversion and (de)compression of lossless audio

I have a few questions concerning lossless audio. I'm considering ripping my entire music collection to lossless .flac, but I want to understand a few things about it first. If I have a file that is ....
user avatar
0 votes
2 answers
433 views

AAC 256kbit to MP3 320kbit conversion. I know it's lossy, but how?

Has anyone ever transcoded music from a high-quality aac to an mp3 (or vice-versa). The internet is full of people who say this should never be done, but apart from the theoretical standpoint that you ...
user avatar
1 vote
1 answer
102 views

Is there a compression method for compressing a group of very similar files, without archiving them?

I want to compress a large nuber of files that have near identical headers, and also some data, however I do not wish to archive them, nor do I wish to zip them individually(because the copression ...
user avatar
  • 134