openSUSE Forums > Applications > Multimedia » Problem cutting/encoding mpg

Go Back   openSUSE Forums > Applications > Multimedia
Forums FAQ Members List Search Today's Posts Mark Forums Read


Multimedia Questions about media applications, codecs (DVD, music, video, pdf) configuration (usage, bugs)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-Nov-2009, 17:44
kdemello's Avatar
Student Penguin
 
Join Date: Jun 2008
Location: Schenectady, NY
Posts: 81
kdemello hasn't been rated much yet
Default Problem cutting/encoding mpg

I've got a problem video I recorded last night that is fighting me every step of the way. It's 720p60 HD captured from a Hauppauge Hvr-1600.

Typically, I begin by cutting out commercials using avidemux. This works 90% of the time. For this particular video, it gets about half way done and then segfaults:

Code:
Segfault
 at line 0, file ??/usr/lib64/libADM_core.so(ADM_backTrack+0x4e) [0x7fc21006419e]
/lib64/libc.so.6 [0x7fc20b2746e0]
avidemux2_gtk(_ZN11VideoStream12FillAUbufferEj+0x1d9) [0x514b59]
avidemux2_gtk(_ZN16ElementaryStream21BufferAndOutputSectorEv+0x93) [0x5170c3]
avidemux2_gtk(_ZN11Multiplexor9MultiplexEv+0x506) [0x512bf6]
avidemux2_gtk [0x50dbe6]
/lib64/libpthread.so.0 [0x7fc20f693070]
/lib64/libc.so.6(clone+0x6d) [0x7fc20b31511d]
Usually when this happens I clean the video by demuxing it with projectx.

Now the problem is projectx won't save the entire audio stream when I demux the video. It only saves the first 20 minutes (out of an hour).

I managed to get the commercials cut out using dvbcut (I really don't like using dvbcut because I always have to repack the output to get the correct length to be reported), but it cut out the last 5 minutes of audio.

I'm at my wits end. Avidemux, projectx and dvbcut have all failed me. Is there any other was I can clean this video?

As far as transcoding goes I don't have any problems there, just getting the commercials cut it driving me to pull my hair out.
Reply With Quote
  #2 (permalink)  
Old 08-Nov-2009, 03:54
oldcpu's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Europe
Posts: 10,656
oldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of light
Default Re: Problem cutting/encoding mpg

Quote:
Originally Posted by kdemello View Post
I'm at my wits end. Avidemux, projectx and dvbcut have all failed me. Is there any other was I can clean this video?
I don't have a TV video card, so I can't help much with that.

Is there any chance you could change your approach? Maybe 1st convert the entire clip to a separate video format, and then use avidemux to cut out the commercials? Or perhaps chop the video app in two, and then use an app to cut out the commercials.

720p60 HD makes it a bit more challenging.

You could try using one of microchip's scripts (xvidenc, h264enc, divxenc) to convert the video, and then go in with avidemux and chop out commercials. Another frontend app for converting to a different format (besides microchip's scripts and avidemux) to try is handbrake.
Reply With Quote
  #3 (permalink)  
Old 08-Nov-2009, 06:53
kdemello's Avatar
Student Penguin
 
Join Date: Jun 2008
Location: Schenectady, NY
Posts: 81
kdemello hasn't been rated much yet
Default Re: Problem cutting/encoding mpg

Quote:
Originally Posted by oldcpu View Post
I don't have a TV video card, so I can't help much with that.

Is there any chance you could change your approach? Maybe 1st convert the entire clip to a separate video format, and then use avidemux to cut out the commercials? Or perhaps chop the video app in two, and then use an app to cut out the commercials.

720p60 HD makes it a bit more challenging.

You could try using one of microchip's scripts (xvidenc, h264enc, divxenc) to convert the video, and then go in with avidemux and chop out commercials. Another frontend app for converting to a different format (besides microchip's scripts and avidemux) to try is handbrake.
Thanks for the reply. I hadn't considered transcoding it to a separate format before cutting. I'll give that a try.

Yeah, 720p60 is a pain. h264enc greatly reduced the learning curve, but I could never get it to use the decimate filter for ivtc. Instead I use the following, with good results:

Code:
#!/bin/bash

FILE=$1;
FILE_BASE=`echo $FILE | cut -d. -f1`

nice -n 10 mencoder ${FILE} -vf decimate=2:1000:1600:.001,scale=0:0,harddup -ofps 24000/1001 -passlogfile ${FILE_BASE}.log -channels 6 -oac copy -ovc x264 -x264encopts deblock:qcomp=.65:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:threads=auto:pass=1:bitrate=3200 -o /dev/null 2>/dev/null

nice -n 10 mencoder ${FILE} -vf decimate=2:1000:1600:.001,scale=0:0,harddup -ofps 24000/1001 -passlogfile ${FILE_BASE}.log -channels 6 -oac copy -ovc x264 -x264encopts deblock:qcomp=.65:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:threads=auto:pass=2:bitrate=3200  -o ${FILE_BASE}.avi 2>/dev/null
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2