1
30 October
2010

I recently used MythTV to record some video acquired by an HDHomeRun box from Silicon Dust. The video files recorded by MythTV cannot be played, in many cases, by other video players, not even the superb VLC. This seems to be a results of dropped video frames (which in my case might be because I made the recording over a wireless network). Other people have also reported the same problem. Dropped frames are likely with video that comes over the air (ATSC) or satellite as well.

One partial solution is to re-encode the video using the open-source ffmeg program. Unfortunately, when you do this although the video becomes playable it is likely to lose audio sync. You can see the video and hear the audio, but the audio is no longer properly synchronized with the picture, due to the occasional dropped frame.

Well, it turns you this can be fixed using extra flags to ffmpeg. Specially, the -async flag can fix the problem. My preferred solution, for extra robustness, is to use:

 
-async 4 -vsync 5

Thus, you can transcode the video (assuming it was named 3442_20101030195200.mpg, with the command:


ffmpeg -i 3442_20101030195200.mpeg -sameq
-async 4 -vsync 5 3442_20101030195200.mp4


I hope this helps somebody. I saw several pleas on the net for solutions to this problem.


By Gregory Dudek at | Leave a comment |    
Comments
There are no comments.
Trackbacks
Please send trackback to:/blog/210/tbping
There are no trackbacks.
Post your own response

Each comment is manually screened for the presence of appropriate and substantive content, due to a constant onslaught of comment-spam. This means there may be a delay before your comment appears.


(Some kind of name is required, will be visible)

Required, whatever you enter will be visible to other users.


(Optional, used for "mailto" link)

Your email address is not required, but if you insert it it will be displayed so people can contact you.

Answer this question correctly to demonstrate that you are not a dumb spambot.



The title for your comment.



Your comment goes here. All relevant comments are welcome, except for those that simply promote an irrelevant product or else are used to fraudulently inflate the link count to an irrelevant web page. They appear after moderation. Don't forget to also fill in the captcha below or your text will be rejected automatically!

You must answer this question to prove you are human
The governator said (when in a movie as T2): 'I'll be ... (pick a number): 1:tuckered, 2:broke, 3:back, 4:broken, 5:swartzneggered, 6:eaten, 7:you?

Answer this question correctly to demonstrate that you are not a dumb spambot.