Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > New and alternative video codecs

Reply
 
Thread Tools Search this Thread Display Modes
Old 31st August 2011, 18:59   #161  |  Link
lovelove
Registered User
 
Join Date: Mar 2010
Posts: 106
the only tool so far which muxed wma/wmv for me is WM Encoder
With all the alternatives mentioned here it's a pity that only M$ works
who think in earnest they can make demuxing a container illegal:



Quote:
Originally Posted by nm View Post
Did you try FFmpeg/libav and VLC already?
muxing with VLC? you mean via "play another media synchronously" and then "convert/save"? That only saved the primary stream (i.e. the video in my case), the output file didn't have audio.

Do you happen to know the correct syntax for FFmpeg?

Last edited by lovelove; 31st August 2011 at 19:26.
lovelove is offline   Reply With Quote
Old 31st August 2011, 19:07   #162  |  Link
lovelove
Registered User
 
Join Date: Mar 2010
Posts: 106
aaaah ... this is tricky.
I wanted to join the WM Encoder output (wmv file) with another wmv file with same codec properties (sampling rate, bitrate, channels, etc.) but ASFbin GUI says "compatibility error: audio block aligns are different". Any idea what the reason for this is and how to fix that?
lovelove is offline   Reply With Quote
Old 31st August 2011, 19:33   #163  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,643
Quote:
Originally Posted by lovelove View Post
With all the alternatives mentioned here it's a pity that only M$ works
Well, has anybody else ever really cared about ASF...

Quote:
Originally Posted by lovelove View Post
muxing with VLC? you mean via "play another media synchronously" and then "convert/save"? That only saved the primary stream (i.e. the video in my case), the output file didn't have audio.
I was thinking about the advanced command-line interface. Haven't used it much, so I don't know if it's possible to read audio in from another file.

Quote:
Originally Posted by lovelove View Post
Do you happen to know the correct syntax for FFmpeg?
Code:
ffmpeg -i video.wmv -i audio.wma -vcodec copy -acodec copy out.asf
nm is offline   Reply With Quote
Old 31st August 2011, 19:49   #164  |  Link
lovelove
Registered User
 
Join Date: Mar 2010
Posts: 106
Quote:
Originally Posted by nm View Post
Well, has anybody else ever really cared about ASF...
no, but when the source file happens to be in that format, you don't have much choice.
Or is there any other container designed to handle wmv/wma?

many for the ffmpeg syntax. I didn't know that you can feed in 2 files like this. very helpful.
Do you also know how to join two wmv files with ffmpeg? I only found this, but it looks pretty complicated.

Last edited by lovelove; 31st August 2011 at 19:53.
lovelove is offline   Reply With Quote
Old 31st August 2011, 20:29   #165  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,643
Quote:
Originally Posted by lovelove View Post
Do you also know how to join two wmv files with ffmpeg? I only found this, but it looks pretty complicated.
That also implies re-encoding, which you seem to want to avoid.

There's an unfinished concatenate filter, but I don't know if it would work with your streams. I'd re-encode to some nicer format at the point of needing to cat files together.
nm is offline   Reply With Quote
Old 31st August 2011, 20:46   #166  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,385
Quote:
Originally Posted by lovelove View Post
...

but ASFbin GUI says "compatibility error: audio block aligns are different". Any idea what the reason for this is and how to fix that?
Aaaaahhhh... sadly, sometimes AsfBin "is not perfect" , that's very true. In such cases, the first step should be remux thru ffmpeg, and then, try AsfBin --- because often, the ASF files generated by ffmpeg are not *friendly to Windows Media Player*

As for vidtoasf, apologies because I forgot to mention that its goal is remux *from AVI to ASF*
WHEN vidtoasf happens to work , the resulting ASF file is properly indexed ( especially when that stupid program states otherwise ) --- different from the SolveigMM Multiplexer, which frequently does not output an indexed ASF file.

Quote:
Do you also know how to join two wmv files with ffmpeg? I only found this, but it looks pretty complicated.
This is what I'd do --- I know, the method is convoluted and insipid , but might work for you

1) with Graphstudio and Matroska Muxer, transform the files WMV#1 and WMV#2 into MKV#1 and MKV#2

2) join these MKVs thru MKVtoolnix

3) convert MKV#3 to WMV#3 via ffmpeg (-vcodec copy -acodec copy)

