Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques Streaks in Movie

  • Adam Theisen

    January 24, 2012 at 8:44 pm

    The movie is fine if I do not use the imagemagick convert command, but when I try to combine another image (even if it is the same image) I get streaks when I use ffmpeg. I am using:

    call=’convert -composite ‘+tsi_temp+$
    ‘ ‘+tsi_temp+’ -geometry 150×140+580+27 ‘+tsi_temp

    to convert the image. The latest I have found out is after I use the convert command, the color table from the metadata is not available.

    I am guessing that I am loosing information along the way that ffmpeg uses.

    Thoughts?

    Thanks!

    Adam

  • Michael Rampe

    January 30, 2012 at 10:58 pm

    [Adam Theisen] “The latest I have found out is after I use the convert command, the color table from the metadata is not available.”

    I have had issues with this in the past….

    I fixed it by running another convert command to set the colorspace.

    Example:
    $ convert input.png -type TrueColorMatte output.png

    Give it a go and try a few different colorspaces to see if this helps.

    Michael

  • Adam Theisen

    January 31, 2012 at 5:24 pm

    Thank you for the suggestion!

    I was able to get it to work, but only for the grayscale colorspace. The other spaces are still leaving me with streaks in the final movie and an empty color table when I read it in.

    I am going to keep testing this way and see what I can get.

  • Michael Rampe

    January 31, 2012 at 8:59 pm

    [Adam Theisen] “I was able to get it to work, but only for the grayscale colorspace. The other spaces are still leaving me with streaks in the final movie and an empty color table when I read it in.”

    Can you post some of these images so I can try to replicate? I am intrigued now;-)

    Michael

  • Adam Theisen

    January 31, 2012 at 9:09 pm

    Gladly!

    Here are 2 images from a time series. This was before I used the convert -type command.

    Thank you for the help!

    sgpkasacrc1.a1.kasacrawrhi_reflectivity_rhi_270.20120131.151101.png

    sgpkasacrc1.a1.kasacrawrhi_reflectivity_rhi_270.20120131.165343.png

  • Michael Rampe

    February 1, 2012 at 9:00 pm

    …and a sample of your FFmpeg command line? (codec, bitrate etc.)

  • Adam Theisen

    February 1, 2012 at 9:13 pm

    Ah… Of course… I am creating a .mov file and then converting it to an mp4 file along with a couple other formats (mpg, ogv).

    To .mov

    ffmpeg -f image2 -bufsize 12000.0k -i image_%2d.png -y -r 20 -sameq movie.mov

    From .mov to mpg4

    ffmpeg -f mov -i movie.mov -vcodec libx264 -fpre /apps/base/share/ffmpeg/libx264-normal.ffpreset -bufsize 12000.0k -b 3000k -minrate 500 -y movie.mp4

  • Michael Rampe

    February 1, 2012 at 9:26 pm

    ahhhh, ok.

    [Adam Theisen] “ffmpeg -f image2 -bufsize 12000.0k -i image_%2d.png -y -r 20 -sameq movie.mov”

    Why are you setting bufsize on the input? Firstly, try to remove this.

    [Adam Theisen] “ffmpeg -f mov -i movie.mov -vcodec libx264 -fpre /apps/base/share/ffmpeg/libx264-normal.ffpreset -bufsize 12000.0k -b 3000k -minrate 500 -y movie.mp4”

    Again, not sure why you are setting bufsize here either? The streaks you are getting could very easily be caused by buffer overflows.

    Also, from this command line, I can determine that it may be time to upgrade to a more recent version. -fpre for libx264 is now deprecated and -preset is used to directly access x264 presets. I am running a very recent version which comes with NO x264 preset files in the ffprests folder (only vpx presets)

    Michael

  • Adam Theisen

    February 1, 2012 at 9:57 pm

    We were mainly setting the buffer to limit the size of the movie files. Not sure if that is the proper way, but it seemed to work.

    I did remove it and tried it, but I was still seeing streaks, even in the original .mov file.

    I will try and get the updated version. I don’t have admin privileges on the machine I’m running this on, so I will try and get them to install the latest version. It might take a little while though.

    Thanks for the suggestions!

  • Michael Rampe

    February 1, 2012 at 10:30 pm

    [Adam Theisen]
    I did remove it and tried it, but I was still seeing streaks, even in the original .mov file.”

    OK. This helps narrow down the problem to your intermediate.

    As you are not specifying a codec here, FFmpeg uses a default for the container which is most likely mpeg4 (divx variety not x264 variety).

    I use .mpg with -sameq for my intermediates which does result in near lossless large files.

    All you would need to do is change .mov to .mpg in your example and FFmpeg will get the codec right.

    eg.
    $ ffmpeg -f image2 -i image_%2d.png -y -r 20 -sameq movie.mpg

    If the streaks are still there after that, there is another upstream issue but we are getting closer;-)

    Michael

Page 1 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy