h264enc dont'work with *.ogv

Hello. Please, help me solve the my problem… step-by-step:

h264enc -2p -p slow -t film -pf high


Select the Input type [file/dir/vcd/dvd/bd]: file
Provide the Input Video File: out.ogv


Track 1: Select the Audio Codec [default is AAC]: NOSOUND
-----
etc

result:

-> Starting to encode the Video file in 2-pass mode
-> Using "x264 slow" preset
-> Using '/dev/null' as output for the first pass
-> Using '/home/aleksej/H264-8118.avi' as output file for the second pass


Starting to encode in: 5 4 3 2 1 0 
MEncoder -5 (C) 2000-2015 MPlayer Team
success: format: 0  data: 0x0 - 0x3eacad2
libavformat version 56.40.101 (external)
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.


Exiting...
-> MEncoder has exited with a non-zero value!
-> Exiting in function: mencoder_exit_func()

Any ideas?

============ Sorry, this file format is not recognized/supported =============

it looks like you are missing codecs is packman set as the system repo, do a full vendor change with packman
https://en.opensuse.org/SDB:Vendor_change_update#Full_repository_Vendor_change

h264enc -2p -p slow -t film -pf high

why use h264enc for encoding why don’t you use ffmpeg or HandBrake?

h264enc dont’work with *.ogv

the ogv/ogm container format does not support h264, if you want h264 use mkv/mp4/avi (I don’t recommend avi)

It is habitude for me. I’m use avidemux also, but answer: “Can not open file”.
I use packman:

aleksej@linux-ltgs:~> LC_ALL=C zypper info h264enc mplayer                                                                                                                          
Loading repository data...                                                                                                                                                          
Reading installed packages... 
                                            
Information for package h264enc:                                                                                            
--------------------------------                                                                                                                                                  
Repository: packman                                                                                                         
Name: h264enc                                                                                                               
Version: 10.4.6-1.1                                                                                                         
Arch: noarch                                                                                                                
Vendor: http://packman.links2linux.de 
Installed: Yes                                                                                                                                                                     
Status: up-to-date                                                                                                          
Installed Size: 521.0 KiB                                                                                                   
Summary: An advanced CLI shell script for MEncoder                                                                                                                                
Information for package MPlayer:
--------------------------------
Repository: packman
Name: MPlayer
Version: 1.2.r37548-1.2
Arch: x86_64
Vendor: http://packman.links2linux.de
Installed: Yes
Status: up-to-date
Installed Size: 10.1 MiB
Summary: Multimedia Player

I’m sorry, but I’ve done it many times … -

Starting to encode in: 5 4 3 2 1 
MEncoder SVN-r34652-4.7.0 (C) 2000-2012 MPlayer Team
Option x264encopts: turbo option is deprecated; use slow_firstpass to disable turbo
success: format: 0  data: 0x0 - 0x69efd4
libavformat version 53.32.100 (external)
libavformat file format detected.
[lavf] stream 1: video (theora), -vid 0
[lavf] stream 2: audio (vorbis), -aid 0
VIDEO:  [theo]  1280x1024  0bpp  15.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44  fourcc:0x6F656874  size:1280x1024  fps:15.000  ftime:=0.0667
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [softskip]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.61.100 (external)
Selected video codec: [fftheora] vfm: ffmpeg (FFmpeg Theora)

It is habitude for me. I’m use avidemux also, but answer: “Can not open file”.
I use packman:

using packman is not enough you need to do a full vendor change to packman you probably have crippled packages from the oss repo, what is your repo list

zypper lr -d

I’m sorry, but I’ve done it many times … -

you don’t have to be sorry but the ogm format officially supports only theora, tarkin and dirac codecs, I don’t understand why wouldn’t you use mp4 which is the default container for h264 or mkv an open format. It is quite possible to embed h264 video’s in ogm but you are risking losing your data, it’s your business anyhow.
here you go

https://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions#.ogv_-_video.2Fogg

list of supported codecs in ogm you won’t find h264 anywhere, the fact you can currently play ogm files with h264 is a bug that might get fixed.

LC_ALL=C zypper lr -d
#                   | Alias              | Name               | Enabled               | GPG Check                  | Refresh | Priority | Type   | URI                             
                            | Service
--------------------+--------------------+--------------------+-----------------------+----------------------------+---------+----------+--------+---------------------------------
----------------------------+--------
1 | Google-Chrome      | Google-Chrome      | Yes | (r ) Yes | No      |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64         |         
2 | packman            | packman            | Yes | (r ) Yes | No      |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Tumbleweed            |         
3 | packman-essentials | packman-essentials | Yes | (r ) Yes | No      |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Tumbleweed/Essentials |         
4 | repo-debug         | repo-debug         | Yes | (r ) Yes | Yes     |   99     | yast2  | http://download.opensuse.org/tumbleweed/repo/debug          |         
5 | repo-non-oss       | repo-non-oss       | Yes | (r ) Yes | Yes     |   99     | yast2  | http://download.opensuse.org/tumbleweed/repo/non-oss        |         
6 | repo-oss           | repo-oss           | Yes | (r ) Yes | Yes     |   99     | yast2  | http://download.opensuse.org/tumbleweed/repo/oss            |         
7 | repo-update        | repo-update        | Yes | (r ) Yes | Yes     |   99     | rpm-md | http://download.opensuse.org/update/tumbleweed/             |   

