Author Topic: xmp-ffmpeg  (Read 65594 times)

Ionut Cristea

  • Posts: 1559
xmp-ffmpeg
« on: 2 Dec '13 - 19:02 »
  Hello guys,

Here is a new xmp addon called xmp-ffmpeg. It will allow decoding of many formats including video ones. Please give it a try.

http://surodev.com/downloads/xmp-ffmpeg.zip

Ionut

AstralSoup Design

  • Posts: 286
Re: xmp-ffmpeg
« Reply #1 on: 2 Dec '13 - 19:17 »
I'll take a look in the next couple minutes.

piovrauz

  • Posts: 1020
Re: xmp-ffmpeg
« Reply #2 on: 2 Dec '13 - 19:28 »
Basically it's an audio decoder plugin for XMPlay, that can read from video container?
I like how it can open both mkv and mka, was waiting for something like that. Thanks.

Suggestion 1: you could pass more info about the audio stream being decoded to XMPlay, for the info windows.
Suggestion 2: what about files with 2 audio stream? Would you mind implementing some customizable setting for the selection of default one?
Suggestion 3: again on files with 2 audio stream (or more), would it be possible to make XMPlay select them like subsong are now?
Suggestion 4: add a info windows where you show the usual stuff (based on ffmpeg, go ww for sources, and so on)

EDIT: Did some testing: works as supposed to. Well done.
« Last Edit: 2 Dec '13 - 19:37 by piovrauz »

Ionut Cristea

  • Posts: 1559
Re: xmp-ffmpeg
« Reply #3 on: 2 Dec '13 - 19:36 »

Quote
Basically it's an audio decoder plugin for XMPlay, that can read from video container?
I like how it can open both mkv and mka, was waiting for something like that. Thanks.
Yes , it is an audio decoder that can read from video containers too.

Quote
Suggestion 1: you could pass more info about the audio stream being decoded to XMPlay, for the info windows.
Suggestion 2: what about files with 2 audio stream? Would you mind implementing some customizable setting for the selection of default one?
Suggestion 3: again on files with 2 audio stream (or more), would it be possible to make XMPlay select them like subsong are now?
Suggestion 4: add a info windows where you show the usual stuff (based on ffmpeg, go ww for sources, and so on)

1) Working on that
2-3) The plugin itself suports audio switching but i'm afraid i'm not sure that xmplay supports such thing. What i can do is maybe have a config file, and in that config file you specify wich audio stream to be loaded.
4) working on that

piovrauz

  • Posts: 1020
Re: xmp-ffmpeg
« Reply #4 on: 2 Dec '13 - 19:49 »
Eh, I suppose you can contact Ian for the stream switching, maybe if it's handles as a subsong it can be done: I hope so.
Thanks for working on the config file; it's enough for me, but maybe you could add it to the "config" button of the plugin?
Anyway, please give us the possibility to choose audio stream based on language tag too.
Oh, on a side note, you cuould UPX (or whatever you like more) the plugin, 12MB is a lot! XD
Closing note, you made my day. Really happy you did this! :)

Ionut Cristea

  • Posts: 1559
Re: xmp-ffmpeg
« Reply #5 on: 2 Dec '13 - 19:59 »
Quote
Eh, I suppose you can contact Ian for the stream switching, maybe if it's handles as a subsong it can be done: I hope so.
Thanks for working on the config file; it's enough for me, but maybe you could add it to the "config" button of the plugin?
Anyway, please give us the possibility to choose audio stream based on language tag too.
Oh, on a side note, you cuould UPX (or whatever you like more) the plugin, 12MB is a lot! XD
Closing note, you made my day. Really happy you did this! Smiley


I will see what i can do about. Thanks for testing too.

AstralSoup Design

  • Posts: 286
I support this idea!
« Reply #6 on: 2 Dec '13 - 20:21 »
Wow! This is the first real step for an awesome input plugin for XMPlay. Unanimously I support your idea. No suggestions by me, simply I'll let the idea evolves slowly. (I love the Alpha andd Beta versions of anything). :)

piovrauz

  • Posts: 1020
