Alright then. Even the most recent version ? (It gets updated quite often.{*}) Is there a specific reason for that ? And what is the purpose of packed bitstream to begin with ? (Perhaps I'll remember next time around...)Regarding muxing to MKV: MkvMerge doesn't unpack the packed bitstream so the resulting video may not play well on all devices.
{*} I currently have v. 35 which is more than a year old, but I like its name, and it works fine so I didn't feel the urge to upgrade ; now it's already v. 51 called “I wish”. I wonder where those fancy names come from. Could it be from songs, since “I wish” is a classic tune from Stevie Wonder ? (Before that they had : “Sick of losing soulmates”, “Fortress around your heart”, “The silent type”, “The Quartermaster”, “No deeper escape”, “The flower kings”, “Awakenings”... Perhaps it all adds up to form a cryptic message from the Illuminati...)
+ Reply to Thread
Results 61 to 81 of 81
-
-
Packed bitstream (sometimes called the "virtualdub hack") is a workaround for out-of-order codecs and Microsoft's VFW library for reading AVI files. VFW is based on a one-frame-in-one-frame out model. It reads one frame worth of compressed data, decompresses it, then sends it to the player (or editor). That doesn't work with out-of-order codecs because the frames aren't stored in the order they're displayed. Consider a sequence like IBBP. That's four frames of video in their display order, frames 1,2,3,4. The I frame (key frame) is encoded much like a JPEG image -- all the compressed data that's needed to reconstruct that frame is included in that frame. The last frame of the sequence, the P frame (4, a "Predicted" frame) may use parts of the first frame and its own compressed data to reconstruct the full frame. So the I frame has to be decoded and accessible before the P frame can be decoded. The two B frames ("Bidirectionally predicted" frames) between them may reference parts of the I frame and/or the P frame. So both the I frame and the P frame must be decoded before either of those frames can be decoded. To reduce the amount of seeking (very important for slow seeking devices like CD-ROM or DVD-ROM) the frames are store in the order IPBB (1,4,2,3). At playback the frames are decoded in that order but they are rearanged on the fly and displayed in the correct order IBBP (1,2,3,4).
To get that working with VFW the BBP sequence is stored in the AVI file as if it's one frame (hence "packed"). Then to make up for the missing frames two NULL frames are included in the AVI file: I(PBB)NN. At playback the decoder first decompress the I frame (1) and presents it to the player. Then it decompress the entire PBB sequence (P, then B and B, all stored internally) and presents only the first B frame (2) to the player. When the player asks for the first NULL frame the decoder presents the second B frame (3) which has already decoded. Finally, when the player asks for the second NULL frame the P frame (4, already decoded) is given to it.
Out of order codecs have to be specially written to support this convoluted method. Divx/Xvid/x264 all support it. -
Thank you for the reply.
I assume there is something wrong with my screenshots? I use Microsoft Snipping Tool, what would you recommend?
I do have the WD Player and also two of the Seagate ones (can't remember what they are called anymore). It seems there is some problem with each of the players I have tried. The other problem is I have about 8 devices that are HDMI and 3 HDMI ports on my TV so between using some inputs on my home theatre system and a 5 port hub/switch it is a pain using some of these devices and as I mentioned most have issues of one type or another. They are probably fine if you don't have many files but are very cumbersome otherwise. I also have a Sony I think it was called Internet Player or something similar. It was around $200-$250 and it doesn't recognize a hard drive larger than I believe it was either 500GB or maybe 1TB so it doesn't even see my hard drives. Talked to Sony numerous times and was continually assured they would update the player so it would see my drives but never has and I don't think they support it anymore. I have used the player on the Roku and it doesn't work that well either. I have VLC on an Amazon Fire TV stick and again plays some stuff not bad but other stuff is jerky. I like the player built into the Samsung TV as it is handy and don't have to play around to access the drives just unfortunate they dropped support for formats/codecs they once supported. It isn't like they need to add hardware that would increase the cost of the TV, just keep what they already had and add new formats to it.
I'll have a look at the rest of the reply after Christmas as will be busy again the next week or two.
I do have backups of backups of personal recordings/files so would not delete the originals under any circumstances. I am paranoid about that so have a few backups of all of those files.
Thanks againLast edited by jackdup; 21st Dec 2020 at 22:14.
-
I'll try removing that section and try it and see if it makes a difference. I would prefer staying with mp4 rather that using mkv. While I would prefer something a bit quicker it really doesn't matter that much as it does an entire directory without any babysitting. I have tried playing the mp4 files on several different players but what I have tried plays fine which is more important that the time it takes to do the files.
Thanks again for your help and will spend a bit more time reviewing yours as well as the other posts after the new year. -
I assume there is something wrong with my screenshots? I use Microsoft Snipping Tool, what would you recommend?
I do have the WD Player and also two of the Seagate ones (can't remember what they are called anymore). It seems there is some problem with each of the players I have tried. The other problem is I have about 8 devices that are HDMI and 3 HDMI ports on my TV so between using some inputs on my home theatre system and a 5 port hub/switch it is a pain using some of these devices and as I mentioned most have issues of one type or another. They are probably fine if you don't have many files but are very cumbersome otherwise. I also have a Sony I think it was called Internet Player or something similar. It was around $200-$250 and it doesn't recognize a hard drive larger than I believe it was either 500GB or maybe 1TB so it doesn't even see my hard drives. Talked to Sony numerous times and was continually assured they would update the player so it would see my drives but never has and I don't think they support it anymore. I have used the player on the Roku and it doesn't work that well either. I have VLC on an Amazon Fire TV stick and again plays some stuff not bad but other stuff is jerky. I like the player built into the Samsung TV as it is handy and don't have to play around to access the drives just unfortunate they dropped support for formats/codecs they once supported. It isn't like they need to add hardware that would increase the cost of the TV, just keep what they already had and add new formats to it.
What are the issues with the WD player ? Is it the “WD Live” or another ? When was the last time it got updated (if it did get updated at all) ?
Does anyone know what could justify the dropping of formats that were decoded by former models of the same brand ? Cost of patents perhaps ?
I would prefer staying with mp4 rather that using mkv. While I would prefer something a bit quicker it really doesn't matter that much as it does an entire directory without any babysitting. I have tried playing the mp4 files on several different players but what I have tried plays fine which is more important that the time it takes to do the files. -
I can’t believe it has been a year and a half but have had a bunch of other stuff on the go so haven’t had the time to do anymore with this. I just wanted some clarification on the change you recommended as I know syntax is important. You mentioned the second command line doesn’t need " -bsf:v mpeg4_unpack_bframes". Do I leave the quotation mark before the -c copy and leave the -c copy as well as there is no other quotation mark before the section you mentioned removing. If you don’t mind perhaps you could edit the appropriate line and repost it and them I’ll be sure not to mess it up.
Once again thanks for your help and sorry it has been so long. -
Once you've made an MKV file from the disc, all you need to do is to do this:
ffmpeg.exe -i in.mkv -vf "scale=in_range=full:out_range=full,lut='y=(va l-16)*1.067',yadif=1" -c:v libx264 -crf 17 -colorspace:v "bt709" -color_primaries:v "bt709" -color_trc:v "bt709" -color_range 2 -c:a copy "out (full range+recode+yadif).mp4"
Full explanation:
https://forum.videohelp.com/threads/405794-VHS-PAL-cutting-and-upscaling/page2#post2659544Last edited by rgr; 11th Jul 2022 at 12:20.
-
-
1. Performs deinterlacing.
2. Recode to H.264 - MPEG stream in MP4 file is not widely supported
3. You can add crop to the command line (but if the source is VHS, the DVD hardly had black edges).
4. Should improve the contrast, but that depends on what the source is.
5. It will last longer
Just test -
-
No, that's for mkv files from DVDs. For avi it depends on what is in the avi file, but generally:
ffmpeg -i in.avi -c:v libx264 -crf 17 -pix_fmt yuvj420p -c:a aac -b:a 256k out.mp4
(libx264 - codec h264, crf 17 for very high quality (19 is considered as high quality, 22-23 - good quality), pix_fmt for full color range, aac 256k for high quality audio) -
Also note that virtually all commercial video is limited range (DVD, Blu-ray, all streaming services, etc.). If you use full range (flagged or not) you are asking for trouble. Many players, especially outside a computer, will pay no attention to the full range flag. You may end up with crushed blacks and brights.
-
-
I have not seen any modern player that does not support full range. And it will not destroy any ranges, because they will remain in the file - at most an old player will reproduce a worse picture.
My Panasonic DVD Recorder saves the image in the range 16-254, but does not put any range information in the file.
Normal conversion will then destroy the white ranges.
Therefore, first of all, you should check (e.g. in Vegas) the actual color range.Last edited by rgr; 13th Jun 2022 at 10:24.
-
-
First you need to have your Command Prompt set to where your ffmpeg folder is located.
Mine is in the Program Files Folder.
So I need to:Code:cd \Program Files\ffmpeg\bin
Try this simplest code:
Code:ffmpeg -i input.mkv -c copy output.mp4
Code:ffmpeg -i C:\Users\Users\Videos\input.mkv -c copy C:\Users\Users\Videos\output.mp4
or the slightly more complex:
Code:ffmpeg -i input.mkv -c:v copy -c:a copy -sn output.mp4
-
Replace in.mkv with your file name :)
Code:ffmpeg.exe -i your_file_name.mkv -vf "scale=in_range=full:out_range=full,lut='y=(val-16)*1.067',yadif=1" -c:v libx264 -crf 17 -colorspace:v "bt709" -color_primaries:v "bt709" -color_trc:v "bt709" -color_range 2 -c:a copy "out (full range+recode+yadif).mp4"
Code:ffmpeg.exe -i "%%~nxF" -vf "scale=in_range=full:out_range=full,lut='y=(val-16)*1.067',yadif=1" -c:v libx264 -crf 17 -colorspace:v "bt709" -color_primaries:v "bt709" -color_trc:v "bt709" -color_range 2 -c:a copy "%%~nF.mp4"
Last edited by rgr; 11th Jul 2022 at 12:28.
Similar Threads
-
Handbrake: Same audio settings for all the titles when converting a batch?
By Srivas in forum Video ConversionReplies: 3Last Post: 27th Oct 2018, 15:40 -
Converter settings for converting FRAPS video
By Dante4 in forum Video ConversionReplies: 33Last Post: 5th Jul 2016, 09:22 -
Update: need Avisynth settings help (converting old DV/VOB to H.264)
By LouGee in forum Video ConversionReplies: 8Last Post: 13th Feb 2016, 11:30 -
Advice on converting from HD to SD...best settings/programs to use
By underthemountain in forum Newbie / General discussionsReplies: 52Last Post: 4th Apr 2015, 18:33 -
Best settings converting .ts fo .mp4
By maverickluke in forum Video ConversionReplies: 3Last Post: 8th Dec 2014, 09:14