4) finally, convert WMV#3 to WMV#4 via AsfBin

Good-luck
Midzuki is offline   Reply With Quote
Old 2nd September 2011, 04:08   #167  |  Link
lovelove
Registered User
 
Join Date: Mar 2010
Posts: 106
Ok, although Crypto seems to have left this thread anyway, I don't want to hijack it, so I started a new thread here.

But just so that the postings trying to help don't remain without answer here, I will still quickly reply:

Quote:
Originally Posted by Midzuki View Post
This is what I'd do --- I know, the method is convoluted and insipid , but might work for you
1) with Graphstudio and Matroska Muxer, transform the files WMV#1 and WMV#2 into MKV#1 and MKV#2
2) join these MKVs thru MKVtoolnix
3) convert MKV#3 to WMV#3 via ffmpeg (-vcodec copy -acodec copy)
re 1): I converted wmv -> mkv with ffmpeg -i clip1.asf -vcodec copy -acodec clip1.mkv that should do the same job (and is easier), right?
re 2): joining in MKVtoolnix worked, but VLC crashes at the joining point. MPC-HC plays fine until joining point, but henceforth plays garbage
re 3): I don't need the final file to be in asf. Quite to the contrary, if it can stay in mkv it's even better. (Besides converting mkv to wmv via ffmpeg fails with "[asf @ 00B58020] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 10803 >= 10803"

Quote:
Originally Posted by nm View Post
That also implies re-encoding, which you seem to want to avoid.
well, isn't there an ffmpeg command for lossless joining without re-encoding via -vcodec copy -acodec copy ?

Last edited by lovelove; 2nd September 2011 at 05:12.
lovelove is offline   Reply With Quote
Old 2nd September 2011, 04:19   #168  |  Link
lovelove
Registered User
 
Join Date: Mar 2010
Posts: 106
As a reference for readers understanding German:

I found this thread quite helpful, particularly the suggestion to use ASFtools
(see "basic repair", "advanced repair", "join incompatible bitrate", etc.):

lovelove is offline   Reply With Quote
Old 2nd September 2011, 05:27   #169  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,385
Quote:
Originally Posted by lovelove View Post
re 1): I converted wmv -> mkv with ffmpeg -i clip1.asf -vcodec copy -acodec clip1.mkv that should do the same job (and is easier), right?
Wrong ffmpeg's mkv muxer is un-reliable — sometimes it works, sometimes it doesn't. I will download and study your sample files, they shall be fun
Midzuki is offline   Reply With Quote
Old 2nd September 2011, 07:25   #170  |  Link
lovelove
Registered User
 
Join Date: Mar 2010
Posts: 106
I see.

Quote:
Originally Posted by Midzuki View Post
I will download and study your sample files


Quote:
they shall be fun
that much's for sure
lovelove is offline   Reply With Quote
Old 2nd September 2011, 07:39   #171  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,643
Quote:
Originally Posted by lovelove View Post
well, isn't there an ffmpeg command for lossless joining without re-encoding via -vcodec copy -acodec copy ?
Not without the concatenate filter, which wasn't finished for inclusion to the project.
nm is offline   Reply With Quote
Old 2nd September 2011, 13:13   #172  |  Link
lovelove
Registered User
 
Join Date: Mar 2010
Posts: 106
ok, I see. Since ffplay has a -concat param I had thought ffmpeg might have one too.
Anyway, thanks everyone for helping!
lovelove is offline   Reply With Quote
Old 7th September 2011, 19:57   #173  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 2,331
The free Expression Encoder 4 SP1 will take multiple WMV files with the same encoding parameters and concatenate the video tracks, with trimming even. You just need to make sure that they are Closed GOP if you're using B-frames, for the usual reason.

If you've got an old Windows Media Encoder 9 Series installer lying around, the included "Windows Media File Editor" and "Windows Media Stream Editor" can do effective basic file concatenation/editing and stream addition/removal respectively.

A WMV file that doesn't support random access is typically because the file wasn't indexed after creation, which any of the listed tools would fix.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Instant Video

My Compression Book

Amazon Instant Video is hiring! PM me if you're interested.
benwaggoner is offline   Reply With Quote
Old 9th September 2011, 04:12   #174  |  Link
lovelove
Registered User
 
Join Date: Mar 2010
Posts: 106
very valuable tips!
lovelove is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


All times are GMT +1. The time now is 13:49.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.