I'm going to be getting a piece of archived TV footage in 25i or 576i format and wanted to do a little preparation work.
Could anyone point me to an sample of this exact type of video, the interlaced part is very important.
I will need to break the video into individual fields, 50 of them for every second of footage, and look at them individually, can I do that with something like ffmpeg? Is it possible to maintain the full size of the video on each field image, with the spaces between the alternate lines?
And lastly, how can I put this 25i or 576i video onto a DVD disc while preserving the exact fields to guarantee that they will all be shown on a 50hz CRT PAL TV when played back?
Thanks for any help on the matter, being used to thinking about frames leaves me a little confused when considering fields of interlaced video and want to take a hands on approach to learning about them.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 30 of 57
Thread
-
Last edited by matalog; 7th Sep 2024 at 05:22.
-
For fields viewing you may use
Code:ffplay -i "%~1" -loop 1 -an -sn -vf "setfield=tff,separatefields" -vf "setfield=bff,separatefields"
Press p for pause and s for stepping through the fields, left or right for -/+10s steps, w for switching between TFF or BFF, q to quit.
(It's probably more convenient to using VirtualDub2 or Avisynth for fields inspection though)Last edited by Sharc; 7th Sep 2024 at 06:04.
-
Bob-deinterlacing will display the fields as full hight frames but with the spaces between the lines interpolated. I am currently not aware of a simple method to show the spaces between the lines .... It could be done in Avisynth I guess. e.g. by substituting one field by a solid black field. Just a thought.
Edit:
Something like this (similar for odd field):
Code:ffms2("D:\Temp\matalog\mpeg2_interlaced.mpg") separatefields() e=selecteven() o=selectodd() e=BlankClip(color=color_black, width=720, height=576, pixel_type="YV12",fps=25).separatefields().assumeTFF().selecteven() interleave(e,o).weave()
[Attachment 82005 - Click to enlarge]Last edited by Sharc; 7th Sep 2024 at 08:02. Reason: Script corrected and file attached
-
That's amazing everyone, thanks for the great help so far.
All that leaves is how to get the 576i footage onto a DVD while definitely maintaining the interlaced format, so that each field is drawn separately? -
Use standard interlaced DVD compliant mpeg2 encoding. The fields will be preserved and woven to frames. No need to separate or manipulate the fields.
The PAL DVD standard is 25fps interlaced framerate, 720x576i, stored as frames containing the woven fields which gives 50 fields per second fieldrate. Nothing is lost. The player takes care of presenting the 50 half-height fields per second in adequate form to the TV (deinterlacing).
For DVD authoring you would need a tool like AVS2DVD or DVDStyler or similar which will take care of producing the compliant DVD file structure etc.Last edited by Sharc; 7th Sep 2024 at 08:40.
-
Shall be no correction, just a bit shorter:
instead ofCode:BlankClip(color=color_black, width=720, height=576, pixel_type="YV12",fps=25)....
Code:BlankClip(e)....
-
Thanks again. When the fields are woven into frames, are they displayed exactly as they would have been on TV broadcast? This is not the case of it looking good for a human eye to be pleased, it video carries a light pulse that is flashing at 50 hz that a phototransistor will pick up, each field is different from the last.
-
-
-
Use an editor that understands interlaced video, and an encoder that encodes interlaced, and use the correct field order.
-
Right, as another step of preparation and to test out the DVD burning, I have got some images I can encode, and I was able to get half height field images from ffmpeg using
Code:ffmpeg -i video.avi -vf field=top top%d.png
Code:ffmpeg -i video.avi -vf field=bottom bottom%d.png
So how could I, with a set of prepared images of half the intended height, encode a set of top and bottom images into interlaced DVD compliant mpeg2 encoding for burning to DVD?Last edited by matalog; 7th Sep 2024 at 14:42.
-
In ffmpeg you can try something like (for TFF):
Code:ffmpeg -i "%~1" -c:v mpeg2video -b:v 6000k -maxrate 8000k -bf 3 -b_strategy 2 -mbd rd -trellis 2 -cmp 2 -subcmp 2 -mpv_flags qp_rd -flags +ilme+ildct -vf scale=interl=1,setfield=tff,crop=704:576,setdar=4/3 -c:a ac3 -sn "%~1_.vob"
But keep in mind, this is not yet a DVD ....
Much easier to load your sources into DVDStyler -
I understood you have a couple of 720x576i25 videos which you want to make a DVD of. Or is it individual pictures which you want to put on DVD?
I am confused about your efforts to create fields and construct interlaced frames. Maybe I misunderstand.
Can you upload a sample of your videos (few seconds) which you want to author as DVD?
Added:
Attached an interlaced DVD made of Alwyn's file of post#3 using DVDStyler
[Attachment 82026 - Click to enlarge]
[Attachment 82027 - Click to enlarge]Last edited by Sharc; 7th Sep 2024 at 17:00.
-
Thanks for all of your replies .
I am preparing for receiving a properly encoded 576i video from a broadcast archival, and throughout this thread I have been learning more and more, for which I am very grateful.
I am now at the stage that I plan to use individual half height images to create an interlaced video that I only want to burn to DVD - absolutely maintaining the interlaced format, as individual Top and Bottom fields - in 576i (25i) format. I will be creating the images that I want for each field, and then encoding them like this: Top1.bmp,Bottom1.bmp,Top2.bmp,Bottom2.bmp.... etc. Those images will each become a field in the interlaced video.
Well, that is the plan, and I do not have anything to show you samples of yet, as I am still formulating this . -
Seems to me that you want to reinvent the wheel or putting the cart before the horse ....
You don't have to create half-height images by yourself. The DVD authoring tools does this for you. You can also make slide shows from full size pictures using DVDStyler. The video format is correctly interlaced.Last edited by Sharc; 7th Sep 2024 at 17:28.
-
Any authoring DVD software or Blu-ray SD does this correctly for you with no special intervention from you, However if I choose between mpeg-2 compression and properly de-interlaced video, upscaled and encoded into a good quality modern codec like h.264, I choose the latter.
-
I have explained earlier in the thread that I will be working with fields that are not necessarily complimentary to the human eye, they will only need to contain information for a Phototransistor pointed at them during playback to decode, so rather than putting the cart before the horse, I am merely trying to understand how to encode such information. It is actually information transmitted at 50Hz even through a 25i source, each field contains a new bit of information in the form of light at a certain place on screen.
The method is not usual, I agree, but it has been used, and I am going to have to recreate it, from a source video. I have to read data from the source video, which is not allowed to be shared, and then, turn that information into interlaced fields that carry the same or similar information for the next phototransistor to read.
Maybe I have been explaining badly, or you have been not understanding due to the strange idea, but I would like to know how to do this. I honestly think that I have been given enough tips to do what I have to do, I was only asking a few answers ago, if there was an easier way to do it. -
Last edited by jagabo; 7th Sep 2024 at 17:39.
-
Similar but starting from full size pictures (if available) and creating the 2 fields:
Code:v1=ImageSource("pic1.bmp",start=0,end=100,fps=25) v2=ImageSource("pic2.bmp",start=0,end=100,fps=25) v1=v1.separatefields().selecteven() #field1 v2=v2.separatefields().selectodd() #field2 interleave(v1,v2).weave()
Last edited by Sharc; 7th Sep 2024 at 18:44.
-
This photo sensor must be hell of sensitive to read one spot on a CRT screen (equivalent to one pixel), If I understand this correctly, by one photo sensor you are just looking for luma signal (dark to bright tones), otherwise you would need 3 RGB sensors. What about the signal timing such as horizontal and vertical signal bursts?
You can still do this without a sensor by taking the composite signal out of a yellow RCA jack of a media player playing the luma signal only of the video file and feed it directly into the photo sensor pre-amp, It will be the same signal, The difference is without sensor the signal is cleaner and stronger and all the timing data is there if you want to use it. But since I don't know what the purpose of this experiment is, I think i'm just bambling. -
@matalog: Reverting to your first post:
I'm going to be getting a piece of archived TV footage in 25i or 576i format and wanted to do a little preparation work.
Could anyone point me to an sample of this exact type of video, the interlaced part is very important.
I will need to break the video into individual fields, 50 of them for every second of footage, and look at them individually, can I do that with something like ffmpeg?
Is it possible to maintain the full size of the video on each field image, with the spaces between the alternate lines?
And lastly, how can I put this 25i or 576i video onto a DVD disc while preserving the exact fields to guarantee that they will all be shown on a 50hz CRT PAL TV when played back?
Your DVD player and your PAL CRT TV will play the DVD authored interlaced video field by field by field ....at 50 fields per second, as per your request
I am now at the stage that I plan to use individual half height images to create an interlaced video that I only want to burn to DVD - absolutely maintaining the interlaced format, as individual Top and Bottom fields - in 576i (25i) format. I will be creating the images that I want for each field, and then encoding them like this: Top1.bmp,Bottom1.bmp,Top2.bmp,Bottom2.bmp.... etc. Those images will each become a field in the interlaced video.
Where is the missing point? I still don't get it .....Last edited by Sharc; 8th Sep 2024 at 09:03.
-
-
Where is the missing point? I still don't get it .....
I have been given enough information to do what I need, and I am grateful to all that replied. -
Last edited by Sharc; 8th Sep 2024 at 12:32.
-
-
The 15x15 pixel block will either be all black when off or half (alternate lines) white when on. It is half white because only one field contains the information. The phototransistor will not care what method creates the light, as long as there is some light there when there should be and no (or considerably less) light there when there should be.
Similar Threads
-
Converting NTSC dvd rip to 720x576 25i to play on PAL CRT TV?
By Leanoric in forum Newbie / General discussionsReplies: 27Last Post: 21st Nov 2023, 12:58 -
Editing Mix of 576i and 720p
By Sumsaris in forum EditingReplies: 16Last Post: 27th Jul 2023, 12:12 -
Live Gamer Portable 2 PLUS - GC513 - 576i is possible?
By rgr in forum Capturing and VCRReplies: 0Last Post: 24th Jul 2023, 06:31 -
HDMI USB Capture with 576i (uncompressed) support
By slikvik in forum Capturing and VCRReplies: 32Last Post: 15th Jun 2022, 02:49 -
SeparateFields().SelectEvery(4, 0, 3).Weave() for 576p to 576i not working
By slikvik in forum Video ConversionReplies: 12Last Post: 12th Jun 2022, 09:14