do

sudo zypper dup --from 2

ps you have 2 packman repo’s the full and the essentials I don’t think that would cause problems but you should remove packman essentials

sudo zypper rr 3

ok

I can not do it:

LC_ALL=C sudo zypper dup --from 2       Loading repository data...
Reading installed packages...
Computing distribution upgrade...


The following 4 NEW packages are going to be installed:
  libdcadec0 libmusicbrainz4 libtxc_dxtn libx265-68


The following 2 applications are going to be REMOVED:
  Audacity "GStreamer Multimedia Codecs"


The following package is going to be REMOVED:
  s2tc


The following 66 packages are going to be upgraded:
  amarok audacity audacity-lang fdupes ffmpeg freshplayerplugin gstreamer gstreamer-0_10 gstreamer-0_10-plugin-esd gstreamer-0_10-plugin-gnomevfs gstreamer-0_10-plugins-base
  gstreamer-0_10-plugins-good gstreamer-0_10-plugins-good-lang gstreamer-plugins-base gstreamer-plugins-good k3b liba52-0 libavcodec56 libavdevice56 libavfilter5 libavformat56
  libavresample2 libavutil54 libchromaprint0 libfaac0 libfaad2 libgstallocators-1_0-0 libgstapp-0_10-0 libgstapp-1_0-0 libgstapp-1_0-0-32bit libgstaudio-1_0-0
  libgstaudio-1_0-0-32bit libgstfft-1_0-0 libgstinterfaces-0_10-0 libgstpbutils-1_0-0 libgstpbutils-1_0-0-32bit libgstphotography-1_0-0 libgstreamer-0_10-0 libgstreamer-1_0-0
  libgstreamer-1_0-0-32bit libgstriff-1_0-0 libgstrtp-1_0-0 libgstrtsp-1_0-0 libgstsdp-1_0-0 libgsttag-1_0-0 libgsttag-1_0-0-32bit libgstvideo-1_0-0 libgstvideo-1_0-0-32bit
  libguess1 libmjpegutils-2_0-0 libmp3lame0 libopencore-amrnb0 libopencore-amrwb0 libpostproc53 libquicktime0 libsox3 libsoxr0 libstreamanalyzer0 libswresample1 libswscale3
  libtwolame0 libxine2 libxine2-pulse libxvidcore4 mjpegtools sox


The following 3 packages are going to be downgraded:
  libdca0 libmad0 libmpeg2-0


The following package is going to be reinstalled:
  chromium-pepper-flash


The following 69 packages are going to change vendor:


--------------------------------


Retrieving package libquicktime0-1.2.4cvs20150223-66.14.x86_64                                                                              (48/74), 289.2 KiB (  1.0 MiB unpacked)
Retrieving: libquicktime0-1.2.4cvs20150223-66.14.x86_64.rpm ................................................................................................................[error]
File './Essentials/x86_64/libquicktime0-1.2.4cvs20150223-66.14.x86_64.rpm' not found on medium 'http://packman.inode.at/suse/openSUSE_Tumbleweed'


Abort, retry, ignore? [a/r/i/? shows all options] (a): a
Problem occured during or after installation or removal of packages:
Installation aborted by user


Please see the above error message for a hint.

why can’t you do it?
gstreamer from the oss repo does not work with restricted codecs. you can always reinstall it from packman, you obviously have messed up dependencies that need cleaning up, do a full vendor change with packman then re-install any missing applications, packman does provide audicity and gstreamer
http://packman.links2linux.org/package/audacity
http://packman.links2linux.org/package/gstreamer

you seam to have a lot of non-workin multimedia applications and libraries from the oss repository hoping they start working on their own will not make it so.
anyhow it’s your system and your business, just remember 1 thing about openSUSE if you want working multimedia you have to dup to packman.

Because “Auto-Refresh” is disabled for the Packman repo (#2), therefore zypper wants to install packages that don’t actually exist in the repo any more.

LC_ALL=C zypper lr -d#                   | Alias              | Name               | Enabled               | GPG Check                  | Refresh | Priority | Type   | URI                             
                            | Service
--------------------+--------------------+--------------------+-----------------------+----------------------------+---------+----------+--------+---------------------------------
----------------------------+--------
2 | packman            | packman            | Yes | (r ) Yes | No      |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Tumbleweed            |         

Run “sudo zypper ref” to refresh all repos, or better enable “Auto-Refresh” for the Packman repo to fix this:

sudo zypper mr -r 2

Ok, thanks. My problem was solved. :slight_smile: