I have some device which streams h264 video in following format: top half of picture is even lines of video, and bottom half of picture is odd lines of video. So the question is - how can I play this video in normal visibility, using standart players, ffplay for example. I know about "tinterlace:merge" plugin in ffmpeg, but it combines video from two pictures following one by one. So my task is make a correct video from single frame. Regards, Alexey.
How to play interlaced video, where even lines at top half of picture, and odd lines at bottom half?
920 Views Asked by Pyih At
2
There are 2 best solutions below
0
arash kordi
On
I recently had to deal with the exact same problem.
there are many different methods and the optimum solution completely depends on your situation,
the simplest fastest method is weaving two fields together which is perfect for immobile parts but create comb effect in moving object.
more complicated methods use motion detection methods.
what I did was merging two fields then applying Edge-Line averaging (ELA) for moving segments to reduce comb effect.
check this link for a detailed explanation of the problem
Related Questions in IMAGE-PROCESSING
- Need help in detecting multiple blobs
- Image based steganography that survives resizing?
- WinRT Extract Thumbnail from RAW image format
- 3D B-Spline approximation
- Qualitative and Quantitative analysis of filtered back projection / iradon in matlab
- How to detect objects in an image based on colour?
- How to make sense (handle) when computes logarithm of zero in prior information
- scilab - Drawing bounding box
- Lowpass filter non working
- Get a single line representation for multiple close by lines clustered together in opencv
- error while drawing several x-marks on a binary image in matlab
- Which method should I use to find gradient direction of pixels in an image?
- Finding Circle Boundary Pixels Coordinates and RGB Intensity Values from An RGB Input Image in Matlab
- using SURF for handdetection
- Using only one tool from CLImageEditor
Related Questions in FFMPEG
- Extract bytes of specific stream from mpegts file using ffmpeg
- running ffmpeg command in java Process hangs in waitFor()
- ffmpeg stream rtsp to mpegts
- Android receive RTP/UDP audio stream from VLC/ffmpeg
- error - /usr/bin/ld: cannot find -lavutil in ubuntu 15.04
- webcam displayed on LAN not to the internet
- ffserver - invalid codec name libvpx
- ffmpeg to extract a video one frame per second?
- how to extract audio from video in c using ffmpeg library?
- How to extract audio form video using ffmpeg in C++?
- ffmpeg to validate video format is genune and store error into string
- FFMPEG concat videos
- Why so many partial content requests in Firefox when streaming mp4 video on Apache?
- FFServer streaming H.264 from Logitech C920 without re-encoding
- Fragment shader does not show any colour when compiled with vs2013
Related Questions in H.264
- Realtime/zero-latency video stream: what codec parameters to use?
- Including SPS and PPS in a raw h264 track
- How to get width and height from the H264 SPS using ffmpeg
- VLC in Raspberry Pi won't play h264 video file
- Converting mkv to h264 FFmpeg
- Convert JPEGs to H264 and stream to my server
- H.264 decoding error log from RTSP stream
- How to extract key-frames closest to given frame numbers from H264 video with ffmpeg
- Configure MediaCodec with the proper MediaFormat from a raw H.264 byte buffer
- Record and play h.264 video in memory using Jcodec
- forcing VLC to play h264 video file
- Decoding a h264 (High) stream with OpenCV's ffmpeg on Ubuntu
- What video encoder gives best performance on an Android device for given quality?
- Demux H264 from (already recorded) raw RTSP stream on HDD
- Color Banding Playing Live Raw H.264 Stream In Android
Related Questions in INTERLACING
- Load an image via Interlacing - From low to full resolution - HTML
- HEVC/H.265 interlaced format support in ffmpeg or VLC
- Interlacing for images
- FFmpeg Idet with Timecode/Frame Number?
- Can we interlace videos without losing too much compression potential
- read video metadata in objective c
- Interlaced mpeg2 video with avenc_mpeg2video gstreamer
- How to write the java code to save the PNG with interlaced (1, Adam7)?
- Video Processor MFT and deinterlacing
- Recursive interlacing permutation
- De-interlace captured video with DirectShow
- Imagick::getImageInterlaceScheme is deprecated
- How can an Interlaced .png file's size be smaller than the original file?
- Interlacing of two Binary Matrices
- Images get interlaced when using camera2 API
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It would be good if you could provide a sample video file. You describe very well what the picture looks like, but the file may contain other information that is helpful for playback.
Furthermore, the format you describe doesn't sound like a standard format, so it's unlikely you will get a regular player to play it the way you want, out-of-the-box. If you're using ffplay, it's likely that you will have to write your own plugin to re-order the scanlines prior to displaying them.
Alternatively, you could re-encode the video into a standard format (interlaced or deinterlaced) using ffmpeg. You could then play it back in any regular player, like ffplay or VLC.
Finally, I recommend asking your question on the ffmpeg mailing list.