Re: xmp-ffmpeg
« Reply #7 on: 2 Dec '13 - 20:44 »
Found a mkv file that has issues seeking (muxed with mkvmerge 6.5.0, so libebml v1.3.0 + libmatroska v1.4.1).
It seems to seek but it will still play audio from "before" (audio won't seek and just keep playing. Video player seeks normally (MPC + LAV).
Remuxing it with mkvmerge 6.5.0 fixes it, so I think it may be a particular muxing setting.
If I find more with the same issues I will let you know, for now only one isn't worth your time.


Ionut Cristea

  • Posts: 1559
Re: xmp-ffmpeg
« Reply #8 on: 2 Dec '13 - 21:01 »
 
Quote
Insert Quote
Found a mkv file that has issues seeking (muxed with mkvmerge 6.5.0, so libebml v1.3.0 + libmatroska v1.4.1).
It seems to seek but it will still play audio from "before" (audio won't seek and just keep playing. Video player seeks normally (MPC + LAV).
Remuxing it with mkvmerge 6.5.0 fixes it, so I think it may be a particular muxing setting.
If I find more with the same issues I will let you know, for now only one isn't worth your time.

Ok thank you for testing. Also, i've found a way to display video like a visualization so finally xmplay will have video support too.

Ionut

piovrauz

  • Posts: 1020
Re: xmp-ffmpeg
« Reply #9 on: 2 Dec '13 - 21:13 »
Considering how many video player there are out there, I wouldn't go down the video decoding road...
But it's your choice, just make it so one can totally disable the video player code if possible, because it would eat CPU...
It wouldn't make much sense to use XMPlay to play the audio in a video container and see the video too, when one could just fire up say MPC-HC + LAV + madVR and get A/V perfection. ;)
Even if I'm not a fan of adding video support to XMPlay, I suppose it could be nice for small videos of songs, or small clip in general.
Maybe a poll about it?

AstralSoup Design

  • Posts: 286
Re: xmp-ffmpeg
« Reply #10 on: 2 Dec '13 - 21:18 »
I would like to see video support in XMPlay to start unifying useful applications and discarding some not so.
I think at this way: this is a plugin. If you want it, download it.

Do you have any Vis Beta available, Ionut?

Ionut Cristea

  • Posts: 1559
Re: xmp-ffmpeg
« Reply #11 on: 3 Dec '13 - 06:04 »
Quote
Considering how many video player there are out there, I wouldn't go down the video decoding road...
But it's your choice, just make it so one can totally disable the video player code if possible, because it would eat CPU...
It wouldn't make much sense to use XMPlay to play the audio in a video container and see the video too, when one could just fire up say MPC-HC + LAV + madVR and get A/V perfection. Wink
Even if I'm not a fan of adding video support to XMPlay, I suppose it could be nice for small videos of songs, or small clip in general.
Maybe a poll about it?

Quote
Insert Quote
I would like to see video support in XMPlay to start unifying useful applications and discarding some not so.
I think at this way: this is a plugin. If you want it, download it.

Do you have any Vis Beta available, Ionut?

The video decoding will can be disabled at anytime so if a user don't need it.

piovrauz

  • Posts: 1020
Re: xmp-ffmpeg
« Reply #12 on: 3 Dec '13 - 08:44 »
Yep, that's why I said an option to disable the "video decoder" code, so one (me at least) could use the plugin to decode audio from a video container, without decoding the video.
Think of listening the audio from a concert (taken from a dvd or bluray you own), without watching it, since you're doing something else.
I'm pretty sure a lot of ppl want video decoding on XMPlay, but I'm confident there also are a lot that don't fancy that.
I don't know what Ian thinks, if he is fine shifting XMPlay into a video player from a pure audio player, but personally I on't think there's the need to re-invent the weel.
While ppl seem to like "do it all" programs, I'm more of a "do one thing perfectly", the unix way more or less... XD

Ionut Cristea

  • Posts: 1559
Re: xmp-ffmpeg
« Reply #13 on: 3 Dec '13 - 09:22 »
I will see what I can do and post an update today

Ionut Cristea

  • Posts: 1559
Re: xmp-ffmpeg
« Reply #14 on: 3 Dec '13 - 13:49 »
  New update to the plugin

+ability to change audio tracks(via config)
+added more supported formats
+seeking now is better
+display information support
+some bugs fixed
+now the addon is compressed

 http://surodev.com/downloads/xmp-ffmpeg.zip

Please test it and tell me how it goes.

Ionut

AstralSoup Design

  • Posts: 286
Re: xmp-ffmpeg
« Reply #15 on: 3 Dec '13 - 14:00 »
Why can't I use it? I don't know what happens.

  • Windows 7 Embedded SP1
  • Universidad Santo Tomás

Ionut Cristea

  • Posts: 1559
Re: xmp-ffmpeg
« Reply #16 on: 3 Dec '13 - 14:05 »
  Any errors...???

AstralSoup Design

  • Posts: 286
Re: xmp-ffmpeg
« Reply #17 on: 3 Dec '13 - 14:07 »
It simply refuses to load the file.
When I was at home, it was normal with MKV files (executing Windows 7, too).
Now I tried to load the same MKV file at the university and it doesn't load. The Infamous Red Underline of the Death.

Ionut Cristea

  • Posts: 1559
Re: xmp-ffmpeg
« Reply #18 on: 3 Dec '13 - 14:11 »
  Did you checked...is the xmp-ffmpeg loaded?

Ionut Cristea

  • Posts: 1559
Re: xmp-ffmpeg
« Reply #19 on: 3 Dec '13 - 14:25 »
  Please retry the link and see how it's going.

Ionut

AstralSoup Design

  • Posts: 286
Re: xmp-ffmpeg
« Reply #20 on: 3 Dec '13 - 14:30 »
The newest xmp-ffmpeg file was downloaded and it was loaded into XMPlay (new input options and a not-so-vis option).

However, it doesn't work yet.

AstralSoup Design

  • Posts: 286
Re: xmp-ffmpeg
« Reply #21 on: 3 Dec '13 - 14:33 »
Do you need any log file from me to check it out?

Ionut Cristea

  • Posts: 1559
Re: xmp-ffmpeg
« Reply #22 on: 3 Dec '13 - 14:39 »
  No, it don't creates any log. Please retry the link and tell me how it goes.

Ionut

AstralSoup Design

  • Posts: 286
Re: xmp-ffmpeg
« Reply #23 on: 3 Dec '13 - 14:53 »
Nope. Still the same. :(

Ionut Cristea

  • Posts: 1559
Re: xmp-ffmpeg
« Reply #24 on: 3 Dec '13 - 14:55 »
  Sorry..it was my bad. ZThis should try. Please retry the link.

Ionut