Skip to content

Commit

Permalink
In 4:3 PAL, Y41B confuses ffmpeg2theora, and dvswitch PinP
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanor committed Nov 7, 2015
1 parent 678131d commit 510ce94
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions dvsource-v4l2-other.py
Expand Up @@ -217,7 +217,7 @@ def launch_gstreamer():
"videoscale ! video/x-raw,width=720,height=480,pixel-aspect-ratio=\(fraction\)32/27 !",
"pal-4:3":
# Convert to 4:3 with non-square pixels (was 59.0/54 ~= 1.09 == ITU-PAR, now 16.0/15 ~= 1.07 == NLE-PAR used by Final Cut / Adobe)
# I420 == works, Y41B == works, Y42B == not working
# I420 == works, Y41B == works, but has artefacts, Y42B == not working

This comment has been minimized.

Copy link
@mithro

mithro Nov 7, 2015

Member

s/works, but has artefacts/works but has artifacts/

"videoscale ! video/x-raw,width=720,height=576,pixel-aspect-ratio=\(fraction\)16/15 !",
"pal-16:9":
# Convert to 16:9 with non-square pixels (was 118.0/81 ~= 1.46 == anamorphic 'ITU', now 64.0/45 ~= 1.42 == anamorphic 'NLE')
Expand All @@ -233,11 +233,15 @@ def launch_gstreamer():
}[args.system] +
" " +
# Convert to color space needed by dvswitch
# For PAL, either I420 or Y41B works.
# For PAL, I420 works and Y41B works but has artefacts.
# For NTSC, only Y41B seems to work.
# Y42B doesn't seem supported by dvswitch at all.
"videoconvert ! video/x-raw,format=\(string\)Y41B !" +
" " +
"videoconvert ! video/x-raw,format=\(string\)" +
{
"ntsc": "Y41B",
"pal": "I420",
}[args.system] +
"! " +
["", "tee name=t ! "][args.display] +
" " +
"queue leaky=downstream max-size-buffers=1 ! " +
Expand Down

0 comments on commit 510ce94

Please sign in to comment.