Go Back    Forum > Digital Video > Video Project Help > Edit Video, Audio

Reply
 
LinkBack Thread Tools
  #1  
12-31-2023, 09:34 AM
mikehutchins mikehutchins is offline
Free Member
 
Join Date: Jan 2023
Posts: 9
Thanked 0 Times in 0 Posts
I have done a lot of searching but can't seem to find the answer.

I simply want to trim the beginning and end of an AVI file captured with an ATI USB 600 and the huffyuv codec through VirtualDub. I am using Direct Stream Copy in VirtualDub (1.9.11). I am using Copy in AviDemux.

With both applications, the overall bitrate went from 47.7 Mb/s to 84.6 Mb/s

I cannot see any other options to resolve this. Is this expected behavior trimming a huffyuv file? I can trim it when converting to h.264 but just trying to save 1hr50min of "dead space" in the mean time. Also, if I ever have some files I want to put away in the lossless format, this would be wasteful. Thank you.

Original File

Code:
General
Complete name               : L:\Suz\Music Man 3-3.avi
Format                      : AVI
Format/Info                 : Audio Video Interleave
Format profile              : OpenDML
Format settings             : WaveFormatEx
File size                   : 42.7 GiB
Duration                    : 2 h 8 min
Overall bit rate            : 47.7 Mb/s
Frame rate                  : 29.970 FPS

Video
ID                          : 0
Format                      : HuffYUV
Format version              : Version 2
Codec ID                    : HFYU
Duration                    : 2 h 8 min
Bit rate                    : 46.1 Mb/s
Width                       : 720 pixels
Height                      : 480 pixels
Display aspect ratio        : 3:2
Frame rate                  : 29.970 (30000/1001) FPS
Standard                    : NTSC
Color space                 : YUV
Chroma subsampling          : 4:2:2
Bit depth                   : 8 bits
Scan type                   : Interlaced
Bits/(Pixel*Frame)          : 4.454
Stream size                 : 41.3 GiB (97%)

Audio
ID                          : 1
Format                      : PCM
Format settings             : Little / Signed
Codec ID                    : 1
Duration                    : 2 h 8 min
Bit rate mode               : Constant
Bit rate                    : 1 536 kb/s
Channel(s)                  : 2 channels
Sampling rate               : 48.0 kHz
Bit depth                   : 16 bits
Stream size                 : 1.37 GiB (3%)
Alignment                   : Aligned on interleaves
Interleave, duration        : 32  ms (0.96 video frame)
Interleave, preload duratio : 31  ms
Avidemux File

Code:
General
Complete name               : L:\Suz\Music Man 3-3_edit.avi
Format                      : AVI
Format/Info                 : Audio Video Interleave
Format profile              : OpenDML
Format settings             : PcmWaveformat
File size                   : 6.68 GiB
Duration                    : 11 min 17 s
Overall bit rate            : 84.6 Mb/s
Frame rate                  : 29.970 FPS

Video
ID                          : 0
Format                      : HuffYUV
Format version              : Version 2
Codec ID                    : HFYU
Duration                    : 11 min 17 s
Bit rate                    : 83.1 Mb/s
Width                       : 720 pixels
Height                      : 480 pixels
Display aspect ratio        : 3:2
Frame rate                  : 29.970 (30000/1001) FPS
Standard                    : NTSC
Color space                 : YUV
Chroma subsampling          : 4:2:2
Bit depth                   : 8 bits
Scan type                   : Interlaced
Bits/(Pixel*Frame)          : 8.022
Stream size                 : 6.55 GiB (98%)

Audio
ID                          : 1
Format                      : PCM
Format settings             : Little / Signed
Codec ID                    : 1
Duration                    : 11 min 17 s
Bit rate mode               : Constant
Bit rate                    : 1 536 kb/s
Channel(s)                  : 2 channels
Sampling rate               : 48.0 kHz
Bit depth                   : 16 bits
Stream size                 : 124 MiB (2%)
Alignment                   : Aligned on interleaves
Interleave, duration        : 16  ms (0.48 video frame)
VirtualDub File

Code:
General
Complete name               : L:\Suz\Music Man 3-3trimmed-vdub.avi
Format                      : AVI
Format/Info                 : Audio Video Interleave
Format profile              : OpenDML
Format settings             : PcmWaveformat
File size                   : 6.67 GiB
Duration                    : 11 min 17 s
Overall bit rate            : 84.6 Mb/s
Frame rate                  : 29.970 FPS
Writing library             : VirtualDub build 32842/release

