Forgot Password
Pentax Camera Forums Home
 

Reply
Show Printable Version 1 Like Search this Thread
03-18-2017, 04:04 PM - 1 Like   #1
Junior Member




Join Date: Sep 2012
Location: Ulm
Posts: 45
How to keep K-x videos from starting to crackle when trying to transcode them

I never used the video mode on my K-x very much, but now I wanted to make some quick YT vids and figured 720p @ 24 fps and 32 kHz mono audio from the built-in omni mic would be just fine for that. Turns out one of them had a nasty crackle about once a second in the audio after transcoding via FFmpeg, even though VLC played it fine (MPC-HC shows the same crackle though). That's really unacceptable. To make a long story short, there seems to be something iffy about the files generated by the K-x, possibly the number of audio samples does not match the video frames or the playtime is saved wrong (always seems to be in whole seconds).

Salvaging the files turns out to be quite easy:
You can use VLC's converter function for this. (JFTR, version 2.2.4 here.) So open that and drag the file(s) there, right-click, Save.
I'd recommend creating a new converter preset. Encapsulation: AVI, enable audio, copy original audio stream, enable video, copy original video stream. Call it "Video - AVI, copy streams" or somesuch.
Give the output a fancy name.
Since there is nothing computing-intensive involved, this is super-fast, mostly limited by I/O.

The result may be cut about a second short at the end, but that's easily taken into account beforehand. (Trying to do a direct transcode in VLC resulted in the first second getting cut off, which is a lot more annoying.)

That's it! You should now have AVIs that are behaving themselves and transcode fine. This stupid problem cost me more than 2 hours to figure out.

That's what my transcoding batch file looks right now - I guess I should use the AAC LC encoder for audio once I figure out how to do that:
Code:
<path to FFmpeg goes here>\bin\ffmpeg -i %1 -af aresample=resampler=soxr -ar 44100 -acodec libvorbis -q:a 7 -c:v libx264 -preset fast -profile:v high -movflags faststart %1.mp4


03-18-2017, 06:03 PM   #2
Senior Member




Join Date: Nov 2011
Location: Black Rock City, NV
Photos: Albums
Posts: 175
Same problems on YT with my KR and K5. That's why I stopped bothering using Pentax for video. Too much trouble.
03-18-2017, 09:11 PM   #3
Junior Member




Join Date: Sep 2012
Location: Ulm
Posts: 45
Original Poster
Oh, that's interesting. I'll have to grab a video from my dad's K-5 and test whether the same trick also works there. Really, once set up, the effort required is quite minimal. One may even be able to automate VLC (once you've found out which of the approximately 2 million command line options you need... this might help...) and add it to the conversion batch file...

Last edited by 52mm; 03-18-2017 at 09:17 PM.
03-22-2017, 08:43 AM   #4
Veteran Member
PiDicus Rex's Avatar

Join Date: May 2013
Location: Melbourne, Australia
Posts: 1,381
Try using VirtualDub as the transcoder instead - that'll let you convert, filter, or recompress the audio.

Reply

Bookmarks
  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
avi, camera, copy, crackle, dslr, figure, files, k-x, k-x videos, photography, stream, transcode, video

Similar Threads
Thread Thread Starter Forum Replies Last Post
Abstract Water Snake, Oriole, Heron, Crackle, Tree Swallow Venom3300 Post Your Photos! 12 06-12-2016 01:40 PM
Abstract Trying to kick starting the creative gene tessfully Post Your Photos! 17 04-28-2014 06:15 AM
Viewfinder Magnifier - Who uses them and how do you like them? claimed4all Pentax K-r 16 10-25-2011 05:41 AM
Trying to post in the marketplace but I keep getting this error. sharonblue Site Suggestions and Help 3 11-16-2009 11:18 AM
New 16-45mm goes snap, crackle, and pop dietcokefiend Pentax SLR Lens Discussion 3 05-27-2008 11:38 PM



All times are GMT -7. The time now is 12:06 PM. | See also: NikonForums.com, CanonForums.com part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
register
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]
Top