Questions tagged [lossless]
The lossless tag has no usage guidance.
66
questions
0
votes
1
answer
128
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 ...
2
votes
1
answer
336
views
How can I losslessly concatenate two MP4 files and keep the telemetry information (GoPro GPMF) using FFmpeg?
One may losslessly concatenate two MP4 files using FFmpeg as follows:
ffmpeg -safe 0 -f concat -i list.txt -c copy output.mp4
with list.txt:
file 'C:\file1.mp4'
file 'C:\file2.mp4'
However, if the ...
4
votes
1
answer
6k
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 ...
0
votes
1
answer
406
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 ...
0
votes
0
answers
173
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 ...
5
votes
2
answers
9k
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 ...
14
votes
1
answer
5k
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 ...
5
votes
1
answer
18k
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 ...
1
vote
0
answers
383
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 ...
1
vote
0
answers
259
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". ...
1
vote
1
answer
101
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 ...
2
votes
1
answer
573
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?
2
votes
1
answer
4k
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 ...
2
votes
1
answer
1k
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 ...
4
votes
1
answer
4k
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 ...
3
votes
0
answers
398
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 ...
13
votes
1
answer
20k
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 ...
0
votes
1
answer
232
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 ...
0
votes
1
answer
395
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 -...
1
vote
0
answers
1k
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 ...
0
votes
1
answer
363
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
...
1
vote
0
answers
3k
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 ...
0
votes
1
answer
438
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 ...
0
votes
0
answers
115
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 ...
3
votes
1
answer
3k
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 ...
0
votes
1
answer
393
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 ...
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 ...
2
votes
2
answers
349
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 (...
1
vote
1
answer
849
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 ...
15
votes
2
answers
8k
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 ...
5
votes
1
answer
31k
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 ...
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 ...
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 ...
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 ...
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 ...
1
vote
1
answer
3k
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 ...
2
votes
1
answer
144
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 ...
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 ...
13
votes
1
answer
1k
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 ...
16
votes
2
answers
5k
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 ...
-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 ...
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 ...
10
votes
2
answers
50k
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. ...
0
votes
1
answer
2k
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?
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 ...
35
votes
6
answers
143k
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 ...
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 ...
7
votes
1
answer
2k
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 ...
4
votes
2
answers
456
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?
11
votes
2
answers
7k
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 ....