Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cutting out commercials with nuvexport fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
john_m
n00b
n00b


Joined: 09 Apr 2005
Posts: 15

PostPosted: Mon Jun 06, 2005 6:56 pm    Post subject: Cutting out commercials with nuvexport fails Reply with quote

Hello,

I want the commercials removed from my MythTV-recordings and deliver an XviD at the end. For this I to work I go through the following steps:
1. Let MytTV mark commercials at the end of a recording;
2. Add a userjob to create a cutlist using "mythcommflag --file <filename> --gencutlist"
3. Add a userjob to remove the commercials based on the cutlist using "nuvexport --infile <filename> --mode mpeg2cut"
4. Add a userjob to transcode the mpeg to Xvid using mencoder

Step 1 seems to work fine: the commercials are skipped when I view the recording in MythTV. Step 2 also seems to produce some result as step 3 actually starts and shows the cutlist:

Code:

Loading MythTV recording info.
100%
Where would you like to export the files to? [/user/video/mythtv/xvid/TV-opnames] /user/video/mythtv

Now encoding:  Na de ramp:  Untitled
Encode started:  Mon Jun  6 20:32:57 2005
mpeg2cut v
Using mode Xvfb
Filename "/user/video/mythtv/5_20050605142200_20050605143500.nuv"
OutFile "/user/video/mythtv/Na de ramp - Untitled.3.mpg"
Last Frame 34152
Cutlist "-16348 17879-"
Finding the AV Offset to use with lvemux: -39
Indexing the file with avidemux2
Cutting out commercials with avidemux2
Remultiplexing video
GOP timestamps will be rebuild

video stream type mpeg detected
- size (640x480)
- aspect ratio (4:3)
- framerate (25.000 Hz)
- bitrate (6000000 bps)
- picture structure (frames)

audio stream type (MP2) detected
- sample rate (48000 Hz)
- bitrate (384000 bps)
- frame size (1152 bytes)

audio shift (-39) ms, A/V start (81/120) ms

(32615) frames processed - done !
Cleaning up

Encode finished:  Mon Jun  6 20:35:11 2005
Encode lasted: 2m 14s


As you can see it wants to cut out 1 commercial between frame 16348 and 17879. The frames are OK and in the output it actually cuts out the commercial so that is fine. But in stead of continuing with the frames after the commercial it just adds the first part in again so my end-result actually is 2x the part before the commercial.

I used the original mpeg2cut-script at supplied with nuvexport and also tried the latest built from their site. Both have the same problem. An update of avidemux to the latest (unstable) version didn't solve the issue also.

Who can help me on this? I'm using an AMD64 for this setup.

Thanks for any support,

John.
Back to top
View user's profile Send private message
john_m
n00b
n00b


Joined: 09 Apr 2005
Posts: 15

PostPosted: Thu Jun 09, 2005 4:23 am    Post subject: Reply with quote

Hi,

a short, but probably not too easy to follow, update on this.

The nuvexport-tool uses the mpeg2cut-script, which in turn calls avidemux2:

Code:

avidemux2 --load-workbench 5_20050605142200_20050605143500.cut --audio-codec MP2 --save-raw-video 5_20050605142200_20050605143500.m2v --save-raw-audio 5_20050605142200_20050605143500.mp2 --quit


The file 5_20050605142200_20050605143500.cut, which actually passes the cutpoints to avidemux2, still contains the right cuttingpoint for the 2nd part (after the commercial, so starting at 17879):

Code:

ADMW0002
01 videos
Name:/user/video/mythtv/5_20050605142200_20050605143500.nuv.idx
2 segments
Start:0
Size:16349
Ref:0
Start:17879
Size:16274
Ref:0
Audio codec:none
Audio filter:audioNormalizeMode=0 audioResampleMode=0 audioDRC=0 audioShift=0
audioDelay=0 audioFreq=48000
Audio conf:audioProcessMode=0 audioMP3mode=0 audioMP3bitrate=128


But when I look at the log generated by avidemux2, I see that the startpoint for the 2nd part (17879) is not picked up properly by avidemux2 and set to zero:

Code:

......
________Video______________
 Video : 0, nb video  :34154, audio size:65554272
______________________
 Seg : 0, ref: 0 start :0, size:34154 audio size : 65553408 audio start : 0
 Seg : 1, ref: 0 start :0, size:16349 audio size : 31390848 audio start : 0
_________Clipboard_____________
 Total frames : 50503
I/O warning : failed to load external entity "5_20050605142200_20050605143500.cut.flt"
XXX Problem reading xml filters!  XXX!!!
Trouble reading codec conf

 Editor :Audio streamer initialized
 Audio codec:  MP2-3
Mpeg1/2 audio codec created
......


So avidemux2 actually takes the 2nd part from the start of the file again: from 0 - 16349 in stead of 17879 - (17879+16349).

Now I have to find out why it doesn't pick up the startpoint from the cut-file.

John.
Back to top
View user's profile Send private message
mean
Guru
Guru


Joined: 25 Sep 2002
Posts: 313

PostPosted: Thu Jun 09, 2005 6:00 am    Post subject: Reply with quote

I just tried with your prj file and it was ok
could you try to generate a 32bits avidemux to see if that works ?
Maybe a bug visible only in amd64 mode
Back to top
View user's profile Send private message
john_m
n00b
n00b


Joined: 09 Apr 2005
Posts: 15

PostPosted: Fri Jun 10, 2005 5:37 pm    Post subject: Reply with quote

Thanks for your reply. It can very well be related to the 64bit environment, knowing that it works well with you.

First I have to figure out how to compile a 32bit avidemux2 on my machine without creating a chroot-environment only for this.
Back to top
View user's profile Send private message
mkynaston
n00b
n00b


Joined: 07 Nov 2004
Posts: 1

PostPosted: Wed Oct 05, 2005 11:15 pm    Post subject: Reply with quote

Did you ever find a solution to your problem I am having the same thing, it starts at the beginning of the file everytime there is supposed to be a commercial.
Back to top
View user's profile Send private message
deadearth
n00b
n00b


Joined: 20 Jun 2005
Posts: 19

PostPosted: Mon Oct 31, 2005 4:47 am    Post subject: Me as well Reply with quote

I too am having this issue. Did you ever get it fixed?
Back to top
View user's profile Send private message
mean
Guru
Guru


Joined: 25 Sep 2002
Posts: 313

PostPosted: Wed Nov 02, 2005 8:02 am    Post subject: Reply with quote

It was a bug that struck 64bits people
It was fixed later on the 2.1 branch
The bad news is the project format has changed and you cannot use the old format anymore
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum