tag:blogger.com,1999:blog-2124831850793435411.post5495252025606617229..comments2024-02-14T12:45:14.859+00:00Comments on Linux Tipps, Fixes & More: Transcoding 50 fps Interlaced AVCHD to 50 fps Progressive x264 with MEncoder - Getting Every Last Drop of Quality out of your Interlaced AVCHD RecordingsUnknownnoreply@blogger.comBlogger23125tag:blogger.com,1999:blog-2124831850793435411.post-3331806978146900012013-06-17T00:02:36.522+01:002013-06-17T00:02:36.522+01:00Thank you for this script!! But I have an annoyin...Thank you for this script!! But I have an annoying issue, the audio is copied from the video source and with this script, the output video is delayed a few seconds. I want to deinterlace a FullHD 50i video from a Sony HandyCam.BigBanghttps://www.blogger.com/profile/02404085244907289464noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-13699038590854607112011-04-20T11:54:45.213+01:002011-04-20T11:54:45.213+01:00I think it's dumpsub or something. You can pro...I think it's dumpsub or something. You can probably just reintegrate it in a second step after the encode.<br />Haha, I was so glad to finally get mencoder working with 50 fps progressive, for me that was enough. Plus I don't use subtitle in my camera. ;)<br />Good luck!D.https://www.blogger.com/profile/03544666801731533511noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-89711393282971701812011-04-20T09:55:19.537+01:002011-04-20T09:55:19.537+01:00Hi,
thank you for your script. The only issue I se...Hi,<br />thank you for your script. The only issue I see is with the subtitles (the recording time is embeded in the mts/m2ts file as a subtitle, PGS type) and your script just discards it. Using ffmpeg you can save it, do you know if it is possible to do the same with menconder?<br /><br />Thanks,<br />BLGalv_BLhttps://www.blogger.com/profile/01517651864516651079noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-62622180271965516522010-09-12T08:55:03.833+01:002010-09-12T08:55:03.833+01:00I guess it probably isn't 25i material then, o...I guess it probably isn't 25i material then, or your version of mencoder is pretty old or incompatible with the camera.<br />Where did you buy the camera? US? then you need to adjust the frame rates accordingly - these are for EU norm cameras.D.https://www.blogger.com/profile/03544666801731533511noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-58448392038066186172010-09-11T14:16:24.446+01:002010-09-11T14:16:24.446+01:00Hello,
I followed your HOWTO and it worked fine e...Hello,<br /><br />I followed your HOWTO and it worked fine except for the fact that the sound and video in the resulting file is out of sync.<br /><br />Do you have any idea what the problem is?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-59423025985983046392010-09-07T16:45:55.654+01:002010-09-07T16:45:55.654+01:00Hi David,
you're very welcome! I'm always ...Hi David,<br />you're very welcome! I'm always glad to hear I saved someone the trouble I went through to find the solution. And glad to learn new bash tricks.D.https://www.blogger.com/profile/03544666801731533511noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-58146070362261235672010-09-07T15:40:15.663+01:002010-09-07T15:40:15.663+01:00Thank you! Thank you!!
I have been looking for th...Thank you! Thank you!!<br /><br />I have been looking for this for about a week now.<br /><br />I have been using Kdenlive to encode my AVCHD footage. It works well but it is slow (10+hours for 35mins of film) and uses 3-4 GB of virtual memory to do that same encode.<br /><br />Just a tip, you can replace this:<br /><br />OUT=$(basename "$INPUT"|sed 's/.m2ts//')"-x264.avi"<br /><br />With:<br /><br />OUT="${INPUT%.*}-x264.avi"<br /><br />That way you don't have to guess the extension and also it is less expensive as not calling extra binaries.<br /><br />Thanks again!!Davidhttps://www.blogger.com/profile/07400822565113553939noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-63482258100908787392010-05-23T06:29:45.159+01:002010-05-23T06:29:45.159+01:00Yes, sure, thanks a lot.Yes, sure, thanks a lot.Unknownhttps://www.blogger.com/profile/18318826220419877333noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-78887476059522005912010-05-21T13:55:40.866+01:002010-05-21T13:55:40.866+01:00Sorry Thomas, compilation of mplayer and x264 etc ...Sorry Thomas, compilation of mplayer and x264 etc seems to change about daily. But x264 is the best codec out there and it's all free, so that's great.<br /><br />Hi gigi, it's certainly possible and much easier. are you trying to pipe the output somewhere, edit it or do you simply like large files? ;)<br />I've had excellent experience with openshot, which can directly open all my video files and cut them together. Maybe that would be easier for you? I think good deinterlacing is possible with a combination of mcdeint and yadif. I'm sure you understand I won't write a new script for your purposes now... ;)D.https://www.blogger.com/profile/03544666801731533511noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-30859290793875415242010-05-21T11:05:16.457+01:002010-05-21T11:05:16.457+01:00Hi, I still have to try your script but I wanted t...Hi, I still have to try your script but I wanted to ask you if it is possible to modify the script to just deinterlace to 25p. I'm looking for a good deinterlacing method under linux for my Canon HV10 m2t 50i files without compressing them and outputting the same m2t 25 Mb/s quality.<br />Thanks so much,<br />IgnazioUnknownhttps://www.blogger.com/profile/18318826220419877333noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-45536931991388912752010-01-08T23:01:26.599+00:002010-01-08T23:01:26.599+00:00I used this guide to reinstall x264:
http://ubuntu...I used this guide to reinstall x264:<br />http://ubuntuforums.org/showthread.php?t=786095<br />Now I can use the self-compiled mplayer (without the --enable-x264) for your scriptThomas Käferhttps://www.blogger.com/profile/13249937760792156428noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-60993810483861085462010-01-08T02:39:35.109+00:002010-01-08T02:39:35.109+00:00Maybe you want to try again later.Maybe you want to try again later.D.https://www.blogger.com/profile/03544666801731533511noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-86635817078044915792010-01-08T02:38:51.558+00:002010-01-08T02:38:51.558+00:00Oh dear. The only idea I have is to get a fresh x2...Oh dear. The only idea I have is to get a fresh x264 from git as well... But I tried that and it has compilation problems, there seems to be a bug in the mplayer sources at the moment. I then fixed that my manually adding libx264 to the linking (-lx264 at the end of the c++ .... line). Maybe that would also help you. Worth a try. Otherwise it looks like you're out of luck. It's only the time problem left, right? Maybe that's a bug in the other programs as well. Don't know.D.https://www.blogger.com/profile/03544666801731533511noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-91796812724636568402010-01-07T08:55:28.248+00:002010-01-07T08:55:28.248+00:00I get errors when compiling with the new configura...I get errors when compiling with the new configuration:<br /><br />libx264.c: In function 'X264_init':<br />libx264.c:184: error: 'x264_param_t' has no member named 'i_bframe_pyramid'<br />...Thomas Käferhttps://www.blogger.com/profile/13249937760792156428noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-65246489118219413562010-01-06T21:49:56.452+00:002010-01-06T21:49:56.452+00:00cd mplayer* && CFLAGS= CXXFLAGS= ./configu...cd mplayer* && CFLAGS= CXXFLAGS= ./configure --enable-x264 && make<br />I forgot the --enable-x264D.https://www.blogger.com/profile/03544666801731533511noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-36748438208996471522010-01-06T21:26:09.857+00:002010-01-06T21:26:09.857+00:00Wow, I did not think that compiling mplayer yourse...Wow, I did not think that compiling mplayer yourself would be that easy! ;) Okey so I did as you told me and now using the self-compiled mencoder I get the following Output:<br /><br />MEncoder SVN-r30230-4.4.1 (C) 2000-2009 MPlayer Team<br />-x264encopts is not an MEncoder optionThomas Käferhttps://www.blogger.com/profile/13249937760792156428noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-81066690537062306962010-01-06T18:03:29.294+00:002010-01-06T18:03:29.294+00:00The only other idea I have is to compile it yourse...The only other idea I have is to compile it yourself: sudo apt-get build-dep mplayer && wget http://www.mplayerhq.hu/MPlayer/releases/mplayer-checkout-snapshot.tar.bz2 && tar jxfs mplayer-checkout-snapshot.tar.bz2 && cd mplayer* && ./configure && make<br />Then start the script with ./mencoderD.https://www.blogger.com/profile/03544666801731533511noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-21274705388546850742010-01-06T17:59:00.176+00:002010-01-06T17:59:00.176+00:00Thanks for the help, now it works quite well, but ...Thanks for the help, now it works quite well, but a lot of programs seem to think that the resulting avi file is nearly 5 hours long, instead of only 11 seconds.. Do you know what that could be about?<br /><br />Here you can see the output of your script, it says something about missing pictures --><br />http://pastebin.com/ffce5d8dThomas Käferhttps://www.blogger.com/profile/13249937760792156428noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-40532502767572198532010-01-06T16:30:04.307+00:002010-01-06T16:30:04.307+00:00This comment has been removed by the author.Thomas Käferhttps://www.blogger.com/profile/13249937760792156428noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-76257885533929710822010-01-06T15:32:11.122+00:002010-01-06T15:32:11.122+00:00Oh ok. Try using this repository, it includes the ...Oh ok. Try using this repository, it includes the filter:<br />deb http://ppa.launchpad.net/rvm/mplayer/ubuntu karmic main<br />Don't know why the filter is not included in Ubuntu's regular packages...D.https://www.blogger.com/profile/03544666801731533511noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-61494627727663109442010-01-06T13:59:01.398+00:002010-01-06T13:59:01.398+00:00ähm, no I did not compile it myself, I like softwa...ähm, no I did not compile it myself, I like software that can be installed with sudo apt-get install ;) Can you point me a finger how to do it? Everything I did until now is "sudo apt-get install mencoder"Thomas Käferhttps://www.blogger.com/profile/13249937760792156428noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-61062679096441923282010-01-06T10:17:51.352+00:002010-01-06T10:17:51.352+00:00Easy: Your mplayer/mencoder was compiled without s...Easy: Your mplayer/mencoder was compiled without support for the mcdeint filter. Did you compile it yourself? Did you install all dependencies with apt-get build-dep mplayer first? Try installing a packaged version via apt and replacing mencoder= with<br />mencoder="time nice /usr/bin/mencoder -cache 8096 -demuxer lavf -sws 9 -fps $((FPS*2)) -vf yadif=1,mcdeint,softskip -ofps $FPS"<br />Let me know if it works for you! ;)D.https://www.blogger.com/profile/03544666801731533511noreply@blogger.comtag:blogger.com,1999:blog-2124831850793435411.post-41066738521277196092010-01-06T09:55:56.844+00:002010-01-06T09:55:56.844+00:00Hi there! I tried your script with Ubuntu 9.10, bu...Hi there! I tried your script with Ubuntu 9.10, but I get the following error:<br />MEncoder SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team<br />Option vf: mcdeint doesn't exist.<br />Error parsing option on the command line: -vf<br /><br />Does this mean my mencoder is too old?Thomas Käferhttps://www.blogger.com/profile/13249937760792156428noreply@blogger.com