Video
ID                          : 0
Format                      : HuffYUV
Format version              : Version 2
Codec ID                    : HFYU
Duration                    : 11 min 17 s
Bit rate                    : 83.1 Mb/s
Width                       : 720 pixels
Height                      : 480 pixels
Display aspect ratio        : 3:2
Frame rate                  : 29.970 (30000/1001) FPS
Standard                    : NTSC
Color space                 : YUV
Chroma subsampling          : 4:2:2
Bit depth                   : 8 bits
Scan type                   : Interlaced
Bits/(Pixel*Frame)          : 8.022
Stream size                 : 6.55 GiB (98%)

Audio
ID                          : 1
Format                      : PCM
Format settings             : Little / Signed
Codec ID                    : 1
Duration                    : 11 min 17 s
Bit rate mode               : Constant
Bit rate                    : 1 536 kb/s
Channel(s)                  : 2 channels
Sampling rate               : 48.0 kHz
Bit depth                   : 16 bits
Stream size                 : 124 MiB (2%)
Alignment                   : Aligned on interleaves
Interleave, duration        : 33  ms (1.00 video frame)
Interleave, preload duratio : 500  ms


Attached Images
File Type: jpg musicman.jpg (58.4 KB, 2 downloads)
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
12-31-2023, 10:44 AM
keaton keaton is offline
Premium Member
 
Join Date: Jan 2017
Location: USA
Posts: 192
Thanked 90 Times in 64 Posts
I cannot speak for Avidemux. I use Virtualdub to trim unwanted frames from a lossless file such as a Huffyuv AVI. I use Direct Stream Copy option in the Video menu and do a File -> Save as AVI (F7) once I have either selected a range using Edit -> Set selection start (Home) and Set selection end (End). Alternatively, I also use those same Set selection start and end and then cut those frames from the copy loaded in Virtualdub, then save. If a range is not selected, then it will save all the frames remaining.

There should not be anything else you have to do with Virtualdub setup to make an exact copy when in the Direct stream copy Video mode, and it should save very quickly (the rate of frames per second it processes should be very high), and not look like it is trying to re-encode the file.

However, I don't know how Virtualdub operates under the hood. I would guess it doesn't even use a codec (i.e. Huffyuv) when it's doing a Direct stream copy. I say that, because when Direct stream copy is selected in the Video menu, the Compression option in the Video menu is disabled, so you are not able to select a destination codec.

If you are certain the edited file is still Huffyuv encoded, then my guess as to why you are seeing such a different bitrate is that this is an average over the entire video. Huffyuv is a variable rate encoder. If you look at the metrics in Virtualdub as it is encoding a capture, you'll see the rate changes depending on what is being captured. Some tapes are nice and clean and so it can encode much more efficiently, while others have a lot more noise and so the bit rate is higher because it is trying to preserve all that noise without any loss of information. If most of what you cut from the original file is just a blank screen, then the average bit rate over the 2 hour file is going to be greatly reduced because it can encode that part of the video much more efficiently than the few minutes of video you are trimming out of the 2 hour file. If it can encode almost 2 hours of blank screen at a very low bitrate, but the few minutes of video you are saving is encoded at a bitrate several times higher than that, then the average of the 2 hours of blank + your few minutes of video is going to be much lower than when you only save the few minutes of video.

Hope this helps.
Reply With Quote
  #3  
12-31-2023, 11:39 AM
mikehutchins mikehutchins is offline
Free Member
 
Join Date: Jan 2023
Posts: 9
Thanked 0 Times in 0 Posts
The specs for all of the files are above.

You make a good point. A lot of "blank" video in the original file. Almost 110 minutes. That long section may have a much lower bitrate and the section with actual video. I was expecting my file size to go down in a linear fashion.

I will do a test with a file that only needs a little bit trimmed on each end and see what happens.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Passes, bitrate, Avidemux for MPEG-2 encode? Amanjm Encode, Convert for discs 4 12-15-2021 09:15 PM
Avidemux not encoding interlaced? gloubu Capture, Record, Transfer 4 09-09-2020 10:29 AM
Avidemux MPEG-2 file looks different house141 Encode, Convert for discs 3 09-16-2018 10:19 PM
Avidemux mac osx with Avi 650 usb? waloshin Capture, Record, Transfer 0 11-11-2016 03:15 PM
New Avidemux 2.6.12 Goldwingfahrer General Discussion 2 03-08-2016 02:02 AM




 
All times are GMT -5. The time now is 09:45 AM