I am still struggling with editing MKVs. It seems like over half the time I clip some footage from an MKV I am left with artifacts, frames that don't change or stuttering frames. It is always the video and not the audio. I really hope this question doesn't get me in some sort of trouble because I do plan to continue to use avidemux, but are there alternatives that I can tryout to compare performance? Free is not a requirement. I am happy to pay for it. Again, I just want to compare results.
I am trying each nightly build Windows 64 bit build running on Windows 7.
Why would you get into trouble?
Clip? Is this cutting video in [Copy] mode for both video and audio output?
You do select the editing points with keyboard up/down arrow only? (https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fwww.avidemux.org%2FadmWiki%2Flib%2Fexe%2Ffetch.php%3Fmedia%3Dusing%3Aprevious_keyframe-qt.png&hash=da1f5bd5d5a24f06391bc49cc0ed216457f30094) or (https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fwww.avidemux.org%2FadmWiki%2Flib%2Fexe%2Ffetch.php%3Fmedia%3Dusing%3Anext_keyframe-qt.png&hash=0a172dd91ef16d1d1f12fb5e5ee95cbd6395cb8f)
Don't use the keyboard left or right arrow key. (https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fwww.avidemux.org%2FadmWiki%2Flib%2Fexe%2Ffetch.php%3Fmedia%3Dusing%3Aprevious_frame-qt.png&hash=375d41ad2dda9921274753ebbab01fab7f573722) or (https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fwww.avidemux.org%2FadmWiki%2Flib%2Fexe%2Ffetch.php%3Fmedia%3Dusing%3Anext_frame-qt.png&hash=482f800614b07ef30072a8344f474d23ee74274a)
New codecs don't use frames as in the old days (avidemux 2.5 branch)!
small YouTube demo: Fast Edit with Copy Mode (https://www.youtube.com/watch?v=avs5AvlSq4Y&list=PLLGMi2RSm8sbiUG2tfv8mcCzJoEsK3JVN&index=9)
I though asking about alternatives to Avidemux might be taboo.
I do all my edits using the up/down arrows only. I do exactly the same things as shown in the video link you posted. I don't know if it makes any difference but the MKV files I am editing were created from BluRay discs.
Regardless of how I do it, I still end up with garbage in-between frames.
I am hoping someone could point me to alternatives to avidemux so that I can compare performance to avidemux. Maybe my expectations are too high.
Quote from: Maveriick on April 24, 2017, 04:16:06 PM
I though asking about alternatives to Avidemux might be taboo.
Of course not, but I'm not aware of anything else except of command-line ffmpeg.
QuoteI do all my edits using the up/down arrows only. I do exactly the same things as shown in the video link you posted. I don't know if it makes any difference but the MKV files I am editing were created from BluRay discs.
Regardless of how I do it, I still end up with garbage in-between frames.
Likely the old unsolved issue with misdetected I-frames (or fields misinterpreted as frames) in interlaced h.264 videos. You should pay attention to the frame type up/down arrows seek to. Does it really show "I" or maybe "P" or even "B"? What does MediaInfo report about the source MKV files?
When I use the UP/DOWN buttons to jump from key frame to key frame the Frame Type always says "I-FRM (00)".
If I use the RIGHT/LEFT buttons, frames change randomly from B_FRM (00), P-FRM (00), and I-FRM (00).
What should I use? Up until now I have always used the UP/DOWN buttons.
Are the source videos interlaced or not?
Where do I find that info? This is what properties says:
=====================================================
Video
=====================================================
Codec 4CC: AVC1
Image Size: 1920 x 1080
Aspect Ratio: 1:1 (1:1)
Frame Rate: 28.571 fps
Total Duration: 01:58:41.166
=====================================================
Extra Video Properties
=====================================================
ExtraDataSize: 124
Extra data: 01 64 00 29 FF E1 00 35 67 64
=====================================================
Audio
=====================================================
Codec: DTS
Channels: 6
Bitrate: 192000 Bps / 1536 kbps
Frequency: 48000 Hz
Total Duration: 01:58:41.157
Which frame type would I use for interlaced and which would I use for non-interlaced?
Quote from: Maveriick on April 24, 2017, 10:58:32 PM
Where do I find that info?
Use MediaInfo: https://mediaarea.net/en/MediaInfo
Dan.
Scan type is progressive. Which frame type should I use when editing in Avidemux? Do I use 'P' frame types when editing? When would I use 'I' or 'B'?
Quote from: Maveriick on April 24, 2017, 11:43:42 PM
Which frame type should I use when editing in Avidemux? Do I use 'P' frame types when editing? When would I use 'I' or 'B'?
Cut on I-frames
aka key-frames. An I-frame doesn't compress well as it contains the full image info, hence the reason why there are less I-frames compared to the other types of frames. P & B frames only contain partial image info to encode changes.
Dan.
I though the scan type had something to do with where to cut. Interlaced or progressive. Is this correct? Do I use 'P' frames because my file's scan type is progressive?
So do I use the UP/DOWN buttons to find 'I' frames or the LEFT/RIGHT buttons to find 'I' frames? How frequently should I find a key frame? Every second or two? Every half second? Every few frames?
Quote from: Maveriick on April 25, 2017, 01:27:40 AM
I though the scan type had something to do with where to cut. Interlaced or progressive. Is this correct? Do I use 'P' frames because my file's scan type is progressive?
The "P" in P-frame stands for "Predicted", not "Progressive". P-frames encode the relative motion changes that have occurred in a forward direction
between frames i.e temporal compression i.e compression across time i.e compression of the differences between frames.
B-frames ("B" for "Bi-directional") encode changes in both forwards and backwards directions.
Only I-frames ("I" for "Intra") encode a full image, by spatially encoding the information
inside that 1 frame. (Like the lossey compression used in a JPEG stills file.) Only I-frames have enough info to standalone. You can't represent the image at a P or B frame until you trace all the way back to the previous I-frame, and in the case of a B-frame, also either to the next P- or I-frame (I'm not sure which). So with a IPPPPPIPPPPPIPPPPP frame sequence, which has an I-frame every six frames, if you wanted to cut at the 3rd P-frame from the start, the encoder would need the info from IPPP to form a complete image frame i.e. go back to the preceding I-frame and then apply the sequential changes to this key-frame as detailed in the 3 subsequent P-frames. The editing program would need to re-code the complete video stream, unless the editor supported "smart rendering", in which case it would only re-encode around this cut and copy the rest of the compressed video stream unchanged (assuming there were no other significant changes).
https://en.wikipedia.org/wiki/Intra-frame_coding
https://en.wikipedia.org/wiki/Inter_frame
https://en.wikipedia.org/wiki/Video_compression_picture_types
Quote from: Maveriick on April 25, 2017, 01:27:40 AM
So do I use the UP/DOWN buttons to find 'I' frames or the LEFT/RIGHT buttons to find 'I' frames? How frequently should I find a key frame? Every second or two? Every half second? Every few frames?
It depends on the AVC encoder. For example, 1080p50 50Mpbs AVC files (.MP4) from my camcorder have an I-frame usually every 24 frames.
When edited, resized to 720p50 and reecoded at approx. 6Mpbs with the Sony AVC codec in Sony Vegas Pro 12, they now have I-frames every 26 frames.
When I upload this file to YT and then d/l it using Youtube-dl, the 3Mbps 720p50 AVC version has an I-frame every 304 frames.
Dan.
OK. That really helps. Thank you. As I learn more and more my laundry list of my ideal editing too continues to grow. For example,
Smart Rendering
TureHD Sound
h265
Any ideas of where I can find such a tool? True HD audio support is almost nonexistent.
Quote from: Maveriick on April 25, 2017, 03:13:54 AM
>8 >8 Smart Rendering >8 >8
It used to give Smart copy, partial re-encoding of the video, in Avidemux 2.5 branch, until version 2.5.4. I don't see this returning: due to big concept differences between Avidemux 2.5 <> 2.6 and upcoming 2.7
Quoteh265
h265 = HEVC / x265
You have for
Video Output following choices, depending your hardware / OS
[HEVC (x265)]
[Nvidia HEVC]
... just to make sure... when doing a full re-encode (both video & audio), ADM should be able to handle any cut point / frame type?
Ie When trying to cut on a [I B B P B B* P B B I ...] frame, ADM will decode I B B P B first, to get a full frame for B* and feed this as first frame to the encoder?
You can cut/edit where ever you like whenever you recode the media file.
You can only cut/edit on Intra (I) frames whenever you copy the media file (Idr frames for AVC!).
Thanks, AQUAR!
Quote from: AQUAR on April 25, 2017, 01:22:43 PM
You can cut/edit where ever you like whenever you recode the media file.
You can only cut/edit on Intra (I) frames whenever you copy the media file (Idr frames for AVC!).
So why do I get garbage video frames when I use the UP/DOWN arrows to find key frames? Is there a bug that incorrectly identifies the frame type? If so, is there a work around? So far, I have not had problems with the audio only the video. It is really frustrating.
Do I need to change some settings? I am using a vanilla install and have not played with the settings. I don't know what most of them mean.
If you cut non-interlaced h.264 videos at I-frames and still get issues, please provide a sample.
Where should I upload the file?
Sample of video, +- 100 MB or 10 seconds in duration, more or less!
Info: Upload Hochladen Télécharger Subir (http://avidemux.org/smif/index.php/topic,17418.0.html)