View Issue Details

IDProjectCategoryView StatusLast Update
0000204Cinelerra-GGBugpublic2019-05-04 15:58
ReporterAnyeos Assigned ToPhyllisSmith  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version2019-03 
Summary0000204: yadif does not deinterlace when transcoding
DescriptionWhen I watch the video in the "Compositor" while editing it is very well deinterlaced.
But when I put it to "Render", it does not deinterlace at all.
It is not a problem with the file output format because I can see the not deinterlaced video being slowly played in the "Compositor" while it is being rendered.
TagsNo tags attached.

Activities

Anyeos

2019-05-02 22:04

reporter   ~0001465

Please guys try to solve it because I have an old (but very functional) mini DV camera and I want to use it for my micro films proyects.
And I like Cinelerra but don't want to make complex tasks when I can directly put the video as it comes from the camera.
It is a loss of time if I need to deinterlace and next transcode it (double job).

PhyllisSmith

2019-05-02 22:38

manager   ~0001466

OK, I will look at this, try to reproduce the problem as you state, and then show the developer today yet. As always, we may need more information, but will let you know.

PhyllisSmith

2019-05-02 23:10

manager   ~0001467

I have not been able to reproduce the problem. In a window, I use mediainfo to see my input file as "Interlaced":

# mediainfo hockey.ts
General
ID : 463 (0x1CF)
Complete name : hockey.ts
Format : MPEG-TS
...
 ...
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Active Format Description : Letterbox 16:9 image
Frame rate : 29.970 (30000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Then I load in Cinelerra, drop the F_yadif plugin onto the track with default values of 0 for all parameters, except "parity=-1", bring up the Render menu and render with ffmpeg/mp4. When I execute mediainfo on the output, it is clearly "Progressive" as shown here:

# mediainfo /tmp/hockey.mp4
General
Complete name : /tmp/hockey.mp4
Format : MPEG-4
...
...
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive

I will see if I can find a sample "mini DV" video on the web and try that. If you have a small sample and want to upload that to streamable.com, I can also test that. Clearly I must be doing something different than you so I will keep experimenting until I run out of ideas or you have further information that can help.

PhyllisSmith

2019-05-03 18:14

manager   ~0001475

Update - I could find no mini DV video on the internet to actually test. I will leave this open for a week to see if there is any new information or else will assume that the problem has been solved.

Andrea_Paz

2019-05-03 19:30

manager   ~0001486

At:
https://cinelerra-cv.org/footage.php
there are a couple of DV (iterlaced) file for test.
My results is similar to the test of Phyllis: File interlaced in compositor and progressive on render. But without F_yadiff or other plugins.

IgorBeg

2019-05-03 21:33

reporter   ~0001487

In add to PhyllisSmith and Andrea_Paz
Waiting for more info by Anyeos, I had done some tests with different version of Cinelerra-GG: Ub16_20190430, Ub16_20190331, Ub16_20181231 in UbuntuStudio_16.04.

Media: MPEG-PS, 720x576 PAL @25fps 16/9 interlaced (Top Field First), yuv420, GOP=12.
Added F_yadif plugin to the media in Timeline with "reset" parameters: mode= 0; parity= -1; deint= 0, thread= 0.
Rendering to mp4 or ogg or mov container create progressive video file to me.

Tested also with Deinterlace plugin ("Average lines" option selected) instead of F_yadif plugin: more fast playback.

@Anyeos
Can you tell us which Cin-version and Operating System are you using, please?

Anyeos

2019-05-04 04:32

reporter   ~0001489

Hi, I have trouble with my OS right now (Ubuntu 19.04). I updated from Ubuntu 18.04 and the propietary NVIDIA drivers are not working well (hangs, session freeze, PKI errors about a certificate for the nvidia module).

I am running with nouveau driver in this moment. I will stay so until I can solve the NVIDIA drivers but I will buy another videocard and now this will be an AMD one.

I will record a short video for testing purposes and I will show you screenshots of my desktop too (it is easy to note the "interlaced" lines in the video). So you will see it easily.

I don't remember if the resultant file says progressive. But that is not the problem, the problem is that it shows something like interlaced (ugly lines when there are movement). But when I play it in Cinelerra compositor with the yadif filter applied, it shows perfect. If I just record my screen the video is deinterlaced on the fly correctly (just the inverse that happens with other software like kdenlive). Kdenlive for example shows the video in the monitor interlaced always, but when I render it becomes deinterlaced automatically. I dont like that because I want something like a WYSYWG editor but for video.


My OS right now is Ubuntu 19.04 64 bit.
Processor: AMD FX(tm)-8350 Eight-Core Processor (4 Ghz)
2 x 4 GB RAM 1866 Mhz (I don't remember the branch but it is the expensives ones like Corsair not Kingston).
Video (for now): NVIDIA Corporation GF106 [GeForce GTS 450] (rev a1)

Cinelerra Infinity - built: Apr 30 2019 15:02:48

I don't know where is the version number. There are no places when it is shown. I searched by command line, in all menus, in the "About" tab of Settings and in no place say "version" or something like that. But there are a text that say "git://git.cinelerra-gg.org/goodguy/cinelerra.git".

So, wait because in a moment I will have some source to test.
Anyway, that happened to me in Ubuntu 18.04. I don't know still if the problem is present in this version of Ubuntu and with NVIDIA propietary drivers or what (I was using X11-OpenGL). But I guess that does not apply because rendering is a software only task. And now I am with "nouveau" so... I don't know what will happen :P

Just wait a moment.

Anyeos

2019-05-04 06:29

reporter   ~0001491

Well, tested... :-/
Don't ask me what happened but now it is working.
Very very weird!! Because the problem was very notorious. But now it renders as expected (WYSIWYG).

With the same configuration, the same camera, the same format export and settings (because I not touched that) not the same videos sources because I already did that in another software (and already deleted that files). But I just recorded a new file in the same way (dvgrab). So I don't understand what happened before. But that failed always not matter what setting I choose.

Maybe some problem with some library in my last Ubuntu version. But in this one it is working as expected.

Sorry guys, It appears to be solved then.

I will inform you if something new happens next times I use Cinelerra. Because I will use it as I wanted before, so I will be "testing" it anyway.

Thank you for so good software.

Note: This version of Ubuntu is using Wayland as default and that got me a lot of trouble as mentioned in my last message. I solved that using XOrg now with NVIDIA propietary driver working too. So, there appears still to be some problems with Wayland (just to take in account for some other users).

PhyllisSmith

2019-05-04 15:58

manager   ~0001492

Yeah! happy to hear that the problem has been resolved.
Thanks for all the help/feedback from Andrea, Pierre, and IgorB because the more eyes, the better to figure stuff out.
Also, thanks to Anyeos on the heads-up on Wayland -- sooner or later Cinelerra is going to have to pay more attention to it. GG upgraded Fedora 30 a couple of days ago and it too is starting to use Wayland but he stuck to Xorg. I imagine Ubuntu 19 with a default of Wayland is going to be a future problem.

Issue History

Date Modified Username Field Change
2019-05-02 21:59 Anyeos New Issue
2019-05-02 22:04 Anyeos Note Added: 0001465
2019-05-02 22:38 PhyllisSmith Note Added: 0001466
2019-05-02 23:10 PhyllisSmith Note Added: 0001467
2019-05-03 18:14 PhyllisSmith Note Added: 0001475
2019-05-03 18:14 PhyllisSmith Assigned To => PhyllisSmith
2019-05-03 18:14 PhyllisSmith Status new => assigned
2019-05-03 18:14 PhyllisSmith Status assigned => feedback
2019-05-03 19:30 Andrea_Paz Note Added: 0001486
2019-05-03 21:33 IgorBeg Note Added: 0001487
2019-05-04 04:32 Anyeos Note Added: 0001489
2019-05-04 04:32 Anyeos Status feedback => assigned
2019-05-04 06:29 Anyeos Note Added: 0001491
2019-05-04 15:58 PhyllisSmith Status assigned => closed
2019-05-04 15:58 PhyllisSmith Resolution open => no change required
2019-05-04 15:58 PhyllisSmith Note Added: 0001492