[FFmpeg-user] How to increase the resolution of video?
Hi all, I have video captured on V8 tapes in about 1990. They are low resolution video. Recently I sent the tape to a profession shop ripping them on DVD. I have ripped the DVD to computer as .VOB files. On the whole their quality is not so bad except those video taken in-door then the screen not very clear. I'm prepared converting them to .mp4 files and simultaneously increasing the resolution to 640x480 or to 1280x760 to check whether their quality can be improved? The audio is excellent. Please advise what command line shall I run? Thanks in advance. Regards ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Removing parts of a video using the select filter
Hi Simon, Try the command on following document, using the trim filter; Commands to manipulate a video -> Remove video segments (without audio) https://transang.me/practical-ffmpeg-commands-to-manipulate-a-video/#:~:text=setpts%20%3A%20change%20the%20PTS%20(presentation,timestamp)%20of%20the%20frame%20filter.=STARTPTS%20%3A%20The%20PTS%20of%20the%20first%20frame. It has a very detailed explanation. If it works, please come back sharing your result to others Stephen On Sunday, January 9, 2022, 08:38:32 PM GMT+8, Rob Hallam wrote: On Sun, 9 Jan 2022 at 11:34, Michael Koch wrote: > Is it possible to re-encode only the beginning and the end, and use > -codec copy for the central part? How apropos! * I've been trying to do essentially this for years- it was the reason I subscribed to and posted to this list initially. It would be great to have a mode which has the frame-exact + sync nature of a re-encode, without the re-encode! The trouble I've run into the few times I've tried it is that when I try and glue the parts back together via concat, things do not work nicely. Perhaps if there were a way to replicate all the codec properties of the original stream when re-encoding, it might work; but it's also possible that something else like PTS would throw it off. Rob * typed and posted while waiting on ffmpeg to visually "losslessly" re-encode so that I can do a frame exact cut, currently at 0.601x realtime ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Removing parts of a video using the select filter
Hi, I run following command on Terminal to trim a section of the video (for VCD video):- $ ffmpeg -i imput.VOB -target pal-vcd -ss 00:02:10 -to 00:03:18 -c:v copy -c:a copy output.VOB -ss starting time (hrs:min:sec) -to stop time (hrs:min:sec) This command line works for me seamlessly. Regards On Sunday, January 9, 2022, 06:43:39 PM GMT+8, MacFH - C E Macfarlane - News wrote: On 08/01/2022 23:43, amindfv--- via ffmpeg-user wrote: > > On Sat, Jan 08, 2022 at 08:20:46PM +, MacFH - C E Macfarlane - News wrote: >> >> To select parts of a video, I use ... >> >> FFMPEG -ss -i -codec copy -to >> >> ... however it's tedious, because with this method the video will only break >> at certain points between compression units (can't remember the proper >> terminology), and it can take some experimentation to find the precise >> timing of these to get the audio right as well, and often, because of the >> way the compression works, the first extracted frame is often an unwanted >> last frame of a previous scene. >> >> I have long lamented that FFMPEG doesn't make this both easier and to allow >> greater resolution, if necessary recreating the start and end compression >> units to get the exact timing wanted. > > If you get rid of the "-codec copy" you can have any precision you'd like. But the entire video will be re-encoded, which is undesirable because, as the codecs use lossy compression, there will be further degradation of the entire video clip just gain some precision at each end. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to fix old video with ffmpeg command line
Hi Robert, Thanks for your help. The complete video is not so back but only certain sections not clear. The video was ripped on DVD from VHS tape by a profession shop in .vob format. The VHS tape was duplicated by me from V8 tape long time ago. I still have the original V8 tapes in good condition but unfortunately I have no device to rip them direct to my computer. Now I have trimmed another section running ffmpeg and upload it to DropBox. https://www.dropbox.com/preview/VTS_01_1_11sec.VOB?context=browse=personal Please check it whether its quality can be improved? The video file is in .vob format and can be played with "mpv Media Player" Thanks RegardsStephen On Saturday, January 1, 2022, 04:28:00 PM GMT+8, Robert Jeffares wrote: Hi Stephen, that clip is pretty low resolution according to VLC. My son works in a video duplication and grading place which delivers broadcast and cinema dubs and he says V8 is good quality. I will say this. The light source is to the side of the people. There is not much front light, so on auto the camera is cranking a picture out of what is available and this is basic. You need light behind the camera on the people. The more the better. Side light actually shuts the camera down a bit. The depth of focus is not a lot. My guess is the camera opened the iris to get enough light and the focus went. Once you lose the data it's hard to get anything. I tried sharpening the image but it's too far gone. It may be the dupe house could have done better. I would need to see the original. My video experience is keeping a broadcast TV in check. I don't think we can rescue much from what you have. regards Robert On 1/01/22 8:57 pm, Stephen Liu via ffmpeg-user wrote: > Hi Robert, > > Thanks for your advice. > > Those are old VHS and V8 cassette tapes. I haven't played them for long time > since the VHS player and Video camera broken down, leaving me no device to > play them. They are well packed in boxes and stored in cabinet. > > Before, they worked well on CRT monitor without problem. Recently I sent 2 > cassette tapes to a profession shop ripping them on DVD. The whole video is > not so bad, only certain sections having problem. > > The photo is a screenshot. I ripped the DVD on computer as .vob files. > Playing the .vob file on VLC media player I took the screenshot. > > I have been looking for a reliable old video camera, PAL system, to rip V8 > tapes myself. Unfortunately I couldn't find it. My V8 tapes are original > tape. VHS tapes were duplicated on V8 tapes. > > I have following documents; > ffmpeg - Man Page > https://www.mankier.com/1/ffmpeg#-ss > -ss position (input/output) > https://www.mankier.com/1/ffmpeg#-ss > -itsoffset offset > https://www.mankier.com/1/ffmpeg#-itsoffset > > but expecting to get some advice in going through them myself. > > I have cut a section of the unclear video and upload it to Dropbox > link:- > https://www.dropbox.com/s/un6qmxq7in1nmtt/output-9.VOB?dl=0 > > Please advise. Thanks > > RegardsStephen L > > On Saturday, January 1, 2022, 04:18:11 AM GMT+8, Robert Jeffares > wrote: > > Hi Stephen, > > there is a basic rule in the broadcast industry: Garbage in; Garbage out! > > How did the videos look before you sent them in to the professional > duplication shop? > > Ideally you have the Video 8 recorder. Put the tape in and play it out > over a reasonable size monitor. > > If the video is clear all the way through it may be the player at the > duplication house is not aligned with your player. > > Do the same with the VHS if you have the camera. > > Is the video on the dvd the same as your source video? > > If it is not, you may be better to source a ripping dongle and copy the > video on to your PC directly from the recording machine. > > now to your questions: > > 1) To upgrade the resolution ? > or > 2) To enhance the video quality > or > 3) To fix blurry video ? > > You are never going to upgrade the resolution/quality, you are able to > make what you have look better by applying some process like unsharp mask. > > Blurry is likely to continue to be blurry. > > man ffmpeg-filters > > is a good place to start, and some experiments may make what you have > look a bit better. > > https://ffmpeg.org/ffmpeg-filters.html#unsharp > > may help as well > > Remember you are only as good as the source material and you may be able > to make what you have look better by carefully taking bits away. > > 4) To fix the noise ? > > Audio processing is possible. What kind of noise is it? > > If there is hum roll off below 100Hz. Hiss; roll off above 7kHz. > > The filters available are comprehensive. > &g
Re: [FFmpeg-user] How to fix old video with ffmpeg command line
Hi Robert, Thanks for your advice. Those are old VHS and V8 cassette tapes. I haven't played them for long time since the VHS player and Video camera broken down, leaving me no device to play them. They are well packed in boxes and stored in cabinet. Before, they worked well on CRT monitor without problem. Recently I sent 2 cassette tapes to a profession shop ripping them on DVD. The whole video is not so bad, only certain sections having problem. The photo is a screenshot. I ripped the DVD on computer as .vob files. Playing the .vob file on VLC media player I took the screenshot. I have been looking for a reliable old video camera, PAL system, to rip V8 tapes myself. Unfortunately I couldn't find it. My V8 tapes are original tape. VHS tapes were duplicated on V8 tapes. I have following documents; ffmpeg - Man Page https://www.mankier.com/1/ffmpeg#-ss -ss position (input/output) https://www.mankier.com/1/ffmpeg#-ss -itsoffset offset https://www.mankier.com/1/ffmpeg#-itsoffset but expecting to get some advice in going through them myself. I have cut a section of the unclear video and upload it to Dropbox link:- https://www.dropbox.com/s/un6qmxq7in1nmtt/output-9.VOB?dl=0 Please advise. Thanks RegardsStephen L On Saturday, January 1, 2022, 04:18:11 AM GMT+8, Robert Jeffares wrote: Hi Stephen, there is a basic rule in the broadcast industry: Garbage in; Garbage out! How did the videos look before you sent them in to the professional duplication shop? Ideally you have the Video 8 recorder. Put the tape in and play it out over a reasonable size monitor. If the video is clear all the way through it may be the player at the duplication house is not aligned with your player. Do the same with the VHS if you have the camera. Is the video on the dvd the same as your source video? If it is not, you may be better to source a ripping dongle and copy the video on to your PC directly from the recording machine. now to your questions: 1) To upgrade the resolution ? or 2) To enhance the video quality or 3) To fix blurry video ? You are never going to upgrade the resolution/quality, you are able to make what you have look better by applying some process like unsharp mask. Blurry is likely to continue to be blurry. man ffmpeg-filters is a good place to start, and some experiments may make what you have look a bit better. https://ffmpeg.org/ffmpeg-filters.html#unsharp may help as well Remember you are only as good as the source material and you may be able to make what you have look better by carefully taking bits away. 4) To fix the noise ? Audio processing is possible. What kind of noise is it? If there is hum roll off below 100Hz. Hiss; roll off above 7kHz. The filters available are comprehensive. In some noise situations gating the audio between words can improve the sound if there is some noise in the background that is annoying. Remember, the first thing is to check how accurate the copy you have had made is. Sometimes videos stored for a long time need to be spooled through and back to make sure the video will play as smoothly as possible. VHS never copies that well V8 is alignment [azimuth] critical and be aware the technology of that time is not as good as what we have today. Would be interested in seeing a clip not a still. Can you upload 30 sec or so to a dropbox service? regards Robert On 1/01/22 3:56 am, Stephen Liu via ffmpeg-user wrote: > Hi all. > > I have old analogue video captured on V8 and VHS tapes in about 1990. > Recently I sent the tapes to a profession shop ripping the video on DVD as > .VOB format. I found certain sections of the old video not very clear. > Please refer to attached photo. > > Please advise how to run ffmpeg to enhance the unclear sections on the video? > > What function shall I run the ffmpeg command lines; > 1) To upgrade the resolution ? > or > 2) To enhance the video quality > or > 3) To fix blurry video ? > or > 4) To fix the noise ? > or > others > > Please advise. Thanks in advance > > Regards > Stephen L > > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".